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.001189/0.001189, allocations: 111 kB / 16.37 MB, free: 6.012 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.001262/0.001262, allocations: 190.1 kB / 17.31 MB, free: 5.613 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.407/1.407, allocations: 205.1 MB / 223.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04864/0.04864, allocations: 9.097 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.001463/0.001463, allocations: 71.91 kB / 339.5 MB, free: 6.992 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2248/0.2263, allocations: 48.14 MB / 387.6 MB, free: 51.81 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1304/0.3568, allocations: 142.2 MB / 0.5174 GB, free: 12.97 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.3128/0.6696, allocations: 97.7 MB / 0.6128 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000608/0.6702, allocations: 4.875 kB / 0.6128 GB, free: 14.54 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003015/0.6733, allocations: 1.375 MB / 0.6141 GB, free: 14.21 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003749/0.6771, allocations: 1.655 MB / 0.6158 GB, free: 13.82 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.08299/0.7601, allocations: 29.53 MB / 0.6446 GB, free: 9.984 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001981/0.7621, allocations: 1.403 MB / 0.646 GB, free: 8.609 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.7623, allocations: 123.8 kB / 0.6461 GB, free: 8.496 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0163/0.7787, allocations: 9.86 MB / 0.6557 GB, free: 15.04 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005222/0.7792, allocations: 376.2 kB / 0.6561 GB, free: 14.7 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 8.012e-05/0.7793, allocations: 40 kB / 0.6561 GB, free: 14.66 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06609/0.8454, allocations: 35.4 MB / 0.6907 GB, free: 12.34 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003379/0.8458, allocations: 121 kB / 0.6908 GB, free: 12.23 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007656/0.8466, allocations: 313 kB / 0.6911 GB, free: 11.93 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.05224/0.8988, allocations: 14.16 MB / 0.7049 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.701e-06/0.8989, allocations: 0 / 0.7049 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8989, allocations: 0 / 0.7049 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.045e-05/0.8989, allocations: 4 kB / 0.7049 GB, free: 14.83 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.006804/0.9057, allocations: 2.571 MB / 0.7075 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.983e-05/0.9058, allocations: 12.03 kB / 0.7075 GB, free: 12.2 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006645/0.9064, allocations: 83.39 kB / 0.7075 GB, free: 12.11 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.907, allocations: 342.1 kB / 0.7079 GB, free: 11.74 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.625e-05/0.907, allocations: 28.66 kB / 0.7079 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.763e-05/0.9071, allocations: 35.94 kB / 0.7079 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001313/0.9084, allocations: 0.6 MB / 0.7085 GB, free: 11.06 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.9084, allocations: 10.78 kB / 0.7085 GB, free: 11.05 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.951e-05/0.9085, allocations: 12 kB / 0.7085 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.302e-05/0.9085, allocations: 23.97 kB / 0.7086 GB, free: 11.02 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001279/0.9098, allocations: 0.5481 MB / 0.7091 GB, free: 10.47 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002519/0.9123, allocations: 2.496 MB / 0.7115 GB, free: 7.746 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001115/0.9134, allocations: 0.4946 MB / 0.712 GB, free: 7.246 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005207/0.914, allocations: 335.8 kB / 0.7123 GB, free: 6.918 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3777/1.292, allocations: 139 MB / 0.8481 GB, free: 85.3 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.141e-05/1.292, allocations: 42.84 kB / 0.8481 GB, free: 85.25 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=78): time 2.475e-06/1.292, allocations: 3.938 kB / 0.8481 GB, free: 85.24 MB / 0.4981 GB Notification: Performance of matching and sorting (n=82): time 0.005483/1.297, allocations: 2.326 MB / 0.8504 GB, free: 82.88 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.198e-05/1.297, allocations: 55.41 kB / 0.8504 GB, free: 82.81 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/1.298, allocations: 264.7 kB / 0.8507 GB, free: 82.55 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/1.298, allocations: 29.7 kB / 0.8507 GB, free: 82.52 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.484e-05/1.298, allocations: 189.1 kB / 0.8509 GB, free: 82.33 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/1.298, allocations: 267.8 kB / 0.8511 GB, free: 82.07 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001099/1.298, allocations: 98.11 kB / 0.8512 GB, free: 81.97 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 6.186e-05/1.298, allocations: 358.7 kB / 0.8516 GB, free: 81.61 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004022/1.298, allocations: 269.3 kB / 0.8518 GB, free: 81.35 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004466/1.299, allocations: 413.2 kB / 0.8522 GB, free: 80.9 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008549/1.3, allocations: 0.7048 MB / 0.8529 GB, free: 80.15 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/1.3, allocations: 0 / 0.8529 GB, free: 80.15 MB / 0.4981 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001237/1.301, allocations: 0.806 MB / 0.8537 GB, free: 79.33 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/1.301, allocations: 12.09 kB / 0.8537 GB, free: 79.32 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/1.301, allocations: 4 kB / 0.8537 GB, free: 79.32 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002344/1.301, allocations: 61.67 kB / 0.8538 GB, free: 79.25 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005823/1.302, allocations: 119.9 kB / 0.8539 GB, free: 79.13 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06426/1.366, allocations: 19.08 MB / 0.8725 GB, free: 59.52 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004675/1.367, allocations: 26.03 kB / 0.8725 GB, free: 59.5 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.201e-05/1.367, allocations: 20 kB / 0.8726 GB, free: 59.48 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.0002552/1.367, allocations: 195.5 kB / 0.8728 GB, free: 59.28 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/1.367, allocations: 43.59 kB / 0.8728 GB, free: 59.24 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/1.369, allocations: 1.571 MB / 0.8743 GB, free: 57.59 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.541e-05/1.369, allocations: 19.81 kB / 0.8743 GB, free: 57.58 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/1.369, allocations: 0 / 0.8743 GB, free: 57.58 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001138/1.37, allocations: 1.184 MB / 0.8755 GB, free: 56.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/1.372, allocations: 1.626 MB / 0.8771 GB, free: 54.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.988e-06/1.372, allocations: 3.938 kB / 0.8771 GB, free: 54.61 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003066/1.372, allocations: 79.88 kB / 0.8772 GB, free: 54.54 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002555/1.372, allocations: 108.4 kB / 0.8773 GB, free: 54.43 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.114e-05/1.372, allocations: 15.98 kB / 0.8773 GB, free: 54.41 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009451/1.373, allocations: 1.994 MB / 0.8792 GB, free: 52.26 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/1.373, allocations: 6.094 kB / 0.8792 GB, free: 52.25 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001644/1.375, allocations: 1.251 MB / 0.8805 GB, free: 50.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001071/1.375, allocations: 116.6 kB / 0.8806 GB, free: 50.85 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.852e-05/1.375, allocations: 15.94 kB / 0.8806 GB, free: 50.83 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003242/1.376, allocations: 28.03 kB / 0.8806 GB, free: 50.8 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.816e-05/1.376, allocations: 43.89 kB / 0.8807 GB, free: 50.76 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.953e-05/1.376, allocations: 19.88 kB / 0.8807 GB, free: 50.75 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0002033/1.376, allocations: 243 kB / 0.8809 GB, free: 50.51 MB / 0.4981 GB Notification: Performance of sort global known variables: time 2.3e-07/1.376, allocations: 0 / 0.8809 GB, free: 50.51 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.008002/1.384, allocations: 3.516 MB / 0.8843 GB, free: 47.45 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.01734/1.401, allocations: 4.57 MB / 0.8888 GB, free: 43.4 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.002168/1.404, allocations: 0.9952 MB / 0.8898 GB, free: 42.38 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/1.404, allocations: 0 / 0.8898 GB, free: 42.38 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0008134/1.404, allocations: 0.4988 MB / 0.8903 GB, free: 41.86 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001827/1.406, allocations: 397.8 kB / 0.8906 GB, free: 41.49 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001775/1.408, allocations: 1.158 MB / 0.8918 GB, free: 40.32 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002727/1.408, allocations: 0.8564 MB / 0.8926 GB, free: 39.44 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0003971/1.409, allocations: 142.7 kB / 0.8928 GB, free: 39.3 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/1.409, allocations: 35.44 kB / 0.8928 GB, free: 39.27 MB / 0.4981 GB Notification: Performance of SimCode: time 1.042e-06/1.409, allocations: 0 / 0.8928 GB, free: 39.27 MB / 0.4981 GB Notification: Performance of Templates: time 0.3072/1.716, allocations: 126.2 MB / 1.016 GB, free: 148.7 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 gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)