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.001162/0.001162, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001203/0.001203, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.479/1.479, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04558/0.04558, allocations: 9.081 MB / 278.8 MB, free: 12.17 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.001381/0.001381, allocations: 71.84 kB / 338 MB, free: 25.44 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09369/0.09508, allocations: 48.16 MB / 386.2 MB, free: 9.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.3353/0.4304, allocations: 128.9 MB / 0.503 GB, free: 4.992 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.3864/0.8169, allocations: 111.1 MB / 0.6115 GB, free: 312 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006519/0.8176, allocations: 6.875 kB / 0.6115 GB, free: 312 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00353/0.8212, allocations: 1.363 MB / 0.6128 GB, free: 304 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00381/0.825, allocations: 1.652 MB / 0.6144 GB, free: 284 kB / 446.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.07646/0.9015, allocations: 30.13 MB / 0.6439 GB, free: 13.36 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002252/0.9038, allocations: 1.401 MB / 0.6452 GB, free: 13 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002869/0.9041, allocations: 121.5 kB / 0.6453 GB, free: 12.97 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01763/0.9217, allocations: 11.69 MB / 0.6567 GB, free: 6.754 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004993/0.9222, allocations: 372.2 kB / 0.6571 GB, free: 6.461 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.424e-05/0.9223, allocations: 44 kB / 0.6571 GB, free: 6.418 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06876/0.9911, allocations: 35.51 MB / 0.6918 GB, free: 11.7 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002772/0.9914, allocations: 118 kB / 0.6919 GB, free: 11.59 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000608/0.992, allocations: 306.7 kB / 0.6922 GB, free: 11.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0446/1.037, allocations: 14.52 MB / 0.7064 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/1.037, allocations: 0 / 0.7064 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.193e-06/1.037, allocations: 0 / 0.7064 GB, free: 13.86 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.277e-06/1.037, allocations: 0 / 0.7064 GB, free: 13.86 MB / 0.4981 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.006188/1.043, allocations: 2.573 MB / 0.7089 GB, free: 11.24 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.936e-05/1.043, allocations: 11.59 kB / 0.7089 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006202/1.044, allocations: 84.52 kB / 0.709 GB, free: 11.15 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/1.044, allocations: 343.7 kB / 0.7093 GB, free: 10.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.458e-05/1.044, allocations: 28.66 kB / 0.7094 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.035e-05/1.044, allocations: 32 kB / 0.7094 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00125/1.045, allocations: 0.6002 MB / 0.71 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.017e-05/1.045, allocations: 4 kB / 0.71 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.027e-05/1.045, allocations: 16 kB / 0.71 GB, free: 10.09 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/1.045, allocations: 15.59 kB / 0.71 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001299/1.047, allocations: 0.5442 MB / 0.7105 GB, free: 9.535 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00259/1.049, allocations: 2.481 MB / 0.713 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001047/1.05, allocations: 499.9 kB / 0.7134 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000509/1.051, allocations: 334 kB / 0.7138 GB, free: 6.035 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4193/1.47, allocations: 139 MB / 0.8495 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.348e-05/1.47, allocations: 40.75 kB / 0.8495 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=77): time 2.615e-06/1.47, allocations: 0 / 0.8495 GB, free: 271.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=81): time 0.005356/1.476, allocations: 2.336 MB / 0.8518 GB, free: 270 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.613e-05/1.476, allocations: 57.88 kB / 0.8519 GB, free: 269.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/1.476, allocations: 263.7 kB / 0.8521 GB, free: 269.7 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.675e-05/1.476, allocations: 33.67 kB / 0.8521 GB, free: 269.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/1.476, allocations: 188.5 kB / 0.8523 GB, free: 269.5 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.000116/1.476, allocations: 266.2 kB / 0.8526 GB, free: 269.3 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001136/1.476, allocations: 96.8 kB / 0.8527 GB, free: 269.2 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 6.363e-05/1.476, allocations: 353.1 kB / 0.853 GB, free: 268.9 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004353/1.477, allocations: 272.5 kB / 0.8533 GB, free: 268.7 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004815/1.477, allocations: 395.2 kB / 0.8536 GB, free: 268.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009452/1.478, allocations: 0.6928 MB / 0.8543 GB, free: 268 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/1.478, allocations: 2.75 kB / 0.8543 GB, free: 268 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00129/1.48, allocations: 0.8061 MB / 0.8551 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/1.48, allocations: 3.938 kB / 0.8551 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/1.48, allocations: 3.969 kB / 0.8551 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002418/1.48, allocations: 64.33 kB / 0.8552 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006921/1.481, allocations: 145.5 kB / 0.8553 GB, free: 267.5 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09387/1.575, allocations: 28.73 MB / 0.8834 GB, free: 240.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004316/1.575, allocations: 28.05 kB / 0.8834 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/1.575, allocations: 19.98 kB / 0.8834 GB, free: 240.1 MB / 0.5919 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.0002645/1.575, allocations: 188.1 kB / 0.8836 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.946e-05/1.575, allocations: 43.44 kB / 0.8836 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001725/1.577, allocations: 1.726 MB / 0.8853 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.489e-05/1.577, allocations: 19.75 kB / 0.8853 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/1.577, allocations: 0 / 0.8853 GB, free: 238.1 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001273/1.578, allocations: 1.292 MB / 0.8866 GB, free: 236.7 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/1.58, allocations: 1.756 MB / 0.8883 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/1.58, allocations: 0 / 0.8883 GB, free: 234.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003089/1.581, allocations: 71.95 kB / 0.8884 GB, free: 234.8 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002855/1.581, allocations: 162.3 kB / 0.8885 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.489e-05/1.581, allocations: 13.5 kB / 0.8886 GB, free: 234.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001118/1.582, allocations: 2.579 MB / 0.8911 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/1.582, allocations: 0 / 0.8911 GB, free: 231.9 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001665/1.584, allocations: 1.373 MB / 0.8924 GB, free: 230.4 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 8.731e-05/1.584, allocations: 120.5 kB / 0.8925 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.889e-05/1.584, allocations: 12.88 kB / 0.8925 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002928/1.584, allocations: 27.91 kB / 0.8926 GB, free: 230.3 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.084e-05/1.584, allocations: 43.94 kB / 0.8926 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.332e-05/1.584, allocations: 20.05 kB / 0.8926 GB, free: 230.2 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001662/1.585, allocations: 219.1 kB / 0.8928 GB, free: 230 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.41e-07/1.585, allocations: 0 / 0.8928 GB, free: 230 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007623/1.592, allocations: 3.177 MB / 0.8959 GB, free: 227.2 MB / 0.5919 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.01599/1.608, allocations: 4.361 MB / 0.9002 GB, free: 223.3 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002433/1.611, allocations: 1.049 MB / 0.9012 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.42e-06/1.611, allocations: 0 / 0.9012 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0007332/1.611, allocations: 0.511 MB / 0.9017 GB, free: 221.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001992/1.613, allocations: 396.6 kB / 0.9021 GB, free: 221.4 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001685/1.615, allocations: 1.196 MB / 0.9033 GB, free: 220.2 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002468/1.615, allocations: 0.8487 MB / 0.9041 GB, free: 219.3 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003763/1.616, allocations: 135.2 kB / 0.9042 GB, free: 219.1 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.567e-05/1.616, allocations: 47.38 kB / 0.9043 GB, free: 219.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.112e-06/1.616, allocations: 0 / 0.9043 GB, free: 219.1 MB / 0.5919 GB Notification: Performance of Templates: time 0.127/1.743, allocations: 119 MB / 1.021 GB, free: 99.87 MB / 0.5919 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)