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.7901/0.7901, allocations: 150.9 MB / 166.5 MB, free: 14.34 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003294, allocations: 16.95 kB / 236.6 MB, free: 2.145 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05418/0.05452, allocations: 31.35 MB / 267.9 MB, free: 7.652 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.562/1.617, allocations: 295 MB / 0.5497 GB, free: 12.77 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0327/1.649, allocations: 28.97 MB / 0.578 GB, free: 15.7 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002086/1.649, allocations: 0 / 0.578 GB, free: 15.7 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.000575/1.65, allocations: 235.1 kB / 0.5782 GB, free: 15.47 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002701/1.65, allocations: 159 kB / 0.5784 GB, free: 15.31 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.02236/1.673, allocations: 9.692 MB / 0.5879 GB, free: 5.617 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005463/1.673, allocations: 430.1 kB / 0.5883 GB, free: 5.195 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/1.673, allocations: 120.6 kB / 0.5884 GB, free: 5.082 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001831/1.674, allocations: 179.2 kB / 0.5886 GB, free: 4.906 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/1.674, allocations: 139.3 kB / 0.5887 GB, free: 4.77 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/1.674, allocations: 20 kB / 0.5887 GB, free: 4.75 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02994/1.704, allocations: 20.51 MB / 0.6087 GB, free: 224 kB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001143/1.704, allocations: 59.77 kB / 0.6088 GB, free: 164 kB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002218/1.704, allocations: 155.2 kB / 0.6089 GB, free: 8 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01991/1.724, allocations: 8.59 MB / 0.6173 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 7.153e-06/1.724, allocations: 0 / 0.6173 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.154e-06/1.724, allocations: 0 / 0.6173 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.02e-05/1.724, allocations: 3.984 kB / 0.6173 GB, free: 7.395 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.004186/1.728, allocations: 1.454 MB / 0.6188 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.82e-05/1.728, allocations: 8.031 kB / 0.6188 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.459e-05/1.729, allocations: 78.7 kB / 0.6188 GB, free: 5.793 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.419e-05/1.729, allocations: 36.7 kB / 0.6189 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002446/1.729, allocations: 235.9 kB / 0.6191 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/1.729, allocations: 20.38 kB / 0.6191 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.221e-05/1.729, allocations: 24 kB / 0.6191 GB, free: 5.445 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004797/1.729, allocations: 349.1 kB / 0.6195 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/1.729, allocations: 0 / 0.6195 GB, free: 5.078 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.07e-05/1.729, allocations: 8 kB / 0.6195 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.184e-05/1.729, allocations: 19.98 kB / 0.6195 GB, free: 5.051 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/1.73, allocations: 220.5 kB / 0.6197 GB, free: 4.836 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.01959/1.749, allocations: 9.935 MB / 0.6294 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002216/1.75, allocations: 146.9 kB / 0.6295 GB, free: 9.734 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/1.75, allocations: 117.7 kB / 0.6297 GB, free: 9.617 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.115/1.865, allocations: 52.01 MB / 0.6805 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/1.865, allocations: 34.56 kB / 0.6805 GB, free: 0.6211 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=52): time 3.296e-06/1.865, allocations: 7.984 kB / 0.6805 GB, free: 0.6133 MB / 0.5606 GB Notification: Performance of matching and sorting (n=52): time 0.001057/1.866, allocations: 0.5174 MB / 0.681 GB, free: 68 kB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.703e-05/1.866, allocations: 59.45 kB / 0.6811 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002218/1.866, allocations: 226 kB / 0.6813 GB, free: 15.76 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.127e-05/1.866, allocations: 29.69 kB / 0.6813 GB, free: 15.73 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.639e-05/1.866, allocations: 141.2 kB / 0.6814 GB, free: 15.58 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001015/1.866, allocations: 182.4 kB / 0.6816 GB, free: 15.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.49e-05/1.866, allocations: 57.64 kB / 0.6817 GB, free: 15.34 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000104/1.867, allocations: 338.8 kB / 0.682 GB, free: 15 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/1.867, allocations: 88.53 kB / 0.6821 GB, free: 14.91 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001488/1.867, allocations: 145.3 kB / 0.6822 GB, free: 14.75 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002961/1.867, allocations: 278.5 kB / 0.6825 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/1.867, allocations: 0 / 0.6825 GB, free: 14.46 MB / 0.5762 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004645/1.868, allocations: 341.9 kB / 0.6828 GB, free: 14.12 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/1.868, allocations: 4 kB / 0.6828 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/1.868, allocations: 4 kB / 0.6828 GB, free: 14.11 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002644/1.868, allocations: 104.8 kB / 0.6829 GB, free: 14 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.591e-05/1.868, allocations: 24.11 kB / 0.6829 GB, free: 13.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004295/1.868, allocations: 0.603 MB / 0.6835 GB, free: 13.35 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001242/1.869, allocations: 39.66 kB / 0.6836 GB, free: 13.31 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.709e-05/1.869, allocations: 8 kB / 0.6836 GB, free: 13.3 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.0001289/1.869, allocations: 142.2 kB / 0.6837 GB, free: 13.16 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.97e-05/1.869, allocations: 35.83 kB / 0.6837 GB, free: 13.12 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007993/1.87, allocations: 0.7967 MB / 0.6845 GB, free: 12.29 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004629/1.87, allocations: 384.3 kB / 0.6849 GB, free: 11.9 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/1.87, allocations: 4 kB / 0.6849 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/1.87, allocations: 0 / 0.6849 GB, free: 11.89 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00156/1.872, allocations: 1.488 MB / 0.6863 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.973e-06/1.872, allocations: 4 kB / 0.6863 GB, free: 10.28 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001702/1.872, allocations: 71.84 kB / 0.6864 GB, free: 10.21 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001676/1.872, allocations: 88.75 kB / 0.6865 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.943e-05/1.872, allocations: 12 kB / 0.6865 GB, free: 10.11 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003773/1.872, allocations: 0.6382 MB / 0.6871 GB, free: 9.441 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.872, allocations: 4 kB / 0.6871 GB, free: 9.438 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006131/1.873, allocations: 0.6521 MB / 0.6878 GB, free: 8.703 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.152e-05/1.873, allocations: 120.8 kB / 0.6879 GB, free: 8.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.384e-05/1.873, allocations: 31.84 kB / 0.6879 GB, free: 8.535 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001775/1.873, allocations: 12 kB / 0.6879 GB, free: 8.523 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.485e-05/1.873, allocations: 43.83 kB / 0.688 GB, free: 8.48 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.677e-05/1.874, allocations: 12.09 kB / 0.688 GB, free: 8.469 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0002685/1.874, allocations: 295 kB / 0.6883 GB, free: 8.184 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.6e-07/1.874, allocations: 4 kB / 0.6883 GB, free: 8.18 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.003242/1.877, allocations: 1.349 MB / 0.6896 GB, free: 6.828 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.006829/1.884, allocations: 2.732 MB / 0.6922 GB, free: 3.996 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0008209/1.885, allocations: 0.4887 MB / 0.6927 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/1.885, allocations: 0 / 0.6927 GB, free: 3.484 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0002856/1.885, allocations: 205 kB / 0.6929 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00121/1.886, allocations: 213.5 kB / 0.6931 GB, free: 3.078 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005948/1.892, allocations: 4.179 MB / 0.6972 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003798/1.893, allocations: 0.8401 MB / 0.698 GB, free: 13.78 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0001883/1.893, allocations: 46.95 kB / 0.6981 GB, free: 13.73 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001713/1.893, allocations: 159.4 kB / 0.6982 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of SimCode: time 9.32e-07/1.893, allocations: 0 / 0.6982 GB, free: 13.57 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2712/2.164, allocations: 59.74 MB / 0.7566 GB, free: 186 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.76/16.92, allocations: 6.328 kB / 0.7566 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)