Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.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.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006562/0.006562, allocations: 99.64 kB / 15.73 MB, free: 6.023 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.001291/0.001292, allocations: 187.1 kB / 16.67 MB, free: 5.957 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.413/1.413, allocations: 205.1 MB / 222.6 MB, free: 4.383 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0487/0.0487, allocations: 9.1 MB / 279 MB, free: 11.95 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.001571/0.001571, allocations: 71.84 kB / 387.5 MB, free: 7.93 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2828/0.2844, allocations: 48.15 MB / 435.7 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel): time 0.1377/0.4221, allocations: 128.8 MB / 0.5513 GB, free: 15.5 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3882/0.8104, allocations: 111.1 MB / 0.6597 GB, free: 316 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007032/0.8111, allocations: 5.531 kB / 0.6597 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003447/0.8146, allocations: 1.374 MB / 0.6611 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003841/0.8185, allocations: 1.656 MB / 0.6627 GB, free: 252 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.08342/0.9019, allocations: 29.55 MB / 0.6915 GB, free: 7.07 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.9041, allocations: 1.406 MB / 0.6929 GB, free: 6.059 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002922/0.9044, allocations: 122.8 kB / 0.693 GB, free: 5.969 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01629/0.9207, allocations: 9.863 MB / 0.7027 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005697/0.9213, allocations: 375.7 kB / 0.703 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.893e-05/0.9214, allocations: 47.94 kB / 0.7031 GB, free: 13.47 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0688/0.9902, allocations: 35.36 MB / 0.7376 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002878/0.9905, allocations: 128.9 kB / 0.7377 GB, free: 13.3 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005664/0.9911, allocations: 302.6 kB / 0.738 GB, free: 13 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05294/1.044, allocations: 14.17 MB / 0.7518 GB, free: 15.92 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/1.044, allocations: 4 kB / 0.7518 GB, free: 15.91 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.783e-06/1.044, allocations: 0 / 0.7518 GB, free: 15.91 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.578e-06/1.044, allocations: 0 / 0.7518 GB, free: 15.91 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.008391/1.053, allocations: 2.567 MB / 0.7544 GB, free: 13.3 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.547e-05/1.053, allocations: 12.03 kB / 0.7544 GB, free: 13.29 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006838/1.053, allocations: 83.39 kB / 0.7544 GB, free: 13.21 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005543/1.054, allocations: 339.3 kB / 0.7548 GB, free: 12.84 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.354e-05/1.054, allocations: 28.66 kB / 0.7548 GB, free: 12.81 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.463e-05/1.054, allocations: 32 kB / 0.7548 GB, free: 12.78 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001347/1.055, allocations: 0.5984 MB / 0.7554 GB, free: 12.17 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.163e-05/1.055, allocations: 7.922 kB / 0.7554 GB, free: 12.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/1.055, allocations: 20 kB / 0.7554 GB, free: 12.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.121e-05/1.055, allocations: 19.36 kB / 0.7555 GB, free: 12.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001329/1.057, allocations: 0.5403 MB / 0.756 GB, free: 11.59 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002842/1.06, allocations: 2.461 MB / 0.7584 GB, free: 8.93 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001099/1.061, allocations: 498.4 kB / 0.7589 GB, free: 8.438 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005587/1.061, allocations: 334.5 kB / 0.7592 GB, free: 8.109 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4918/1.553, allocations: 139 MB / 0.8949 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.774e-05/1.553, allocations: 43.22 kB / 0.895 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=77): time 3.857e-06/1.553, allocations: 2.312 kB / 0.895 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=81): time 0.00596/1.559, allocations: 2.33 MB / 0.8972 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.679e-05/1.559, allocations: 51.41 kB / 0.8973 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000241/1.56, allocations: 268.4 kB / 0.8975 GB, free: 217 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.312e-05/1.56, allocations: 37.7 kB / 0.8976 GB, free: 217 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.646e-05/1.56, allocations: 191.9 kB / 0.8978 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001477/1.56, allocations: 259.8 kB / 0.898 GB, free: 216.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001276/1.56, allocations: 98.11 kB / 0.8981 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.626e-05/1.56, allocations: 354.5 kB / 0.8984 GB, free: 216.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004422/1.561, allocations: 269.3 kB / 0.8987 GB, free: 215.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004801/1.561, allocations: 395.3 kB / 0.8991 GB, free: 215.4 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009145/1.562, allocations: 0.6922 MB / 0.8998 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/1.562, allocations: 0 / 0.8998 GB, free: 214.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001266/1.563, allocations: 0.8004 MB / 0.9005 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/1.563, allocations: 8.219 kB / 0.9005 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.563, allocations: 4 kB / 0.9005 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002346/1.564, allocations: 61.67 kB / 0.9006 GB, free: 213.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006522/1.564, allocations: 142 kB / 0.9007 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06531/1.63, allocations: 19.67 MB / 0.9199 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/1.63, allocations: 27.91 kB / 0.92 GB, free: 193.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.856e-05/1.63, allocations: 23.98 kB / 0.92 GB, free: 193.4 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.0003304/1.63, allocations: 191.7 kB / 0.9202 GB, free: 193.2 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001285/1.631, allocations: 47.47 kB / 0.9202 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001855/1.632, allocations: 1.718 MB / 0.9219 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.026e-05/1.632, allocations: 11.91 kB / 0.9219 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.633, allocations: 0 / 0.9219 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001305/1.634, allocations: 1.296 MB / 0.9232 GB, free: 190 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002141/1.636, allocations: 1.75 MB / 0.9249 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/1.636, allocations: 0 / 0.9249 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003119/1.636, allocations: 79.89 kB / 0.925 GB, free: 188.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003088/1.637, allocations: 169.5 kB / 0.9251 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.546e-05/1.637, allocations: 9.812 kB / 0.9251 GB, free: 187.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001197/1.638, allocations: 2.563 MB / 0.9276 GB, free: 185.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/1.638, allocations: 3.984 kB / 0.9276 GB, free: 185.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001777/1.64, allocations: 1.377 MB / 0.929 GB, free: 183.7 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001361/1.64, allocations: 120.5 kB / 0.9291 GB, free: 183.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.526e-05/1.64, allocations: 12 kB / 0.9291 GB, free: 183.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003234/1.64, allocations: 27.97 kB / 0.9291 GB, free: 183.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001013/1.64, allocations: 39.94 kB / 0.9292 GB, free: 183.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.857e-05/1.64, allocations: 19.98 kB / 0.9292 GB, free: 183.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001867/1.641, allocations: 219.1 kB / 0.9294 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.01e-07/1.641, allocations: 4.062 kB / 0.9294 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009539/1.65, allocations: 3.512 MB / 0.9328 GB, free: 180.2 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.01903/1.669, allocations: 4.566 MB / 0.9373 GB, free: 176.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002839/1.672, allocations: 1.066 MB / 0.9383 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 6.642e-06/1.672, allocations: 3.938 kB / 0.9383 GB, free: 175.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008408/1.673, allocations: 0.4955 MB / 0.9388 GB, free: 174.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002121/1.675, allocations: 403 kB / 0.9392 GB, free: 174.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001861/1.677, allocations: 1.183 MB / 0.9404 GB, free: 173 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002668/1.677, allocations: 0.8526 MB / 0.9412 GB, free: 172.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004258/1.678, allocations: 138.5 kB / 0.9413 GB, free: 172 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001053/1.678, allocations: 35.44 kB / 0.9414 GB, free: 171.9 MB / 0.6075 GB Notification: Performance of SimCode: time 5.51e-07/1.678, allocations: 0 / 0.9414 GB, free: 171.9 MB / 0.6075 GB Notification: Performance of Templates: time 0.1401/1.818, allocations: 126.9 MB / 1.065 GB, free: 44.97 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.IsobutaneTestModel.pipe 2>&1)