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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water") translateModel(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01055/0.01055, allocations: 99.86 kB / 15.73 MB, free: 6.055 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.001361/0.001361, allocations: 192.1 kB / 16.67 MB, free: 5.969 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.574/1.574, allocations: 205.1 MB / 222.5 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04805/0.04805, allocations: 9.091 MB / 279 MB, free: 2.938 MB / 222.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.001369/0.001369, allocations: 68.03 kB / 387.4 MB, free: 47.17 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08833/0.08971, allocations: 48.17 MB / 435.6 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01348/0.1032, allocations: 13.14 MB / 448.8 MB, free: 10.42 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02001/0.1233, allocations: 17.74 MB / 466.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001642/0.1235, allocations: 0 / 466.5 MB, free: 8.617 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002377/0.1238, allocations: 67.64 kB / 466.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000319/0.1241, allocations: 63.41 kB / 466.6 MB, free: 8.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02022/0.1444, allocations: 6.702 MB / 473.3 MB, free: 1.785 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002926/0.1447, allocations: 167 kB / 473.5 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.173e-05/0.1447, allocations: 9.125 kB / 473.5 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.1449, allocations: 67.72 kB / 473.6 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001126/0.145, allocations: 67.7 kB / 473.6 MB, free: 1.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.754e-05/0.145, allocations: 4 kB / 473.6 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02235/0.1674, allocations: 10.82 MB / 484.4 MB, free: 6.648 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.445e-05/0.1675, allocations: 15.92 kB / 484.5 MB, free: 6.633 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.1676, allocations: 67.67 kB / 484.5 MB, free: 6.566 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01648/0.1841, allocations: 6.073 MB / 490.6 MB, free: 492 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.684e-06/0.1842, allocations: 4 kB / 490.6 MB, free: 488 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1842, allocations: 0 / 490.6 MB, free: 488 kB / 366.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1842, allocations: 0 / 490.6 MB, free: 488 kB / 366.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.004496/0.1887, allocations: 1.382 MB / 492 MB, free: 15.04 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1888, allocations: 8.031 kB / 492 MB, free: 15.03 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.025e-05/0.1888, allocations: 24.83 kB / 492 MB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001456/0.189, allocations: 188.2 kB / 492.2 MB, free: 14.79 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.401e-05/0.189, allocations: 4.375 kB / 492.2 MB, free: 14.78 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.542e-05/0.189, allocations: 16.12 kB / 492.2 MB, free: 14.77 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009428/0.19, allocations: 330.4 kB / 492.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.211e-05/0.19, allocations: 0 / 492.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.19, allocations: 0 / 492.5 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.288e-06/0.19, allocations: 4 kB / 492.6 MB, free: 14.42 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009956/0.191, allocations: 311.6 kB / 492.9 MB, free: 14.11 MB / 382.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.001008/0.1921, allocations: 1.056 MB / 493.9 MB, free: 12.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008597/0.1929, allocations: 291.6 kB / 494.2 MB, free: 12.63 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002261/0.1932, allocations: 90.45 kB / 494.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6475/0.8407, allocations: 184.4 MB / 0.6627 GB, free: 14.33 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.188e-05/0.8408, allocations: 38.55 kB / 0.6628 GB, free: 14.28 MB / 478.1 MB Notification: Performance of pre-optimization done (n=12): time 2.514e-06/0.8408, allocations: 0 / 0.6628 GB, free: 14.28 MB / 478.1 MB Notification: Performance of matching and sorting (n=12): time 0.002089/0.8429, allocations: 499.5 kB / 0.6632 GB, free: 13.8 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.566e-05/0.843, allocations: 106.8 kB / 0.6634 GB, free: 13.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001693/0.8432, allocations: 149 kB / 0.6635 GB, free: 13.52 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.8432, allocations: 25.7 kB / 0.6635 GB, free: 13.49 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.453e-05/0.8433, allocations: 114.3 kB / 0.6636 GB, free: 13.39 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.376e-05/0.8434, allocations: 50.12 kB / 0.6637 GB, free: 13.35 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.801e-05/0.8435, allocations: 45.59 kB / 0.6637 GB, free: 13.3 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.8436, allocations: 325.5 kB / 0.664 GB, free: 12.98 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001932/0.8438, allocations: 59.94 kB / 0.6641 GB, free: 12.92 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002513/0.8441, allocations: 112.2 kB / 0.6642 GB, free: 12.79 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000426/0.8445, allocations: 175 kB / 0.6644 GB, free: 12.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.015e-06/0.8445, allocations: 0 / 0.6644 GB, free: 12.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005282/0.8451, allocations: 207.4 kB / 0.6646 GB, free: 12.4 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.157e-05/0.8451, allocations: 4 kB / 0.6646 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.8451, allocations: 4 kB / 0.6646 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.8451, allocations: 0 / 0.6646 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002287/0.8454, allocations: 56.11 kB / 0.6646 GB, free: 12.34 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.195e-06/0.8454, allocations: 4 kB / 0.6646 GB, free: 12.33 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002085/0.8456, allocations: 22.33 kB / 0.6646 GB, free: 12.31 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.279e-05/0.8457, allocations: 22.36 kB / 0.6647 GB, free: 12.29 MB / 478.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 0.0001441/0.8458, allocations: 124.6 kB / 0.6648 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.136e-05/0.8459, allocations: 15.91 kB / 0.6648 GB, free: 12.15 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.8473, allocations: 1.133 MB / 0.6659 GB, free: 11.03 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.731e-05/0.8474, allocations: 19.97 kB / 0.6659 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.716e-06/0.8474, allocations: 4 kB / 0.6659 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.8474, allocations: 0 / 0.6659 GB, free: 11.01 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007392/0.8481, allocations: 0.5822 MB / 0.6665 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.8481, allocations: 0 / 0.6665 GB, free: 10.39 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001611/0.8483, allocations: 39.91 kB / 0.6665 GB, free: 10.36 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.551e-06/0.8483, allocations: 4 kB / 0.6665 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.8484, allocations: 4 kB / 0.6665 GB, free: 10.35 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.61e-06/0.8484, allocations: 4 kB / 0.6665 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.8484, allocations: 0 / 0.6665 GB, free: 10.34 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.8494, allocations: 0.8618 MB / 0.6674 GB, free: 9.461 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.8496, allocations: 138.3 kB / 0.6675 GB, free: 9.32 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.8496, allocations: 4 kB / 0.6675 GB, free: 9.316 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002559/0.8499, allocations: 15.98 kB / 0.6675 GB, free: 9.301 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.192e-05/0.8499, allocations: 23.91 kB / 0.6676 GB, free: 9.277 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.66e-05/0.85, allocations: 4 kB / 0.6676 GB, free: 9.273 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.8501, allocations: 111.9 kB / 0.6677 GB, free: 9.164 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.8501, allocations: 4 kB / 0.6677 GB, free: 9.16 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005087/0.8552, allocations: 1.449 MB / 0.6691 GB, free: 7.73 MB / 478.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.007559/0.8628, allocations: 1.698 MB / 0.6707 GB, free: 6.191 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001031/0.8639, allocations: 306.7 kB / 0.671 GB, free: 5.895 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 4.629e-06/0.8639, allocations: 0 / 0.671 GB, free: 5.895 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004527/0.8643, allocations: 274.8 kB / 0.6713 GB, free: 5.629 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006627/0.865, allocations: 53.61 kB / 0.6714 GB, free: 5.582 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001057/0.8661, allocations: 0.7305 MB / 0.6721 GB, free: 4.809 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000457/0.8666, allocations: 0.7962 MB / 0.6728 GB, free: 3.988 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0002889/0.8669, allocations: 110.7 kB / 0.673 GB, free: 3.879 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.726e-05/0.8669, allocations: 27.44 kB / 0.673 GB, free: 3.852 MB / 478.1 MB Notification: Performance of SimCode: time 3.1e-07/0.8669, allocations: 0 / 0.673 GB, free: 3.852 MB / 478.1 MB Notification: Performance of Templates: time 0.2902/1.157, allocations: 51.22 MB / 0.723 GB, free: 183.1 MB / 0.4981 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water.pipe 2>&1)