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.0009366/0.0009365, allocations: 99.31 kB / 15.05 MB, free: 1.105 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.0009112/0.0009112, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.537/1.537, allocations: 205.4 MB / 222.1 MB, free: 5.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04396/0.04396, allocations: 9.062 MB / 279.4 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.0004911/0.0004911, allocations: 12 kB / 339.2 MB, free: 25.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0965/0.097, allocations: 49.18 MB / 388.4 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01565/0.1127, allocations: 14.92 MB / 403.3 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01363/0.1264, allocations: 14.47 MB / 417.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001918/0.1266, allocations: 0 / 417.8 MB, free: 11.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006955/0.1273, allocations: 247.1 kB / 418 MB, free: 10.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004894/0.1278, allocations: 207.4 kB / 418.2 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01563/0.1435, allocations: 5.73 MB / 423.9 MB, free: 5.023 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.1439, allocations: 203.6 kB / 424.1 MB, free: 4.824 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.996e-05/0.1439, allocations: 21.67 kB / 424.1 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003399/0.1443, allocations: 159.4 kB / 424.3 MB, free: 4.645 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001038/0.1444, allocations: 67.78 kB / 424.4 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/0.1444, allocations: 4 kB / 424.4 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2145/0.3589, allocations: 9.184 MB / 433.6 MB, free: 18.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.999e-05/0.359, allocations: 14.55 kB / 433.6 MB, free: 18.13 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000193/0.3592, allocations: 61.16 kB / 433.6 MB, free: 18.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008442/0.3677, allocations: 2.519 MB / 436.2 MB, free: 17.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3677, allocations: 0 / 436.2 MB, free: 17.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.066e-06/0.3677, allocations: 0 / 436.2 MB, free: 17.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.3677, allocations: 2.297 kB / 436.2 MB, free: 17.98 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.003789/0.3715, allocations: 0.9803 MB / 437.1 MB, free: 17.32 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3716, allocations: 11.06 kB / 437.1 MB, free: 17.32 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.093e-05/0.3716, allocations: 50.77 kB / 437.2 MB, free: 17.29 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.711e-05/0.3717, allocations: 18.09 kB / 437.2 MB, free: 17.27 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3718, allocations: 184 kB / 437.4 MB, free: 17.07 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.3718, allocations: 5 kB / 437.4 MB, free: 17.07 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.164e-05/0.3718, allocations: 3.438 kB / 437.4 MB, free: 17.07 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002725/0.3721, allocations: 167.2 kB / 437.6 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.3721, allocations: 1.375 kB / 437.6 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.081e-05/0.3721, allocations: 2.125 kB / 437.6 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.358e-05/0.3721, allocations: 10 kB / 437.6 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002241/0.3724, allocations: 117.5 kB / 437.7 MB, free: 17.02 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005229/0.3729, allocations: 0.5329 MB / 438.2 MB, free: 16.66 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.3731, allocations: 144.8 kB / 438.4 MB, free: 16.64 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1283/0.5015, allocations: 83.72 MB / 0.5098 GB, free: 11.24 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.641e-05/0.5015, allocations: 34.56 kB / 0.5099 GB, free: 11.2 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.194e-06/0.5015, allocations: 0 / 0.5099 GB, free: 11.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0009786/0.5025, allocations: 0.8443 MB / 0.5107 GB, free: 10.34 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.756e-05/0.5026, allocations: 54.03 kB / 0.5108 GB, free: 10.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/0.5027, allocations: 126.8 kB / 0.5109 GB, free: 10.15 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.486e-05/0.5027, allocations: 25.7 kB / 0.5109 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.5028, allocations: 88.3 kB / 0.511 GB, free: 10.03 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.418e-05/0.5029, allocations: 131.7 kB / 0.5111 GB, free: 9.914 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.5029, allocations: 3.375 kB / 0.5111 GB, free: 9.914 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001207/0.503, allocations: 325 kB / 0.5114 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001625/0.5032, allocations: 91.62 kB / 0.5115 GB, free: 9.535 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001627/0.5034, allocations: 130.5 kB / 0.5116 GB, free: 9.438 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.5036, allocations: 115.3 kB / 0.5117 GB, free: 9.363 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.5036, allocations: 0 / 0.5117 GB, free: 9.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.000406/0.504, allocations: 273.4 kB / 0.512 GB, free: 9.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.504, allocations: 6.5 kB / 0.512 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.504, allocations: 6.844 kB / 0.512 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.413e-05/0.504, allocations: 3.562 kB / 0.512 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.139e-05/0.5041, allocations: 21.8 kB / 0.512 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.702e-06/0.5041, allocations: 0 / 0.512 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001388/0.5043, allocations: 19.75 kB / 0.5121 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.642e-05/0.5043, allocations: 7.984 kB / 0.5121 GB, free: 9.109 MB / 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_dT.phase,state_pd.phase,state_ph.phase,state_ps.phase,state_Ts.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000103/0.5044, allocations: 132.5 kB / 0.5122 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.705e-05/0.5045, allocations: 15.81 kB / 0.5122 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004904/0.505, allocations: 329.5 kB / 0.5125 GB, free: 8.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.686e-05/0.505, allocations: 11.23 kB / 0.5125 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.505, allocations: 0 / 0.5125 GB, free: 8.723 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.505, allocations: 4 kB / 0.5125 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.5053, allocations: 262.3 kB / 0.5128 GB, free: 8.449 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.254e-06/0.5053, allocations: 6.844 kB / 0.5128 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.161e-05/0.5054, allocations: 11.98 kB / 0.5128 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.5054, allocations: 0 / 0.5128 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.759e-06/0.5054, allocations: 3 kB / 0.5128 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.562e-06/0.5054, allocations: 0 / 0.5128 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.5054, allocations: 0 / 0.5128 GB, free: 8.434 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004019/0.5058, allocations: 380.8 kB / 0.5132 GB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.733e-05/0.5059, allocations: 108.7 kB / 0.5133 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.045e-05/0.5059, allocations: 0 / 0.5133 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.506, allocations: 8 kB / 0.5133 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.946e-05/0.5061, allocations: 7.984 kB / 0.5133 GB, free: 7.984 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.5061, allocations: 7.938 kB / 0.5133 GB, free: 7.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.96e-05/0.5062, allocations: 91.2 kB / 0.5134 GB, free: 7.895 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.5062, allocations: 0 / 0.5134 GB, free: 7.895 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004086/0.5103, allocations: 1.105 MB / 0.5145 GB, free: 6.816 MB / 398.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008044/0.5183, allocations: 2.456 MB / 0.5169 GB, free: 4.633 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0004899/0.5188, allocations: 276.2 kB / 0.5171 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.965e-06/0.5189, allocations: 2.844 kB / 0.5171 GB, free: 4.445 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000202/0.5191, allocations: 155 kB / 0.5173 GB, free: 4.344 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008763/0.52, allocations: 149.1 kB / 0.5174 GB, free: 4.215 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003318/0.5233, allocations: 0.8873 MB / 0.5183 GB, free: 3.332 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002619/0.5236, allocations: 0.7289 MB / 0.519 GB, free: 2.574 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001029/0.5237, allocations: 11.98 kB / 0.519 GB, free: 2.562 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.508e-05/0.5237, allocations: 41.17 kB / 0.519 GB, free: 2.543 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.5238, allocations: 0 / 0.519 GB, free: 2.543 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05745/0.5812, allocations: 31.68 MB / 0.55 GB, free: 3.039 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000209/0.5815, allocations: 187.2 kB / 0.5502 GB, free: 2.801 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.663/3.244, allocations: 0 / 0.5502 GB, free: 2.801 MB / 430.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/linux/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) Environment - environmentSimulation: