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.001158/0.001158, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 198.2 kB / 16.53 MB, free: 6.664 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.508/1.508, allocations: 205.1 MB / 222.4 MB, free: 4.617 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04784/0.04784, allocations: 9.096 MB / 278.9 MB, free: 12.21 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.001686/0.001686, allocations: 67.89 kB / 338.1 MB, free: 25.35 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.1068, allocations: 48.15 MB / 386.3 MB, free: 9.152 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01988/0.1267, allocations: 17.92 MB / 404.2 MB, free: 7.145 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01551/0.1423, allocations: 16.99 MB / 421.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002001/0.1425, allocations: 0 / 421.2 MB, free: 6.102 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007675/0.1433, allocations: 266.6 kB / 421.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005501/0.1439, allocations: 218.7 kB / 421.7 MB, free: 5.625 MB / 318.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.2213/0.3652, allocations: 7.087 MB / 428.8 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005285/0.3657, allocations: 298.4 kB / 429.1 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.401e-05/0.3658, allocations: 9.906 kB / 429.1 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002357/0.3661, allocations: 115.4 kB / 429.2 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001281/0.3662, allocations: 68.8 kB / 429.2 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.551e-05/0.3662, allocations: 4.469 kB / 429.2 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02019/0.3864, allocations: 9.63 MB / 438.9 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.91e-05/0.3865, allocations: 11.86 kB / 438.9 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002789/0.3868, allocations: 85.06 kB / 439 MB, free: 18.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01428/0.4011, allocations: 4.372 MB / 443.3 MB, free: 17.82 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.392e-06/0.4011, allocations: 3.375 kB / 443.3 MB, free: 17.82 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.4012, allocations: 0 / 443.3 MB, free: 17.82 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.4012, allocations: 0 / 443.3 MB, free: 17.82 MB / 318.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.003064/0.4042, allocations: 0.9945 MB / 444.3 MB, free: 17.1 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.4043, allocations: 7.844 kB / 444.4 MB, free: 17.1 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.01e-05/0.4044, allocations: 53.67 kB / 444.4 MB, free: 17.05 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.931e-05/0.4044, allocations: 16.67 kB / 444.4 MB, free: 17.04 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001354/0.4046, allocations: 185.6 kB / 444.6 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.676e-05/0.4046, allocations: 1.906 kB / 444.6 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.403e-05/0.4046, allocations: 5.031 kB / 444.6 MB, free: 16.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003145/0.4049, allocations: 162.8 kB / 444.8 MB, free: 16.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.405, allocations: 2.656 kB / 444.8 MB, free: 16.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.405, allocations: 3.984 kB / 444.8 MB, free: 16.77 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.405, allocations: 14.08 kB / 444.8 MB, free: 16.76 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.4052, allocations: 103.5 kB / 444.9 MB, free: 16.74 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006226/0.4059, allocations: 0.5295 MB / 445.4 MB, free: 16.33 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002387/0.4061, allocations: 135.6 kB / 445.5 MB, free: 16.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001751/0.4063, allocations: 123.2 kB / 445.7 MB, free: 16.27 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.139/0.5453, allocations: 85.21 MB / 0.5184 GB, free: 1.996 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.745e-05/0.5454, allocations: 31.44 kB / 0.5185 GB, free: 1.957 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.294e-06/0.5454, allocations: 0 / 0.5185 GB, free: 1.957 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007678/0.5462, allocations: 369.2 kB / 0.5188 GB, free: 1.59 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.814e-05/0.5462, allocations: 56.06 kB / 0.5189 GB, free: 1.523 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001039/0.5463, allocations: 125.3 kB / 0.519 GB, free: 1.395 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.553e-05/0.5464, allocations: 25.7 kB / 0.519 GB, free: 1.363 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.058e-05/0.5464, allocations: 95.98 kB / 0.5191 GB, free: 1.266 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.311e-05/0.5465, allocations: 130 kB / 0.5192 GB, free: 1.141 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.438e-05/0.5466, allocations: 45.59 kB / 0.5193 GB, free: 1.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001994/0.5468, allocations: 326.8 kB / 0.5196 GB, free: 0.7617 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001616/0.547, allocations: 87.95 kB / 0.5197 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001908/0.5472, allocations: 124 kB / 0.5198 GB, free: 0.5469 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003496/0.5475, allocations: 225.2 kB / 0.52 GB, free: 328 kB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/0.5475, allocations: 0 / 0.52 GB, free: 328 kB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004475/0.548, allocations: 266.3 kB / 0.5203 GB, free: 60 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.254e-05/0.548, allocations: 11.94 kB / 0.5203 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.436e-05/0.5481, allocations: 0 / 0.5203 GB, free: 48 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.009e-05/0.5481, allocations: 4.703 kB / 0.5203 GB, free: 44 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.901e-05/0.5482, allocations: 10.17 kB / 0.5203 GB, free: 36 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.784e-06/0.5482, allocations: 4 kB / 0.5203 GB, free: 32 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001063/0.5483, allocations: 19.91 kB / 0.5203 GB, free: 12 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.936e-05/0.5483, allocations: 7.984 kB / 0.5203 GB, free: 4 kB / 398.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.0001198/0.5484, allocations: 123.4 kB / 0.5204 GB, free: 15.88 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.155e-05/0.5485, allocations: 24.59 kB / 0.5205 GB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005708/0.5491, allocations: 309.7 kB / 0.5208 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.594e-05/0.5491, allocations: 11.98 kB / 0.5208 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.5491, allocations: 0 / 0.5208 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.5491, allocations: 9.141 kB / 0.5208 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002986/0.5494, allocations: 265.4 kB / 0.521 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.5495, allocations: 0 / 0.521 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.668e-05/0.5495, allocations: 8.797 kB / 0.521 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.5495, allocations: 3.938 kB / 0.521 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.5495, allocations: 4 kB / 0.521 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.5496, allocations: 3.562 kB / 0.521 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.5496, allocations: 0 / 0.521 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004668/0.55, allocations: 367.1 kB / 0.5214 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001029/0.5502, allocations: 107.1 kB / 0.5215 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.549e-05/0.5502, allocations: 7.438 kB / 0.5215 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001137/0.5503, allocations: 7.984 kB / 0.5215 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.16e-05/0.5504, allocations: 8 kB / 0.5215 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.5504, allocations: 0 / 0.5215 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 7.006e-05/0.5504, allocations: 95.89 kB / 0.5216 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5504, allocations: 0 / 0.5216 GB, free: 14.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003837/0.5543, allocations: 1.115 MB / 0.5227 GB, free: 13.5 MB / 414.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.007279/0.5616, allocations: 2.462 MB / 0.5251 GB, free: 11.18 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005968/0.5622, allocations: 260.8 kB / 0.5254 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.5622, allocations: 4 kB / 0.5254 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002345/0.5625, allocations: 145.7 kB / 0.5255 GB, free: 10.78 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009714/0.5635, allocations: 150.3 kB / 0.5256 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003406/0.5669, allocations: 0.8214 MB / 0.5264 GB, free: 9.789 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.5672, allocations: 0.7285 MB / 0.5272 GB, free: 9.031 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001119/0.5673, allocations: 4 kB / 0.5272 GB, free: 9.027 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.588e-05/0.5674, allocations: 43.08 kB / 0.5272 GB, free: 8.988 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.5674, allocations: 4 kB / 0.5272 GB, free: 8.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06872/0.6362, allocations: 32.41 MB / 0.5589 GB, free: 8.602 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.198/9.834, allocations: 7.375 kB / 0.5589 GB, free: 8.598 MB / 446.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_TwoPhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)