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.001113/0.001113, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001227/0.001227, allocations: 190.5 kB / 16.14 MB, free: 6.703 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.427/1.427, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04356/0.04356, allocations: 9.092 MB / 278.4 MB, free: 12.4 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.001406/0.001406, allocations: 63.91 kB / 337.3 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.1044, allocations: 48.18 MB / 385.5 MB, free: 9.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.SinglePhase_setState_b_Water): time 0.01669/0.1211, allocations: 13.97 MB / 399.5 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02102/0.1422, allocations: 19.24 MB / 418.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002025/0.1424, allocations: 0 / 418.7 MB, free: 8.355 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002737/0.1428, allocations: 51.77 kB / 418.8 MB, free: 8.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.1429, allocations: 59.48 kB / 418.8 MB, free: 8.246 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.02099/0.1639, allocations: 5.29 MB / 424.1 MB, free: 2.949 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.1642, allocations: 167 kB / 424.3 MB, free: 2.785 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.331e-05/0.1643, allocations: 13.11 kB / 424.3 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1645, allocations: 59.73 kB / 424.3 MB, free: 2.715 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001232/0.1646, allocations: 63.77 kB / 424.4 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.983e-05/0.1647, allocations: 4 kB / 424.4 MB, free: 2.648 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.219/0.3836, allocations: 10.7 MB / 435.1 MB, free: 16.44 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.354e-05/0.3838, allocations: 17.08 kB / 435.1 MB, free: 16.44 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001874/0.384, allocations: 63.16 kB / 435.2 MB, free: 16.44 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01874/0.4027, allocations: 6.106 MB / 441.3 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.4028, allocations: 0.5312 kB / 441.3 MB, free: 16.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4028, allocations: 4.344 kB / 441.3 MB, free: 16.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.4028, allocations: 3.656 kB / 441.3 MB, free: 16.16 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.00625/0.4091, allocations: 1.342 MB / 442.6 MB, free: 15.31 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.4091, allocations: 9.906 kB / 442.7 MB, free: 15.31 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.6e-05/0.4092, allocations: 16.91 kB / 442.7 MB, free: 15.3 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001108/0.4093, allocations: 186 kB / 442.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.4094, allocations: 8.938 kB / 442.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.419e-05/0.4094, allocations: 10.5 kB / 442.9 MB, free: 15.09 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009233/0.4103, allocations: 326.4 kB / 443.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.4104, allocations: 1.312 kB / 443.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.971e-05/0.4104, allocations: 4.719 kB / 443.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.273e-06/0.4104, allocations: 2.656 kB / 443.2 MB, free: 14.93 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009736/0.4114, allocations: 316.7 kB / 443.5 MB, free: 14.84 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.0007812/0.4122, allocations: 1.041 MB / 444.6 MB, free: 13.86 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008656/0.413, allocations: 299 kB / 444.8 MB, free: 13.73 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002209/0.4133, allocations: 84.17 kB / 444.9 MB, free: 13.7 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6159/1.029, allocations: 183.1 MB / 0.6133 GB, free: 145.5 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.936e-05/1.029, allocations: 37.38 kB / 0.6133 GB, free: 145.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 3.016e-06/1.029, allocations: 0 / 0.6133 GB, free: 145.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.002057/1.031, allocations: 490.6 kB / 0.6138 GB, free: 145 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.732e-05/1.031, allocations: 107.1 kB / 0.6139 GB, free: 144.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000155/1.032, allocations: 165.9 kB / 0.6141 GB, free: 144.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.227e-05/1.032, allocations: 25.7 kB / 0.6141 GB, free: 144.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.866e-05/1.032, allocations: 112.1 kB / 0.6142 GB, free: 144.6 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.861e-05/1.032, allocations: 33.86 kB / 0.6142 GB, free: 144.6 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.518e-05/1.032, allocations: 46.17 kB / 0.6143 GB, free: 144.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.044e-05/1.032, allocations: 322.6 kB / 0.6146 GB, free: 144.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001974/1.032, allocations: 59.64 kB / 0.6146 GB, free: 144.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002178/1.032, allocations: 112.5 kB / 0.6148 GB, free: 144.1 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003939/1.033, allocations: 182.1 kB / 0.6149 GB, free: 143.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.951e-06/1.033, allocations: 2.188 kB / 0.6149 GB, free: 143.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0005521/1.033, allocations: 207.8 kB / 0.6151 GB, free: 143.8 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.341e-05/1.033, allocations: 8 kB / 0.6151 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.012e-05/1.033, allocations: 2.844 kB / 0.6151 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.817e-05/1.033, allocations: 4 kB / 0.6151 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000215/1.034, allocations: 46.91 kB / 0.6152 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.382e-05/1.034, allocations: 4 kB / 0.6152 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001888/1.034, allocations: 29.09 kB / 0.6152 GB, free: 143.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.166e-05/1.034, allocations: 15.19 kB / 0.6152 GB, free: 143.7 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 0.0001352/1.034, allocations: 122.2 kB / 0.6153 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/1.034, allocations: 18.06 kB / 0.6154 GB, free: 143.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/1.035, allocations: 1.145 MB / 0.6165 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/1.035, allocations: 15.47 kB / 0.6165 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.915e-06/1.035, allocations: 0 / 0.6165 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/1.035, allocations: 11.92 kB / 0.6165 GB, free: 142.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006053/1.036, allocations: 0.58 MB / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/1.036, allocations: 0 / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001466/1.036, allocations: 31.97 kB / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.643e-06/1.036, allocations: 8 kB / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.675e-05/1.036, allocations: 7.422 kB / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/1.036, allocations: 11.59 kB / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/1.036, allocations: 1.641 kB / 0.6171 GB, free: 142.3 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008034/1.037, allocations: 0.8484 MB / 0.618 GB, free: 141.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/1.037, allocations: 128.8 kB / 0.6181 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.331e-05/1.037, allocations: 7.062 kB / 0.6181 GB, free: 141.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002126/1.037, allocations: 18.53 kB / 0.6181 GB, free: 141.4 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.881e-05/1.037, allocations: 18.17 kB / 0.6181 GB, free: 141.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.211e-05/1.037, allocations: 8.844 kB / 0.6181 GB, free: 141.4 MB / 462.1 MB Notification: Performance of sorting global known variables: time 7.86e-05/1.038, allocations: 120 kB / 0.6182 GB, free: 141.3 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/1.038, allocations: 0 / 0.6182 GB, free: 141.3 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.006083/1.044, allocations: 1.437 MB / 0.6197 GB, free: 140.1 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.01043/1.054, allocations: 1.686 MB / 0.6213 GB, free: 138.7 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0007406/1.055, allocations: 298.2 kB / 0.6216 GB, free: 138.5 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/1.055, allocations: 0 / 0.6216 GB, free: 138.5 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003897/1.055, allocations: 283.7 kB / 0.6219 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006893/1.056, allocations: 46.47 kB / 0.6219 GB, free: 138.3 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009274/1.057, allocations: 0.8893 MB / 0.6228 GB, free: 137.5 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/1.057, allocations: 0.7884 MB / 0.6235 GB, free: 136.7 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001675/1.057, allocations: 112.9 kB / 0.6236 GB, free: 136.6 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.334e-05/1.057, allocations: 19.44 kB / 0.6237 GB, free: 136.6 MB / 462.1 MB Notification: Performance of SimCode: time 1.523e-06/1.057, allocations: 4 kB / 0.6237 GB, free: 136.6 MB / 462.1 MB Notification: Performance of Templates: time 0.05232/1.11, allocations: 51.06 MB / 0.6735 GB, free: 85.64 MB / 462.1 MB 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)