Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001175/0.001175, allocations: 108 kB / 15.6 MB, free: 132 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.001283/0.001283, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.486/1.486, allocations: 205.1 MB / 222.4 MB, free: 4.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04618/0.04618, allocations: 9.097 MB / 278.9 MB, free: 12.2 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.001663/0.001663, allocations: 72.12 kB / 338 MB, free: 25.48 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09576/0.09744, allocations: 48.18 MB / 386.2 MB, free: 9.27 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.3605/0.458, allocations: 142.2 MB / 0.516 GB, free: 7.625 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.3751/0.8332, allocations: 97.71 MB / 0.6114 GB, free: 300 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006361/0.8339, allocations: 7.5 kB / 0.6114 GB, free: 300 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003452/0.8373, allocations: 1.369 MB / 0.6127 GB, free: 292 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003867/0.8412, allocations: 1.649 MB / 0.6143 GB, free: 268 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.07467/0.9159, allocations: 29.54 MB / 0.6432 GB, free: 13.61 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002057/0.918, allocations: 1.411 MB / 0.6446 GB, free: 13.23 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003097/0.9183, allocations: 128.9 kB / 0.6447 GB, free: 13.2 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01841/0.9367, allocations: 9.854 MB / 0.6543 GB, free: 9.266 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006646/0.9375, allocations: 381.4 kB / 0.6547 GB, free: 9.012 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.521e-05/0.9376, allocations: 43.94 kB / 0.6547 GB, free: 8.969 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06806/1.006, allocations: 34.82 MB / 0.6887 GB, free: 14.84 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002502/1.006, allocations: 114.1 kB / 0.6888 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005802/1.007, allocations: 309.6 kB / 0.6891 GB, free: 14.43 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04568/1.052, allocations: 14.57 MB / 0.7034 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/1.052, allocations: 0 / 0.7034 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.857e-06/1.052, allocations: 0 / 0.7034 GB, free: 0.9805 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.858e-05/1.052, allocations: 3.938 kB / 0.7034 GB, free: 0.9766 MB / 494.1 MB 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.007863/1.06, allocations: 2.657 MB / 0.706 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/1.06, allocations: 12.03 kB / 0.706 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005942/1.061, allocations: 75.31 kB / 0.706 GB, free: 14.19 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000561/1.061, allocations: 337.6 kB / 0.7064 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/1.061, allocations: 28.66 kB / 0.7064 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.476e-05/1.062, allocations: 36.88 kB / 0.7064 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/1.063, allocations: 0.5844 MB / 0.707 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.97e-05/1.063, allocations: 0 / 0.707 GB, free: 13.16 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.574e-05/1.063, allocations: 16 kB / 0.707 GB, free: 13.15 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.409e-05/1.063, allocations: 15.12 kB / 0.707 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001274/1.064, allocations: 0.5252 MB / 0.7075 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002829/1.067, allocations: 2.489 MB / 0.71 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001126/1.068, allocations: 498.2 kB / 0.7104 GB, free: 9.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000546/1.069, allocations: 334.3 kB / 0.7108 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3475/1.416, allocations: 113.4 MB / 0.8215 GB, free: 296.1 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.835e-05/1.417, allocations: 38.47 kB / 0.8215 GB, free: 296 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.826e-06/1.417, allocations: 3.562 kB / 0.8216 GB, free: 296 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.006922/1.423, allocations: 2.432 MB / 0.8239 GB, free: 295 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.059e-05/1.423, allocations: 59.27 kB / 0.824 GB, free: 294.9 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000292/1.424, allocations: 257.7 kB / 0.8242 GB, free: 294.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.879e-05/1.424, allocations: 35.67 kB / 0.8243 GB, free: 294.7 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 9.798e-05/1.424, allocations: 190.4 kB / 0.8244 GB, free: 294.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001653/1.424, allocations: 270.8 kB / 0.8247 GB, free: 294.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/1.424, allocations: 98.42 kB / 0.8248 GB, free: 294.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.155e-05/1.424, allocations: 354.3 kB / 0.8251 GB, free: 294 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005315/1.425, allocations: 281.6 kB / 0.8254 GB, free: 293.9 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006035/1.426, allocations: 404.6 kB / 0.8258 GB, free: 293.7 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001101/1.427, allocations: 0.7019 MB / 0.8265 GB, free: 293.3 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/1.427, allocations: 1.281 kB / 0.8265 GB, free: 293.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001605/1.428, allocations: 0.8197 MB / 0.8273 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/1.428, allocations: 6.781 kB / 0.8273 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/1.428, allocations: 6.562 kB / 0.8273 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002983/1.429, allocations: 83.17 kB / 0.8274 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005134/1.429, allocations: 113.6 kB / 0.8275 GB, free: 292.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04459/1.474, allocations: 13.66 MB / 0.8408 GB, free: 284.6 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004584/1.474, allocations: 31.78 kB / 0.8409 GB, free: 284.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.015e-05/1.474, allocations: 27.23 kB / 0.8409 GB, free: 284.6 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002817/1.475, allocations: 197.3 kB / 0.8411 GB, free: 284.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/1.475, allocations: 39.34 kB / 0.8411 GB, free: 284.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/1.477, allocations: 1.725 MB / 0.8428 GB, free: 283.3 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.761e-05/1.477, allocations: 14.3 kB / 0.8428 GB, free: 283.3 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/1.477, allocations: 0 / 0.8428 GB, free: 283.3 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00137/1.478, allocations: 1.269 MB / 0.844 GB, free: 282.3 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002163/1.48, allocations: 1.748 MB / 0.8457 GB, free: 281.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/1.48, allocations: 0 / 0.8457 GB, free: 281.2 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/1.481, allocations: 83.78 kB / 0.8458 GB, free: 281.2 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002832/1.481, allocations: 129.4 kB / 0.846 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.162e-05/1.481, allocations: 7.688 kB / 0.846 GB, free: 281.1 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001147/1.482, allocations: 2.087 MB / 0.848 GB, free: 279 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/1.482, allocations: 0 / 0.848 GB, free: 279 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001964/1.484, allocations: 1.426 MB / 0.8494 GB, free: 277.9 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001/1.484, allocations: 119.4 kB / 0.8495 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.35e-05/1.484, allocations: 12 kB / 0.8495 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003107/1.485, allocations: 27.97 kB / 0.8495 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-05/1.485, allocations: 43.94 kB / 0.8496 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.871e-05/1.485, allocations: 19.92 kB / 0.8496 GB, free: 277.7 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001794/1.485, allocations: 221.1 kB / 0.8498 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.01e-07/1.485, allocations: 0 / 0.8498 GB, free: 277.4 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007458/1.492, allocations: 2.984 MB / 0.8527 GB, free: 274.9 MB / 0.5919 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * 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: 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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01403/1.506, allocations: 3.855 MB / 0.8565 GB, free: 271.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002262/1.509, allocations: 1.067 MB / 0.8575 GB, free: 270.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/1.509, allocations: 0 / 0.8575 GB, free: 270.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008049/1.51, allocations: 0.5537 MB / 0.8581 GB, free: 270.1 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/1.512, allocations: 402.8 kB / 0.8585 GB, free: 269.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/1.514, allocations: 1.227 MB / 0.8597 GB, free: 268.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002548/1.514, allocations: 0.8567 MB / 0.8605 GB, free: 267.6 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004128/1.514, allocations: 131.2 kB / 0.8606 GB, free: 267.4 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.708e-05/1.514, allocations: 39.44 kB / 0.8607 GB, free: 267.4 MB / 0.5919 GB Notification: Performance of SimCode: time 9.02e-07/1.514, allocations: 0 / 0.8607 GB, free: 267.4 MB / 0.5919 GB Notification: Performance of Templates: time 0.1222/1.637, allocations: 112.3 MB / 0.9703 GB, free: 155.1 MB / 0.5919 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)