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.008027/0.008027, allocations: 104.7 kB / 15.74 MB, free: 6.484 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.002407/0.002407, allocations: 193.5 kB / 16.67 MB, free: 6.375 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.561/1.561, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04907/0.04907, allocations: 9.091 MB / 279 MB, free: 12.07 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.00139/0.00139, allocations: 67.88 kB / 387.4 MB, free: 8.016 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3741/0.3755, allocations: 48.15 MB / 435.6 MB, free: 7.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.ConvergenceTest.TwoPhase_setState): time 0.02417/0.3997, allocations: 17.92 MB / 453.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02254/0.4223, allocations: 17 MB / 470.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003679/0.4228, allocations: 1.156 kB / 470.5 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001082/0.4239, allocations: 313.6 kB / 470.8 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006762/0.4246, allocations: 232.4 kB / 471 MB, free: 12.16 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.02603/0.4507, allocations: 7.474 MB / 478.5 MB, free: 5.855 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005133/0.4512, allocations: 282.4 kB / 478.8 MB, free: 5.578 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.971e-05/0.4513, allocations: 13.69 kB / 478.8 MB, free: 5.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002366/0.4515, allocations: 135.4 kB / 478.9 MB, free: 5.434 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001107/0.4516, allocations: 63.73 kB / 479 MB, free: 5.371 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.469e-05/0.4516, allocations: 4 kB / 479 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0238/0.4754, allocations: 10.12 MB / 489.1 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.925e-05/0.4756, allocations: 27.8 kB / 489.2 MB, free: 11.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.4759, allocations: 75.62 kB / 489.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01498/0.4909, allocations: 4.377 MB / 493.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.4909, allocations: 0 / 493.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.4909, allocations: 0 / 493.6 MB, free: 6.738 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.566e-05/0.4909, allocations: 3.938 kB / 493.6 MB, free: 6.734 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.002321/0.4933, allocations: 0.9902 MB / 494.6 MB, free: 5.695 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.165e-05/0.4934, allocations: 8.031 kB / 494.6 MB, free: 5.688 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.051e-05/0.4934, allocations: 15.81 kB / 494.6 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000198/0.4936, allocations: 190.7 kB / 494.8 MB, free: 5.445 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.692e-05/0.4937, allocations: 4 kB / 494.8 MB, free: 5.441 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.532e-05/0.4937, allocations: 11.98 kB / 494.8 MB, free: 5.43 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003972/0.4941, allocations: 164.2 kB / 495 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.31e-05/0.4941, allocations: 0 / 495 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.532e-05/0.4941, allocations: 0 / 495 MB, free: 5.258 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.944e-05/0.4942, allocations: 11.98 kB / 495 MB, free: 5.246 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002522/0.4944, allocations: 107.9 kB / 495.1 MB, free: 5.141 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00073/0.4952, allocations: 0.5278 MB / 495.6 MB, free: 4.559 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002113/0.4954, allocations: 134.5 kB / 495.8 MB, free: 4.418 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.4956, allocations: 120.8 kB / 495.9 MB, free: 4.297 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1497/0.6453, allocations: 85.21 MB / 0.5675 GB, free: 308 kB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.951e-05/0.6454, allocations: 38.56 kB / 0.5675 GB, free: 260 kB / 462.1 MB Notification: Performance of pre-optimization done (n=42): time 5.22e-06/0.6455, allocations: 3.938 kB / 0.5675 GB, free: 256 kB / 462.1 MB Notification: Performance of matching and sorting (n=42): time 0.00119/0.6467, allocations: 364.7 kB / 0.5679 GB, free: 15.89 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.78e-05/0.6467, allocations: 51.41 kB / 0.5679 GB, free: 15.82 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002092/0.647, allocations: 121.8 kB / 0.568 GB, free: 15.7 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.647, allocations: 25.7 kB / 0.5681 GB, free: 15.66 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.6471, allocations: 89.05 kB / 0.5681 GB, free: 15.57 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001635/0.6473, allocations: 138 kB / 0.5683 GB, free: 15.44 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.6475, allocations: 41.61 kB / 0.5683 GB, free: 15.39 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002023/0.6477, allocations: 330.8 kB / 0.5686 GB, free: 15.06 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002244/0.6479, allocations: 87.89 kB / 0.5687 GB, free: 14.97 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002593/0.6482, allocations: 122.5 kB / 0.5688 GB, free: 14.84 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004319/0.6486, allocations: 231 kB / 0.569 GB, free: 14.61 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.687e-06/0.6486, allocations: 0 / 0.569 GB, free: 14.61 MB / 478.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0005368/0.6492, allocations: 257.1 kB / 0.5693 GB, free: 14.35 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/0.6492, allocations: 16.05 kB / 0.5693 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/0.6493, allocations: 0 / 0.5693 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.528e-05/0.6493, allocations: 7.875 kB / 0.5693 GB, free: 14.33 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.472e-05/0.6494, allocations: 8 kB / 0.5693 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.312e-05/0.6494, allocations: 7.984 kB / 0.5693 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001307/0.6495, allocations: 19.75 kB / 0.5693 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.1e-05/0.6496, allocations: 4 kB / 0.5694 GB, free: 14.29 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 0.0001641/0.6497, allocations: 125.8 kB / 0.5695 GB, free: 14.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.618e-05/0.6498, allocations: 23.8 kB / 0.5695 GB, free: 14.13 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006855/0.6505, allocations: 310.8 kB / 0.5698 GB, free: 13.82 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.047e-05/0.6506, allocations: 15.92 kB / 0.5698 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/0.6506, allocations: 0 / 0.5698 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.6506, allocations: 0 / 0.5698 GB, free: 13.81 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.651, allocations: 265.1 kB / 0.5701 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.632e-06/0.651, allocations: 4 kB / 0.5701 GB, free: 13.5 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.272e-05/0.6511, allocations: 4 kB / 0.5701 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.6511, allocations: 0 / 0.5701 GB, free: 13.49 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.821e-05/0.6511, allocations: 7.984 kB / 0.5701 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.6511, allocations: 3.938 kB / 0.5701 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6511, allocations: 0 / 0.5701 GB, free: 13.48 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005498/0.6517, allocations: 366.9 kB / 0.5704 GB, free: 13.11 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000152/0.6518, allocations: 112.7 kB / 0.5705 GB, free: 12.98 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.052e-05/0.6519, allocations: 7.984 kB / 0.5705 GB, free: 12.97 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.652, allocations: 7.938 kB / 0.5706 GB, free: 12.96 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.487e-05/0.6521, allocations: 7.984 kB / 0.5706 GB, free: 12.95 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.07e-05/0.6521, allocations: 4 kB / 0.5706 GB, free: 12.95 MB / 478.1 MB Notification: Performance of sorting global known variables: time 6.937e-05/0.6522, allocations: 91.7 kB / 0.5707 GB, free: 12.86 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6522, allocations: 0 / 0.5707 GB, free: 12.86 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003717/0.6559, allocations: 1.101 MB / 0.5717 GB, free: 11.76 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.005944/0.6619, allocations: 1.671 MB / 0.5734 GB, free: 10.08 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.0005234/0.6624, allocations: 245.4 kB / 0.5736 GB, free: 9.832 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.6624, allocations: 0 / 0.5736 GB, free: 9.832 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000223/0.6626, allocations: 161.7 kB / 0.5737 GB, free: 9.668 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009497/0.6636, allocations: 144.3 kB / 0.5739 GB, free: 9.527 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007042/0.6643, allocations: 334.5 kB / 0.5742 GB, free: 9.168 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003175/0.6647, allocations: 0.7247 MB / 0.5749 GB, free: 8.418 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 9.783e-05/0.6648, allocations: 7.984 kB / 0.5749 GB, free: 8.41 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.751e-05/0.6648, allocations: 15.44 kB / 0.5749 GB, free: 8.395 MB / 478.1 MB Notification: Performance of SimCode: time 2.5e-07/0.6648, allocations: 7.938 kB / 0.5749 GB, free: 8.387 MB / 478.1 MB Notification: Performance of Templates: time 0.2864/0.9512, allocations: 29.91 MB / 0.6042 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)