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.007629/0.007629, allocations: 100.1 kB / 15.73 MB, free: 6.473 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.001288/0.001288, allocations: 194.8 kB / 16.67 MB, free: 6.379 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.583/1.583, allocations: 205.1 MB / 222.5 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04695/0.04695, allocations: 9.096 MB / 279 MB, free: 12.11 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.00145/0.001451, allocations: 67.91 kB / 387.4 MB, free: 8.059 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.314, allocations: 48.16 MB / 435.6 MB, free: 7.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02057/0.3346, allocations: 17.91 MB / 453.5 MB, free: 10.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01748/0.3522, allocations: 17 MB / 470.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003191/0.3525, allocations: 2.312 kB / 470.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009938/0.3536, allocations: 280 kB / 470.8 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006848/0.3543, allocations: 208.3 kB / 471 MB, free: 11.98 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.02177/0.3761, allocations: 7.109 MB / 478.1 MB, free: 6.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004182/0.3765, allocations: 286.5 kB / 478.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.445e-05/0.3766, allocations: 9.688 kB / 478.4 MB, free: 5.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002223/0.3768, allocations: 131.4 kB / 478.5 MB, free: 5.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000116/0.3769, allocations: 67.72 kB / 478.6 MB, free: 5.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.545e-05/0.377, allocations: 4 kB / 478.6 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01919/0.3962, allocations: 10.12 MB / 488.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 4.621e-05/0.3962, allocations: 19.86 kB / 488.7 MB, free: 11.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002149/0.3965, allocations: 83.61 kB / 488.8 MB, free: 11.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01445/0.4109, allocations: 4.373 MB / 493.2 MB, free: 7.027 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.411, allocations: 3.938 kB / 493.2 MB, free: 7.023 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.356e-06/0.411, allocations: 4 kB / 493.2 MB, free: 7.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.411, allocations: 3.938 kB / 493.2 MB, free: 7.016 MB / 366.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.002256/0.4132, allocations: 0.9941 MB / 494.2 MB, free: 5.973 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.049e-05/0.4133, allocations: 11.97 kB / 494.2 MB, free: 5.961 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.791e-05/0.4134, allocations: 15.81 kB / 494.2 MB, free: 5.945 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.4135, allocations: 182.7 kB / 494.4 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.4135, allocations: 4 kB / 494.4 MB, free: 5.723 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.595e-05/0.4136, allocations: 4 kB / 494.4 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.4139, allocations: 168.2 kB / 494.6 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.898e-06/0.4139, allocations: 0 / 494.6 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.4139, allocations: 0 / 494.6 MB, free: 5.543 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.672e-05/0.4139, allocations: 11.98 kB / 494.6 MB, free: 5.531 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.4142, allocations: 107.9 kB / 494.7 MB, free: 5.426 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.4149, allocations: 0.5239 MB / 495.2 MB, free: 4.848 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002173/0.4151, allocations: 138.5 kB / 495.3 MB, free: 4.703 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001722/0.4153, allocations: 116.8 kB / 495.5 MB, free: 4.586 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1415/0.5568, allocations: 85.21 MB / 0.5671 GB, free: 0.5898 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.2e-05/0.5569, allocations: 38.56 kB / 0.5671 GB, free: 0.543 MB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 2.785e-06/0.5569, allocations: 4 kB / 0.5671 GB, free: 0.5391 MB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.0007362/0.5577, allocations: 364.7 kB / 0.5674 GB, free: 180 kB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.5577, allocations: 51.41 kB / 0.5675 GB, free: 116 kB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001322/0.5578, allocations: 125.8 kB / 0.5676 GB, free: 15.98 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.589e-05/0.5579, allocations: 25.7 kB / 0.5676 GB, free: 15.95 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.886e-05/0.5579, allocations: 85.05 kB / 0.5677 GB, free: 15.86 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.418e-05/0.558, allocations: 138 kB / 0.5678 GB, free: 15.73 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.395e-05/0.5581, allocations: 49.59 kB / 0.5679 GB, free: 15.67 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.5582, allocations: 326.8 kB / 0.5682 GB, free: 15.34 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.5584, allocations: 83.95 kB / 0.5683 GB, free: 15.26 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001691/0.5586, allocations: 118.5 kB / 0.5684 GB, free: 15.14 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003388/0.5589, allocations: 239 kB / 0.5686 GB, free: 14.89 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.5589, allocations: 0 / 0.5686 GB, free: 14.89 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004391/0.5594, allocations: 265.1 kB / 0.5689 GB, free: 14.63 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.81e-05/0.5594, allocations: 4 kB / 0.5689 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.5594, allocations: 96 / 0.5689 GB, free: 14.62 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.5594, allocations: 15.94 kB / 0.5689 GB, free: 14.61 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.048e-05/0.5595, allocations: 11.98 kB / 0.5689 GB, free: 14.6 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.949e-06/0.5596, allocations: 3.938 kB / 0.5689 GB, free: 14.59 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.5597, allocations: 19.75 kB / 0.5689 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.005e-05/0.5597, allocations: 11.98 kB / 0.5689 GB, free: 14.56 MB / 478.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 9.446e-05/0.5598, allocations: 121.8 kB / 0.5691 GB, free: 14.43 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.866e-05/0.5598, allocations: 15.81 kB / 0.5691 GB, free: 14.42 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005311/0.5604, allocations: 314.8 kB / 0.5694 GB, free: 14.11 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-05/0.5604, allocations: 7.922 kB / 0.5694 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5604, allocations: 0 / 0.5694 GB, free: 14.1 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.5604, allocations: 3.984 kB / 0.5694 GB, free: 14.09 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002881/0.5607, allocations: 269.1 kB / 0.5696 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.5607, allocations: 0 / 0.5696 GB, free: 13.78 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.459e-05/0.5608, allocations: 11.98 kB / 0.5697 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.5608, allocations: 4 kB / 0.5697 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.627e-06/0.5608, allocations: 0 / 0.5697 GB, free: 13.77 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.5608, allocations: 3.938 kB / 0.5697 GB, free: 13.76 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.5608, allocations: 3.938 kB / 0.5697 GB, free: 13.76 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004434/0.5613, allocations: 359 kB / 0.57 GB, free: 13.39 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.993e-05/0.5614, allocations: 116.6 kB / 0.5701 GB, free: 13.26 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.5614, allocations: 4 kB / 0.5701 GB, free: 13.25 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001257/0.5616, allocations: 11.92 kB / 0.5701 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.004e-05/0.5616, allocations: 4 kB / 0.5701 GB, free: 13.24 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.506e-06/0.5616, allocations: 0 / 0.5701 GB, free: 13.24 MB / 478.1 MB Notification: Performance of sorting global known variables: time 5.554e-05/0.5617, allocations: 99.7 kB / 0.5702 GB, free: 13.14 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5617, allocations: 0 / 0.5702 GB, free: 13.14 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.002925/0.5646, allocations: 1.101 MB / 0.5713 GB, free: 12.04 MB / 478.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.005069/0.5697, allocations: 1.667 MB / 0.5729 GB, free: 10.36 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005091/0.5702, allocations: 261.3 kB / 0.5732 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.5703, allocations: 0 / 0.5732 GB, free: 10.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002154/0.5705, allocations: 149.6 kB / 0.5733 GB, free: 9.949 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008763/0.5714, allocations: 147.9 kB / 0.5735 GB, free: 9.809 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.572, allocations: 330.5 kB / 0.5738 GB, free: 9.453 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.5723, allocations: 0.7247 MB / 0.5745 GB, free: 8.703 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 7.48e-05/0.5723, allocations: 11.98 kB / 0.5745 GB, free: 8.691 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.096e-05/0.5724, allocations: 19.44 kB / 0.5745 GB, free: 8.672 MB / 478.1 MB Notification: Performance of SimCode: time 3.91e-07/0.5724, allocations: 0 / 0.5745 GB, free: 8.672 MB / 478.1 MB Notification: Performance of Templates: time 0.2388/0.8112, allocations: 29.91 MB / 0.6037 GB, free: 175.9 MB / 494.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)