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.001119/0.001119, allocations: 109 kB / 16.42 MB, free: 6.457 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: 189.4 kB / 17.35 MB, free: 5.715 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.367/1.367, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04703/0.04703, allocations: 9.091 MB / 279.7 MB, free: 2.941 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.001417/0.001417, allocations: 70.25 kB / 388.1 MB, free: 47.15 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07031/0.07173, allocations: 48.17 MB / 436.3 MB, free: 7.617 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.01737/0.08914, allocations: 17.9 MB / 454.2 MB, free: 5.637 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01784/0.107, allocations: 17.01 MB / 471.2 MB, free: 4.578 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001413/0.1072, allocations: 3.938 kB / 471.2 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000694/0.1079, allocations: 282.6 kB / 471.5 MB, free: 4.297 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005205/0.1085, allocations: 202.7 kB / 471.7 MB, free: 4.098 MB / 350.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.01771/0.1262, allocations: 7.1 MB / 478.8 MB, free: 12.99 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003788/0.1266, allocations: 290.4 kB / 479.1 MB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.451e-05/0.1267, allocations: 13.62 kB / 479.1 MB, free: 12.7 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002371/0.1269, allocations: 127.5 kB / 479.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1271, allocations: 71.64 kB / 479.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.46e-05/0.1271, allocations: 4 kB / 479.3 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01791/0.145, allocations: 10.12 MB / 489.4 MB, free: 2.355 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 3.219e-05/0.1451, allocations: 19.86 kB / 489.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001908/0.1453, allocations: 83.61 kB / 489.5 MB, free: 2.254 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009273/0.1545, allocations: 4.362 MB / 493.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.1546, allocations: 4 kB / 493.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.1546, allocations: 3.938 kB / 493.9 MB, free: 13.88 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.366e-06/0.1546, allocations: 0 / 493.9 MB, free: 13.88 MB / 382.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.00219/0.1568, allocations: 0.998 MB / 494.9 MB, free: 12.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1568, allocations: 8.031 kB / 494.9 MB, free: 12.82 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/0.1569, allocations: 15.81 kB / 494.9 MB, free: 12.8 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001329/0.157, allocations: 178.8 kB / 495.1 MB, free: 12.59 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.28e-05/0.1571, allocations: 11.94 kB / 495.1 MB, free: 12.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.114e-05/0.1571, allocations: 4 kB / 495.1 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002841/0.1574, allocations: 168.1 kB / 495.2 MB, free: 12.4 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1574, allocations: 3.938 kB / 495.2 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.689e-06/0.1574, allocations: 0 / 495.2 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.691e-05/0.1574, allocations: 15.97 kB / 495.3 MB, free: 12.38 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002406/0.1577, allocations: 103.9 kB / 495.4 MB, free: 12.28 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006027/0.1583, allocations: 0.5317 MB / 495.9 MB, free: 11.69 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001989/0.1585, allocations: 138.5 kB / 496 MB, free: 11.55 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001702/0.1587, allocations: 116.8 kB / 496.1 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2924/0.451, allocations: 85.2 MB / 0.5677 GB, free: 51.07 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.4511, allocations: 37.56 kB / 0.5678 GB, free: 51.03 MB / 414.1 MB Notification: Performance of pre-optimization done (n=42): time 2.805e-06/0.4511, allocations: 0.9844 kB / 0.5678 GB, free: 51.03 MB / 414.1 MB Notification: Performance of matching and sorting (n=42): time 0.0005852/0.4517, allocations: 370.3 kB / 0.5681 GB, free: 50.82 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.252e-05/0.4517, allocations: 51.41 kB / 0.5682 GB, free: 50.76 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.896e-05/0.4518, allocations: 113.8 kB / 0.5683 GB, free: 50.64 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.056e-05/0.4518, allocations: 29.7 kB / 0.5683 GB, free: 50.61 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.169e-05/0.4518, allocations: 101.8 kB / 0.5684 GB, free: 50.51 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.185e-05/0.4519, allocations: 130.6 kB / 0.5685 GB, free: 50.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.989e-05/0.452, allocations: 53.59 kB / 0.5686 GB, free: 50.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 4.101e-05/0.452, allocations: 322.8 kB / 0.5689 GB, free: 50.01 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.4521, allocations: 86.2 kB / 0.569 GB, free: 49.93 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001358/0.4523, allocations: 123.2 kB / 0.5691 GB, free: 49.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000269/0.4526, allocations: 225 kB / 0.5693 GB, free: 49.57 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.4526, allocations: 0 / 0.5693 GB, free: 49.57 MB / 414.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0003494/0.4529, allocations: 269.6 kB / 0.5695 GB, free: 49.3 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.453, allocations: 8 kB / 0.5696 GB, free: 49.3 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/0.453, allocations: 4 kB / 0.5696 GB, free: 49.29 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.479e-05/0.453, allocations: 0 / 0.5696 GB, free: 49.29 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.718e-05/0.4531, allocations: 14.8 kB / 0.5696 GB, free: 49.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.418e-06/0.4531, allocations: 4 kB / 0.5696 GB, free: 49.28 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.333e-05/0.4532, allocations: 19.73 kB / 0.5696 GB, free: 49.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.421e-05/0.4532, allocations: 4 kB / 0.5696 GB, free: 49.25 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 6.518e-05/0.4533, allocations: 134.5 kB / 0.5697 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.819e-05/0.4533, allocations: 15.75 kB / 0.5697 GB, free: 49.1 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004415/0.4538, allocations: 316.2 kB / 0.57 GB, free: 48.79 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.4538, allocations: 0 / 0.57 GB, free: 48.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.4538, allocations: 4 kB / 0.5701 GB, free: 48.79 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.068e-05/0.4539, allocations: 100.8 kB / 0.5701 GB, free: 48.67 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.918e-05/0.4539, allocations: 12 kB / 0.5702 GB, free: 48.66 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/0.454, allocations: 7.984 kB / 0.5702 GB, free: 48.65 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.464e-05/0.454, allocations: 5.016 kB / 0.5702 GB, free: 48.65 MB / 414.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0003406/0.4544, allocations: 338.5 kB / 0.5705 GB, free: 48.31 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003366/0.4547, allocations: 439.2 kB / 0.5709 GB, free: 47.87 MB / 414.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001391/0.4549, allocations: 112.6 kB / 0.571 GB, free: 47.76 MB / 414.1 MB Notification: Performance of sorting global known variables: time 2.97e-05/0.4549, allocations: 97.89 kB / 0.5711 GB, free: 47.67 MB / 414.1 MB Notification: Performance of Backend: time 4.71e-07/0.4549, allocations: 0 / 0.5711 GB, free: 47.67 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004503/0.4594, allocations: 1.831 MB / 0.5729 GB, free: 46.16 MB / 414.1 MB Notification: Performance of SimCode: time 0.0004524/0.4599, allocations: 0.7427 MB / 0.5736 GB, free: 45.37 MB / 414.1 MB Notification: Performance of Templates: time 0.03154/0.4915, allocations: 28 MB / 0.601 GB, free: 17.45 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState.pipe 2>&1)