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.006791/0.00679, allocations: 102 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.001174/0.001173, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.622/1.622, allocations: 205.1 MB / 222.5 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04457/0.04457, allocations: 9.083 MB / 279 MB, free: 2.949 MB / 222.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.001449/0.001449, allocations: 68.98 kB / 387.5 MB, free: 47.14 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1209, allocations: 48.18 MB / 435.7 MB, free: 7.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.CarbondioxideTestModel): time 0.4304/0.5514, allocations: 128.9 MB / 0.5513 GB, free: 2.52 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09975/0.6512, allocations: 111.1 MB / 0.6598 GB, free: 1.168 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006159/0.6518, allocations: 7.938 kB / 0.6598 GB, free: 1.16 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003174/0.655, allocations: 1.362 MB / 0.6612 GB, free: 15.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004144/0.6592, allocations: 1.652 MB / 0.6628 GB, free: 14.13 MB / 494.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.08356/0.7428, allocations: 30.13 MB / 0.6922 GB, free: 15.93 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.002385/0.7452, allocations: 1.402 MB / 0.6936 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003374/0.7455, allocations: 127.8 kB / 0.6937 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.02348/0.769, allocations: 11.7 MB / 0.7051 GB, free: 2.668 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005368/0.7696, allocations: 378.5 kB / 0.7055 GB, free: 2.297 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.331e-05/0.7697, allocations: 40 kB / 0.7055 GB, free: 2.258 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.4053/1.175, allocations: 36.97 MB / 0.7416 GB, free: 58.28 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002366/1.175, allocations: 116.5 kB / 0.7417 GB, free: 58.28 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0005525/1.176, allocations: 305.2 kB / 0.742 GB, free: 58.28 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.04962/1.225, allocations: 14.52 MB / 0.7562 GB, free: 58.18 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/1.225, allocations: 1.531 kB / 0.7562 GB, free: 58.18 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/1.225, allocations: 2.656 kB / 0.7562 GB, free: 58.18 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.538e-06/1.225, allocations: 0 / 0.7562 GB, free: 58.18 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.007738/1.233, allocations: 2.565 MB / 0.7587 GB, free: 56.79 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/1.233, allocations: 9.375 kB / 0.7587 GB, free: 56.79 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006489/1.234, allocations: 87.73 kB / 0.7588 GB, free: 56.77 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003976/1.234, allocations: 342.7 kB / 0.7591 GB, free: 56.54 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.584e-05/1.234, allocations: 29.56 kB / 0.7592 GB, free: 56.54 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.43e-05/1.234, allocations: 34.44 kB / 0.7592 GB, free: 56.54 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/1.236, allocations: 0.6026 MB / 0.7598 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.911e-05/1.236, allocations: 0 / 0.7598 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.839e-05/1.236, allocations: 18.09 kB / 0.7598 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.021e-05/1.236, allocations: 19.58 kB / 0.7598 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/1.237, allocations: 0.5475 MB / 0.7604 GB, free: 56.45 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002134/1.239, allocations: 2.459 MB / 0.7628 GB, free: 54.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009841/1.24, allocations: 0.4908 MB / 0.7632 GB, free: 54.81 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004736/1.241, allocations: 333.3 kB / 0.7636 GB, free: 54.8 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2478/1.488, allocations: 139 MB / 0.8993 GB, free: 22.95 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.176e-05/1.489, allocations: 37.19 kB / 0.8993 GB, free: 22.91 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=77): time 2.835e-06/1.489, allocations: 0 / 0.8993 GB, free: 22.91 MB / 0.6387 GB Notification: Performance of matching and sorting (n=81): time 0.006205/1.495, allocations: 2.35 MB / 0.9016 GB, free: 21.1 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/1.495, allocations: 58.41 kB / 0.9017 GB, free: 21.04 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000277/1.495, allocations: 263 kB / 0.9019 GB, free: 20.82 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 4.265e-05/1.495, allocations: 30.39 kB / 0.9019 GB, free: 20.79 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/1.495, allocations: 195 kB / 0.9021 GB, free: 20.62 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/1.495, allocations: 253.6 kB / 0.9024 GB, free: 20.41 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/1.496, allocations: 102.1 kB / 0.9025 GB, free: 20.34 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001413/1.496, allocations: 357.8 kB / 0.9028 GB, free: 20 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/1.496, allocations: 275.1 kB / 0.9031 GB, free: 19.84 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004874/1.497, allocations: 388.2 kB / 0.9034 GB, free: 19.54 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009929/1.498, allocations: 0.6984 MB / 0.9041 GB, free: 19.07 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/1.498, allocations: 0 / 0.9041 GB, free: 19.07 MB / 0.6387 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001351/1.499, allocations: 0.8002 MB / 0.9049 GB, free: 18.52 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.552e-05/1.499, allocations: 10.06 kB / 0.9049 GB, free: 18.51 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/1.499, allocations: 4 kB / 0.9049 GB, free: 18.51 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002325/1.499, allocations: 60.77 kB / 0.905 GB, free: 18.46 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006771/1.5, allocations: 139.9 kB / 0.9051 GB, free: 18.33 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06971/1.57, allocations: 22.96 MB / 0.9275 GB, free: 11.85 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004763/1.57, allocations: 34.56 kB / 0.9276 GB, free: 11.83 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.698e-05/1.57, allocations: 14.56 kB / 0.9276 GB, free: 11.82 MB / 0.6544 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.0003676/1.571, allocations: 192.7 kB / 0.9278 GB, free: 11.66 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001319/1.571, allocations: 52.83 kB / 0.9278 GB, free: 11.62 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/1.573, allocations: 1.711 MB / 0.9295 GB, free: 10.43 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.492e-05/1.573, allocations: 18.05 kB / 0.9295 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/1.573, allocations: 0 / 0.9295 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001588/1.575, allocations: 1.291 MB / 0.9308 GB, free: 9.363 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002371/1.577, allocations: 1.748 MB / 0.9325 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.682e-06/1.577, allocations: 0.875 kB / 0.9325 GB, free: 8.125 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003826/1.578, allocations: 83.11 kB / 0.9326 GB, free: 8.051 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003182/1.578, allocations: 165.1 kB / 0.9327 GB, free: 7.918 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.716e-05/1.578, allocations: 15.88 kB / 0.9327 GB, free: 7.906 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001614/1.58, allocations: 2.566 MB / 0.9352 GB, free: 5.297 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/1.58, allocations: 4 kB / 0.9352 GB, free: 5.293 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/1.582, allocations: 1.382 MB / 0.9366 GB, free: 4.348 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002058/1.582, allocations: 124.1 kB / 0.9367 GB, free: 4.211 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.819e-05/1.582, allocations: 11.3 kB / 0.9367 GB, free: 4.203 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003325/1.582, allocations: 23.8 kB / 0.9367 GB, free: 4.188 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001203/1.582, allocations: 51.67 kB / 0.9368 GB, free: 4.145 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/1.583, allocations: 10.91 kB / 0.9368 GB, free: 4.137 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002573/1.583, allocations: 224 kB / 0.937 GB, free: 3.961 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.543e-06/1.583, allocations: 0 / 0.937 GB, free: 3.961 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01223/1.595, allocations: 3.513 MB / 0.9404 GB, free: 0.5547 MB / 0.6544 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.0229/1.618, allocations: 4.768 MB / 0.9451 GB, free: 12.41 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002479/1.62, allocations: 1.047 MB / 0.9461 GB, free: 11.62 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/1.62, allocations: 4 kB / 0.9461 GB, free: 11.62 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0008509/1.621, allocations: 0.5111 MB / 0.9466 GB, free: 11.25 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/1.623, allocations: 403.5 kB / 0.947 GB, free: 10.9 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00184/1.625, allocations: 1.175 MB / 0.9482 GB, free: 9.906 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004215/1.626, allocations: 0.8564 MB / 0.949 GB, free: 9.02 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.000382/1.626, allocations: 131 kB / 0.9491 GB, free: 8.895 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.909e-05/1.626, allocations: 43.25 kB / 0.9492 GB, free: 8.855 MB / 0.67 GB Notification: Performance of SimCode: time 5.11e-07/1.626, allocations: 0 / 0.9492 GB, free: 8.855 MB / 0.67 GB Notification: Performance of Templates: time 0.3971/2.023, allocations: 127 MB / 1.073 GB, free: 278.4 MB / 0.6856 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)