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.005572/0.005572, allocations: 100.7 kB / 15.73 MB, free: 6.008 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.001272/0.001272, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.227/1.227, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0434/0.0434, allocations: 9.092 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.001346/0.001346, allocations: 67.84 kB / 387.5 MB, free: 7.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2253, allocations: 48.15 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.PentaneTestModel): time 0.1188/0.3441, allocations: 128.7 MB / 0.5511 GB, free: 15.58 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2794/0.6236, allocations: 111.1 MB / 0.6597 GB, free: 248 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004371/0.624, allocations: 9.062 kB / 0.6597 GB, free: 248 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.6266, allocations: 1.602 MB / 0.6612 GB, free: 236 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002657/0.6292, allocations: 1.868 MB / 0.6631 GB, free: 188 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.06091/0.6901, allocations: 31.36 MB / 0.6937 GB, free: 6.461 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001589/0.6917, allocations: 1.429 MB / 0.6951 GB, free: 5.434 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000206/0.692, allocations: 120.2 kB / 0.6952 GB, free: 5.344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007772/0.6927, allocations: 0.6035 MB / 0.6958 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004165/0.6932, allocations: 385.4 kB / 0.6962 GB, free: 4.598 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.423e-05/0.6932, allocations: 44 kB / 0.6962 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05236/0.7456, allocations: 35.01 MB / 0.7304 GB, free: 4.316 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002209/0.7459, allocations: 122.9 kB / 0.7305 GB, free: 4.199 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0004732/0.7463, allocations: 305.9 kB / 0.7308 GB, free: 3.902 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03346/0.7798, allocations: 13.93 MB / 0.7444 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.7798, allocations: 0 / 0.7444 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.906e-06/0.7799, allocations: 0 / 0.7444 GB, free: 7.055 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.153e-06/0.7799, allocations: 3.938 kB / 0.7444 GB, free: 7.051 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.00478/0.7847, allocations: 2.571 MB / 0.7469 GB, free: 4.438 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.394e-05/0.7847, allocations: 12.02 kB / 0.7469 GB, free: 4.426 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005664/0.7853, allocations: 87.31 kB / 0.747 GB, free: 4.34 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003869/0.7857, allocations: 338.2 kB / 0.7473 GB, free: 3.973 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.258e-05/0.7857, allocations: 36.59 kB / 0.7474 GB, free: 3.938 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.054e-05/0.7858, allocations: 32 kB / 0.7474 GB, free: 3.906 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001193/0.787, allocations: 0.5997 MB / 0.748 GB, free: 3.293 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.787, allocations: 7.938 kB / 0.748 GB, free: 3.285 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.515e-05/0.787, allocations: 23.98 kB / 0.748 GB, free: 3.262 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.62e-05/0.7871, allocations: 10.11 kB / 0.748 GB, free: 3.254 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001223/0.7883, allocations: 0.5481 MB / 0.7486 GB, free: 2.711 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002238/0.7905, allocations: 2.541 MB / 0.751 GB, free: 15.95 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001071/0.7916, allocations: 0.5028 MB / 0.7515 GB, free: 15.44 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005073/0.7921, allocations: 341.1 kB / 0.7519 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4136/1.206, allocations: 139 MB / 0.8876 GB, free: 68.97 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/1.206, allocations: 40.81 kB / 0.8876 GB, free: 68.93 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.256e-06/1.206, allocations: 0 / 0.8876 GB, free: 68.93 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005085/1.211, allocations: 2.323 MB / 0.8899 GB, free: 68.46 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.094e-05/1.211, allocations: 58.41 kB / 0.8899 GB, free: 68.39 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002137/1.211, allocations: 255.2 kB / 0.8902 GB, free: 68.29 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/1.211, allocations: 29.14 kB / 0.8902 GB, free: 68.26 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.204e-05/1.211, allocations: 189.3 kB / 0.8904 GB, free: 68.14 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001056/1.211, allocations: 267.5 kB / 0.8906 GB, free: 67.99 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001028/1.212, allocations: 103.6 kB / 0.8907 GB, free: 67.97 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.269e-05/1.212, allocations: 353.5 kB / 0.8911 GB, free: 67.66 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004155/1.212, allocations: 267.3 kB / 0.8913 GB, free: 67.65 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004508/1.212, allocations: 400.3 kB / 0.8917 GB, free: 67.52 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008856/1.213, allocations: 0.7025 MB / 0.8924 GB, free: 67.38 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/1.213, allocations: 3.656 kB / 0.8924 GB, free: 67.38 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001218/1.215, allocations: 0.7893 MB / 0.8932 GB, free: 67.28 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/1.215, allocations: 3.625 kB / 0.8932 GB, free: 67.28 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/1.215, allocations: 8.812 kB / 0.8932 GB, free: 67.28 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002128/1.215, allocations: 59.62 kB / 0.8932 GB, free: 67.26 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003778/1.215, allocations: 96.02 kB / 0.8933 GB, free: 67.26 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06154/1.277, allocations: 16.6 MB / 0.9095 GB, free: 61.05 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/1.277, allocations: 32.75 kB / 0.9096 GB, free: 61.05 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-05/1.277, allocations: 14.97 kB / 0.9096 GB, free: 61.05 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.0002518/1.278, allocations: 199.9 kB / 0.9098 GB, free: 60.93 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/1.278, allocations: 43.03 kB / 0.9098 GB, free: 60.9 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001662/1.279, allocations: 1.542 MB / 0.9113 GB, free: 60.65 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.85e-05/1.279, allocations: 9.953 kB / 0.9113 GB, free: 60.65 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/1.279, allocations: 3.188 kB / 0.9113 GB, free: 60.65 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001124/1.281, allocations: 1.147 MB / 0.9125 GB, free: 60.16 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/1.282, allocations: 1.583 MB / 0.914 GB, free: 59.82 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/1.282, allocations: 1.172 kB / 0.914 GB, free: 59.82 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003013/1.283, allocations: 86.58 kB / 0.9141 GB, free: 59.82 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001762/1.283, allocations: 44.81 kB / 0.9141 GB, free: 59.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.482e-05/1.283, allocations: 14.38 kB / 0.9141 GB, free: 59.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006982/1.284, allocations: 1.415 MB / 0.9155 GB, free: 58.46 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/1.284, allocations: 4 kB / 0.9155 GB, free: 58.45 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/1.285, allocations: 1.187 MB / 0.9167 GB, free: 58.23 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.272e-05/1.285, allocations: 112.4 kB / 0.9168 GB, free: 58.12 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.283e-05/1.285, allocations: 20.22 kB / 0.9168 GB, free: 58.11 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002906/1.286, allocations: 20.5 kB / 0.9168 GB, free: 58.11 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.872e-05/1.286, allocations: 46.53 kB / 0.9169 GB, free: 58.11 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.659e-05/1.286, allocations: 14.7 kB / 0.9169 GB, free: 58.11 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001921/1.286, allocations: 238.3 kB / 0.9171 GB, free: 58.02 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.51e-07/1.286, allocations: 0 / 0.9171 GB, free: 58.02 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008078/1.294, allocations: 3.52 MB / 0.9206 GB, free: 57.6 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.01432/1.308, allocations: 4.451 MB / 0.9249 GB, free: 54.55 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00169/1.31, allocations: 0.9487 MB / 0.9258 GB, free: 53.93 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.428e-06/1.31, allocations: 7.625 kB / 0.9258 GB, free: 53.93 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007523/1.311, allocations: 491.7 kB / 0.9263 GB, free: 53.62 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001891/1.313, allocations: 399.8 kB / 0.9267 GB, free: 53.37 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001456/1.314, allocations: 1.149 MB / 0.9278 GB, free: 52.45 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002177/1.315, allocations: 0.8553 MB / 0.9286 GB, free: 51.63 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003676/1.315, allocations: 159.1 kB / 0.9288 GB, free: 51.52 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/1.315, allocations: 39.44 kB / 0.9288 GB, free: 51.48 MB / 0.6075 GB Notification: Performance of SimCode: time 5.61e-07/1.315, allocations: 3.281 kB / 0.9288 GB, free: 51.48 MB / 0.6075 GB Notification: Performance of Templates: time 0.3021/1.617, allocations: 125.8 MB / 1.052 GB, free: 340.4 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)