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.001863/0.001863, allocations: 102.1 kB / 16.35 MB, free: 5.824 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.002018/0.002019, allocations: 193.9 kB / 17.29 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.139/2.139, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04881/0.04881, allocations: 9.098 MB / 279.6 MB, free: 2.965 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.00224/0.00224, allocations: 71.89 kB / 339.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5121/0.5144, allocations: 48.14 MB / 387.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.03059/0.5451, allocations: 17.92 MB / 405.5 MB, free: 38.37 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0217/0.5669, allocations: 16.99 MB / 422.5 MB, free: 24.42 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00038/0.5673, allocations: 1.375 kB / 422.5 MB, free: 24.42 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001347/0.5687, allocations: 281.3 kB / 422.8 MB, free: 24.21 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008112/0.5696, allocations: 210.5 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.02961/0.5992, allocations: 7.103 MB / 430.1 MB, free: 16.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007093/0.6, allocations: 294.4 kB / 430.4 MB, free: 16.62 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.52e-05/0.6001, allocations: 9.688 kB / 430.4 MB, free: 16.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003013/0.6004, allocations: 123.5 kB / 430.5 MB, free: 16.49 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001316/0.6005, allocations: 71.72 kB / 430.6 MB, free: 16.42 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.6006, allocations: 0 / 430.6 MB, free: 16.42 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02529/0.6259, allocations: 10.13 MB / 440.7 MB, free: 6.277 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.907e-05/0.626, allocations: 15.88 kB / 440.7 MB, free: 6.262 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003184/0.6264, allocations: 91.59 kB / 440.8 MB, free: 6.172 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02398/0.6504, allocations: 4.37 MB / 445.2 MB, free: 1.793 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.187e-05/0.6505, allocations: 4 kB / 445.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.118e-06/0.6505, allocations: 0 / 445.2 MB, free: 1.789 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.798e-05/0.6505, allocations: 0 / 445.2 MB, free: 1.789 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.004304/0.6548, allocations: 0.9908 MB / 446.2 MB, free: 0.75 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.458e-05/0.6549, allocations: 12.03 kB / 446.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001184/0.655, allocations: 11.81 kB / 446.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/0.6553, allocations: 194.7 kB / 446.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.191e-05/0.6553, allocations: 0 / 446.4 MB, free: 0.4961 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.72e-05/0.6554, allocations: 8 kB / 446.4 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004223/0.6558, allocations: 172.1 kB / 446.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.083e-05/0.6558, allocations: 1.625 kB / 446.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.6559, allocations: 0 / 446.6 MB, free: 316 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.625e-05/0.6559, allocations: 7.984 kB / 446.6 MB, free: 308 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002662/0.6562, allocations: 103.9 kB / 446.7 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001146/0.6573, allocations: 0.524 MB / 447.2 MB, free: 15.62 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003096/0.6577, allocations: 130.5 kB / 447.3 MB, free: 15.48 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002498/0.6579, allocations: 124.8 kB / 447.5 MB, free: 15.36 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.48/1.138, allocations: 85.21 MB / 0.5202 GB, free: 139 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.216e-05/1.138, allocations: 37.58 kB / 0.5202 GB, free: 139 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 6.152e-06/1.138, allocations: 0 / 0.5202 GB, free: 139 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.001406/1.14, allocations: 362.9 kB / 0.5206 GB, free: 138.9 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.277e-05/1.14, allocations: 57.73 kB / 0.5206 GB, free: 138.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/1.14, allocations: 118.3 kB / 0.5207 GB, free: 138.7 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.772e-05/1.14, allocations: 27.81 kB / 0.5208 GB, free: 138.7 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.357e-05/1.14, allocations: 86.72 kB / 0.5208 GB, free: 138.6 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002089/1.14, allocations: 141.3 kB / 0.521 GB, free: 138.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001796/1.14, allocations: 40.77 kB / 0.521 GB, free: 138.5 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.141, allocations: 327.7 kB / 0.5213 GB, free: 138.1 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003611/1.141, allocations: 84.92 kB / 0.5214 GB, free: 138.1 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004097/1.141, allocations: 124.5 kB / 0.5215 GB, free: 138 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006744/1.142, allocations: 236.3 kB / 0.5218 GB, free: 137.9 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.937e-06/1.142, allocations: 0.5312 kB / 0.5218 GB, free: 137.9 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008362/1.143, allocations: 260.2 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.278e-05/1.143, allocations: 6.469 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/1.143, allocations: 2.734 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.535e-05/1.143, allocations: 7.844 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/1.143, allocations: 12.11 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/1.143, allocations: 1.062 kB / 0.522 GB, free: 137.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001507/1.143, allocations: 28.06 kB / 0.5221 GB, free: 137.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.667e-05/1.143, allocations: 6.844 kB / 0.5221 GB, free: 137.8 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 0.0001493/1.144, allocations: 124.4 kB / 0.5222 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.41e-05/1.144, allocations: 14.91 kB / 0.5222 GB, free: 137.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009185/1.145, allocations: 313.8 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.14e-05/1.145, allocations: 6.156 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.318e-05/1.145, allocations: 6.812 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/1.145, allocations: 0.5625 kB / 0.5225 GB, free: 137.5 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004806/1.145, allocations: 265.9 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/1.145, allocations: 1.828 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.193e-05/1.145, allocations: 10.19 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/1.145, allocations: 1.062 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.891e-05/1.145, allocations: 1.719 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.977e-06/1.145, allocations: 1.031 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/1.145, allocations: 4.594 kB / 0.5228 GB, free: 137.3 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007566/1.146, allocations: 360.4 kB / 0.5231 GB, free: 137.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001383/1.146, allocations: 104.6 kB / 0.5232 GB, free: 137 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.758e-05/1.146, allocations: 1.75 kB / 0.5232 GB, free: 137 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001489/1.147, allocations: 13.16 kB / 0.5232 GB, free: 136.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.37e-05/1.147, allocations: 14.38 kB / 0.5233 GB, free: 136.9 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/1.147, allocations: 3.297 kB / 0.5233 GB, free: 136.9 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.726e-05/1.147, allocations: 98.64 kB / 0.5234 GB, free: 136.9 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.3e-07/1.147, allocations: 0 / 0.5234 GB, free: 136.9 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.005956/1.153, allocations: 1.106 MB / 0.5244 GB, free: 136.8 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.009935/1.163, allocations: 1.664 MB / 0.5261 GB, free: 136.5 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009532/1.164, allocations: 255.1 kB / 0.5263 GB, free: 136.4 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/1.164, allocations: 3.656 kB / 0.5263 GB, free: 136.4 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003817/1.164, allocations: 154.2 kB / 0.5265 GB, free: 136.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/1.165, allocations: 149.3 kB / 0.5266 GB, free: 136.3 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001151/1.167, allocations: 338.2 kB / 0.5269 GB, free: 136.1 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004879/1.167, allocations: 0.7222 MB / 0.5276 GB, free: 135.4 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0001843/1.167, allocations: 10.62 kB / 0.5276 GB, free: 135.4 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.202e-05/1.167, allocations: 15.38 kB / 0.5277 GB, free: 135.4 MB / 414.1 MB Notification: Performance of SimCode: time 1.443e-06/1.167, allocations: 0 / 0.5277 GB, free: 135.4 MB / 414.1 MB Notification: Performance of Templates: time 0.05523/1.223, allocations: 29.9 MB / 0.5569 GB, free: 110.4 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)