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.001049/0.001049, allocations: 91.3 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.006632/0.006632, allocations: 171.6 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.269/1.269, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04242/0.04242, allocations: 9.075 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.0004591/0.0004592, allocations: 15.98 kB / 339.8 MB, free: 25.54 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07483/0.07529, allocations: 49.18 MB / 389 MB, free: 8.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01662/0.09196, allocations: 17.65 MB / 406.7 MB, free: 6.594 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01601/0.108, allocations: 17.26 MB / 423.9 MB, free: 5.277 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001947/0.1082, allocations: 4 kB / 423.9 MB, free: 5.273 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008497/0.1091, allocations: 246.9 kB / 424.2 MB, free: 5.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005992/0.1097, allocations: 190.9 kB / 424.4 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1735/0.2833, allocations: 5.831 MB / 430.2 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003201/0.2836, allocations: 283 kB / 430.5 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.645e-05/0.2836, allocations: 10.5 kB / 430.5 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002018/0.2838, allocations: 119.4 kB / 430.6 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.284, allocations: 70.16 kB / 430.7 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.284, allocations: 3.688 kB / 430.7 MB, free: 16.96 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01522/0.2992, allocations: 9.23 MB / 439.9 MB, free: 16.9 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.786e-05/0.2993, allocations: 19.12 kB / 439.9 MB, free: 16.9 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002068/0.2995, allocations: 101.2 kB / 440 MB, free: 16.87 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009103/0.3086, allocations: 4.225 MB / 444.2 MB, free: 16.19 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.3086, allocations: 5.125 kB / 444.2 MB, free: 16.19 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.3086, allocations: 2.844 kB / 444.3 MB, free: 16.19 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.819e-06/0.3087, allocations: 0 / 444.3 MB, free: 16.19 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.001831/0.3105, allocations: 0.9751 MB / 445.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3105, allocations: 10.09 kB / 445.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.994e-05/0.3106, allocations: 49.86 kB / 445.3 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/0.3106, allocations: 20.31 kB / 445.3 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.154e-05/0.3107, allocations: 184.4 kB / 445.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.3108, allocations: 6.594 kB / 445.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.184e-05/0.3108, allocations: 6.562 kB / 445.5 MB, free: 15.21 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002582/0.311, allocations: 167.2 kB / 445.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.245e-06/0.3111, allocations: 0 / 445.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.3111, allocations: 0 / 445.7 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.3111, allocations: 10.14 kB / 445.7 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002128/0.3113, allocations: 128.5 kB / 445.8 MB, free: 15.11 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004712/0.3118, allocations: 0.528 MB / 446.3 MB, free: 14.7 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001683/0.312, allocations: 138.7 kB / 446.5 MB, free: 14.67 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001389/0.3121, allocations: 129 kB / 446.6 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1236/0.4357, allocations: 83.49 MB / 0.5176 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.844e-05/0.4358, allocations: 32.08 kB / 0.5177 GB, free: 4.035 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.004e-06/0.4358, allocations: 0 / 0.5177 GB, free: 4.035 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007009/0.4365, allocations: 393.6 kB / 0.5181 GB, free: 3.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.422e-05/0.4365, allocations: 51.41 kB / 0.5181 GB, free: 3.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001038/0.4366, allocations: 117.6 kB / 0.5182 GB, free: 3.562 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.525e-05/0.4367, allocations: 29.58 kB / 0.5182 GB, free: 3.531 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.4367, allocations: 89.03 kB / 0.5183 GB, free: 3.438 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.272e-05/0.4368, allocations: 134.3 kB / 0.5185 GB, free: 3.324 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.786e-05/0.4369, allocations: 33 kB / 0.5185 GB, free: 3.293 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001062/0.437, allocations: 326.5 kB / 0.5188 GB, free: 2.973 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000151/0.4371, allocations: 93.2 kB / 0.5189 GB, free: 2.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001741/0.4373, allocations: 123.8 kB / 0.519 GB, free: 2.816 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003267/0.4376, allocations: 243.7 kB / 0.5192 GB, free: 2.648 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.4377, allocations: 0 / 0.5192 GB, free: 2.648 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004281/0.4381, allocations: 278.1 kB / 0.5195 GB, free: 2.438 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.067e-05/0.4381, allocations: 11.94 kB / 0.5195 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.4381, allocations: 5.203 kB / 0.5195 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.441e-05/0.4382, allocations: 1.078 kB / 0.5195 GB, free: 2.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.137e-05/0.4382, allocations: 15.98 kB / 0.5195 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.66e-06/0.4383, allocations: 64 / 0.5195 GB, free: 2.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001116/0.4384, allocations: 31.69 kB / 0.5196 GB, free: 2.379 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.757e-05/0.4384, allocations: 7.984 kB / 0.5196 GB, free: 2.371 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_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 8.916e-05/0.4385, allocations: 120.7 kB / 0.5197 GB, free: 2.25 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.123e-05/0.4385, allocations: 19.75 kB / 0.5197 GB, free: 2.23 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005076/0.4391, allocations: 318.7 kB / 0.52 GB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.4391, allocations: 10.67 kB / 0.52 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.4391, allocations: 0 / 0.52 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4391, allocations: 0 / 0.52 GB, free: 1.988 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002502/0.4394, allocations: 263 kB / 0.5203 GB, free: 1.723 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.223e-06/0.4394, allocations: 7.75 kB / 0.5203 GB, free: 1.719 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-05/0.4394, allocations: 11.92 kB / 0.5203 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.229e-05/0.4394, allocations: 7.938 kB / 0.5203 GB, free: 1.699 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.4395, allocations: 7.594 kB / 0.5203 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.4395, allocations: 1.531 kB / 0.5203 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.4395, allocations: 0 / 0.5203 GB, free: 1.695 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.4399, allocations: 369.8 kB / 0.5207 GB, free: 1.391 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.549e-05/0.44, allocations: 116.6 kB / 0.5208 GB, free: 1.262 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.869e-05/0.44, allocations: 3.938 kB / 0.5208 GB, free: 1.258 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000109/0.4401, allocations: 12.25 kB / 0.5208 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.57e-05/0.4402, allocations: 7.984 kB / 0.5208 GB, free: 1.242 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.934e-06/0.4402, allocations: 0 / 0.5208 GB, free: 1.242 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.803e-05/0.4402, allocations: 100.3 kB / 0.5209 GB, free: 1.148 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4402, allocations: 0 / 0.5209 GB, free: 1.148 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.00278/0.443, allocations: 1.101 MB / 0.522 GB, free: 48 kB / 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 (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.005535/0.4486, allocations: 2.471 MB / 0.5244 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000435/0.449, allocations: 261.4 kB / 0.5246 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.449, allocations: 0 / 0.5246 GB, free: 13.46 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.4493, allocations: 161.7 kB / 0.5248 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009005/0.4502, allocations: 143.8 kB / 0.5249 GB, free: 13.16 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.4522, allocations: 0.9023 MB / 0.5258 GB, free: 12.22 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002544/0.4525, allocations: 0.7241 MB / 0.5265 GB, free: 11.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 9.578e-05/0.4526, allocations: 17.72 kB / 0.5265 GB, free: 11.46 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.717e-05/0.4527, allocations: 39.42 kB / 0.5266 GB, free: 11.42 MB / 414.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4527, allocations: 0 / 0.5266 GB, free: 11.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05478/0.5075, allocations: 31.95 MB / 0.5578 GB, free: 11.57 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001672/0.5077, allocations: 214.6 kB / 0.558 GB, free: 11.32 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.787/3.295, allocations: 0 / 0.558 GB, free: 11.32 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)