Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_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.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.SinglePhase_setState,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_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.0007826/0.0007825, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.004653/0.004653, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.291/1.291, allocations: 205.4 MB / 222.4 MB, free: 5.574 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04397/0.04397, allocations: 9.071 MB / 279.8 MB, free: 12.14 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.0004976/0.0004976, allocations: 15.94 kB / 339.8 MB, free: 25.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0752/0.07571, allocations: 49.19 MB / 389 MB, free: 8.293 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.SinglePhase_setState): time 0.01726/0.093, allocations: 18.11 MB / 407.1 MB, free: 6.098 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.1076, allocations: 16.67 MB / 423.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001211/0.1078, allocations: 0 / 423.8 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007111/0.1085, allocations: 259.1 kB / 424.1 MB, free: 5.125 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.1087, allocations: 107.4 kB / 424.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1723/0.281, allocations: 5.759 MB / 429.9 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002952/0.2813, allocations: 239.1 kB / 430.2 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.091e-05/0.2814, allocations: 14.67 kB / 430.2 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001557/0.2815, allocations: 96.03 kB / 430.3 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.2816, allocations: 59.16 kB / 430.3 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.113e-05/0.2817, allocations: 2.656 kB / 430.3 MB, free: 17.17 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01718/0.2988, allocations: 9.145 MB / 439.5 MB, free: 17.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.162e-05/0.2989, allocations: 9.891 kB / 439.5 MB, free: 17.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002912/0.2992, allocations: 89.28 kB / 439.6 MB, free: 17.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0133/0.3125, allocations: 4.123 MB / 443.7 MB, free: 16.55 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.181e-06/0.3126, allocations: 0 / 443.7 MB, free: 16.55 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.095e-06/0.3126, allocations: 0 / 443.7 MB, free: 16.55 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.6e-06/0.3126, allocations: 0.9688 kB / 443.7 MB, free: 16.55 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.002801/0.3154, allocations: 0.9366 MB / 444.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.3155, allocations: 12.89 kB / 444.6 MB, free: 15.86 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.397e-05/0.3155, allocations: 43.27 kB / 444.7 MB, free: 15.81 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.75e-05/0.3155, allocations: 11.22 kB / 444.7 MB, free: 15.8 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.235e-05/0.3156, allocations: 179.5 kB / 444.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.038e-05/0.3156, allocations: 4.5 kB / 444.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.315e-06/0.3157, allocations: 0 / 444.9 MB, free: 15.6 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001469/0.3158, allocations: 115.7 kB / 445 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.3158, allocations: 2.719 kB / 445 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.3158, allocations: 0 / 445 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.152e-05/0.3159, allocations: 13.7 kB / 445 MB, free: 15.55 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.017e-05/0.3159, allocations: 76 kB / 445.1 MB, free: 15.54 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.3161, allocations: 246.6 kB / 445.3 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.763e-05/0.3162, allocations: 118 kB / 445.4 MB, free: 15.29 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.538e-05/0.3163, allocations: 109.9 kB / 445.5 MB, free: 15.28 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1344/0.4507, allocations: 91.21 MB / 0.5242 GB, free: 12.16 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.746e-05/0.4508, allocations: 30.56 kB / 0.5242 GB, free: 12.12 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 3.096e-06/0.4508, allocations: 10.08 kB / 0.5242 GB, free: 12.12 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.000482/0.4513, allocations: 333.4 kB / 0.5245 GB, free: 11.89 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.663e-05/0.4514, allocations: 54.41 kB / 0.5246 GB, free: 11.82 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.583e-05/0.4514, allocations: 93.86 kB / 0.5247 GB, free: 11.72 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.4515, allocations: 29.02 kB / 0.5247 GB, free: 11.69 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.841e-05/0.4515, allocations: 81.14 kB / 0.5248 GB, free: 11.61 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-05/0.4516, allocations: 129.7 kB / 0.5249 GB, free: 11.49 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.533e-05/0.4517, allocations: 29.08 kB / 0.5249 GB, free: 11.46 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.4518, allocations: 330.8 kB / 0.5252 GB, free: 11.14 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.06e-05/0.4519, allocations: 79.09 kB / 0.5253 GB, free: 11.09 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.746e-05/0.4519, allocations: 74.34 kB / 0.5254 GB, free: 11.05 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000224/0.4522, allocations: 196.6 kB / 0.5256 GB, free: 10.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.4522, allocations: 3.938 kB / 0.5256 GB, free: 10.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0002284/0.4524, allocations: 236.4 kB / 0.5258 GB, free: 10.76 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.4524, allocations: 6.5 kB / 0.5258 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.448e-06/0.4524, allocations: 0 / 0.5258 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.175e-05/0.4524, allocations: 0 / 0.5258 GB, free: 10.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.566e-06/0.4525, allocations: 4 kB / 0.5258 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.4525, allocations: 4 kB / 0.5258 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.61e-05/0.4525, allocations: 15.75 kB / 0.5258 GB, free: 10.73 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.572e-05/0.4526, allocations: 0 / 0.5258 GB, free: 10.73 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (6): * Single equations (assignments): 0 * 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.0001427/0.4527, allocations: 125.6 kB / 0.526 GB, free: 10.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.539e-05/0.4527, allocations: 11.91 kB / 0.526 GB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004398/0.4532, allocations: 381.7 kB / 0.5263 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.4532, allocations: 7.922 kB / 0.5263 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.4532, allocations: 0.625 kB / 0.5263 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4532, allocations: 4 kB / 0.5263 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002322/0.4534, allocations: 244.9 kB / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.4535, allocations: 0 / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-06/0.4535, allocations: 5.375 kB / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.693e-06/0.4535, allocations: 0 / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.282e-06/0.4535, allocations: 0 / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.4535, allocations: 0 / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.4535, allocations: 0 / 0.5266 GB, free: 10.03 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002568/0.4537, allocations: 226 kB / 0.5268 GB, free: 9.816 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.4538, allocations: 100.8 kB / 0.5269 GB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.543e-05/0.4538, allocations: 4 kB / 0.5269 GB, free: 9.695 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.814e-05/0.4539, allocations: 4 kB / 0.5269 GB, free: 9.691 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.446e-05/0.4539, allocations: 5.016 kB / 0.5269 GB, free: 9.688 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.406e-06/0.4539, allocations: 11.92 kB / 0.5269 GB, free: 9.68 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.815e-05/0.454, allocations: 101.3 kB / 0.527 GB, free: 9.582 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.454, allocations: 2.078 kB / 0.527 GB, free: 9.582 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002948/0.4569, allocations: 1.085 MB / 0.5281 GB, free: 8.496 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 (5): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.00411/0.4611, allocations: 2.274 MB / 0.5303 GB, free: 6.367 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002427/0.4613, allocations: 177.5 kB / 0.5305 GB, free: 6.195 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.278e-06/0.4613, allocations: 4 kB / 0.5305 GB, free: 6.191 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 8.496e-05/0.4614, allocations: 79.92 kB / 0.5305 GB, free: 6.113 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008575/0.4623, allocations: 156 kB / 0.5307 GB, free: 5.961 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002451/0.4647, allocations: 2.312 MB / 0.5329 GB, free: 3.578 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.465, allocations: 0.7092 MB / 0.5336 GB, free: 2.84 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.745e-05/0.4651, allocations: 17.52 kB / 0.5337 GB, free: 2.824 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.013e-05/0.4651, allocations: 39.42 kB / 0.5337 GB, free: 2.785 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.4652, allocations: 0 / 0.5337 GB, free: 2.785 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05227/0.5174, allocations: 31.53 MB / 0.5645 GB, free: 3.348 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001696/0.5176, allocations: 207.3 kB / 0.5647 GB, free: 3.09 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.696/3.213, allocations: 0 / 0.5647 GB, free: 3.09 MB / 446.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_SinglePhase_setState.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.SinglePhase_setState.pipe 2>&1)