Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.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.TestStaticCentrifugalPumpWaterSolution,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution,fileNamePrefix="ThermoSysPro_ThermoSysPro_Examples_SimpleExamples_TestStaticCentrifugalPumpWaterSolution",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.7936/0.7936, allocations: 150.9 MB / 166.4 MB, free: 14.45 MB / 142.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003244/0.0003244, allocations: 15.98 kB / 204.6 MB, free: 9.672 MB / 174.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1519, allocations: 31.33 MB / 236 MB, free: 5.391 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.TestStaticCentrifugalPumpWaterSolution): time 1.516/1.668, allocations: 294.4 MB / 0.5179 GB, free: 13.67 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01427/1.682, allocations: 12.03 MB / 0.5297 GB, free: 1.742 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/1.682, allocations: 5.312 kB / 0.5297 GB, free: 1.738 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoSysPro 4.0.0-master/WaterSolution/PressureLosses/SingularPressureLoss.mo:15:3-17:16: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/WaterSolution/PressureLosses/SingularPressureLoss.mo:18:3-19:83: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/WaterSolution/Machines/StaticCentrifugalPump.mo:46:3-48:16: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/WaterSolution/Machines/StaticCentrifugalPump.mo:49:3-50:83: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/WaterSolution/BoundaryConditions/SourcePQ.mo:9:3-10:83:writable] Warning: Connector Cs 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/WaterSolution/BoundaryConditions/Sink.mo:10:3-12:16:writable] Warning: Connector Ce 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.0001222/1.683, allocations: 33.06 kB / 0.5297 GB, free: 1.707 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001651/1.683, allocations: 61.89 kB / 0.5298 GB, free: 1.648 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007054/1.69, allocations: 3.425 MB / 0.5331 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002783/1.69, allocations: 255.2 kB / 0.5334 GB, free: 13.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002157/1.69, allocations: 161.7 kB / 0.5335 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/1.69, allocations: 111.6 kB / 0.5336 GB, free: 13.73 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/1.691, allocations: 111.5 kB / 0.5337 GB, free: 13.62 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 3.699e-05/1.691, allocations: 24 kB / 0.5338 GB, free: 13.59 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01001/1.701, allocations: 7.515 MB / 0.5411 GB, free: 6.07 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 7.767e-05/1.701, allocations: 51.78 kB / 0.5411 GB, free: 6.02 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001446/1.701, allocations: 127.3 kB / 0.5413 GB, free: 5.895 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004726/1.706, allocations: 3.392 MB / 0.5446 GB, free: 2.496 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/1.706, allocations: 2.625 kB / 0.5446 GB, free: 2.496 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.066e-06/1.706, allocations: 4 kB / 0.5446 GB, free: 2.492 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.136e-05/1.706, allocations: 3.938 kB / 0.5446 GB, free: 2.488 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001727/1.707, allocations: 0.8143 MB / 0.5454 GB, free: 1.617 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/1.707, allocations: 13 kB / 0.5454 GB, free: 1.605 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.457e-05/1.708, allocations: 54.73 kB / 0.5455 GB, free: 1.543 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.755e-05/1.708, allocations: 25.31 kB / 0.5455 GB, free: 1.52 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002383/1.708, allocations: 243.8 kB / 0.5457 GB, free: 1.242 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/1.708, allocations: 20.88 kB / 0.5457 GB, free: 1.227 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.356e-05/1.708, allocations: 24.38 kB / 0.5458 GB, free: 1.203 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004666/1.708, allocations: 290.5 kB / 0.546 GB, free: 0.8984 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/1.708, allocations: 5.375 kB / 0.546 GB, free: 0.8945 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.218e-05/1.708, allocations: 8 kB / 0.546 GB, free: 0.8867 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/1.708, allocations: 8 kB / 0.5461 GB, free: 0.8789 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004115/1.709, allocations: 178.8 kB / 0.5462 GB, free: 0.7031 MB / 430.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.005884/1.715, allocations: 3.031 MB / 0.5492 GB, free: 13.53 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005147/1.715, allocations: 178.8 kB / 0.5494 GB, free: 13.35 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001845/1.715, allocations: 77.66 kB / 0.5494 GB, free: 13.27 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004285/1.72, allocations: 1.686 MB / 0.5511 GB, free: 11.47 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002736/1.72, allocations: 145 kB / 0.5512 GB, free: 11.31 MB / 446.1 MB Notification: Performance of pre-optimization done (n=17): time 2.184e-06/1.72, allocations: 0 / 0.5512 GB, free: 11.31 MB / 446.1 MB Notification: Performance of matching and sorting (n=17): time 0.0006568/1.721, allocations: 268.8 kB / 0.5515 GB, free: 11.04 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.883e-05/1.721, allocations: 106.8 kB / 0.5516 GB, free: 10.91 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/1.721, allocations: 270.5 kB / 0.5518 GB, free: 10.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 2.11e-05/1.721, allocations: 33.7 kB / 0.5519 GB, free: 10.6 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001022/1.721, allocations: 156.2 kB / 0.552 GB, free: 10.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.997e-05/1.721, allocations: 51.2 kB / 0.5521 GB, free: 10.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.647e-05/1.721, allocations: 53.7 kB / 0.5521 GB, free: 10.34 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/1.721, allocations: 338.8 kB / 0.5524 GB, free: 9.996 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001659/1.722, allocations: 60.19 kB / 0.5525 GB, free: 9.934 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002021/1.722, allocations: 123.2 kB / 0.5526 GB, free: 9.789 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002658/1.725, allocations: 0.6326 MB / 0.5532 GB, free: 9.109 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/1.725, allocations: 0 / 0.5532 GB, free: 9.109 MB / 446.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005146/1.725, allocations: 275.7 kB / 0.5535 GB, free: 8.828 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.192e-05/1.725, allocations: 33.7 kB / 0.5535 GB, free: 8.789 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.285e-06/1.725, allocations: 4.938 kB / 0.5535 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/1.725, allocations: 0 / 0.5535 GB, free: 8.785 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001506/1.727, allocations: 219.8 kB / 0.5537 GB, free: 8.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003412/1.727, allocations: 0.5859 MB / 0.5543 GB, free: 7.961 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001903/1.727, allocations: 47.58 kB / 0.5544 GB, free: 7.914 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.93e-05/1.727, allocations: 11.98 kB / 0.5544 GB, free: 7.902 MB / 446.1 MB Warning: Assuming fixed start value for the following 2 variables: pulse.T0:DISCRETE(fixed = true protected = true ) type: Real Pulse1.T0:DISCRETE(fixed = true protected = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$PRE.pulse.T0,$PRE.Pulse1.T0,pulse.T0,Pulse1.yL.signal,Pulse1.T0,$whenCondition2,sinkSolution.Ce.a,sourceSolution.Cs.b,staticCentrifugalPumpWaterLiBr.C2.b,staticCentrifugalPumpWaterLiBr.C1.a,singularPressureLossWaterLiBr.C2.b,singularPressureLossWaterLiBr.C1.a) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (27): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000202/1.727, allocations: 180.7 kB / 0.5545 GB, free: 7.711 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.716e-05/1.727, allocations: 25.17 kB / 0.5546 GB, free: 7.688 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005128/1.728, allocations: 245.4 kB / 0.5548 GB, free: 7.43 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/1.728, allocations: 3.938 kB / 0.5548 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.968e-06/1.728, allocations: 0 / 0.5548 GB, free: 7.426 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/1.728, allocations: 4 kB / 0.5548 GB, free: 7.422 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/1.728, allocations: 289.4 kB / 0.5551 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/1.728, allocations: 0 / 0.5551 GB, free: 7.09 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001454/1.73, allocations: 195.7 kB / 0.5553 GB, free: 6.898 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/1.73, allocations: 8 kB / 0.5553 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.41e-05/1.73, allocations: 0 / 0.5553 GB, free: 6.891 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002756/1.73, allocations: 0.5937 MB / 0.5558 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/1.73, allocations: 0 / 0.5558 GB, free: 6.273 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004489/1.731, allocations: 259.9 kB / 0.5561 GB, free: 5.996 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000108/1.731, allocations: 116.7 kB / 0.5562 GB, free: 5.863 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.816e-05/1.731, allocations: 4 kB / 0.5562 GB, free: 5.859 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001303/1.731, allocations: 11.98 kB / 0.5562 GB, free: 5.848 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.835e-05/1.731, allocations: 16.88 kB / 0.5562 GB, free: 5.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/1.731, allocations: 7.984 kB / 0.5562 GB, free: 5.824 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001632/1.731, allocations: 186 kB / 0.5564 GB, free: 5.645 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.731, allocations: 0 / 0.5564 GB, free: 5.645 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001108/1.732, allocations: 399.8 kB / 0.5568 GB, free: 5.254 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$whenCondition2,Pulse1.T0,Pulse1.yL.signal,pulse.T0) * Number of discrete states: 3 (Pulse1.yL.signal,Pulse1.T0,$whenCondition2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002056/1.734, allocations: 1.194 MB / 0.558 GB, free: 4.031 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01134/1.746, allocations: 0.9099 MB / 0.5589 GB, free: 3.113 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/1.746, allocations: 4.062 kB / 0.5589 GB, free: 3.109 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.009995/1.756, allocations: 0.651 MB / 0.5595 GB, free: 2.445 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/1.756, allocations: 45.41 kB / 0.5595 GB, free: 2.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004112/1.76, allocations: 2.623 MB / 0.5621 GB, free: 15.65 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003347/1.761, allocations: 0.744 MB / 0.5628 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001022/1.761, allocations: 21.95 kB / 0.5629 GB, free: 14.86 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/1.761, allocations: 71.41 kB / 0.5629 GB, free: 14.79 MB / 462.1 MB Notification: Performance of SimCode: time 6.31e-07/1.761, allocations: 0 / 0.5629 GB, free: 14.79 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0398/1.801, allocations: 16.1 MB / 0.5786 GB, free: 14.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/12.09, allocations: 11.44 kB / 0.5787 GB, free: 14.9 MB / 478.1 MB (rm -f ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe ; mkfifo ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe ; head -c 1048576 < ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe >> ../files/ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.sim & python3 -m fmpy simulate --output-file ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution_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_TestStaticCentrifugalPumpWaterSolution.fmu > ThermoSysPro_ThermoSysPro.Examples.SimpleExamples.TestStaticCentrifugalPumpWaterSolution.pipe 2>&1)