Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.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.MediaTestModels.PentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001115/0.001114, allocations: 109.2 kB / 16.37 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.001035/0.001035, 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.302/1.302, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0464/0.0464, allocations: 9.085 MB / 279.6 MB, free: 2.98 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.001377/0.001377, allocations: 67.91 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1948/0.1961, allocations: 48.14 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.109/0.3051, allocations: 128.7 MB / 0.5042 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.2664/0.5716, allocations: 111.2 MB / 0.6127 GB, free: 14.5 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005132/0.5721, allocations: 8.219 kB / 0.6128 GB, free: 14.5 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002592/0.5748, allocations: 1.391 MB / 0.6141 GB, free: 14.18 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003266/0.578, allocations: 1.658 MB / 0.6157 GB, free: 13.79 MB / 430.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'. Notification: Performance of NFTyping.typeClassSections: time 0.06933/0.6474, allocations: 29.32 MB / 0.6444 GB, free: 10.02 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001946/0.6494, allocations: 1.426 MB / 0.6458 GB, free: 8.621 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000248/0.6496, allocations: 132.3 kB / 0.6459 GB, free: 8.5 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009443/0.6506, allocations: 0.5897 MB / 0.6465 GB, free: 7.93 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004593/0.6511, allocations: 380 kB / 0.6468 GB, free: 7.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.635e-05/0.6511, allocations: 44 kB / 0.6469 GB, free: 7.547 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05731/0.7084, allocations: 35 MB / 0.681 GB, free: 5.664 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002222/0.7087, allocations: 119.5 kB / 0.6812 GB, free: 5.551 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004895/0.7092, allocations: 312.3 kB / 0.6815 GB, free: 5.25 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03815/0.7474, allocations: 13.92 MB / 0.6951 GB, free: 8.414 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.7474, allocations: 0 / 0.6951 GB, free: 8.414 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.7474, allocations: 4 kB / 0.6951 GB, free: 8.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.405e-06/0.7474, allocations: 0 / 0.6951 GB, free: 8.41 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.005634/0.7531, allocations: 2.57 MB / 0.6976 GB, free: 5.797 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.566e-05/0.7531, allocations: 8.031 kB / 0.6976 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006463/0.7538, allocations: 91.39 kB / 0.6977 GB, free: 5.699 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005102/0.7543, allocations: 336.3 kB / 0.698 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.527e-05/0.7543, allocations: 32.66 kB / 0.698 GB, free: 5.301 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.272e-05/0.7544, allocations: 31.94 kB / 0.698 GB, free: 5.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.7557, allocations: 0.6 MB / 0.6986 GB, free: 4.652 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/0.7557, allocations: 3.938 kB / 0.6986 GB, free: 4.648 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.76e-05/0.7557, allocations: 20 kB / 0.6987 GB, free: 4.629 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.062e-05/0.7558, allocations: 16.28 kB / 0.6987 GB, free: 4.617 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001294/0.7571, allocations: 0.5485 MB / 0.6992 GB, free: 4.074 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.7597, allocations: 2.547 MB / 0.7017 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00114/0.7608, allocations: 0.4993 MB / 0.7022 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005264/0.7614, allocations: 340.5 kB / 0.7025 GB, free: 480 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4352/1.197, allocations: 139 MB / 0.8382 GB, free: 17.4 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.336e-05/1.197, allocations: 36.66 kB / 0.8383 GB, free: 17.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 3.677e-06/1.197, allocations: 0 / 0.8383 GB, free: 17.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.005936/1.203, allocations: 2.33 MB / 0.8405 GB, free: 16.88 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.092e-05/1.203, allocations: 56.59 kB / 0.8406 GB, free: 16.81 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002743/1.203, allocations: 255.4 kB / 0.8408 GB, free: 16.7 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 4.296e-05/1.203, allocations: 37.03 kB / 0.8409 GB, free: 16.67 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 9.621e-05/1.203, allocations: 185.4 kB / 0.841 GB, free: 16.56 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001515/1.203, allocations: 260.8 kB / 0.8413 GB, free: 16.4 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001216/1.203, allocations: 96.92 kB / 0.8414 GB, free: 16.38 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.000136/1.204, allocations: 356.7 kB / 0.8417 GB, free: 16.07 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004405/1.204, allocations: 272.6 kB / 0.842 GB, free: 16.06 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/1.204, allocations: 394.1 kB / 0.8424 GB, free: 15.93 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009275/1.205, allocations: 0.7048 MB / 0.843 GB, free: 15.79 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.947e-06/1.205, allocations: 0 / 0.843 GB, free: 15.79 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001336/1.207, allocations: 0.7839 MB / 0.8438 GB, free: 15.69 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.952e-05/1.207, allocations: 7.438 kB / 0.8438 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.07e-05/1.207, allocations: 3.875 kB / 0.8438 GB, free: 15.69 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002416/1.207, allocations: 67.19 kB / 0.8439 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003822/1.207, allocations: 101.4 kB / 0.844 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06864/1.276, allocations: 16.61 MB / 0.8602 GB, free: 22.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004516/1.277, allocations: 30.3 kB / 0.8602 GB, free: 22.58 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.049e-05/1.277, allocations: 19.75 kB / 0.8603 GB, free: 22.57 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (ambient.medium.sat.vap.phase,ambient.medium.sat.liq.phase,ambient.medium.state.phase,fixedMassFlowRate.medium.sat.vap.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.state.phase,volume.medium.sat.vap.phase,volume.medium.sat.liq.phase,volume.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002969/1.277, allocations: 185.8 kB / 0.8604 GB, free: 22.43 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000133/1.277, allocations: 43.53 kB / 0.8605 GB, free: 22.38 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001783/1.279, allocations: 1.544 MB / 0.862 GB, free: 21.54 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.768e-05/1.279, allocations: 9.297 kB / 0.862 GB, free: 21.54 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/1.279, allocations: 1.312 kB / 0.862 GB, free: 21.54 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001291/1.28, allocations: 1.146 MB / 0.8631 GB, free: 20.66 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002087/1.282, allocations: 1.592 MB / 0.8647 GB, free: 19.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.219e-06/1.282, allocations: 0 / 0.8647 GB, free: 19.74 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003458/1.283, allocations: 81.53 kB / 0.8647 GB, free: 19.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002129/1.283, allocations: 47.09 kB / 0.8648 GB, free: 19.65 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/1.283, allocations: 9.688 kB / 0.8648 GB, free: 19.65 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001033/1.284, allocations: 1.429 MB / 0.8662 GB, free: 18.2 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.284, allocations: 0 / 0.8662 GB, free: 18.2 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001681/1.286, allocations: 1.166 MB / 0.8673 GB, free: 17.5 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001609/1.286, allocations: 129.6 kB / 0.8675 GB, free: 17.36 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.321e-05/1.286, allocations: 11.31 kB / 0.8675 GB, free: 17.35 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003336/1.286, allocations: 23.06 kB / 0.8675 GB, free: 17.34 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/1.286, allocations: 44.91 kB / 0.8675 GB, free: 17.32 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.13e-05/1.286, allocations: 17.38 kB / 0.8675 GB, free: 17.31 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002494/1.287, allocations: 241.5 kB / 0.8678 GB, free: 17.14 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.2e-07/1.287, allocations: 0 / 0.8678 GB, free: 17.14 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.008815/1.296, allocations: 3.518 MB / 0.8712 GB, free: 14.29 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.phase,volume.medium.state.phase,volume.medium.sat.liq.phase,volume.medium.sat.vap.phase,fixedMassFlowRate.medium.state.phase,fixedMassFlowRate.medium.sat.liq.phase,fixedMassFlowRate.medium.sat.vap.phase,ambient.medium.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01642/1.312, allocations: 4.447 MB / 0.8756 GB, free: 11.25 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.00232/1.314, allocations: 0.9585 MB / 0.8765 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.314, allocations: 4.188 kB / 0.8765 GB, free: 10.61 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000789/1.315, allocations: 489.3 kB / 0.877 GB, free: 10.31 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/1.317, allocations: 404.4 kB / 0.8773 GB, free: 10.05 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001534/1.319, allocations: 1.149 MB / 0.8785 GB, free: 9.133 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003678/1.319, allocations: 0.8525 MB / 0.8793 GB, free: 8.312 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0003759/1.319, allocations: 158.3 kB / 0.8795 GB, free: 8.211 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.224e-05/1.319, allocations: 45.58 kB / 0.8795 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of SimCode: time 5.71e-07/1.319, allocations: 0 / 0.8795 GB, free: 8.172 MB / 0.5606 GB Notification: Performance of Templates: time 0.2953/1.615, allocations: 125.7 MB / 1.002 GB, free: 278.2 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)