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.001117/0.001117, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001265/0.001265, allocations: 194.8 kB / 16.14 MB, free: 6.703 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.37/1.37, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0419/0.0419, allocations: 9.081 MB / 278.4 MB, free: 12.4 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.00126/0.00126, allocations: 59.92 kB / 337.3 MB, free: 25.89 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09441/0.09568, allocations: 48.18 MB / 385.5 MB, free: 9.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.342/0.4377, allocations: 144.1 MB / 0.5172 GB, free: 6.266 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.315/0.7528, allocations: 99.23 MB / 0.6141 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005359/0.7534, allocations: 8 kB / 0.6141 GB, free: 1.094 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003009/0.7564, allocations: 1.174 MB / 0.6153 GB, free: 1.09 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003046/0.7595, allocations: 1.474 MB / 0.6167 GB, free: 1.074 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.06354/0.823, allocations: 25.1 MB / 0.6412 GB, free: 15.79 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002093/0.8252, allocations: 1.817 MB / 0.643 GB, free: 15.48 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002141/0.8254, allocations: 102.9 kB / 0.6431 GB, free: 15.46 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01393/0.8393, allocations: 9.374 MB / 0.6523 GB, free: 12.27 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004305/0.8398, allocations: 391.5 kB / 0.6526 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 4.883e-05/0.8398, allocations: 22.62 kB / 0.6527 GB, free: 12.14 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05557/0.8954, allocations: 31.47 MB / 0.6834 GB, free: 6.215 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002782/0.8957, allocations: 100.5 kB / 0.6835 GB, free: 6.148 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006294/0.8964, allocations: 281.7 kB / 0.6838 GB, free: 5.934 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04235/0.9387, allocations: 13.74 MB / 0.6972 GB, free: 10.33 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.452e-06/0.9388, allocations: 0 / 0.6972 GB, free: 10.33 MB / 494.1 MB Notification: Performance of FrontEnd: time 3.657e-06/0.9388, allocations: 4 kB / 0.6972 GB, free: 10.33 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.9388, allocations: 0 / 0.6972 GB, free: 10.33 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.005977/0.9448, allocations: 2.567 MB / 0.6997 GB, free: 7.719 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.9448, allocations: 8.031 kB / 0.6997 GB, free: 7.711 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006293/0.9455, allocations: 91.33 kB / 0.6998 GB, free: 7.621 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003593/0.9458, allocations: 331.3 kB / 0.7001 GB, free: 7.262 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.21e-05/0.9459, allocations: 29.16 kB / 0.7001 GB, free: 7.234 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.842e-05/0.9459, allocations: 40 kB / 0.7002 GB, free: 7.195 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.9472, allocations: 0.5954 MB / 0.7008 GB, free: 6.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.9472, allocations: 4 kB / 0.7008 GB, free: 6.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.986e-05/0.9472, allocations: 16 kB / 0.7008 GB, free: 6.57 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.766e-05/0.9473, allocations: 18.36 kB / 0.7008 GB, free: 6.555 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001235/0.9485, allocations: 0.5525 MB / 0.7013 GB, free: 6.008 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.9508, allocations: 2.509 MB / 0.7038 GB, free: 3.293 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/0.9519, allocations: 0.4965 MB / 0.7043 GB, free: 2.789 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005018/0.9524, allocations: 342.3 kB / 0.7046 GB, free: 2.449 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4038/1.356, allocations: 139 MB / 0.8403 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.959e-05/1.356, allocations: 41.5 kB / 0.8403 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=78): time 3.126e-06/1.356, allocations: 0 / 0.8403 GB, free: 252.7 MB / 0.5762 GB Notification: Performance of matching and sorting (n=82): time 0.005376/1.362, allocations: 2.334 MB / 0.8426 GB, free: 251.4 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.504e-05/1.362, allocations: 55.28 kB / 0.8427 GB, free: 251.3 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002195/1.362, allocations: 260.9 kB / 0.8429 GB, free: 251.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/1.362, allocations: 33.7 kB / 0.843 GB, free: 251.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 8.859e-05/1.362, allocations: 183 kB / 0.8431 GB, free: 250.9 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.362, allocations: 274.5 kB / 0.8434 GB, free: 250.7 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001116/1.362, allocations: 100.8 kB / 0.8435 GB, free: 250.6 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 6.607e-05/1.362, allocations: 350.3 kB / 0.8438 GB, free: 250.3 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004227/1.363, allocations: 276.8 kB / 0.8441 GB, free: 250.2 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004639/1.363, allocations: 404.6 kB / 0.8445 GB, free: 249.9 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009351/1.364, allocations: 0.7201 MB / 0.8452 GB, free: 249.4 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.364, allocations: 0 / 0.8452 GB, free: 249.4 MB / 0.5762 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00132/1.366, allocations: 0.7942 MB / 0.8459 GB, free: 249 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/1.366, allocations: 10 kB / 0.846 GB, free: 249 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/1.366, allocations: 7.734 kB / 0.846 GB, free: 249 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002461/1.366, allocations: 60.44 kB / 0.846 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006054/1.366, allocations: 131 kB / 0.8461 GB, free: 248.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08917/1.456, allocations: 24.53 MB / 0.8701 GB, free: 225.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005081/1.456, allocations: 53.8 kB / 0.8702 GB, free: 225.4 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.11e-05/1.456, allocations: 20 kB / 0.8702 GB, free: 225.4 MB / 0.5762 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.000248/1.456, allocations: 193.5 kB / 0.8704 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.221e-05/1.457, allocations: 39.53 kB / 0.8704 GB, free: 225.2 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001583/1.458, allocations: 1.582 MB / 0.8719 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.53e-05/1.458, allocations: 19.66 kB / 0.872 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/1.458, allocations: 0 / 0.872 GB, free: 223.5 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001112/1.459, allocations: 1.176 MB / 0.8731 GB, free: 222.2 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/1.461, allocations: 1.633 MB / 0.8747 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/1.461, allocations: 0 / 0.8747 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/1.461, allocations: 75.95 kB / 0.8748 GB, free: 220.5 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002589/1.462, allocations: 109.6 kB / 0.8749 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.299e-05/1.462, allocations: 15.92 kB / 0.8749 GB, free: 220.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008645/1.463, allocations: 1.886 MB / 0.8767 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/1.463, allocations: 4.031 kB / 0.8767 GB, free: 218.3 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001545/1.464, allocations: 1.254 MB / 0.878 GB, free: 217 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 8.548e-05/1.464, allocations: 120.5 kB / 0.8781 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/1.464, allocations: 15.92 kB / 0.8781 GB, free: 216.9 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003305/1.465, allocations: 36.03 kB / 0.8781 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.9e-05/1.465, allocations: 39.94 kB / 0.8782 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.378e-05/1.465, allocations: 16 kB / 0.8782 GB, free: 216.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001963/1.465, allocations: 239 kB / 0.8784 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.3e-07/1.465, allocations: 0 / 0.8784 GB, free: 216.5 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.008274/1.473, allocations: 3.193 MB / 0.8815 GB, free: 213.8 MB / 0.5762 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.01533/1.489, allocations: 4.159 MB / 0.8856 GB, free: 210.1 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00184/1.491, allocations: 0.9749 MB / 0.8865 GB, free: 209.1 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/1.491, allocations: 4.062 kB / 0.8866 GB, free: 209.1 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0007266/1.491, allocations: 0.4912 MB / 0.887 GB, free: 208.6 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/1.493, allocations: 389.5 kB / 0.8874 GB, free: 208.2 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001486/1.495, allocations: 1.368 MB / 0.8887 GB, free: 206.8 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/1.495, allocations: 0.8564 MB / 0.8896 GB, free: 205.9 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.000377/1.495, allocations: 137.7 kB / 0.8897 GB, free: 205.8 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.192e-05/1.495, allocations: 35.44 kB / 0.8897 GB, free: 205.8 MB / 0.5762 GB Notification: Performance of SimCode: time 2.4e-07/1.495, allocations: 3.938 kB / 0.8897 GB, free: 205.8 MB / 0.5762 GB Notification: Performance of Templates: time 0.1118/1.607, allocations: 117.8 MB / 1.005 GB, free: 87.84 MB / 0.5762 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)