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.001125/0.001125, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001137/0.001137, allocations: 192 kB / 16.25 MB, free: 6.629 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.153/1.153, allocations: 205.1 MB / 222.1 MB, free: 4.734 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 2.716/2.716, allocations: 9.088 MB / 278.5 MB, free: 12.34 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.00151/0.00151, allocations: 67.84 kB / 337.6 MB, free: 25.68 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09468/0.09621, allocations: 48.17 MB / 385.8 MB, free: 9.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01508/0.1113, allocations: 13.27 MB / 399.1 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02179/0.1331, allocations: 17.88 MB / 416.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003087/0.1335, allocations: 0 / 416.9 MB, free: 10.2 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002822/0.1339, allocations: 43.78 kB / 417 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002245/0.1341, allocations: 59.53 kB / 417 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.03117/0.1653, allocations: 5.895 MB / 422.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003048/0.1656, allocations: 171 kB / 423.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.019e-05/0.1657, allocations: 5.125 kB / 423.1 MB, free: 4.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001627/0.1659, allocations: 63.78 kB / 423.2 MB, free: 3.969 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001111/0.166, allocations: 67.7 kB / 423.2 MB, free: 3.902 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.166, allocations: 4 kB / 423.2 MB, free: 3.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2324/0.3984, allocations: 10.66 MB / 433.9 MB, free: 16.65 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.842e-05/0.3985, allocations: 17.81 kB / 433.9 MB, free: 16.65 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001236/0.3986, allocations: 67.92 kB / 434 MB, free: 16.65 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01926/0.4179, allocations: 6.102 MB / 440.1 MB, free: 16.52 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.315e-06/0.418, allocations: 0 / 440.1 MB, free: 16.52 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.418, allocations: 3.094 kB / 440.1 MB, free: 16.52 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.937e-06/0.418, allocations: 1.062 kB / 440.1 MB, free: 16.52 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.006915/0.4249, allocations: 1.349 MB / 441.4 MB, free: 15.76 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.222e-05/0.425, allocations: 11.41 kB / 441.5 MB, free: 15.76 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.961e-05/0.425, allocations: 43.36 kB / 441.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.426e-05/0.4251, allocations: 13.86 kB / 441.5 MB, free: 15.72 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.767e-05/0.4252, allocations: 186.1 kB / 441.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.72e-05/0.4252, allocations: 8.406 kB / 441.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.4253, allocations: 18.53 kB / 441.7 MB, free: 15.51 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008592/0.4261, allocations: 322.8 kB / 442 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4262, allocations: 0 / 442 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.4262, allocations: 6.844 kB / 442 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.292e-06/0.4262, allocations: 1.688 kB / 442 MB, free: 15.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008877/0.4271, allocations: 310.5 kB / 442.3 MB, free: 15.43 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.0007351/0.4278, allocations: 1.047 MB / 443.4 MB, free: 14.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007709/0.4286, allocations: 301.6 kB / 443.7 MB, free: 14.45 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001981/0.4288, allocations: 87.5 kB / 443.8 MB, free: 14.42 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5185/0.9473, allocations: 183.1 MB / 0.6122 GB, free: 147.1 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.753e-05/0.9474, allocations: 38.56 kB / 0.6122 GB, free: 147 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 1.322e-06/0.9474, allocations: 0 / 0.6122 GB, free: 147 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.001711/0.9491, allocations: 494.4 kB / 0.6127 GB, free: 146.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.805e-05/0.9491, allocations: 114.5 kB / 0.6128 GB, free: 146.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.239e-05/0.9492, allocations: 146.7 kB / 0.6129 GB, free: 146.3 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/0.9492, allocations: 32.75 kB / 0.613 GB, free: 146.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.873e-05/0.9493, allocations: 106.8 kB / 0.6131 GB, free: 146.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.212e-05/0.9493, allocations: 50.5 kB / 0.6131 GB, free: 146.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.376e-05/0.9494, allocations: 36.2 kB / 0.6131 GB, free: 146.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.292e-05/0.9494, allocations: 322.7 kB / 0.6135 GB, free: 145.8 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000177/0.9496, allocations: 63.31 kB / 0.6135 GB, free: 145.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001935/0.9498, allocations: 103.6 kB / 0.6136 GB, free: 145.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000363/0.9502, allocations: 178.4 kB / 0.6138 GB, free: 145.5 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.9502, allocations: 0 / 0.6138 GB, free: 145.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004568/0.9507, allocations: 216.8 kB / 0.614 GB, free: 145.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.9507, allocations: 4 kB / 0.614 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.9507, allocations: 6.734 kB / 0.614 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.106e-06/0.9507, allocations: 4 kB / 0.614 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.9509, allocations: 51.64 kB / 0.6141 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.9509, allocations: 4.781 kB / 0.6141 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001587/0.9511, allocations: 33.11 kB / 0.6141 GB, free: 145.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.651e-05/0.9511, allocations: 4 kB / 0.6141 GB, free: 145.3 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.695e-05/0.9512, allocations: 127.6 kB / 0.6142 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.92e-05/0.9513, allocations: 19.8 kB / 0.6142 GB, free: 145.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008091/0.9521, allocations: 1.134 MB / 0.6153 GB, free: 144.4 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.243e-05/0.9521, allocations: 21.91 kB / 0.6154 GB, free: 144.4 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.9521, allocations: 0 / 0.6154 GB, free: 144.4 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.9521, allocations: 3.938 kB / 0.6154 GB, free: 144.4 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004306/0.9525, allocations: 0.5824 MB / 0.6159 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.036e-06/0.9526, allocations: 0 / 0.6159 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001378/0.9527, allocations: 43.23 kB / 0.616 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.9527, allocations: 0 / 0.616 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.237e-05/0.9527, allocations: 7.875 kB / 0.616 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.904e-06/0.9527, allocations: 1.75 kB / 0.616 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.9527, allocations: 0 / 0.616 GB, free: 143.9 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007222/0.9535, allocations: 0.8512 MB / 0.6168 GB, free: 143.2 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.061e-05/0.9535, allocations: 130.8 kB / 0.6169 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.9536, allocations: 3.984 kB / 0.6169 GB, free: 143.1 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002089/0.9538, allocations: 19.8 kB / 0.617 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/0.9538, allocations: 19.55 kB / 0.617 GB, free: 143 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.308e-06/0.9539, allocations: 8 kB / 0.617 GB, free: 143 MB / 462.1 MB Notification: Performance of sorting global known variables: time 4.641e-05/0.9539, allocations: 110.2 kB / 0.6171 GB, free: 142.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9539, allocations: 0 / 0.6171 GB, free: 142.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004265/0.9582, allocations: 1.436 MB / 0.6185 GB, free: 141.7 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 (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.008778/0.967, allocations: 2.911 MB / 0.6213 GB, free: 139.2 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0006442/0.9676, allocations: 317 kB / 0.6216 GB, free: 139 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.9676, allocations: 6.906 kB / 0.6216 GB, free: 139 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.968, allocations: 279.9 kB / 0.6219 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.9686, allocations: 58.81 kB / 0.622 GB, free: 138.8 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003722/0.9723, allocations: 1.407 MB / 0.6233 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001833/0.9725, allocations: 0.796 MB / 0.6241 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001667/0.9727, allocations: 109.8 kB / 0.6242 GB, free: 136.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.551e-05/0.9728, allocations: 88.97 kB / 0.6243 GB, free: 136.5 MB / 462.1 MB Notification: Performance of SimCode: time 4.61e-07/0.9728, allocations: 6.188 kB / 0.6243 GB, free: 136.5 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.966/2.938, allocations: 54.95 MB / 0.678 GB, free: 81.71 MB / 462.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000203/2.939, allocations: 229.2 kB / 0.6782 GB, free: 81.45 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.293/9.232, allocations: 0 / 0.6782 GB, free: 81.45 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/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)