Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009665/0.009665, allocations: 99.62 kB / 15.73 MB, free: 5.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002173/0.002174, allocations: 196.2 kB / 16.68 MB, free: 5.484 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.1 MB / 222.6 MB, free: 4.48 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04767/0.04767, allocations: 9.1 MB / 279 MB, free: 12.08 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001638/0.001638, allocations: 72.47 kB / 387 MB, free: 8.527 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3206, allocations: 48.16 MB / 435.1 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02147/0.3421, allocations: 17.91 MB / 453 MB, free: 10.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01655/0.3587, allocations: 16.99 MB / 470 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002233/0.359, allocations: 0 / 470 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009256/0.36, allocations: 317.7 kB / 470.3 MB, free: 11.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005815/0.3606, allocations: 238.8 kB / 470.6 MB, free: 11.69 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls 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/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls 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/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls 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/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls 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.0228/0.3834, allocations: 7.468 MB / 478 MB, free: 5.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005544/0.3839, allocations: 286.4 kB / 478.3 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.075e-05/0.384, allocations: 17.67 kB / 478.3 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002884/0.3843, allocations: 123.5 kB / 478.5 MB, free: 5.332 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001116/0.3844, allocations: 63.72 kB / 478.5 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.3845, allocations: 8 kB / 478.5 MB, free: 5.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0216/0.4061, allocations: 10.13 MB / 488.7 MB, free: 11.11 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.917e-05/0.4062, allocations: 19.81 kB / 488.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002285/0.4064, allocations: 75.62 kB / 488.7 MB, free: 11.02 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01402/0.4204, allocations: 4.391 MB / 493.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/0.4205, allocations: 0 / 493.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.4205, allocations: 0 / 493.1 MB, free: 6.617 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.945e-06/0.4205, allocations: 0 / 493.1 MB, free: 6.617 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 45 * Number of variables: 45 Notification: Performance of Generate backend data structure: time 0.002261/0.4228, allocations: 1.025 MB / 494.2 MB, free: 5.539 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.4228, allocations: 12.03 kB / 494.2 MB, free: 5.527 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.787e-05/0.4229, allocations: 50.53 kB / 494.2 MB, free: 5.469 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.813e-05/0.4229, allocations: 23.86 kB / 494.2 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001246/0.4231, allocations: 182.8 kB / 494.4 MB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.4231, allocations: 0 / 494.4 MB, free: 5.227 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.529e-05/0.4231, allocations: 8 kB / 494.4 MB, free: 5.219 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002861/0.4234, allocations: 172.1 kB / 494.6 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.604e-06/0.4234, allocations: 0 / 494.6 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.009e-05/0.4234, allocations: 0 / 494.6 MB, free: 5.039 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.536e-05/0.4234, allocations: 11.98 kB / 494.6 MB, free: 5.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002328/0.4237, allocations: 103.9 kB / 494.7 MB, free: 4.926 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006136/0.4243, allocations: 0.5278 MB / 495.2 MB, free: 4.344 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002064/0.4245, allocations: 138.5 kB / 495.4 MB, free: 4.199 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.4247, allocations: 120.8 kB / 495.5 MB, free: 4.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1479/0.5726, allocations: 85.21 MB / 0.5671 GB, free: 80 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.5727, allocations: 34.5 kB / 0.5671 GB, free: 36 kB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.084e-06/0.5727, allocations: 0 / 0.5671 GB, free: 36 kB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007296/0.5734, allocations: 364.9 kB / 0.5675 GB, free: 15.67 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/0.5734, allocations: 51.41 kB / 0.5675 GB, free: 15.61 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001028/0.5736, allocations: 117.8 kB / 0.5676 GB, free: 15.48 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.5736, allocations: 33.7 kB / 0.5677 GB, free: 15.45 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.632e-05/0.5736, allocations: 89.08 kB / 0.5678 GB, free: 15.36 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.711e-05/0.5737, allocations: 142.7 kB / 0.5679 GB, free: 15.21 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.857e-05/0.5738, allocations: 41.69 kB / 0.5679 GB, free: 15.17 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001068/0.5739, allocations: 334.8 kB / 0.5683 GB, free: 14.83 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001576/0.5741, allocations: 83.95 kB / 0.5683 GB, free: 14.75 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.5742, allocations: 114.5 kB / 0.5684 GB, free: 14.63 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003441/0.5746, allocations: 239 kB / 0.5687 GB, free: 14.39 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.5746, allocations: 3.938 kB / 0.5687 GB, free: 14.38 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004289/0.575, allocations: 265.2 kB / 0.5689 GB, free: 14.12 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.323e-05/0.5751, allocations: 4 kB / 0.5689 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/0.5751, allocations: 4 kB / 0.5689 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.937e-05/0.5751, allocations: 3.938 kB / 0.5689 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.323e-05/0.5752, allocations: 16.05 kB / 0.569 GB, free: 14.09 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/0.5752, allocations: 8.141 kB / 0.569 GB, free: 14.08 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.5754, allocations: 19.78 kB / 0.569 GB, free: 14.06 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.958e-05/0.5754, allocations: 7.984 kB / 0.569 GB, free: 14.05 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 (state_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.phase,state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001003/0.5755, allocations: 121.8 kB / 0.5691 GB, free: 13.93 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.083e-05/0.5755, allocations: 15.91 kB / 0.5691 GB, free: 13.91 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005831/0.5761, allocations: 318.7 kB / 0.5694 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.5762, allocations: 7.984 kB / 0.5694 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.5762, allocations: 0 / 0.5694 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.5762, allocations: 0 / 0.5694 GB, free: 13.59 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002881/0.5765, allocations: 265.2 kB / 0.5697 GB, free: 13.28 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.5765, allocations: 4 kB / 0.5697 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.319e-05/0.5765, allocations: 7.984 kB / 0.5697 GB, free: 13.27 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.5766, allocations: 4 kB / 0.5697 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.457e-05/0.5766, allocations: 7.938 kB / 0.5697 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.5766, allocations: 0 / 0.5697 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.5766, allocations: 0 / 0.5697 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005087/0.5771, allocations: 363 kB / 0.5701 GB, free: 12.88 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.019e-05/0.5772, allocations: 112.8 kB / 0.5702 GB, free: 12.75 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.296e-05/0.5772, allocations: 7.938 kB / 0.5702 GB, free: 12.75 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001088/0.5774, allocations: 4 kB / 0.5702 GB, free: 12.74 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.77e-05/0.5774, allocations: 7.984 kB / 0.5702 GB, free: 12.73 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-06/0.5774, allocations: 4 kB / 0.5702 GB, free: 12.73 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.381e-05/0.5775, allocations: 91.27 kB / 0.5703 GB, free: 12.64 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5775, allocations: 0 / 0.5703 GB, free: 12.64 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002917/0.5804, allocations: 1.133 MB / 0.5714 GB, free: 11.5 MB / 478.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 (state_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.005546/0.586, allocations: 2.475 MB / 0.5738 GB, free: 9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005203/0.5865, allocations: 257.3 kB / 0.574 GB, free: 8.742 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.5865, allocations: 4.125 kB / 0.574 GB, free: 8.738 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001983/0.5867, allocations: 149.7 kB / 0.5742 GB, free: 8.586 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.588, allocations: 143.7 kB / 0.5743 GB, free: 8.449 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003875/0.5918, allocations: 0.8556 MB / 0.5752 GB, free: 7.543 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004152/0.5923, allocations: 0.7247 MB / 0.5759 GB, free: 6.793 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 9.982e-05/0.5924, allocations: 15.97 kB / 0.5759 GB, free: 6.777 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.153e-05/0.5925, allocations: 43.44 kB / 0.5759 GB, free: 6.734 MB / 478.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5925, allocations: 0 / 0.5759 GB, free: 6.734 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2973/0.8898, allocations: 32.46 MB / 0.6076 GB, free: 155.5 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.073/9.963, allocations: 7.344 kB / 0.6076 GB, free: 155.5 MB / 494.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState_res.csv --start-time 0 --stop-time 12 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0048 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)