Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004893/0.004893, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001222/0.001222, allocations: 194.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.227/1.227, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04225/0.04225, allocations: 9.1 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.001334/0.001334, allocations: 63.84 kB / 387.5 MB, free: 7.965 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.206/0.2074, allocations: 48.15 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1262/0.3336, allocations: 142.2 MB / 0.5643 GB, free: 2.031 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.2674/0.601, allocations: 97.7 MB / 0.6597 GB, free: 252 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004124/0.6014, allocations: 8.312 kB / 0.6597 GB, free: 252 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00243/0.6039, allocations: 1.555 MB / 0.6612 GB, free: 240 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00262/0.6065, allocations: 1.83 MB / 0.663 GB, free: 192 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.06053/0.6671, allocations: 31.35 MB / 0.6936 GB, free: 6.184 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001565/0.6687, allocations: 1.401 MB / 0.695 GB, free: 5.172 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002266/0.6689, allocations: 132.8 kB / 0.6951 GB, free: 5.078 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01409/0.683, allocations: 10.05 MB / 0.705 GB, free: 12.86 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004425/0.6835, allocations: 377.9 kB / 0.7053 GB, free: 12.57 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.539e-05/0.6835, allocations: 44 kB / 0.7054 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05297/0.7365, allocations: 35.4 MB / 0.7399 GB, free: 11 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000212/0.7367, allocations: 118.4 kB / 0.74 GB, free: 10.89 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0004237/0.7372, allocations: 314.6 kB / 0.7403 GB, free: 10.58 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.033/0.7702, allocations: 14.16 MB / 0.7542 GB, free: 13.5 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.7702, allocations: 0 / 0.7542 GB, free: 13.5 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7702, allocations: 0 / 0.7542 GB, free: 13.5 MB / 0.545 GB Notification: Performance of Transformations before backend: time 7.284e-06/0.7702, allocations: 4 kB / 0.7542 GB, free: 13.5 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.004921/0.7752, allocations: 2.563 MB / 0.7567 GB, free: 10.89 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.931e-05/0.7752, allocations: 12.03 kB / 0.7567 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005606/0.7758, allocations: 79.41 kB / 0.7568 GB, free: 10.8 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004272/0.7762, allocations: 345.9 kB / 0.7571 GB, free: 10.43 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.945e-05/0.7763, allocations: 36.31 kB / 0.7571 GB, free: 10.39 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.989e-05/0.7763, allocations: 28 kB / 0.7572 GB, free: 10.37 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001192/0.7775, allocations: 0.6039 MB / 0.7577 GB, free: 9.746 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.7776, allocations: 0 / 0.7577 GB, free: 9.746 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.339e-05/0.7776, allocations: 16 kB / 0.7578 GB, free: 9.73 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.839e-05/0.7776, allocations: 15.36 kB / 0.7578 GB, free: 9.719 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001224/0.7789, allocations: 0.552 MB / 0.7583 GB, free: 9.172 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002248/0.7811, allocations: 2.508 MB / 0.7608 GB, free: 6.453 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.7822, allocations: 0.4982 MB / 0.7613 GB, free: 5.953 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004923/0.7827, allocations: 338.8 kB / 0.7616 GB, free: 5.621 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3572/1.14, allocations: 139 MB / 0.8973 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/1.14, allocations: 38.5 kB / 0.8973 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.515e-06/1.14, allocations: 0 / 0.8973 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.00492/1.145, allocations: 2.323 MB / 0.8996 GB, free: 214.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.824e-05/1.145, allocations: 61.19 kB / 0.8997 GB, free: 214.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000187/1.145, allocations: 264.6 kB / 0.8999 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/1.145, allocations: 31.92 kB / 0.8999 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.416e-05/1.145, allocations: 189.2 kB / 0.9001 GB, free: 213.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 8.799e-05/1.145, allocations: 267.5 kB / 0.9004 GB, free: 213.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.677e-05/1.145, allocations: 96.95 kB / 0.9005 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 4.933e-05/1.145, allocations: 354.8 kB / 0.9008 GB, free: 213 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003972/1.146, allocations: 269.3 kB / 0.9011 GB, free: 212.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/1.146, allocations: 404.3 kB / 0.9015 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000822/1.147, allocations: 0.7139 MB / 0.9021 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/1.147, allocations: 0 / 0.9021 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001134/1.148, allocations: 0.8032 MB / 0.9029 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.597e-05/1.148, allocations: 8.562 kB / 0.9029 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/1.148, allocations: 4 kB / 0.9029 GB, free: 210.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002073/1.149, allocations: 72.05 kB / 0.903 GB, free: 210.7 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005739/1.149, allocations: 123.5 kB / 0.9031 GB, free: 210.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05966/1.209, allocations: 19.08 MB / 0.9218 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003696/1.209, allocations: 31.91 kB / 0.9218 GB, free: 190.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.915e-05/1.209, allocations: 20 kB / 0.9218 GB, free: 190.9 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {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.0002023/1.209, allocations: 196.1 kB / 0.922 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.681e-05/1.209, allocations: 43.44 kB / 0.922 GB, free: 190.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001476/1.211, allocations: 1.574 MB / 0.9236 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.396e-05/1.211, allocations: 22.12 kB / 0.9236 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/1.211, allocations: 0 / 0.9236 GB, free: 189 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001063/1.212, allocations: 1.18 MB / 0.9247 GB, free: 187.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001665/1.214, allocations: 1.635 MB / 0.9263 GB, free: 186 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.196e-06/1.214, allocations: 0 / 0.9263 GB, free: 186 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002899/1.214, allocations: 83.91 kB / 0.9264 GB, free: 185.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002183/1.214, allocations: 103.7 kB / 0.9265 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.221e-05/1.214, allocations: 11.98 kB / 0.9265 GB, free: 185.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007807/1.215, allocations: 1.991 MB / 0.9285 GB, free: 183.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/1.215, allocations: 0 / 0.9285 GB, free: 183.7 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001465/1.217, allocations: 1.254 MB / 0.9297 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.301e-05/1.217, allocations: 120.5 kB / 0.9298 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.051e-05/1.217, allocations: 12 kB / 0.9298 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002805/1.217, allocations: 23.97 kB / 0.9299 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.66e-05/1.217, allocations: 43.89 kB / 0.9299 GB, free: 182.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.363e-05/1.217, allocations: 19.98 kB / 0.9299 GB, free: 182.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001734/1.217, allocations: 243 kB / 0.9301 GB, free: 181.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.3e-07/1.217, allocations: 0 / 0.9301 GB, free: 181.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006486/1.224, allocations: 3.517 MB / 0.9336 GB, free: 178.8 MB / 0.6075 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.h) * Number of discrete variables: 9 ($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 (38): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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 {(1,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.01227/1.236, allocations: 4.564 MB / 0.938 GB, free: 174.8 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001755/1.238, allocations: 1.016 MB / 0.939 GB, free: 173.8 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/1.238, allocations: 0 / 0.939 GB, free: 173.8 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006711/1.239, allocations: 0.4954 MB / 0.9395 GB, free: 173.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/1.24, allocations: 400.9 kB / 0.9399 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/1.242, allocations: 1.153 MB / 0.941 GB, free: 171.7 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001841/1.242, allocations: 0.8486 MB / 0.9419 GB, free: 170.8 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002915/1.242, allocations: 142.8 kB / 0.942 GB, free: 170.7 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.318e-05/1.242, allocations: 39.44 kB / 0.942 GB, free: 170.7 MB / 0.6075 GB Notification: Performance of SimCode: time 3.9e-07/1.242, allocations: 0 / 0.942 GB, free: 170.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.1111/1.353, allocations: 126.3 MB / 1.065 GB, free: 44.25 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)