Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.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.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006557/0.006557, allocations: 96.31 kB / 15.73 MB, free: 5.996 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.001166/0.001166, allocations: 185.8 kB / 16.67 MB, free: 5.926 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.477/1.477, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04703/0.04703, 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.001482/0.001482, allocations: 68.47 kB / 387.5 MB, free: 7.965 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2992/0.3007, allocations: 48.14 MB / 435.7 MB, free: 7.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.1497/0.4504, allocations: 128.9 MB / 0.5513 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4699/0.9204, allocations: 111.1 MB / 0.6598 GB, free: 328 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005952/0.9211, allocations: 12.62 kB / 0.6598 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003152/0.9243, allocations: 1.368 MB / 0.6612 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003538/0.9278, allocations: 1.653 MB / 0.6628 GB, free: 264 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.08435/1.012, allocations: 30.15 MB / 0.6922 GB, free: 6.453 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001788/1.014, allocations: 1.402 MB / 0.6936 GB, free: 5.441 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002331/1.014, allocations: 126.5 kB / 0.6937 GB, free: 5.344 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0178/1.032, allocations: 11.68 MB / 0.7051 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006088/1.033, allocations: 376.3 kB / 0.7055 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.414e-05/1.033, allocations: 44 kB / 0.7055 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06991/1.103, allocations: 36.97 MB / 0.7416 GB, free: 9.418 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0003315/1.103, allocations: 123 kB / 0.7417 GB, free: 9.301 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006416/1.104, allocations: 305.2 kB / 0.742 GB, free: 9.004 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05553/1.159, allocations: 14.55 MB / 0.7562 GB, free: 11.53 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.851e-06/1.159, allocations: 0 / 0.7562 GB, free: 11.53 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.733e-06/1.159, allocations: 0 / 0.7562 GB, free: 11.53 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.023e-05/1.159, allocations: 0 / 0.7562 GB, free: 11.53 MB / 0.545 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.007131/1.166, allocations: 2.68 MB / 0.7589 GB, free: 8.801 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.425e-05/1.167, allocations: 12.03 kB / 0.7589 GB, free: 8.789 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006523/1.167, allocations: 87.62 kB / 0.759 GB, free: 8.703 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004912/1.168, allocations: 344.1 kB / 0.7593 GB, free: 8.332 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.161e-05/1.168, allocations: 32.64 kB / 0.7593 GB, free: 8.301 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/1.168, allocations: 32 kB / 0.7593 GB, free: 8.27 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001296/1.169, allocations: 0.601 MB / 0.7599 GB, free: 7.648 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.847e-05/1.169, allocations: 0 / 0.7599 GB, free: 7.648 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.92e-05/1.169, allocations: 16 kB / 0.7599 GB, free: 7.633 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.743e-05/1.169, allocations: 26.8 kB / 0.76 GB, free: 7.609 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/1.171, allocations: 0.5453 MB / 0.7605 GB, free: 7.066 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002668/1.173, allocations: 2.457 MB / 0.7629 GB, free: 4.406 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001117/1.174, allocations: 0.4919 MB / 0.7634 GB, free: 3.91 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000547/1.175, allocations: 334 kB / 0.7637 GB, free: 3.582 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4634/1.638, allocations: 139 MB / 0.8994 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.691e-05/1.638, allocations: 39.22 kB / 0.8995 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.436e-06/1.638, allocations: 0 / 0.8995 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.005735/1.644, allocations: 2.34 MB / 0.9018 GB, free: 211.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.834e-05/1.644, allocations: 59.16 kB / 0.9018 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002541/1.645, allocations: 264.7 kB / 0.9021 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.472e-05/1.645, allocations: 37.2 kB / 0.9021 GB, free: 211.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/1.645, allocations: 195.1 kB / 0.9023 GB, free: 211.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001475/1.645, allocations: 278.7 kB / 0.9026 GB, free: 210.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/1.645, allocations: 98.11 kB / 0.9026 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.039e-05/1.645, allocations: 350.8 kB / 0.903 GB, free: 210.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/1.645, allocations: 275.9 kB / 0.9032 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004578/1.646, allocations: 393.1 kB / 0.9036 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008723/1.647, allocations: 0.6902 MB / 0.9043 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.576e-06/1.647, allocations: 0 / 0.9043 GB, free: 209.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001231/1.648, allocations: 0.803 MB / 0.9051 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/1.648, allocations: 4.938 kB / 0.9051 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/1.648, allocations: 4 kB / 0.9051 GB, free: 208.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002392/1.648, allocations: 61.67 kB / 0.9051 GB, free: 208.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006593/1.649, allocations: 150.3 kB / 0.9053 GB, free: 208.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06559/1.715, allocations: 22.97 MB / 0.9277 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005137/1.715, allocations: 31.97 kB / 0.9277 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.479e-05/1.715, allocations: 16 kB / 0.9278 GB, free: 184.5 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.0003128/1.716, allocations: 198.7 kB / 0.928 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001243/1.716, allocations: 51.59 kB / 0.928 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001857/1.718, allocations: 1.715 MB / 0.9297 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/1.718, allocations: 4 kB / 0.9297 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/1.718, allocations: 7.141 kB / 0.9297 GB, free: 182.5 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001266/1.719, allocations: 1.296 MB / 0.931 GB, free: 181.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002071/1.721, allocations: 1.754 MB / 0.9327 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/1.721, allocations: 0 / 0.9327 GB, free: 179.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000293/1.721, allocations: 67.95 kB / 0.9327 GB, free: 179.2 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003082/1.722, allocations: 170 kB / 0.9329 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.04e-05/1.722, allocations: 16 kB / 0.9329 GB, free: 179.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001322/1.723, allocations: 2.56 MB / 0.9354 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/1.723, allocations: 0 / 0.9354 GB, free: 176.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001798/1.725, allocations: 1.386 MB / 0.9368 GB, free: 174.9 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001051/1.725, allocations: 129.1 kB / 0.9369 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/1.725, allocations: 8 kB / 0.9369 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003222/1.725, allocations: 27.97 kB / 0.9369 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/1.725, allocations: 48 kB / 0.937 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.58e-05/1.726, allocations: 8 kB / 0.937 GB, free: 174.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002026/1.726, allocations: 227 kB / 0.9372 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of sort global known variables: time 3.11e-07/1.726, allocations: 0 / 0.9372 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.00947/1.735, allocations: 3.572 MB / 0.9407 GB, free: 171.3 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.01861/1.754, allocations: 4.828 MB / 0.9454 GB, free: 167 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002365/1.756, allocations: 1.061 MB / 0.9464 GB, free: 165.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.28e-06/1.756, allocations: 0 / 0.9464 GB, free: 165.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007472/1.757, allocations: 0.5111 MB / 0.9469 GB, free: 165.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001909/1.759, allocations: 403.6 kB / 0.9473 GB, free: 165 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00155/1.761, allocations: 1.186 MB / 0.9485 GB, free: 163.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002338/1.761, allocations: 0.8526 MB / 0.9493 GB, free: 162.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003586/1.761, allocations: 131.2 kB / 0.9494 GB, free: 162.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.069e-05/1.761, allocations: 51.36 kB / 0.9495 GB, free: 162.7 MB / 0.6075 GB Notification: Performance of SimCode: time 1.062e-06/1.761, allocations: 0 / 0.9495 GB, free: 162.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.1228/1.884, allocations: 126.8 MB / 1.073 GB, free: 35.74 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel.pipe 2>&1)