Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 111.2 kB / 16.37 MB, free: 6.48 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.00113/0.00113, allocations: 195.8 kB / 17.31 MB, free: 5.82 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.448/1.448, allocations: 205.1 MB / 223.2 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04791/0.04791, allocations: 9.085 MB / 279.6 MB, free: 2.984 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.001628/0.001628, allocations: 67.91 kB / 339.5 MB, free: 7 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.257, allocations: 48.14 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.1226/0.3796, allocations: 127.6 MB / 0.5031 GB, free: 11.49 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3053/0.685, allocations: 109.6 MB / 0.6101 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006333/0.6857, allocations: 8.531 kB / 0.6101 GB, free: 14.85 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002035/0.6878, allocations: 1.02 MB / 0.6111 GB, free: 14.6 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002206/0.69, allocations: 1.074 MB / 0.6122 GB, free: 14.35 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.08057/0.7706, allocations: 28.65 MB / 0.6402 GB, free: 12.95 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002316/0.7729, allocations: 1.368 MB / 0.6415 GB, free: 11.61 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.7732, allocations: 135.5 kB / 0.6416 GB, free: 11.48 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01833/0.7915, allocations: 11.89 MB / 0.6532 GB, free: 20 kB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005117/0.7921, allocations: 374.6 kB / 0.6536 GB, free: 15.68 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.461e-05/0.7921, allocations: 44 kB / 0.6536 GB, free: 15.64 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06394/0.8561, allocations: 33.13 MB / 0.686 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002963/0.8564, allocations: 118.8 kB / 0.6861 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005873/0.857, allocations: 314.1 kB / 0.6864 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06476/0.9218, allocations: 14.1 MB / 0.7002 GB, free: 2.043 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.9219, allocations: 4 kB / 0.7002 GB, free: 2.039 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.9219, allocations: 0 / 0.7002 GB, free: 2.039 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.9219, allocations: 0 / 0.7002 GB, free: 2.039 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.009539/0.9314, allocations: 2.568 MB / 0.7027 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 5.006e-05/0.9315, allocations: 12.02 kB / 0.7027 GB, free: 15.42 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.9326, allocations: 83.41 kB / 0.7028 GB, free: 15.34 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007642/0.9334, allocations: 345.4 kB / 0.7031 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.761e-05/0.9334, allocations: 28.66 kB / 0.7031 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.761e-05/0.9335, allocations: 36 kB / 0.7032 GB, free: 14.9 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002152/0.9356, allocations: 0.5998 MB / 0.7037 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.66e-05/0.9357, allocations: 11.84 kB / 0.7038 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.792e-05/0.9357, allocations: 12 kB / 0.7038 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.011e-05/0.9358, allocations: 15.2 kB / 0.7038 GB, free: 14.25 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002119/0.9379, allocations: 0.5446 MB / 0.7043 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004148/0.9421, allocations: 2.55 MB / 0.7068 GB, free: 10.94 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001978/0.9441, allocations: 0.5032 MB / 0.7073 GB, free: 10.43 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008746/0.945, allocations: 340.3 kB / 0.7076 GB, free: 10.1 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4235/1.369, allocations: 139 MB / 0.8433 GB, free: 120.8 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.99e-05/1.369, allocations: 41.19 kB / 0.8434 GB, free: 120.7 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=79): time 3.246e-06/1.369, allocations: 1.875 kB / 0.8434 GB, free: 120.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=83): time 0.005676/1.374, allocations: 2.336 MB / 0.8456 GB, free: 118.4 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.775e-05/1.374, allocations: 55.41 kB / 0.8457 GB, free: 118.3 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/1.375, allocations: 252.9 kB / 0.8459 GB, free: 118 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.452e-05/1.375, allocations: 29.7 kB / 0.846 GB, free: 118 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.874e-05/1.375, allocations: 182.1 kB / 0.8461 GB, free: 117.8 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001293/1.375, allocations: 278.8 kB / 0.8464 GB, free: 117.6 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001177/1.375, allocations: 98.11 kB / 0.8465 GB, free: 117.5 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 6.281e-05/1.375, allocations: 350.8 kB / 0.8468 GB, free: 117.1 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004369/1.376, allocations: 267.2 kB / 0.8471 GB, free: 116.8 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004548/1.376, allocations: 400.4 kB / 0.8475 GB, free: 116.4 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008955/1.377, allocations: 0.7088 MB / 0.8482 GB, free: 115.7 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/1.377, allocations: 0 / 0.8482 GB, free: 115.7 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001266/1.378, allocations: 0.7831 MB / 0.8489 GB, free: 114.9 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/1.378, allocations: 8.438 kB / 0.8489 GB, free: 114.8 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.077e-05/1.378, allocations: 8 kB / 0.8489 GB, free: 114.8 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002366/1.378, allocations: 61.67 kB / 0.849 GB, free: 114.8 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003813/1.379, allocations: 99.81 kB / 0.8491 GB, free: 114.7 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06514/1.444, allocations: 17.19 MB / 0.8659 GB, free: 97.01 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004357/1.444, allocations: 23.98 kB / 0.8659 GB, free: 96.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.004e-05/1.445, allocations: 21.55 kB / 0.8659 GB, free: 96.96 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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): 43 * 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 prepare postOptimizeDAE: time 0.0002504/1.445, allocations: 196.1 kB / 0.8661 GB, free: 96.77 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001082/1.445, allocations: 39.53 kB / 0.8662 GB, free: 96.73 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001669/1.447, allocations: 1.545 MB / 0.8677 GB, free: 95.11 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.779e-05/1.447, allocations: 7.984 kB / 0.8677 GB, free: 95.11 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/1.447, allocations: 4 kB / 0.8677 GB, free: 95.1 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001165/1.448, allocations: 1.139 MB / 0.8688 GB, free: 93.87 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001958/1.45, allocations: 1.594 MB / 0.8703 GB, free: 92.22 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/1.45, allocations: 4 kB / 0.8704 GB, free: 92.22 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003306/1.45, allocations: 79.88 kB / 0.8704 GB, free: 92.14 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/1.45, allocations: 44.84 kB / 0.8705 GB, free: 92.09 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.006e-05/1.45, allocations: 8 kB / 0.8705 GB, free: 92.09 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007762/1.451, allocations: 1.427 MB / 0.8719 GB, free: 90.53 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/1.451, allocations: 15.89 kB / 0.8719 GB, free: 90.51 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/1.453, allocations: 1.166 MB / 0.873 GB, free: 89.32 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 9.518e-05/1.453, allocations: 112.6 kB / 0.8731 GB, free: 89.2 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.606e-05/1.453, allocations: 19.88 kB / 0.8732 GB, free: 89.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003144/1.453, allocations: 25.22 kB / 0.8732 GB, free: 89.15 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.251e-05/1.453, allocations: 43.94 kB / 0.8732 GB, free: 89.11 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/1.453, allocations: 20.06 kB / 0.8732 GB, free: 89.09 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001898/1.454, allocations: 239 kB / 0.8735 GB, free: 88.86 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.4e-07/1.454, allocations: 0 / 0.8735 GB, free: 88.86 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00878/1.462, allocations: 3.514 MB / 0.8769 GB, free: 85.8 MB / 0.5137 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 (40): * 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: 1 * 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): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01652/1.479, allocations: 4.538 MB / 0.8813 GB, free: 81.75 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001699/1.481, allocations: 0.9568 MB / 0.8823 GB, free: 80.77 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/1.481, allocations: 0 / 0.8823 GB, free: 80.77 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007005/1.481, allocations: 499.2 kB / 0.8827 GB, free: 80.27 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/1.483, allocations: 405.8 kB / 0.8831 GB, free: 79.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/1.485, allocations: 1.146 MB / 0.8842 GB, free: 78.71 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002163/1.485, allocations: 0.8448 MB / 0.8851 GB, free: 77.84 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003439/1.485, allocations: 164.3 kB / 0.8852 GB, free: 77.67 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.566e-05/1.485, allocations: 43.44 kB / 0.8853 GB, free: 77.63 MB / 0.5137 GB Notification: Performance of SimCode: time 6.51e-07/1.485, allocations: 0 / 0.8853 GB, free: 77.63 MB / 0.5137 GB Notification: Performance of Templates: time 0.2917/1.777, allocations: 125.8 MB / 1.008 GB, free: 203.7 MB / 0.5137 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)