Coder Social home page Coder Social logo

Comments (3)

AndreasPfeiffer avatar AndreasPfeiffer commented on August 17, 2024

Please could you specify in more detail, how we can reproduce the issue? Which Dymola version and which version of the Modelica Standard Library do you use? Is your platform Windows? What do you exactly do before the issue appears?

from faulttriggering.

Techno-Anarchist avatar Techno-Anarchist commented on August 17, 2024

Thanks, I am using Windows 10, Modelica Standard Library Version 4.0.0. Dymola 2022 (64-bit)
i see that FaultTriggeringLibrary uses Version 3.2.2, is that the issue? (because i need 4.0.0)

and in the simplest example I go to Actuator Model and click Check.

alternatively i will try to run my Device(called "Wire" and containing two variable boolean faults) through the createfaultPackage and the command line will return the following:

FaultTriggering.createFaultPackage("Wire", "WireFaultScript.mos", "WireFaultPackage.mo");
Warning: Ignoring output for variable faultNames in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: Ignoring output for variable faultType in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: Ignoring output for variable faultChannel in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: Ignoring output for variable name in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: Ignoring output for variable extendsTo in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: Ignoring output for variable extensionDepths in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: Ignoring output for variable finalVariable in function FaultTriggering.createFaultPackage, since the variable is protected.
Warning: For equation
faultType = cat(1, ones(size(realFaultNames, 1))*4, ones(size( integerFaultNames, 1))*5, ones(size(booleanFaultNames, 1))*6);
found in class FaultTriggering.createFaultPackage, C:/...FaultTriggering-0.6.6/FaultTriggering/createFaultPackage.mo at line 75.
Warning: The types of the operands in (faultType) = (cat(1, ones(size(realFaultNames, 1))*4, ones(size( integerFaultNames, 1))*5, ones(size(booleanFaultNames, 1))*6))
are Enumeration and Integer, but they must be compatible.
Variable faultType was declared in class FaultTriggering.createFaultPackage, C:/.../FaultTriggering-0.6.6/FaultTriggering/createFaultPackage.mo at line 25, and used in component createFaultPackage.
= ""
Error: Failed to open or read ~FMUOutput/modelDescription.xml
Failed to expand FaultTriggering.Utilities.Internal.gatherVariableFaults("Wire", true).
Failed to expand FaultTriggering.Utilities.Internal.faultProcessingForFaultBus("Wire", "WireFaultScript.mos", true).
Failed to expand FaultTriggering.createFaultPackage("Wire", "WireFaultScript.mos", "WireFaultPackage.mo", true).

from faulttriggering.

AndreasPfeiffer avatar AndreasPfeiffer commented on August 17, 2024

The library FaultTriggering is not compatible with Modelica Standard Library 4.0.0. That is the reason for the issue in your first post. Because in the library there are functions generating Modelica code, a conversion seems to be more complex than just applying a conversion script. Currently, there is no plan to update the library.

from faulttriggering.

Related Issues (19)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.