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.7943/0.7943, allocations: 150.9 MB / 166.4 MB, free: 14.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003329/0.000333, allocations: 19.97 kB / 204.6 MB, free: 9.656 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1309/0.1313, allocations: 31.33 MB / 236 MB, free: 5.383 MB / 190.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.518/1.649, allocations: 294.9 MB / 0.5184 GB, free: 13.13 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.03166/1.681, allocations: 28.96 MB / 0.5467 GB, free: 328 kB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/1.681, allocations: 7.938 kB / 0.5467 GB, free: 320 kB / 430.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.0004563/1.681, allocations: 180 kB / 0.5469 GB, free: 140 kB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/1.681, allocations: 131 kB / 0.547 GB, free: 8 kB / 430.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.02131/1.703, allocations: 9.552 MB / 0.5564 GB, free: 6.461 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005821/1.703, allocations: 426.1 kB / 0.5568 GB, free: 6.043 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/1.704, allocations: 128.5 kB / 0.5569 GB, free: 5.926 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/1.704, allocations: 175.2 kB / 0.5571 GB, free: 5.754 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/1.704, allocations: 139.3 kB / 0.5572 GB, free: 5.617 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 2.976e-05/1.704, allocations: 20 kB / 0.5572 GB, free: 5.598 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03009/1.734, allocations: 20.24 MB / 0.577 GB, free: 1.336 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001203/1.734, allocations: 47.78 kB / 0.577 GB, free: 1.289 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002353/1.735, allocations: 163.1 kB / 0.5772 GB, free: 1.129 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01649/1.751, allocations: 8.58 MB / 0.5856 GB, free: 8.531 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/1.751, allocations: 0 / 0.5856 GB, free: 8.531 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.533e-06/1.751, allocations: 3.938 kB / 0.5856 GB, free: 8.527 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.092e-05/1.751, allocations: 0 / 0.5856 GB, free: 8.527 MB / 478.1 MB 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.003836/1.755, allocations: 1.408 MB / 0.5869 GB, free: 7.07 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.795e-05/1.755, allocations: 11.97 kB / 0.5869 GB, free: 7.059 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.122e-05/1.755, allocations: 74.7 kB / 0.587 GB, free: 6.977 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.417e-05/1.755, allocations: 28.56 kB / 0.587 GB, free: 6.949 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002044/1.755, allocations: 236.5 kB / 0.5873 GB, free: 6.68 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.915e-05/1.755, allocations: 20.38 kB / 0.5873 GB, free: 6.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.811e-05/1.755, allocations: 20 kB / 0.5873 GB, free: 6.641 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004241/1.756, allocations: 349.1 kB / 0.5876 GB, free: 6.27 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/1.756, allocations: 0 / 0.5876 GB, free: 6.27 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/1.756, allocations: 12 kB / 0.5877 GB, free: 6.258 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/1.756, allocations: 15.98 kB / 0.5877 GB, free: 6.242 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002604/1.756, allocations: 211 kB / 0.5879 GB, free: 6.039 MB / 478.1 MB 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.01953/1.776, allocations: 9.897 MB / 0.5975 GB, free: 11.13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002482/1.776, allocations: 143 kB / 0.5977 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001491/1.776, allocations: 113.7 kB / 0.5978 GB, free: 10.87 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1124/1.889, allocations: 51.56 MB / 0.6481 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/1.889, allocations: 42.5 kB / 0.6482 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=52): time 1.994e-06/1.889, allocations: 0 / 0.6482 GB, free: 2.316 MB / 0.5294 GB Notification: Performance of matching and sorting (n=52): time 0.001027/1.89, allocations: 0.5172 MB / 0.6487 GB, free: 1.777 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.2e-05/1.89, allocations: 55.39 kB / 0.6487 GB, free: 1.711 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002208/1.89, allocations: 229 kB / 0.6489 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.463e-05/1.89, allocations: 25.7 kB / 0.649 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 8.715e-05/1.89, allocations: 153 kB / 0.6491 GB, free: 1.293 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 9.828e-05/1.89, allocations: 169.4 kB / 0.6493 GB, free: 1.125 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.612e-05/1.89, allocations: 53.69 kB / 0.6493 GB, free: 1.066 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001029/1.89, allocations: 338.8 kB / 0.6497 GB, free: 0.7266 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001148/1.89, allocations: 84.53 kB / 0.6497 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000148/1.891, allocations: 145.3 kB / 0.6499 GB, free: 496 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002925/1.891, allocations: 267.5 kB / 0.6501 GB, free: 208 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.344e-06/1.891, allocations: 0 / 0.6501 GB, free: 208 kB / 0.5294 GB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0004775/1.891, allocations: 339.3 kB / 0.6504 GB, free: 15.86 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/1.891, allocations: 9.562 kB / 0.6505 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/1.891, allocations: 0 / 0.6505 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002575/1.892, allocations: 113.6 kB / 0.6506 GB, free: 15.74 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.973e-05/1.892, allocations: 11.94 kB / 0.6506 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004271/1.892, allocations: 0.6109 MB / 0.6512 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001229/1.892, allocations: 31.56 kB / 0.6512 GB, free: 15.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.839e-05/1.892, allocations: 12 kB / 0.6512 GB, free: 15.05 MB / 0.545 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.0001321/1.892, allocations: 145.8 kB / 0.6514 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.229e-05/1.893, allocations: 29.31 kB / 0.6514 GB, free: 14.87 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008226/1.893, allocations: 0.8118 MB / 0.6522 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0004738/1.894, allocations: 392.3 kB / 0.6525 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/1.894, allocations: 0 / 0.6525 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/1.894, allocations: 0 / 0.6525 GB, free: 13.63 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001644/1.895, allocations: 1.481 MB / 0.654 GB, free: 12.03 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.256e-06/1.896, allocations: 11.92 kB / 0.654 GB, free: 12.02 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001646/1.896, allocations: 63.92 kB / 0.6541 GB, free: 11.95 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/1.896, allocations: 93.89 kB / 0.6542 GB, free: 11.86 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.296e-05/1.896, allocations: 16 kB / 0.6542 GB, free: 11.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004098/1.896, allocations: 0.6307 MB / 0.6548 GB, free: 11.19 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/1.896, allocations: 7.938 kB / 0.6548 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006154/1.897, allocations: 0.6482 MB / 0.6554 GB, free: 10.45 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 8.761e-05/1.897, allocations: 128.5 kB / 0.6556 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.1e-05/1.897, allocations: 19.84 kB / 0.6556 GB, free: 10.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001702/1.897, allocations: 12 kB / 0.6556 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.66e-05/1.897, allocations: 39.84 kB / 0.6556 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.064e-05/1.897, allocations: 24.78 kB / 0.6556 GB, free: 10.21 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0002716/1.898, allocations: 287 kB / 0.6559 GB, free: 9.93 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.392e-06/1.898, allocations: 0 / 0.6559 GB, free: 9.93 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00317/1.901, allocations: 1.343 MB / 0.6572 GB, free: 8.586 MB / 0.545 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.00689/1.908, allocations: 2.715 MB / 0.6599 GB, free: 5.789 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007472/1.908, allocations: 0.4929 MB / 0.6604 GB, free: 5.27 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/1.908, allocations: 0 / 0.6604 GB, free: 5.27 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.000277/1.909, allocations: 194 kB / 0.6605 GB, free: 5.082 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/1.91, allocations: 220.6 kB / 0.6608 GB, free: 4.867 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00565/1.916, allocations: 4.152 MB / 0.6648 GB, free: 476 kB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003966/1.916, allocations: 0.8362 MB / 0.6656 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.000172/1.916, allocations: 42.95 kB / 0.6657 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001721/1.916, allocations: 163.4 kB / 0.6658 GB, free: 15.4 MB / 0.5606 GB Notification: Performance of SimCode: time 2.51e-07/1.916, allocations: 3.938 kB / 0.6658 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2337/2.15, allocations: 59.65 MB / 0.7241 GB, free: 196.8 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.36/15.51, allocations: 3.516 kB / 0.7241 GB, free: 196.8 MB / 0.5762 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)