Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.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.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water",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.0007394/0.0007393, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008455/0.0008451, allocations: 168.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.235/1.235, allocations: 205.4 MB / 222.1 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04179/0.04179, allocations: 9.055 MB / 279.5 MB, free: 12.25 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.0004499/0.0004499, allocations: 19.94 kB / 339.2 MB, free: 25.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07519/0.07565, allocations: 49.18 MB / 388.4 MB, free: 8.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01255/0.08824, allocations: 12.2 MB / 400.6 MB, free: 12.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02163/0.1099, allocations: 16.5 MB / 417.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.1101, allocations: 0 / 417.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002295/0.1104, allocations: 43.77 kB / 417.2 MB, free: 11.86 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001985/0.1106, allocations: 59.48 kB / 417.2 MB, free: 11.8 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01886/0.1295, allocations: 5.119 MB / 422.3 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.1298, allocations: 158.9 kB / 422.5 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.658e-05/0.1299, allocations: 9.109 kB / 422.5 MB, free: 6.508 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001925/0.1301, allocations: 59.78 kB / 422.6 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001497/0.1302, allocations: 59.72 kB / 422.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.96e-05/0.1303, allocations: 0 / 422.6 MB, free: 6.391 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.173/0.3033, allocations: 10.3 MB / 432.9 MB, free: 17.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.156e-05/0.3034, allocations: 14.48 kB / 432.9 MB, free: 17.61 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.873e-05/0.3034, allocations: 54.52 kB / 433 MB, free: 17.58 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008557/0.312, allocations: 4.021 MB / 437 MB, free: 17.5 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.903e-06/0.312, allocations: 5.438 kB / 437 MB, free: 17.5 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.312, allocations: 0 / 437 MB, free: 17.5 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.3121, allocations: 0.8438 kB / 437 MB, free: 17.5 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: 25 * Number of variables: 25 Notification: Performance of Generate backend data structure: time 0.006125/0.3182, allocations: 1.333 MB / 438.3 MB, free: 16.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3182, allocations: 9.281 kB / 438.3 MB, free: 16.75 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.781e-05/0.3183, allocations: 42.36 kB / 438.4 MB, free: 16.71 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.049e-05/0.3183, allocations: 17.44 kB / 438.4 MB, free: 16.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001016/0.3184, allocations: 174 kB / 438.6 MB, free: 16.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.3185, allocations: 7.984 kB / 438.6 MB, free: 16.5 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.3185, allocations: 12.97 kB / 438.6 MB, free: 16.5 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008529/0.3194, allocations: 340.5 kB / 438.9 MB, free: 16.42 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.3194, allocations: 0.7188 kB / 438.9 MB, free: 16.42 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.3194, allocations: 4.312 kB / 438.9 MB, free: 16.42 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.3194, allocations: 7.219 kB / 438.9 MB, free: 16.41 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008632/0.3203, allocations: 336.3 kB / 439.3 MB, free: 16.41 MB / 318.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007247/0.321, allocations: 1.05 MB / 440.3 MB, free: 15.49 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007871/0.3218, allocations: 309.1 kB / 440.6 MB, free: 15.42 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002095/0.322, allocations: 106 kB / 440.7 MB, free: 15.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5286/0.8506, allocations: 184.8 MB / 0.6109 GB, free: 152 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.8507, allocations: 36.42 kB / 0.6109 GB, free: 151.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 2.204e-06/0.8507, allocations: 0 / 0.6109 GB, free: 151.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001711/0.8524, allocations: 0.5242 MB / 0.6115 GB, free: 151.5 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.904e-05/0.8524, allocations: 110.6 kB / 0.6116 GB, free: 151.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.688e-05/0.8525, allocations: 152.4 kB / 0.6117 GB, free: 151.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.14e-05/0.8526, allocations: 29.39 kB / 0.6117 GB, free: 151.2 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.423e-05/0.8526, allocations: 111.2 kB / 0.6118 GB, free: 151.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.8526, allocations: 44.48 kB / 0.6119 GB, free: 151.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.175e-06/0.8527, allocations: 7.5 kB / 0.6119 GB, free: 151.1 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.066e-05/0.8527, allocations: 315.6 kB / 0.6122 GB, free: 150.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001598/0.8529, allocations: 70.5 kB / 0.6123 GB, free: 150.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001684/0.853, allocations: 121.7 kB / 0.6124 GB, free: 150.6 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.8532, allocations: 85.3 kB / 0.6125 GB, free: 150.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.8532, allocations: 3.094 kB / 0.6125 GB, free: 150.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004116/0.8537, allocations: 229.1 kB / 0.6127 GB, free: 150.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.8537, allocations: 8 kB / 0.6127 GB, free: 150.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.8537, allocations: 0 / 0.6127 GB, free: 150.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.8537, allocations: 8.219 kB / 0.6127 GB, free: 150.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.8539, allocations: 56.77 kB / 0.6127 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.8539, allocations: 1.859 kB / 0.6127 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001447/0.8541, allocations: 32.8 kB / 0.6128 GB, free: 150.2 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.724e-05/0.8541, allocations: 12 kB / 0.6128 GB, free: 150.2 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 4 (state_ps.phase,state.phase,state_ph.phase,state_dT.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 6.974e-05/0.8542, allocations: 127.4 kB / 0.6129 GB, free: 150.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.8542, allocations: 11.91 kB / 0.6129 GB, free: 150.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009227/0.8552, allocations: 1.147 MB / 0.614 GB, free: 149.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-05/0.8552, allocations: 19.91 kB / 0.6141 GB, free: 149.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.8552, allocations: 0 / 0.6141 GB, free: 149.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.8552, allocations: 3.844 kB / 0.6141 GB, free: 149.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004871/0.8557, allocations: 0.58 MB / 0.6146 GB, free: 148.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.8557, allocations: 1.25 kB / 0.6146 GB, free: 148.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001401/0.8559, allocations: 47.2 kB / 0.6147 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.8559, allocations: 0 / 0.6147 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.249e-05/0.8559, allocations: 7.25 kB / 0.6147 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.196e-06/0.8559, allocations: 3.953 kB / 0.6147 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.8559, allocations: 7.281 kB / 0.6147 GB, free: 148.8 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007077/0.8566, allocations: 0.8643 MB / 0.6155 GB, free: 148.1 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.131e-05/0.8567, allocations: 129.1 kB / 0.6157 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.71e-05/0.8567, allocations: 10.17 kB / 0.6157 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.8569, allocations: 26.42 kB / 0.6157 GB, free: 148 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.314e-05/0.857, allocations: 25.5 kB / 0.6157 GB, free: 147.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.939e-06/0.857, allocations: 7.984 kB / 0.6157 GB, free: 147.9 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.538e-05/0.8571, allocations: 105.7 kB / 0.6158 GB, free: 147.8 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8571, allocations: 0 / 0.6158 GB, free: 147.8 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005367/0.8625, allocations: 1.429 MB / 0.6172 GB, free: 146.6 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.01008/0.8726, allocations: 2.935 MB / 0.6201 GB, free: 144.1 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000663/0.8733, allocations: 325.9 kB / 0.6204 GB, free: 143.8 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.8733, allocations: 8.062 kB / 0.6204 GB, free: 143.8 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003533/0.8736, allocations: 288.8 kB / 0.6207 GB, free: 143.7 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006023/0.8742, allocations: 49.97 kB / 0.6207 GB, free: 143.6 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0045/0.8787, allocations: 1.422 MB / 0.6221 GB, free: 142.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000184/0.879, allocations: 0.7925 MB / 0.6229 GB, free: 141.5 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001767/0.8791, allocations: 113.4 kB / 0.623 GB, free: 141.4 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.8793, allocations: 93.58 kB / 0.6231 GB, free: 141.4 MB / 462.1 MB Notification: Performance of SimCode: time 6.41e-07/0.8793, allocations: 4 kB / 0.6231 GB, free: 141.4 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06879/0.9481, allocations: 55.59 MB / 0.6774 GB, free: 85.9 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001484/0.9483, allocations: 205.3 kB / 0.6776 GB, free: 85.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.761/5.709, allocations: 4 kB / 0.6776 GB, free: 85.66 MB / 462.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_ConvergenceTest_SinglePhase_setState_b_Water.fmu > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1) Environment - environmentSimulation: