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.001325/0.001325, allocations: 103.5 kB / 16.35 MB, free: 6.285 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.001149/0.001149, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.405/1.405, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04704/0.04704, allocations: 9.096 MB / 279.6 MB, free: 2.969 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.002781/0.002781, allocations: 71.89 kB / 339.5 MB, free: 6.988 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.2394, allocations: 48.14 MB / 387.6 MB, free: 51.54 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.1281/0.3676, allocations: 142.2 MB / 0.5174 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3119/0.6795, allocations: 97.7 MB / 0.6128 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006444/0.6802, allocations: 8.312 kB / 0.6128 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002919/0.6832, allocations: 1.377 MB / 0.6141 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003178/0.6864, allocations: 1.647 MB / 0.6157 GB, free: 13.87 MB / 430.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.07804/0.7644, allocations: 29.54 MB / 0.6446 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002147/0.7666, allocations: 1.405 MB / 0.646 GB, free: 8.516 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.7669, allocations: 136.6 kB / 0.6461 GB, free: 8.391 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01814/0.785, allocations: 9.858 MB / 0.6557 GB, free: 14.94 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005629/0.7856, allocations: 384 kB / 0.6561 GB, free: 14.59 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.361e-05/0.7857, allocations: 40 kB / 0.6561 GB, free: 14.55 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06997/0.8557, allocations: 36.35 MB / 0.6916 GB, free: 11.33 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002523/0.856, allocations: 122 kB / 0.6917 GB, free: 11.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005491/0.8565, allocations: 304.9 kB / 0.692 GB, free: 10.91 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05263/0.9091, allocations: 14.56 MB / 0.7063 GB, free: 13.24 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.9092, allocations: 3.938 kB / 0.7063 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.054e-06/0.9092, allocations: 0 / 0.7063 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.566e-05/0.9092, allocations: 0 / 0.7063 GB, free: 13.23 MB / 0.4981 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.007676/0.9169, allocations: 2.669 MB / 0.7089 GB, free: 10.52 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.917, allocations: 8.031 kB / 0.7089 GB, free: 10.51 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005781/0.9176, allocations: 75.41 kB / 0.7089 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005842/0.9182, allocations: 334.1 kB / 0.7093 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.003e-05/0.9182, allocations: 32.59 kB / 0.7093 GB, free: 10.04 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.89e-05/0.9183, allocations: 32 kB / 0.7093 GB, free: 10 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.9195, allocations: 0.5807 MB / 0.7099 GB, free: 9.406 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.9195, allocations: 11.84 kB / 0.7099 GB, free: 9.395 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.855e-05/0.9196, allocations: 23.94 kB / 0.7099 GB, free: 9.371 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.9196, allocations: 8 kB / 0.7099 GB, free: 9.363 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001145/0.9207, allocations: 0.5169 MB / 0.7104 GB, free: 8.852 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002701/0.9234, allocations: 2.478 MB / 0.7129 GB, free: 6.145 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001026/0.9245, allocations: 491.2 kB / 0.7133 GB, free: 5.66 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005258/0.925, allocations: 347.1 kB / 0.7137 GB, free: 5.324 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3249/1.25, allocations: 113.4 MB / 0.8244 GB, free: 112.1 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.486e-05/1.25, allocations: 34.84 kB / 0.8244 GB, free: 112 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=78): time 6.041e-06/1.25, allocations: 4 kB / 0.8244 GB, free: 112 MB / 0.4981 GB Notification: Performance of matching and sorting (n=83): time 0.005803/1.256, allocations: 2.429 MB / 0.8268 GB, free: 109.6 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.728e-05/1.256, allocations: 60.41 kB / 0.8269 GB, free: 109.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002473/1.256, allocations: 254.6 kB / 0.8271 GB, free: 109.3 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.977e-05/1.256, allocations: 33.7 kB / 0.8271 GB, free: 109.2 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001017/1.256, allocations: 192.6 kB / 0.8273 GB, free: 109 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000125/1.256, allocations: 263.7 kB / 0.8276 GB, free: 108.8 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001302/1.257, allocations: 102.1 kB / 0.8277 GB, free: 108.7 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001211/1.257, allocations: 348.7 kB / 0.828 GB, free: 108.3 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003954/1.257, allocations: 285.2 kB / 0.8283 GB, free: 108.1 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004296/1.258, allocations: 404.2 kB / 0.8287 GB, free: 107.6 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008205/1.258, allocations: 0.7084 MB / 0.8294 GB, free: 106.9 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/1.258, allocations: 2.594 kB / 0.8294 GB, free: 106.9 MB / 0.4981 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001256/1.26, allocations: 0.8115 MB / 0.8302 GB, free: 106.1 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/1.26, allocations: 8 kB / 0.8302 GB, free: 106.1 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/1.26, allocations: 7.938 kB / 0.8302 GB, free: 106.1 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002805/1.26, allocations: 85.31 kB / 0.8303 GB, free: 106 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004698/1.26, allocations: 107.9 kB / 0.8304 GB, free: 105.9 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04481/1.305, allocations: 14.69 MB / 0.8447 GB, free: 90.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003977/1.306, allocations: 27.97 kB / 0.8447 GB, free: 90.7 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.404e-05/1.306, allocations: 16 kB / 0.8447 GB, free: 90.68 MB / 0.4981 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.0002259/1.306, allocations: 208.1 kB / 0.8449 GB, free: 90.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.954e-05/1.306, allocations: 43.44 kB / 0.845 GB, free: 90.43 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001678/1.308, allocations: 1.725 MB / 0.8467 GB, free: 88.64 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.324e-05/1.308, allocations: 12.7 kB / 0.8467 GB, free: 88.63 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/1.308, allocations: 0.5625 kB / 0.8467 GB, free: 88.63 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001179/1.309, allocations: 1.264 MB / 0.8479 GB, free: 87.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001823/1.311, allocations: 1.753 MB / 0.8496 GB, free: 85.47 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/1.311, allocations: 8.031 kB / 0.8496 GB, free: 85.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003204/1.311, allocations: 82.38 kB / 0.8497 GB, free: 85.39 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002578/1.311, allocations: 111.2 kB / 0.8498 GB, free: 85.27 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.591e-05/1.311, allocations: 15.98 kB / 0.8498 GB, free: 85.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001008/1.312, allocations: 2.087 MB / 0.8519 GB, free: 83.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.472e-06/1.312, allocations: 0 / 0.8519 GB, free: 83.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001663/1.314, allocations: 1.417 MB / 0.8533 GB, free: 81.57 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.512e-05/1.314, allocations: 126 kB / 0.8534 GB, free: 81.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/1.314, allocations: 8 kB / 0.8534 GB, free: 81.42 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002911/1.315, allocations: 23.97 kB / 0.8534 GB, free: 81.39 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.217e-05/1.315, allocations: 51.88 kB / 0.8535 GB, free: 81.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/1.315, allocations: 17.36 kB / 0.8535 GB, free: 81.33 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00018/1.315, allocations: 227.1 kB / 0.8537 GB, free: 81.11 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.61e-07/1.315, allocations: 0 / 0.8537 GB, free: 81.11 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007031/1.322, allocations: 2.987 MB / 0.8566 GB, free: 78.52 MB / 0.4981 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.01335/1.335, allocations: 3.828 MB / 0.8603 GB, free: 75.16 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001875/1.337, allocations: 1.048 MB / 0.8614 GB, free: 74.08 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.337, allocations: 0 / 0.8614 GB, free: 74.08 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006974/1.338, allocations: 0.5581 MB / 0.8619 GB, free: 73.51 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001627/1.34, allocations: 413.4 kB / 0.8623 GB, free: 73.11 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/1.341, allocations: 1.216 MB / 0.8635 GB, free: 71.89 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/1.341, allocations: 0.8608 MB / 0.8643 GB, free: 71 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0002943/1.341, allocations: 115.2 kB / 0.8644 GB, free: 70.88 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.943e-05/1.342, allocations: 47.42 kB / 0.8645 GB, free: 70.83 MB / 0.4981 GB Notification: Performance of SimCode: time 3.21e-07/1.342, allocations: 0 / 0.8645 GB, free: 70.83 MB / 0.4981 GB Notification: Performance of Templates: time 0.281/1.623, allocations: 112 MB / 0.9739 GB, free: 195.3 MB / 0.4981 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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)