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.00193/0.00193, allocations: 103.5 kB / 16.35 MB, free: 5.875 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.002006/0.002007, allocations: 195.9 kB / 17.3 MB, free: 5.516 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.967/1.967, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04917/0.04917, allocations: 9.102 MB / 279.6 MB, free: 2.949 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.001613/0.001613, allocations: 63.91 kB / 339.5 MB, free: 6.969 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.4476, allocations: 48.14 MB / 387.6 MB, free: 51.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1851/0.6328, allocations: 142.2 MB / 0.5174 GB, free: 12.83 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.5222/1.155, allocations: 97.7 MB / 0.6128 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009865/1.156, allocations: 7.438 kB / 0.6128 GB, free: 14.58 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0046/1.161, allocations: 1.374 MB / 0.6141 GB, free: 14.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005323/1.166, allocations: 1.65 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.1266/1.293, allocations: 29.54 MB / 0.6446 GB, free: 9.93 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.003538/1.296, allocations: 1.4 MB / 0.646 GB, free: 8.559 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000471/1.297, allocations: 132.2 kB / 0.6461 GB, free: 8.438 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02445/1.321, allocations: 9.865 MB / 0.6557 GB, free: 14.98 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006844/1.322, allocations: 372.7 kB / 0.6561 GB, free: 14.64 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.724e-05/1.322, allocations: 44 kB / 0.6561 GB, free: 14.6 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.09399/1.416, allocations: 35.4 MB / 0.6907 GB, free: 12.3 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003812/1.417, allocations: 122.4 kB / 0.6908 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007389/1.417, allocations: 309.3 kB / 0.6911 GB, free: 11.88 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06775/1.485, allocations: 14.16 MB / 0.7049 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.114e-05/1.485, allocations: 4 kB / 0.7049 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.456e-06/1.485, allocations: 0 / 0.7049 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.585e-05/1.485, allocations: 0 / 0.7049 GB, free: 14.64 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.009183/1.494, allocations: 2.563 MB / 0.7074 GB, free: 12.02 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/1.495, allocations: 12.03 kB / 0.7074 GB, free: 12.01 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007381/1.495, allocations: 93.58 kB / 0.7075 GB, free: 11.92 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006473/1.496, allocations: 338.1 kB / 0.7079 GB, free: 11.55 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.315e-05/1.496, allocations: 28.64 kB / 0.7079 GB, free: 11.52 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.973e-05/1.496, allocations: 36 kB / 0.7079 GB, free: 11.49 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00142/1.497, allocations: 0.6037 MB / 0.7085 GB, free: 10.87 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.508e-05/1.498, allocations: 3.906 kB / 0.7085 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.728e-05/1.498, allocations: 12 kB / 0.7085 GB, free: 10.85 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.565e-05/1.498, allocations: 15.98 kB / 0.7085 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/1.499, allocations: 0.5524 MB / 0.7091 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002946/1.502, allocations: 2.5 MB / 0.7115 GB, free: 7.559 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001217/1.503, allocations: 0.4908 MB / 0.712 GB, free: 7.062 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005218/1.504, allocations: 335.8 kB / 0.7123 GB, free: 6.734 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4797/1.983, allocations: 139 MB / 0.848 GB, free: 85.13 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.384e-05/1.983, allocations: 41.47 kB / 0.8481 GB, free: 85.09 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=78): time 4.919e-06/1.984, allocations: 0 / 0.8481 GB, free: 85.09 MB / 0.4981 GB Notification: Performance of matching and sorting (n=82): time 0.006326/1.99, allocations: 2.332 MB / 0.8504 GB, free: 82.71 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.214e-05/1.99, allocations: 55.39 kB / 0.8504 GB, free: 82.65 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002979/1.99, allocations: 265.6 kB / 0.8507 GB, free: 82.38 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.094e-05/1.99, allocations: 29.7 kB / 0.8507 GB, free: 82.35 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/1.99, allocations: 194.5 kB / 0.8509 GB, free: 82.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000174/1.991, allocations: 266.7 kB / 0.8511 GB, free: 81.9 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/1.991, allocations: 94.11 kB / 0.8512 GB, free: 81.8 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001242/1.991, allocations: 354.6 kB / 0.8516 GB, free: 81.45 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004234/1.991, allocations: 273.3 kB / 0.8518 GB, free: 81.19 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004972/1.992, allocations: 409.3 kB / 0.8522 GB, free: 80.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009827/1.993, allocations: 0.7046 MB / 0.8529 GB, free: 79.99 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/1.993, allocations: 4.625 kB / 0.8529 GB, free: 79.99 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001256/1.994, allocations: 0.8021 MB / 0.8537 GB, free: 79.18 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.605e-05/1.994, allocations: 8 kB / 0.8537 GB, free: 79.17 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.385e-05/1.994, allocations: 4 kB / 0.8537 GB, free: 79.16 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002863/1.994, allocations: 69.98 kB / 0.8538 GB, free: 79.09 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006061/1.995, allocations: 123.8 kB / 0.8539 GB, free: 78.97 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.065/2.06, allocations: 19.08 MB / 0.8725 GB, free: 59.36 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006843/2.061, allocations: 19.98 kB / 0.8725 GB, free: 59.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.908e-05/2.061, allocations: 24.92 kB / 0.8726 GB, free: 59.32 MB / 0.4981 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.0004195/2.061, allocations: 196 kB / 0.8727 GB, free: 59.12 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001089/2.061, allocations: 39.53 kB / 0.8728 GB, free: 59.08 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/2.063, allocations: 1.575 MB / 0.8743 GB, free: 57.43 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.35e-05/2.063, allocations: 14.81 kB / 0.8743 GB, free: 57.42 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.136e-06/2.063, allocations: 0 / 0.8743 GB, free: 57.42 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001314/2.065, allocations: 1.184 MB / 0.8755 GB, free: 56.15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002196/2.067, allocations: 1.637 MB / 0.8771 GB, free: 54.45 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/2.067, allocations: 1.25 kB / 0.8771 GB, free: 54.45 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/2.067, allocations: 83.81 kB / 0.8772 GB, free: 54.37 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002965/2.068, allocations: 105.5 kB / 0.8773 GB, free: 54.26 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/2.068, allocations: 16.03 kB / 0.8773 GB, free: 54.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001357/2.069, allocations: 1.993 MB / 0.8792 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.083e-06/2.069, allocations: 0 / 0.8792 GB, free: 52.09 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/2.071, allocations: 1.251 MB / 0.8805 GB, free: 50.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001063/2.071, allocations: 116.5 kB / 0.8806 GB, free: 50.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.856e-05/2.071, allocations: 12 kB / 0.8806 GB, free: 50.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002875/2.071, allocations: 23.97 kB / 0.8806 GB, free: 50.65 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001222/2.071, allocations: 55.75 kB / 0.8807 GB, free: 50.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/2.071, allocations: 12 kB / 0.8807 GB, free: 50.58 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000257/2.072, allocations: 247.1 kB / 0.8809 GB, free: 50.34 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/2.072, allocations: 0 / 0.8809 GB, free: 50.34 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.01507/2.087, allocations: 3.516 MB / 0.8843 GB, free: 47.28 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.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.02016/2.107, allocations: 4.571 MB / 0.8888 GB, free: 43.23 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.00295/2.11, allocations: 0.9949 MB / 0.8898 GB, free: 42.21 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.325e-06/2.11, allocations: 0 / 0.8898 GB, free: 42.21 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009777/2.111, allocations: 0.5031 MB / 0.8903 GB, free: 41.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002225/2.113, allocations: 395.8 kB / 0.8906 GB, free: 41.31 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002614/2.116, allocations: 1.157 MB / 0.8918 GB, free: 40.14 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004964/2.117, allocations: 0.8564 MB / 0.8926 GB, free: 39.25 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005984/2.117, allocations: 143.1 kB / 0.8927 GB, free: 39.11 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/2.117, allocations: 39.42 kB / 0.8928 GB, free: 39.07 MB / 0.4981 GB Notification: Performance of SimCode: time 5.51e-07/2.117, allocations: 0 / 0.8928 GB, free: 39.07 MB / 0.4981 GB Notification: Performance of Templates: time 0.438/2.555, allocations: 126.2 MB / 1.016 GB, free: 148.5 MB / 0.4981 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 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)