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: translateModel(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState") translateModel(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001548/0.001548, allocations: 109.8 kB / 16.37 MB, free: 6.477 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.001932/0.001932, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.562/1.562, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04629/0.04629, allocations: 9.096 MB / 279.6 MB, free: 2.969 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.001531/0.001531, allocations: 63.91 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2508/0.2524, allocations: 48.14 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.0203/0.2727, allocations: 17.92 MB / 405.5 MB, free: 38.35 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01436/0.2871, allocations: 16.99 MB / 422.5 MB, free: 24.4 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002468/0.2874, allocations: 1.406 kB / 422.5 MB, free: 24.4 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008433/0.2883, allocations: 281.8 kB / 422.8 MB, free: 24.2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005822/0.2889, allocations: 213 kB / 423 MB, free: 24.01 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:887:13-887:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: RSS_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/Interfaces/PartialHelmholtzMedium/package.mo:1231:13-1231:51:writable] Warning: lambda_ls was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.01966/0.3086, allocations: 7.111 MB / 430.1 MB, free: 16.9 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004007/0.309, allocations: 282.4 kB / 430.4 MB, free: 16.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.597e-05/0.3091, allocations: 9.688 kB / 430.4 MB, free: 16.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002272/0.3093, allocations: 131.5 kB / 430.5 MB, free: 16.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001016/0.3094, allocations: 71.61 kB / 430.6 MB, free: 16.41 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.41e-05/0.3094, allocations: 4 kB / 430.6 MB, free: 16.41 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01672/0.3262, allocations: 10.12 MB / 440.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.624e-05/0.3263, allocations: 19.92 kB / 440.8 MB, free: 6.25 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001765/0.3265, allocations: 75.62 kB / 440.8 MB, free: 6.176 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01267/0.3391, allocations: 4.381 MB / 445.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.752e-06/0.3392, allocations: 0 / 445.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3392, allocations: 0 / 445.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.734e-06/0.3392, allocations: 0 / 445.2 MB, free: 1.785 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.002016/0.3412, allocations: 0.9909 MB / 446.2 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.743e-05/0.3413, allocations: 8.031 kB / 446.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.041e-05/0.3413, allocations: 15.81 kB / 446.2 MB, free: 0.7227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000112/0.3414, allocations: 186.7 kB / 446.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.3415, allocations: 4 kB / 446.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.097e-05/0.3415, allocations: 8 kB / 446.4 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002652/0.3418, allocations: 164.7 kB / 446.6 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.3418, allocations: 0 / 446.6 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.3418, allocations: 0 / 446.6 MB, free: 324 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.206e-05/0.3418, allocations: 11.98 kB / 446.6 MB, free: 312 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000197/0.342, allocations: 111.8 kB / 446.7 MB, free: 200 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006316/0.3427, allocations: 0.524 MB / 447.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002112/0.3429, allocations: 134.5 kB / 447.4 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001653/0.343, allocations: 126.2 kB / 447.5 MB, free: 15.35 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2954/0.6384, allocations: 85.2 MB / 0.5202 GB, free: 139 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.6385, allocations: 38.41 kB / 0.5202 GB, free: 138.9 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 1.744e-06/0.6385, allocations: 0 / 0.5202 GB, free: 138.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0006985/0.6392, allocations: 370.5 kB / 0.5206 GB, free: 138.8 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.6393, allocations: 52.06 kB / 0.5206 GB, free: 138.7 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.891e-05/0.6393, allocations: 119.8 kB / 0.5207 GB, free: 138.6 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.6394, allocations: 29.48 kB / 0.5208 GB, free: 138.6 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.6394, allocations: 90.25 kB / 0.5209 GB, free: 138.5 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.482e-05/0.6395, allocations: 135.3 kB / 0.521 GB, free: 138.4 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.475e-05/0.6396, allocations: 43.31 kB / 0.521 GB, free: 138.4 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 6.889e-05/0.6397, allocations: 324.2 kB / 0.5213 GB, free: 138.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001813/0.6398, allocations: 86.72 kB / 0.5214 GB, free: 138 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001942/0.6401, allocations: 122.8 kB / 0.5215 GB, free: 138 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/0.6404, allocations: 234.8 kB / 0.5218 GB, free: 137.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.6405, allocations: 4.344 kB / 0.5218 GB, free: 137.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004565/0.6409, allocations: 264.4 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.951e-05/0.6409, allocations: 13.62 kB / 0.522 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.641, allocations: 1.812 kB / 0.522 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.641, allocations: 5.875 kB / 0.522 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.765e-05/0.6411, allocations: 14.38 kB / 0.5221 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.6411, allocations: 5 kB / 0.5221 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.318e-05/0.6412, allocations: 21.72 kB / 0.5221 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.743e-05/0.6412, allocations: 4.094 kB / 0.5221 GB, free: 137.7 MB / 414.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_Ts.phase,state_ps.phase,state_ph.phase,state_pd.phase,state_dT.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.199e-05/0.6413, allocations: 128.6 kB / 0.5222 GB, free: 137.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.6413, allocations: 15.88 kB / 0.5222 GB, free: 137.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005128/0.6419, allocations: 310.9 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.542e-05/0.6419, allocations: 9.922 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.6419, allocations: 0 / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.478e-06/0.6419, allocations: 3.984 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002122/0.6421, allocations: 263.3 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.36e-06/0.6421, allocations: 3.312 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.1e-05/0.6422, allocations: 8.375 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.875e-06/0.6422, allocations: 0.75 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.6422, allocations: 8.297 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.6422, allocations: 5.375 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.6422, allocations: 0.6094 kB / 0.5228 GB, free: 137.2 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004057/0.6426, allocations: 358.6 kB / 0.5231 GB, free: 137 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.92e-05/0.6427, allocations: 106.5 kB / 0.5232 GB, free: 136.9 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.6427, allocations: 1.906 kB / 0.5232 GB, free: 136.9 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.6429, allocations: 18.25 kB / 0.5233 GB, free: 136.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.942e-05/0.6429, allocations: 5.453 kB / 0.5233 GB, free: 136.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.467e-06/0.6429, allocations: 2.875 kB / 0.5233 GB, free: 136.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.588e-05/0.643, allocations: 94.84 kB / 0.5234 GB, free: 136.8 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.643, allocations: 0 / 0.5234 GB, free: 136.8 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002808/0.6458, allocations: 1.108 MB / 0.5244 GB, free: 136.7 MB / 414.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 (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.003842/0.6496, allocations: 1.658 MB / 0.5261 GB, free: 136.4 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0004842/0.6501, allocations: 251.6 kB / 0.5263 GB, free: 136.3 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.6501, allocations: 3.938 kB / 0.5263 GB, free: 136.3 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.6503, allocations: 148.1 kB / 0.5265 GB, free: 136.2 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008345/0.6512, allocations: 153.4 kB / 0.5266 GB, free: 136.2 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005662/0.6518, allocations: 339.8 kB / 0.5269 GB, free: 136 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000164/0.6519, allocations: 0.7235 MB / 0.5276 GB, free: 135.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.35e-05/0.652, allocations: 14.56 kB / 0.5276 GB, free: 135.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.79e-05/0.652, allocations: 15.69 kB / 0.5277 GB, free: 135.3 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.652, allocations: 1.188 kB / 0.5277 GB, free: 135.3 MB / 414.1 MB Notification: Performance of Templates: time 0.0346/0.6866, allocations: 29.9 MB / 0.5569 GB, free: 110.3 MB / 414.1 MB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)