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.0007627/0.0007627, allocations: 90.59 kB / 15.06 MB, free: 1.094 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.0008826/0.0008826, allocations: 172.7 kB / 15.95 MB, free: 204 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.196/1.196, allocations: 205.4 MB / 222.1 MB, free: 5.645 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0411/0.0411, allocations: 9.064 MB / 279.5 MB, free: 12.24 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.0004688/0.0004688, allocations: 12 kB / 339.2 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08001/0.08049, allocations: 49.19 MB / 388.4 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01609/0.09663, allocations: 16.56 MB / 405 MB, free: 8.023 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01409/0.1108, allocations: 15.95 MB / 420.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001396/0.1109, allocations: 0 / 420.9 MB, free: 8.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005498/0.1115, allocations: 238.9 kB / 421.2 MB, free: 7.801 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003779/0.1119, allocations: 182.9 kB / 421.3 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01277/0.1247, allocations: 5.511 MB / 426.9 MB, free: 2.109 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.125, allocations: 286.4 kB / 427.1 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.59e-05/0.125, allocations: 13.69 kB / 427.1 MB, free: 1.812 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001845/0.1252, allocations: 111.5 kB / 427.3 MB, free: 1.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001006/0.1253, allocations: 71.67 kB / 427.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.798e-06/0.1254, allocations: 0 / 427.3 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1541/0.2794, allocations: 8.202 MB / 435.5 MB, free: 19.59 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.095e-05/0.2795, allocations: 15.81 kB / 435.5 MB, free: 19.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.979e-05/0.2796, allocations: 59.36 kB / 435.6 MB, free: 19.56 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004536/0.2842, allocations: 2.606 MB / 438.2 MB, free: 19.46 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.2842, allocations: 2.719 kB / 438.2 MB, free: 19.46 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2842, allocations: 0 / 438.2 MB, free: 19.46 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.419e-06/0.2842, allocations: 0 / 438.2 MB, free: 19.46 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.002141/0.2864, allocations: 0.9784 MB / 439.2 MB, free: 18.8 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2864, allocations: 9.938 kB / 439.2 MB, free: 18.8 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.754e-05/0.2864, allocations: 50.67 kB / 439.2 MB, free: 18.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.162e-05/0.2865, allocations: 19.47 kB / 439.3 MB, free: 18.75 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.659e-05/0.2866, allocations: 187 kB / 439.4 MB, free: 18.55 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.2866, allocations: 5.125 kB / 439.5 MB, free: 18.55 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.009e-05/0.2866, allocations: 2.688 kB / 439.5 MB, free: 18.55 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002549/0.2869, allocations: 167.4 kB / 439.6 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.225e-06/0.2869, allocations: 1.203 kB / 439.6 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.257e-06/0.2869, allocations: 3.812 kB / 439.6 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.15e-05/0.2869, allocations: 7.438 kB / 439.6 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001963/0.2871, allocations: 121.9 kB / 439.7 MB, free: 18.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004587/0.2876, allocations: 0.5268 MB / 440.3 MB, free: 18.14 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.2878, allocations: 142.4 kB / 440.4 MB, free: 18.12 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001396/0.2879, allocations: 126.4 kB / 440.5 MB, free: 18.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1094/0.3973, allocations: 83.49 MB / 0.5117 GB, free: 11.16 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.809e-05/0.3974, allocations: 37.81 kB / 0.5118 GB, free: 11.12 MB / 398.1 MB Notification: Performance of pre-optimization done (n=42): time 2.745e-06/0.3974, allocations: 0 / 0.5118 GB, free: 11.12 MB / 398.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006325/0.398, allocations: 380.3 kB / 0.5121 GB, free: 10.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.249e-05/0.3981, allocations: 51.41 kB / 0.5122 GB, free: 10.78 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.828e-05/0.3982, allocations: 121.6 kB / 0.5123 GB, free: 10.66 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.3982, allocations: 29.7 kB / 0.5123 GB, free: 10.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.591e-05/0.3983, allocations: 89.38 kB / 0.5124 GB, free: 10.53 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.853e-05/0.3984, allocations: 135.1 kB / 0.5126 GB, free: 10.41 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.27e-06/0.3984, allocations: 0 / 0.5126 GB, free: 10.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3985, allocations: 325.3 kB / 0.5129 GB, free: 10.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.3987, allocations: 91.36 kB / 0.5129 GB, free: 10.04 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001526/0.3988, allocations: 132.1 kB / 0.5131 GB, free: 9.941 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001587/0.399, allocations: 104.8 kB / 0.5132 GB, free: 9.875 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.399, allocations: 0 / 0.5132 GB, free: 9.875 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003918/0.3994, allocations: 277.4 kB / 0.5134 GB, free: 9.668 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.3994, allocations: 6.5 kB / 0.5134 GB, free: 9.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.288e-05/0.3994, allocations: 4 kB / 0.5135 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.3995, allocations: 3 kB / 0.5135 GB, free: 9.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.724e-05/0.3995, allocations: 15.98 kB / 0.5135 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.3996, allocations: 0.6562 kB / 0.5135 GB, free: 9.645 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.3997, allocations: 27.38 kB / 0.5135 GB, free: 9.621 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.905e-05/0.3997, allocations: 12.92 kB / 0.5135 GB, free: 9.609 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 8.885e-05/0.3998, allocations: 117.5 kB / 0.5136 GB, free: 9.488 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.643e-05/0.3999, allocations: 11.81 kB / 0.5136 GB, free: 9.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004843/0.4004, allocations: 325.2 kB / 0.5139 GB, free: 9.242 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.399e-05/0.4004, allocations: 11.36 kB / 0.514 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.4004, allocations: 2.062 kB / 0.514 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.4004, allocations: 2.906 kB / 0.514 GB, free: 9.234 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002705/0.4007, allocations: 268.6 kB / 0.5142 GB, free: 8.965 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.942e-06/0.4007, allocations: 4 kB / 0.5142 GB, free: 8.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.953e-05/0.4007, allocations: 7.984 kB / 0.5142 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.4008, allocations: 4 kB / 0.5142 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.804e-06/0.4008, allocations: 0 / 0.5142 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.4008, allocations: 4 kB / 0.5142 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.4008, allocations: 0 / 0.5142 GB, free: 8.945 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003966/0.4012, allocations: 379 kB / 0.5146 GB, free: 8.637 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.87e-05/0.4013, allocations: 108.8 kB / 0.5147 GB, free: 8.516 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.977e-05/0.4013, allocations: 7 kB / 0.5147 GB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001035/0.4014, allocations: 4 kB / 0.5147 GB, free: 8.508 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.4015, allocations: 10.98 kB / 0.5147 GB, free: 8.5 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.999e-06/0.4015, allocations: 4.875 kB / 0.5147 GB, free: 8.496 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.692e-05/0.4015, allocations: 95.91 kB / 0.5148 GB, free: 8.41 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4015, allocations: 2.188 kB / 0.5148 GB, free: 8.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.003217/0.4048, allocations: 1.104 MB / 0.5159 GB, free: 7.332 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.006243/0.411, allocations: 2.463 MB / 0.5183 GB, free: 5.137 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003999/0.4114, allocations: 268.6 kB / 0.5186 GB, free: 4.953 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.4114, allocations: 0 / 0.5186 GB, free: 4.953 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001833/0.4116, allocations: 161.4 kB / 0.5187 GB, free: 4.844 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007874/0.4124, allocations: 147.4 kB / 0.5189 GB, free: 4.719 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002515/0.4149, allocations: 0.8865 MB / 0.5197 GB, free: 3.84 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.4152, allocations: 0.7241 MB / 0.5204 GB, free: 3.09 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.405e-05/0.4153, allocations: 12 kB / 0.5204 GB, free: 3.078 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.49e-05/0.4154, allocations: 42.52 kB / 0.5205 GB, free: 3.059 MB / 398.1 MB Notification: Performance of SimCode: time 3.81e-07/0.4154, allocations: 3.938 kB / 0.5205 GB, free: 3.055 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05373/0.4691, allocations: 31.69 MB / 0.5514 GB, free: 3.535 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001976/0.4694, allocations: 192.5 kB / 0.5516 GB, free: 3.297 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.687/3.156, allocations: 3.938 kB / 0.5516 GB, free: 3.293 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: