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.007694/0.007693, allocations: 99.8 kB / 15.73 MB, free: 6.039 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.00181/0.00181, allocations: 202.8 kB / 16.68 MB, free: 5.965 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.377/1.377, allocations: 205.1 MB / 222.5 MB, free: 4.266 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05188/0.05188, allocations: 9.092 MB / 279 MB, free: 11.96 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.001342/0.001342, allocations: 71.83 kB / 387.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2843/0.2856, allocations: 48.14 MB / 435.7 MB, free: 7.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.1382/0.4239, allocations: 128.7 MB / 0.5511 GB, free: 15.6 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3567/0.7806, allocations: 111.1 MB / 0.6597 GB, free: 252 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005082/0.7811, allocations: 12.38 kB / 0.6597 GB, free: 248 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002809/0.784, allocations: 1.378 MB / 0.661 GB, free: 240 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003155/0.7872, allocations: 1.665 MB / 0.6627 GB, free: 192 kB / 478.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.07695/0.8641, allocations: 29.33 MB / 0.6913 GB, free: 7.203 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.866, allocations: 1.416 MB / 0.6927 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002467/0.8662, allocations: 126.5 kB / 0.6928 GB, free: 6.094 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00097/0.8672, allocations: 0.5987 MB / 0.6934 GB, free: 5.652 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004625/0.8677, allocations: 381.5 kB / 0.6938 GB, free: 5.352 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.385e-05/0.8678, allocations: 40 kB / 0.6938 GB, free: 5.312 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06154/0.9293, allocations: 35.01 MB / 0.728 GB, free: 6.809 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002411/0.9296, allocations: 113.8 kB / 0.7281 GB, free: 6.699 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004953/0.9301, allocations: 306.6 kB / 0.7284 GB, free: 6.402 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04219/0.9723, allocations: 13.97 MB / 0.742 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.9723, allocations: 0 / 0.742 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.813e-06/0.9723, allocations: 0 / 0.742 GB, free: 9.504 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.477e-06/0.9724, allocations: 0 / 0.742 GB, free: 9.504 MB / 0.5294 GB 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.006756/0.9791, allocations: 2.677 MB / 0.7446 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.959e-05/0.9792, allocations: 12.03 kB / 0.7447 GB, free: 6.77 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006575/0.9799, allocations: 87.62 kB / 0.7447 GB, free: 6.684 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005416/0.9804, allocations: 350.9 kB / 0.7451 GB, free: 6.305 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.419e-05/0.9805, allocations: 28.66 kB / 0.7451 GB, free: 6.277 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.597e-05/0.9805, allocations: 35.98 kB / 0.7451 GB, free: 6.242 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001303/0.9818, allocations: 0.601 MB / 0.7457 GB, free: 5.621 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.893e-05/0.9819, allocations: 3.953 kB / 0.7457 GB, free: 5.617 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.699e-05/0.9819, allocations: 12 kB / 0.7457 GB, free: 5.605 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.9819, allocations: 18.19 kB / 0.7458 GB, free: 5.59 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001297/0.9832, allocations: 0.5454 MB / 0.7463 GB, free: 5.047 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002473/0.9857, allocations: 2.545 MB / 0.7488 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001211/0.9869, allocations: 0.4999 MB / 0.7493 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005374/0.9875, allocations: 344.3 kB / 0.7496 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4996/1.487, allocations: 139 MB / 0.8853 GB, free: 71.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.177e-05/1.487, allocations: 40.78 kB / 0.8853 GB, free: 71.56 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 2.565e-06/1.487, allocations: 0 / 0.8853 GB, free: 71.56 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005549/1.493, allocations: 2.339 MB / 0.8876 GB, free: 71.08 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.241e-05/1.493, allocations: 59.06 kB / 0.8877 GB, free: 71.02 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002311/1.493, allocations: 258.8 kB / 0.8879 GB, free: 70.91 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.806e-05/1.493, allocations: 31.52 kB / 0.888 GB, free: 70.88 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.211e-05/1.493, allocations: 184.7 kB / 0.8881 GB, free: 70.76 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001458/1.493, allocations: 279.9 kB / 0.8884 GB, free: 70.61 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001307/1.494, allocations: 100.6 kB / 0.8885 GB, free: 70.59 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.937e-05/1.494, allocations: 354.6 kB / 0.8888 GB, free: 70.28 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005185/1.494, allocations: 268.6 kB / 0.8891 GB, free: 70.27 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006032/1.495, allocations: 393.7 kB / 0.8895 GB, free: 70.14 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001191/1.496, allocations: 0.7079 MB / 0.8902 GB, free: 69.99 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/1.496, allocations: 0 / 0.8902 GB, free: 69.99 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001445/1.497, allocations: 0.7863 MB / 0.8909 GB, free: 69.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.576e-05/1.497, allocations: 7.812 kB / 0.8909 GB, free: 69.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/1.497, allocations: 3.656 kB / 0.8909 GB, free: 69.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002746/1.498, allocations: 69.81 kB / 0.891 GB, free: 69.88 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003846/1.498, allocations: 95.86 kB / 0.8911 GB, free: 69.88 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06457/1.563, allocations: 16.61 MB / 0.9073 GB, free: 63.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004553/1.563, allocations: 23.91 kB / 0.9073 GB, free: 63.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/1.563, allocations: 28.5 kB / 0.9074 GB, free: 63.69 MB / 0.6075 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.0002559/1.564, allocations: 197.7 kB / 0.9076 GB, free: 63.57 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.767e-05/1.564, allocations: 38.77 kB / 0.9076 GB, free: 63.55 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001629/1.565, allocations: 1.549 MB / 0.9091 GB, free: 63.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.549e-05/1.565, allocations: 18.34 kB / 0.9091 GB, free: 63.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/1.565, allocations: 0 / 0.9091 GB, free: 63.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001157/1.566, allocations: 1.141 MB / 0.9102 GB, free: 62.82 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001869/1.568, allocations: 1.592 MB / 0.9118 GB, free: 62.46 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/1.568, allocations: 3.375 kB / 0.9118 GB, free: 62.46 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003164/1.569, allocations: 79.83 kB / 0.9119 GB, free: 62.46 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000186/1.569, allocations: 47.73 kB / 0.9119 GB, free: 62.45 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.369e-05/1.569, allocations: 9.438 kB / 0.9119 GB, free: 62.45 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006995/1.57, allocations: 1.428 MB / 0.9133 GB, free: 61.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/1.57, allocations: 0 / 0.9133 GB, free: 61.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/1.571, allocations: 1.178 MB / 0.9145 GB, free: 60.89 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.635e-05/1.571, allocations: 120.2 kB / 0.9146 GB, free: 60.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.707e-05/1.571, allocations: 11.58 kB / 0.9146 GB, free: 60.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002926/1.572, allocations: 23.98 kB / 0.9146 GB, free: 60.77 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/1.572, allocations: 46.59 kB / 0.9147 GB, free: 60.77 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.611e-05/1.572, allocations: 14.91 kB / 0.9147 GB, free: 60.77 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002105/1.572, allocations: 241.4 kB / 0.9149 GB, free: 60.68 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.51e-07/1.572, allocations: 5.812 kB / 0.9149 GB, free: 60.68 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007409/1.579, allocations: 3.579 MB / 0.9184 GB, free: 60.04 MB / 0.6075 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.0146/1.594, allocations: 4.497 MB / 0.9228 GB, free: 56.66 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001683/1.596, allocations: 0.9629 MB / 0.9237 GB, free: 56.03 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.743e-06/1.596, allocations: 1.75 kB / 0.9237 GB, free: 56.03 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007595/1.597, allocations: 498 kB / 0.9242 GB, free: 55.71 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001903/1.598, allocations: 394.6 kB / 0.9246 GB, free: 55.46 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/1.6, allocations: 1.165 MB / 0.9257 GB, free: 54.54 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002236/1.6, allocations: 0.8556 MB / 0.9266 GB, free: 53.71 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003565/1.601, allocations: 157.4 kB / 0.9267 GB, free: 53.61 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.197e-05/1.601, allocations: 42.25 kB / 0.9268 GB, free: 53.57 MB / 0.6075 GB Notification: Performance of SimCode: time 4.41e-07/1.601, allocations: 7.938 kB / 0.9268 GB, free: 53.56 MB / 0.6075 GB Notification: Performance of Templates: time 0.3389/1.94, allocations: 125.8 MB / 1.05 GB, free: 340.3 MB / 0.67 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel.pipe 2>&1)