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.009645/0.009645, allocations: 94.64 kB / 15.73 MB, free: 6.039 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.002189/0.002189, allocations: 201 kB / 16.68 MB, free: 5.969 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.456/1.456, allocations: 205.1 MB / 222.5 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.04493/0.04493, allocations: 9.097 MB / 279 MB, free: 2.965 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.001359/0.001359, allocations: 70.06 kB / 387.5 MB, free: 47.31 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08878/0.09015, allocations: 48.17 MB / 435.7 MB, free: 7.695 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.427/0.5172, allocations: 142.2 MB / 0.5643 GB, free: 1.801 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.09051/0.6077, allocations: 97.73 MB / 0.6597 GB, free: 1.289 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007911/0.6086, allocations: 7.938 kB / 0.6597 GB, free: 1.281 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003522/0.6122, allocations: 1.358 MB / 0.6611 GB, free: 15.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004155/0.6163, allocations: 1.656 MB / 0.6627 GB, free: 14.25 MB / 494.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.08166/0.698, allocations: 29.53 MB / 0.6915 GB, free: 0.6445 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002075/0.7001, allocations: 1.414 MB / 0.6929 GB, free: 15.23 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002756/0.7004, allocations: 127.2 kB / 0.693 GB, free: 15.1 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01766/0.7181, allocations: 9.858 MB / 0.7027 GB, free: 5.219 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005687/0.7187, allocations: 378.5 kB / 0.703 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 7.332e-05/0.7188, allocations: 40 kB / 0.7031 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06884/0.7876, allocations: 36.36 MB / 0.7386 GB, free: 396 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0004211/0.7881, allocations: 115.6 kB / 0.7387 GB, free: 280 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.3216/1.11, allocations: 305.8 kB / 0.739 GB, free: 57.95 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.05407/1.164, allocations: 14.6 MB / 0.7532 GB, free: 57.53 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/1.164, allocations: 2.438 kB / 0.7532 GB, free: 57.53 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.355e-06/1.164, allocations: 0 / 0.7532 GB, free: 57.53 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.288e-05/1.164, allocations: 1.531 kB / 0.7532 GB, free: 57.53 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.009434/1.173, allocations: 2.77 MB / 0.7559 GB, free: 55.97 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/1.173, allocations: 11.59 kB / 0.7559 GB, free: 55.97 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005846/1.174, allocations: 87.08 kB / 0.756 GB, free: 55.94 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005776/1.175, allocations: 334.3 kB / 0.7563 GB, free: 55.72 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.714e-05/1.175, allocations: 34.25 kB / 0.7564 GB, free: 55.72 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.719e-05/1.175, allocations: 33.72 kB / 0.7564 GB, free: 55.72 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001242/1.176, allocations: 0.5851 MB / 0.757 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/1.176, allocations: 0 / 0.757 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.089e-05/1.176, allocations: 16.69 kB / 0.757 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.18e-05/1.176, allocations: 11.2 kB / 0.757 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001118/1.177, allocations: 0.5215 MB / 0.7575 GB, free: 55.62 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0024/1.18, allocations: 2.485 MB / 0.7599 GB, free: 53.95 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009693/1.181, allocations: 490.7 kB / 0.7604 GB, free: 53.92 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004585/1.181, allocations: 337.6 kB / 0.7607 GB, free: 53.91 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.1529/1.334, allocations: 113.4 MB / 0.8715 GB, free: 29.05 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.595e-05/1.334, allocations: 34.52 kB / 0.8715 GB, free: 29.01 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=78): time 2.585e-06/1.334, allocations: 3.938 kB / 0.8715 GB, free: 29.01 MB / 0.6231 GB Notification: Performance of matching and sorting (n=83): time 0.006594/1.341, allocations: 2.442 MB / 0.8739 GB, free: 28.48 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/1.341, allocations: 59.41 kB / 0.874 GB, free: 28.41 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002605/1.341, allocations: 254.5 kB / 0.8742 GB, free: 28.31 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.165e-05/1.341, allocations: 36.58 kB / 0.8743 GB, free: 28.28 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.000101/1.341, allocations: 194.7 kB / 0.8744 GB, free: 28.14 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/1.341, allocations: 275 kB / 0.8747 GB, free: 27.96 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001262/1.342, allocations: 102.1 kB / 0.8748 GB, free: 27.94 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001228/1.342, allocations: 349.8 kB / 0.8751 GB, free: 27.63 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004795/1.342, allocations: 282.7 kB / 0.8754 GB, free: 27.62 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005173/1.343, allocations: 405.5 kB / 0.8758 GB, free: 27.49 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009936/1.344, allocations: 0.7032 MB / 0.8765 GB, free: 27.36 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/1.344, allocations: 0 / 0.8765 GB, free: 27.36 MB / 0.6231 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001425/1.345, allocations: 0.8214 MB / 0.8773 GB, free: 27.26 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/1.345, allocations: 8.312 kB / 0.8773 GB, free: 27.26 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/1.345, allocations: 3.719 kB / 0.8773 GB, free: 27.26 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00029/1.345, allocations: 76.25 kB / 0.8774 GB, free: 27.24 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005003/1.346, allocations: 116.5 kB / 0.8775 GB, free: 27.24 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05073/1.397, allocations: 14.7 MB / 0.8918 GB, free: 32.89 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006244/1.397, allocations: 26.53 kB / 0.8919 GB, free: 32.88 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.566e-05/1.397, allocations: 22.64 kB / 0.8919 GB, free: 32.86 MB / 0.6387 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.0004139/1.398, allocations: 192.6 kB / 0.8921 GB, free: 32.71 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/1.398, allocations: 47.66 kB / 0.8921 GB, free: 32.66 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002618/1.401, allocations: 1.714 MB / 0.8938 GB, free: 31.74 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.072e-05/1.401, allocations: 15.84 kB / 0.8938 GB, free: 31.73 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.172e-05/1.401, allocations: 8.344 kB / 0.8938 GB, free: 31.73 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001845/1.403, allocations: 1.258 MB / 0.895 GB, free: 30.79 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002657/1.405, allocations: 1.761 MB / 0.8968 GB, free: 29.68 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.999e-06/1.405, allocations: 0 / 0.8968 GB, free: 29.68 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003179/1.406, allocations: 79.41 kB / 0.8968 GB, free: 29.61 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002857/1.406, allocations: 120.9 kB / 0.897 GB, free: 29.51 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/1.406, allocations: 14.83 kB / 0.897 GB, free: 29.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001796/1.408, allocations: 2.085 MB / 0.899 GB, free: 27.41 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/1.408, allocations: 0 / 0.899 GB, free: 27.41 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002085/1.41, allocations: 1.427 MB / 0.9004 GB, free: 26.43 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002038/1.41, allocations: 128.7 kB / 0.9005 GB, free: 26.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.851e-05/1.41, allocations: 11.69 kB / 0.9005 GB, free: 26.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003498/1.411, allocations: 24.41 kB / 0.9006 GB, free: 26.27 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001044/1.411, allocations: 49.69 kB / 0.9006 GB, free: 26.23 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.177e-05/1.411, allocations: 15.42 kB / 0.9006 GB, free: 26.21 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0002242/1.411, allocations: 225.4 kB / 0.9008 GB, free: 26.04 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.21e-07/1.411, allocations: 0 / 0.9008 GB, free: 26.04 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.009163/1.42, allocations: 3.037 MB / 0.9038 GB, free: 23.11 MB / 0.6387 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.01784/1.438, allocations: 3.893 MB / 0.9076 GB, free: 19.72 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002152/1.44, allocations: 1.053 MB / 0.9086 GB, free: 18.95 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/1.44, allocations: 0 / 0.9086 GB, free: 18.95 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008497/1.441, allocations: 0.5572 MB / 0.9092 GB, free: 18.55 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002062/1.443, allocations: 396 kB / 0.9096 GB, free: 18.2 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001762/1.445, allocations: 1.224 MB / 0.9107 GB, free: 17.16 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004055/1.445, allocations: 0.8608 MB / 0.9116 GB, free: 16.27 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.0004054/1.446, allocations: 122.1 kB / 0.9117 GB, free: 16.16 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/1.446, allocations: 47.36 kB / 0.9117 GB, free: 16.11 MB / 0.6387 GB Notification: Performance of SimCode: time 3.2e-07/1.446, allocations: 0 / 0.9117 GB, free: 16.11 MB / 0.6387 GB Notification: Performance of Templates: time 0.3668/1.813, allocations: 112.2 MB / 1.021 GB, free: 334.5 MB / 0.6856 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)