Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo", uses=false) Using package ThermoSysPro with version 4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo) Running command: "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/package.mo): time 0.845/0.845, allocations: 150.9 MB / 166.5 MB, free: 14.41 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004774/0.0004774, allocations: 16.58 kB / 236.6 MB, free: 2 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05987/0.06036, allocations: 31.35 MB / 268 MB, free: 7.547 MB / 222.1 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package ModelicaServices 4.0.0 due to uses annotation from Modelica. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(ThermoSysPro.Examples.SimpleExamples.TestSteamEngine): time 1.671/1.731, allocations: 295.5 MB / 0.5502 GB, free: 12.7 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.03815/1.769, allocations: 28.96 MB / 0.5785 GB, free: 15.63 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002173/1.77, allocations: 0 / 0.5785 GB, free: 15.63 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:35:3-37:17:writable] Warning: Connector C1 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/Machines/SteamEngine.mo:38:3-39:44:writable] Warning: Connector C2 is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SinkP.mo:33:3-34:47:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSteam/BoundaryConditions/SourceP.mo:30:3-31:45:writable] Warning: Connector C is not balanced: The number of potential variables (4) is not equal to the number of flow variables (0). Notification: Performance of NFTyping.typeComponents: time 0.0005598/1.77, allocations: 183.1 kB / 0.5787 GB, free: 15.45 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002686/1.77, allocations: 135 kB / 0.5788 GB, free: 15.32 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:783:9-783:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:850:9-850:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1088:9-1088:27:writable] Warning: cv was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/Properties/WaterSteam/IF97_packages.mo:1445:9-1445:35:writable] Warning: h was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0244/1.795, allocations: 9.574 MB / 0.5882 GB, free: 5.738 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006939/1.796, allocations: 426.1 kB / 0.5886 GB, free: 5.32 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000232/1.796, allocations: 120.6 kB / 0.5887 GB, free: 5.207 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002277/1.796, allocations: 175.2 kB / 0.5889 GB, free: 5.035 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/1.796, allocations: 135.4 kB / 0.589 GB, free: 4.902 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 3.079e-05/1.796, allocations: 20 kB / 0.589 GB, free: 4.883 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03559/1.832, allocations: 20.52 MB / 0.609 GB, free: 348 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001171/1.832, allocations: 55.77 kB / 0.6091 GB, free: 292 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002301/1.832, allocations: 155.2 kB / 0.6092 GB, free: 136 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01967/1.852, allocations: 8.594 MB / 0.6176 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/1.852, allocations: 0 / 0.6176 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.803e-06/1.852, allocations: 0 / 0.6176 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.356e-06/1.852, allocations: 0 / 0.6176 GB, free: 7.52 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 95 * Number of variables: 95 Notification: Performance of Generate backend data structure: time 0.004576/1.857, allocations: 1.46 MB / 0.6191 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.176e-05/1.857, allocations: 8.031 kB / 0.6191 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.914e-05/1.857, allocations: 66.72 kB / 0.6191 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.31e-05/1.857, allocations: 32.7 kB / 0.6192 GB, free: 5.891 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/1.857, allocations: 249 kB / 0.6194 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/1.857, allocations: 20.38 kB / 0.6194 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.193e-05/1.857, allocations: 19.94 kB / 0.6194 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/1.858, allocations: 349.2 kB / 0.6198 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/1.858, allocations: 3.938 kB / 0.6198 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.077e-05/1.858, allocations: 8 kB / 0.6198 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.436e-05/1.858, allocations: 19.97 kB / 0.6198 GB, free: 5.172 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002949/1.858, allocations: 208.7 kB / 0.62 GB, free: 4.969 MB / 0.4981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0207/1.879, allocations: 9.938 MB / 0.6297 GB, free: 10.02 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002453/1.879, allocations: 150.9 kB / 0.6298 GB, free: 9.859 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001567/1.879, allocations: 113.7 kB / 0.63 GB, free: 9.746 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1236/2.003, allocations: 52.01 MB / 0.6807 GB, free: 0.793 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.828e-05/2.003, allocations: 42.55 kB / 0.6808 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 2.605e-06/2.003, allocations: 0 / 0.6808 GB, free: 0.7422 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001198/2.004, allocations: 0.5213 MB / 0.6813 GB, free: 196 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.81e-05/2.004, allocations: 51.41 kB / 0.6813 GB, free: 132 kB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002968/2.004, allocations: 234 kB / 0.6816 GB, free: 15.89 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.465e-05/2.004, allocations: 29.7 kB / 0.6816 GB, free: 15.85 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/2.005, allocations: 145.2 kB / 0.6817 GB, free: 15.7 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001446/2.005, allocations: 174.4 kB / 0.6819 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.987e-05/2.005, allocations: 57.66 kB / 0.682 GB, free: 15.47 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001621/2.005, allocations: 342.8 kB / 0.6823 GB, free: 15.12 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001479/2.005, allocations: 84.62 kB / 0.6824 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001809/2.005, allocations: 157.2 kB / 0.6825 GB, free: 14.87 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003512/2.006, allocations: 262.6 kB / 0.6828 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.276e-06/2.006, allocations: 0 / 0.6828 GB, free: 14.59 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0005593/2.006, allocations: 345.9 kB / 0.6831 GB, free: 14.25 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 2.081e-05/2.006, allocations: 8 kB / 0.6831 GB, free: 14.24 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/2.006, allocations: 3.984 kB / 0.6831 GB, free: 14.23 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003054/2.007, allocations: 113 kB / 0.6832 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.657e-05/2.007, allocations: 11.94 kB / 0.6832 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005318/2.007, allocations: 0.6095 MB / 0.6838 GB, free: 13.48 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001446/2.007, allocations: 35.7 kB / 0.6839 GB, free: 13.44 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.798e-05/2.007, allocations: 8 kB / 0.6839 GB, free: 13.43 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 (sourceP.C.b,puitsP.C.a,steamEngine1.C2.b,steamEngine1.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0001664/2.008, allocations: 150.4 kB / 0.684 GB, free: 13.28 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.244e-05/2.008, allocations: 35.75 kB / 0.684 GB, free: 13.24 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009694/2.009, allocations: 0.7927 MB / 0.6848 GB, free: 12.41 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0005517/2.009, allocations: 388.4 kB / 0.6852 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.202e-06/2.009, allocations: 0 / 0.6852 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.745e-06/2.009, allocations: 3.984 kB / 0.6852 GB, free: 12.02 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001984/2.011, allocations: 1.48 MB / 0.6866 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.854e-06/2.011, allocations: 4 kB / 0.6866 GB, free: 10.41 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001807/2.011, allocations: 71.84 kB / 0.6867 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001917/2.012, allocations: 88.8 kB / 0.6868 GB, free: 10.25 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.638e-05/2.012, allocations: 12 kB / 0.6868 GB, free: 10.23 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004931/2.012, allocations: 0.6423 MB / 0.6874 GB, free: 9.566 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/2.012, allocations: 8 kB / 0.6874 GB, free: 9.559 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007744/2.013, allocations: 0.6443 MB / 0.6881 GB, free: 8.832 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001159/2.013, allocations: 124.8 kB / 0.6882 GB, free: 8.691 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.997e-05/2.013, allocations: 31.92 kB / 0.6882 GB, free: 8.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00018/2.013, allocations: 15.94 kB / 0.6882 GB, free: 8.645 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.821e-05/2.013, allocations: 35.84 kB / 0.6883 GB, free: 8.609 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.281e-05/2.013, allocations: 20 kB / 0.6883 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0003207/2.014, allocations: 299 kB / 0.6886 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of sort global known variables: time 3.3e-07/2.014, allocations: 0 / 0.6886 GB, free: 8.297 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003654/2.017, allocations: 1.337 MB / 0.6899 GB, free: 6.957 MB / 0.5762 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00801/2.025, allocations: 2.732 MB / 0.6925 GB, free: 4.125 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008426/2.026, allocations: 0.4929 MB / 0.693 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.99e-06/2.026, allocations: 0 / 0.693 GB, free: 3.609 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003402/2.027, allocations: 199.7 kB / 0.6932 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/2.028, allocations: 219.7 kB / 0.6934 GB, free: 3.203 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006842/2.035, allocations: 4.18 MB / 0.6975 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005049/2.035, allocations: 0.8401 MB / 0.6983 GB, free: 13.9 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001944/2.036, allocations: 38.97 kB / 0.6984 GB, free: 13.86 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002036/2.036, allocations: 159.4 kB / 0.6985 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of SimCode: time 7.72e-07/2.036, allocations: 0 / 0.6985 GB, free: 13.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2677/2.304, allocations: 59.75 MB / 0.7569 GB, free: 186 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.32/17.62, allocations: 7.812 kB / 0.7569 GB, free: 186 MB / 0.5919 GB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine_res.csv --start-time 0 --stop-time 1000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.4 ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestSteamEngine.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestSteamEngine.pipe 2>&1)