Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.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.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006114/0.006114, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001326/0.001326, allocations: 194.2 kB / 16.67 MB, free: 5.977 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.43/1.43, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04541/0.04541, allocations: 9.1 MB / 279 MB, free: 12.09 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.001494/0.001494, allocations: 67.89 kB / 387.5 MB, free: 7.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3043/0.3058, allocations: 48.14 MB / 435.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel): time 0.1382/0.444, allocations: 128.6 MB / 0.551 GB, free: 15.72 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4024/0.8465, allocations: 111 MB / 0.6595 GB, free: 252 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006722/0.8472, allocations: 8.375 kB / 0.6595 GB, free: 252 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003413/0.8507, allocations: 1.368 MB / 0.6608 GB, free: 240 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003797/0.8545, allocations: 1.654 MB / 0.6624 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.0885/0.943, allocations: 29.25 MB / 0.691 GB, free: 7.312 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002026/0.9451, allocations: 1.402 MB / 0.6924 GB, free: 6.305 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000284/0.9454, allocations: 128.7 kB / 0.6925 GB, free: 6.207 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01815/0.9636, allocations: 10.5 MB / 0.7027 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006804/0.9643, allocations: 381.5 kB / 0.7031 GB, free: 13.64 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.624e-05/0.9644, allocations: 40 kB / 0.7031 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07203/1.036, allocations: 34.52 MB / 0.7369 GB, free: 13.95 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0004495/1.037, allocations: 125 kB / 0.737 GB, free: 13.83 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000773/1.038, allocations: 306.6 kB / 0.7373 GB, free: 13.53 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05623/1.094, allocations: 13.93 MB / 0.7509 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 7.323e-06/1.094, allocations: 0 / 0.7509 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.114e-06/1.094, allocations: 0 / 0.7509 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.116e-05/1.094, allocations: 0 / 0.7509 GB, free: 0.6797 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.007413/1.101, allocations: 2.564 MB / 0.7534 GB, free: 14.07 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/1.102, allocations: 15.97 kB / 0.7534 GB, free: 14.05 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006613/1.102, allocations: 91.39 kB / 0.7535 GB, free: 13.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005583/1.103, allocations: 333.6 kB / 0.7538 GB, free: 13.6 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.092e-05/1.103, allocations: 32.66 kB / 0.7538 GB, free: 13.57 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.289e-05/1.103, allocations: 32 kB / 0.7539 GB, free: 13.54 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001402/1.104, allocations: 0.6079 MB / 0.7545 GB, free: 12.92 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.135e-05/1.104, allocations: 3.562 kB / 0.7545 GB, free: 12.92 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.152e-05/1.104, allocations: 16 kB / 0.7545 GB, free: 12.9 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.274e-05/1.104, allocations: 8 kB / 0.7545 GB, free: 12.89 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001331/1.106, allocations: 0.552 MB / 0.755 GB, free: 12.35 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003071/1.109, allocations: 2.466 MB / 0.7574 GB, free: 9.684 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001145/1.11, allocations: 0.4916 MB / 0.7579 GB, free: 9.188 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005413/1.111, allocations: 338.5 kB / 0.7582 GB, free: 8.855 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4688/1.579, allocations: 139 MB / 0.894 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.217e-05/1.579, allocations: 35.34 kB / 0.894 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.216e-06/1.579, allocations: 6 kB / 0.894 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005472/1.585, allocations: 2.321 MB / 0.8963 GB, free: 218.1 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.794e-05/1.585, allocations: 63.09 kB / 0.8963 GB, free: 218 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002072/1.585, allocations: 263 kB / 0.8966 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.341e-05/1.585, allocations: 29.7 kB / 0.8966 GB, free: 217.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.071e-05/1.585, allocations: 198.7 kB / 0.8968 GB, free: 217.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001071/1.585, allocations: 262 kB / 0.897 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001097/1.586, allocations: 97.8 kB / 0.8971 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.176e-05/1.586, allocations: 354.8 kB / 0.8975 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004144/1.586, allocations: 269.3 kB / 0.8977 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004605/1.587, allocations: 397.6 kB / 0.8981 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008891/1.587, allocations: 0.6946 MB / 0.8988 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/1.587, allocations: 2.625 kB / 0.8988 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001219/1.589, allocations: 0.7975 MB / 0.8996 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/1.589, allocations: 9.125 kB / 0.8996 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/1.589, allocations: 3.094 kB / 0.8996 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00025/1.589, allocations: 61.67 kB / 0.8996 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006595/1.59, allocations: 139 kB / 0.8998 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06448/1.654, allocations: 18.42 MB / 0.9178 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004777/1.655, allocations: 34.98 kB / 0.9178 GB, free: 195.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.277e-05/1.655, allocations: 20 kB / 0.9178 GB, free: 195.3 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * 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): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 3 systems {1, 1, 1} * Without analytic Jacobian (size): 0 systems 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.0002578/1.655, allocations: 188 kB / 0.918 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.474e-05/1.655, allocations: 47.45 kB / 0.918 GB, free: 195.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/1.657, allocations: 1.71 MB / 0.9197 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/1.657, allocations: 11.98 kB / 0.9197 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/1.657, allocations: 0 / 0.9197 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001274/1.658, allocations: 1.296 MB / 0.921 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001983/1.66, allocations: 1.75 MB / 0.9227 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/1.66, allocations: 0 / 0.9227 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003052/1.66, allocations: 71.88 kB / 0.9228 GB, free: 190 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/1.661, allocations: 170.1 kB / 0.9229 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.449e-05/1.661, allocations: 15.94 kB / 0.9229 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001185/1.662, allocations: 2.568 MB / 0.9254 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.662, allocations: 0 / 0.9254 GB, free: 187.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00167/1.664, allocations: 1.37 MB / 0.9268 GB, free: 185.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.739e-05/1.664, allocations: 120.5 kB / 0.9269 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.767e-05/1.664, allocations: 4 kB / 0.9269 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/1.664, allocations: 36.03 kB / 0.9269 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000103/1.664, allocations: 43.88 kB / 0.927 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.399e-05/1.664, allocations: 11.98 kB / 0.927 GB, free: 185.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002021/1.664, allocations: 227.1 kB / 0.9272 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.5e-07/1.664, allocations: 0 / 0.9272 GB, free: 185.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009944/1.674, allocations: 3.511 MB / 0.9306 GB, free: 182.2 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01872/1.693, allocations: 4.457 MB / 0.935 GB, free: 178.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002374/1.696, allocations: 1.062 MB / 0.936 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/1.696, allocations: 4 kB / 0.936 GB, free: 177.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007186/1.696, allocations: 0.5072 MB / 0.9365 GB, free: 176.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001999/1.698, allocations: 397.5 kB / 0.9369 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/1.7, allocations: 1.178 MB / 0.9381 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002488/1.7, allocations: 0.8526 MB / 0.9389 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003815/1.701, allocations: 152.1 kB / 0.939 GB, free: 174.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.749e-05/1.701, allocations: 43.44 kB / 0.9391 GB, free: 174 MB / 0.6075 GB Notification: Performance of SimCode: time 6.41e-07/1.701, allocations: 0 / 0.9391 GB, free: 174 MB / 0.6075 GB Notification: Performance of Templates: time 0.1371/1.838, allocations: 126.8 MB / 1.063 GB, free: 47.09 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsopentaneTestModel.pipe 2>&1)