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.001438/0.001439, allocations: 105.7 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.002451/0.002451, allocations: 190.5 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 1.906/1.906, allocations: 205.1 MB / 223.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05177/0.05177, allocations: 9.094 MB / 279.6 MB, free: 2.957 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.001619/0.001619, allocations: 67.91 kB / 339.5 MB, free: 6.977 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4159/0.4175, allocations: 48.14 MB / 387.6 MB, free: 51.48 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.1654/0.583, allocations: 128.7 MB / 0.5042 GB, free: 10.36 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.5807/1.164, allocations: 111.2 MB / 0.6127 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009604/1.165, allocations: 8.219 kB / 0.6127 GB, free: 14.49 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004485/1.169, allocations: 1.387 MB / 0.6141 GB, free: 14.16 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005264/1.175, allocations: 1.655 MB / 0.6157 GB, free: 13.78 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.1201/1.295, allocations: 29.32 MB / 0.6443 GB, free: 10.03 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003082/1.298, allocations: 1.423 MB / 0.6457 GB, free: 8.633 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003875/1.298, allocations: 128.8 kB / 0.6459 GB, free: 8.516 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001675/1.3, allocations: 0.5905 MB / 0.6464 GB, free: 7.945 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006982/1.301, allocations: 380 kB / 0.6468 GB, free: 7.602 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 7.526e-05/1.301, allocations: 40 kB / 0.6468 GB, free: 7.562 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09229/1.393, allocations: 35.01 MB / 0.681 GB, free: 5.691 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004724/1.394, allocations: 122.9 kB / 0.6811 GB, free: 5.574 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009252/1.395, allocations: 310 kB / 0.6814 GB, free: 5.273 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.08183/1.476, allocations: 13.92 MB / 0.695 GB, free: 8.434 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.208e-05/1.477, allocations: 4 kB / 0.695 GB, free: 8.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.416e-06/1.477, allocations: 4 kB / 0.695 GB, free: 8.426 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.368e-05/1.477, allocations: 0 / 0.695 GB, free: 8.426 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.009936/1.487, allocations: 2.561 MB / 0.6975 GB, free: 5.82 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.82e-05/1.487, allocations: 8.031 kB / 0.6976 GB, free: 5.812 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008855/1.488, allocations: 99.33 kB / 0.6976 GB, free: 5.715 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008434/1.488, allocations: 339.9 kB / 0.698 GB, free: 5.348 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.947e-05/1.489, allocations: 36.64 kB / 0.698 GB, free: 5.312 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.905e-05/1.489, allocations: 32 kB / 0.698 GB, free: 5.281 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001562/1.49, allocations: 0.5963 MB / 0.6986 GB, free: 4.668 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.465e-05/1.49, allocations: 7.938 kB / 0.6986 GB, free: 4.66 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.708e-05/1.49, allocations: 16 kB / 0.6986 GB, free: 4.645 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.819e-05/1.49, allocations: 10.66 kB / 0.6987 GB, free: 4.637 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001518/1.492, allocations: 0.5478 MB / 0.6992 GB, free: 4.094 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003673/1.496, allocations: 2.547 MB / 0.7017 GB, free: 1.324 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001385/1.497, allocations: 0.4992 MB / 0.7022 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006058/1.498, allocations: 350.9 kB / 0.7025 GB, free: 496 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6927/2.19, allocations: 139 MB / 0.8382 GB, free: 17.26 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.973e-05/2.19, allocations: 40.16 kB / 0.8383 GB, free: 17.22 MB / 0.545 GB Notification: Performance of pre-optimization done (n=79): time 7.544e-06/2.19, allocations: 5.969 kB / 0.8383 GB, free: 17.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=83): time 0.008219/2.199, allocations: 2.324 MB / 0.8405 GB, free: 16.73 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.072e-05/2.199, allocations: 56.31 kB / 0.8406 GB, free: 16.67 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003675/2.199, allocations: 253.7 kB / 0.8408 GB, free: 16.56 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 6.778e-05/2.199, allocations: 32.02 kB / 0.8409 GB, free: 16.53 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001636/2.199, allocations: 183.5 kB / 0.841 GB, free: 16.42 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002432/2.2, allocations: 271.1 kB / 0.8413 GB, free: 16.26 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000207/2.2, allocations: 98.44 kB / 0.8414 GB, free: 16.25 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001964/2.2, allocations: 352.3 kB / 0.8417 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005353/2.201, allocations: 272 kB / 0.842 GB, free: 15.93 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005971/2.201, allocations: 402 kB / 0.8424 GB, free: 15.8 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001111/2.202, allocations: 0.6962 MB / 0.843 GB, free: 15.65 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.973e-06/2.202, allocations: 7.609 kB / 0.843 GB, free: 15.65 MB / 0.545 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001599/2.204, allocations: 0.7812 MB / 0.8438 GB, free: 15.55 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 2.536e-05/2.204, allocations: 7.875 kB / 0.8438 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/2.204, allocations: 3.906 kB / 0.8438 GB, free: 15.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002733/2.204, allocations: 67.17 kB / 0.8439 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/2.205, allocations: 100.8 kB / 0.844 GB, free: 15.54 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06923/2.274, allocations: 16.6 MB / 0.8602 GB, free: 22.32 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005825/2.275, allocations: 23.48 kB / 0.8602 GB, free: 22.3 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.558e-05/2.275, allocations: 23.16 kB / 0.8602 GB, free: 22.29 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.0004456/2.275, allocations: 193.3 kB / 0.8604 GB, free: 22.14 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001898/2.275, allocations: 39.59 kB / 0.8605 GB, free: 22.1 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002359/2.278, allocations: 1.544 MB / 0.862 GB, free: 21.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.469e-05/2.278, allocations: 9.906 kB / 0.862 GB, free: 21.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.621e-06/2.278, allocations: 4 kB / 0.862 GB, free: 21.26 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001574/2.279, allocations: 1.146 MB / 0.8631 GB, free: 20.39 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002608/2.282, allocations: 1.595 MB / 0.8647 GB, free: 19.46 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/2.282, allocations: 0 / 0.8647 GB, free: 19.46 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003272/2.282, allocations: 81.09 kB / 0.8647 GB, free: 19.41 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001996/2.283, allocations: 46.48 kB / 0.8648 GB, free: 19.38 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.776e-05/2.283, allocations: 8.219 kB / 0.8648 GB, free: 19.38 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001167/2.284, allocations: 1.426 MB / 0.8662 GB, free: 17.93 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/2.284, allocations: 9 kB / 0.8662 GB, free: 17.92 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001908/2.286, allocations: 1.158 MB / 0.8673 GB, free: 17.22 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/2.286, allocations: 126.7 kB / 0.8674 GB, free: 17.09 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.539e-05/2.286, allocations: 15.69 kB / 0.8675 GB, free: 17.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/2.286, allocations: 22.88 kB / 0.8675 GB, free: 17.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/2.287, allocations: 44.48 kB / 0.8675 GB, free: 17.05 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.068e-05/2.287, allocations: 11.81 kB / 0.8675 GB, free: 17.04 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0002559/2.287, allocations: 241.6 kB / 0.8678 GB, free: 16.87 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.41e-07/2.287, allocations: 0 / 0.8678 GB, free: 16.87 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.01227/2.299, allocations: 3.517 MB / 0.8712 GB, free: 14.02 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.0217/2.321, allocations: 4.443 MB / 0.8755 GB, free: 10.97 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.002202/2.323, allocations: 0.9586 MB / 0.8765 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.823e-06/2.323, allocations: 192 / 0.8765 GB, free: 10.35 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0009916/2.324, allocations: 499.9 kB / 0.877 GB, free: 10.04 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/2.326, allocations: 406.7 kB / 0.8773 GB, free: 9.777 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002187/2.329, allocations: 1.146 MB / 0.8785 GB, free: 8.859 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005461/2.329, allocations: 0.8548 MB / 0.8793 GB, free: 8.039 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0005701/2.33, allocations: 169.7 kB / 0.8795 GB, free: 7.934 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001423/2.33, allocations: 43.38 kB / 0.8795 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of SimCode: time 9.02e-07/2.33, allocations: 0 / 0.8795 GB, free: 7.895 MB / 0.5606 GB Notification: Performance of Templates: time 0.4857/2.816, allocations: 125.7 MB / 1.002 GB, free: 277.8 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 cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)