Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.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.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") translateModel(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 110.2 kB / 16.37 MB, free: 6.004 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.001749/0.001749, allocations: 197.1 kB / 17.31 MB, free: 5.617 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.908/1.908, allocations: 205.1 MB / 223.2 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04855/0.04855, allocations: 9.097 MB / 279.6 MB, free: 2.977 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.00192/0.00192, allocations: 67.91 kB / 339.5 MB, free: 7.008 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4395/0.4415, allocations: 48.15 MB / 387.6 MB, free: 51.49 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.7158/1.157, allocations: 196 MB / 0.57 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1612/1.319, allocations: 141.7 MB / 0.7084 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/1.32, allocations: 11.94 kB / 0.7084 GB, free: 10.68 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.004545/1.325, allocations: 1.373 MB / 0.7097 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.005727/1.331, allocations: 1.626 MB / 0.7113 GB, free: 7.668 MB / 0.4981 GB [/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.7895/2.12, allocations: 38.17 MB / 0.7486 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.005261/2.125, allocations: 1.927 MB / 0.7505 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0008069/2.126, allocations: 192.4 kB / 0.7506 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003721/2.13, allocations: 0.8227 MB / 0.7514 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002238/2.132, allocations: 0.5309 MB / 0.752 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.000229/2.133, allocations: 60.66 kB / 0.752 GB, free: 3.168 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.139/2.272, allocations: 44.23 MB / 0.7952 GB, free: 7.113 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0006867/2.272, allocations: 171.4 kB / 0.7954 GB, free: 7.047 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.001527/2.274, allocations: 426.9 kB / 0.7958 GB, free: 6.84 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.09236/2.366, allocations: 18.81 MB / 0.8141 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 1.128e-05/2.366, allocations: 0 / 0.8141 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of FrontEnd: time 3.286e-06/2.366, allocations: 0 / 0.8141 GB, free: 8.457 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.693e-05/2.366, allocations: 4 kB / 0.8142 GB, free: 8.453 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 176 * Number of variables: 176 Notification: Performance of Generate backend data structure: time 0.01335/2.38, allocations: 3.35 MB / 0.8174 GB, free: 5.098 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 6.256e-05/2.38, allocations: 8.031 kB / 0.8174 GB, free: 5.09 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001022/2.381, allocations: 127.7 kB / 0.8176 GB, free: 4.965 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008768/2.382, allocations: 405.3 kB / 0.8179 GB, free: 4.531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.434e-05/2.382, allocations: 45 kB / 0.818 GB, free: 4.488 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.128e-05/2.382, allocations: 44 kB / 0.818 GB, free: 4.445 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00187/2.384, allocations: 0.8266 MB / 0.8188 GB, free: 3.598 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.845e-05/2.384, allocations: 3.906 kB / 0.8188 GB, free: 3.594 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.159e-05/2.384, allocations: 21.2 kB / 0.8189 GB, free: 3.574 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.04e-05/2.384, allocations: 26.58 kB / 0.8189 GB, free: 3.555 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001704/2.386, allocations: 0.7603 MB / 0.8196 GB, free: 2.801 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00408/2.39, allocations: 3.412 MB / 0.823 GB, free: 15.11 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/2.391, allocations: 0.6886 MB / 0.8236 GB, free: 14.41 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007464/2.392, allocations: 490.5 kB / 0.8241 GB, free: 13.94 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.8829/3.275, allocations: 185.3 MB / 1.005 GB, free: 164.6 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.68e-05/3.275, allocations: 39.94 kB / 1.005 GB, free: 164.6 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 4.799e-06/3.275, allocations: 0 / 1.005 GB, free: 164.6 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.01016/3.285, allocations: 3.417 MB / 1.008 GB, free: 164 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.246e-05/3.285, allocations: 59.38 kB / 1.008 GB, free: 164 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004402/3.286, allocations: 307.6 kB / 1.009 GB, free: 163.9 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.157e-05/3.286, allocations: 38.45 kB / 1.009 GB, free: 163.8 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002169/3.286, allocations: 236 kB / 1.009 GB, free: 163.7 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000291/3.286, allocations: 380.9 kB / 1.009 GB, free: 163.5 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002517/3.287, allocations: 136.7 kB / 1.01 GB, free: 163.5 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001394/3.287, allocations: 375.2 kB / 1.01 GB, free: 163.1 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007518/3.288, allocations: 395.4 kB / 1.01 GB, free: 163.1 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008802/3.289, allocations: 0.528 MB / 1.011 GB, free: 163 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00177/3.29, allocations: 0.9762 MB / 1.012 GB, free: 162.8 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/3.29, allocations: 3.688 kB / 1.012 GB, free: 162.8 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002269/3.293, allocations: 1.128 MB / 1.013 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.987e-05/3.293, allocations: 10.66 kB / 1.013 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.554e-05/3.293, allocations: 1.875 kB / 1.013 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004376/3.293, allocations: 105 kB / 1.013 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/3.294, allocations: 204.9 kB / 1.013 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1357/3.43, allocations: 35.28 MB / 1.048 GB, free: 149.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008271/3.431, allocations: 38.78 kB / 1.048 GB, free: 149.4 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.989e-05/3.431, allocations: 30.88 kB / 1.048 GB, free: 149.4 MB / 0.6856 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 12 (volume1.medium.sat.vap.phase,volume1.medium.sat.liq.phase,volume1.medium.state.phase,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 (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 3 * 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): 4 systems {1, 1, 1, 1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0005217/3.431, allocations: 226.6 kB / 1.048 GB, free: 149.3 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001569/3.432, allocations: 55 kB / 1.048 GB, free: 149.3 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003437/3.435, allocations: 2.377 MB / 1.05 GB, free: 149 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.477e-05/3.435, allocations: 23.66 kB / 1.05 GB, free: 149 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/3.435, allocations: 6.5 kB / 1.05 GB, free: 149 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002615/3.438, allocations: 1.648 MB / 1.052 GB, free: 148.5 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004342/3.442, allocations: 2.465 MB / 1.054 GB, free: 148.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.059e-05/3.442, allocations: 7.938 kB / 1.054 GB, free: 148.1 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000511/3.443, allocations: 113.9 kB / 1.054 GB, free: 148.1 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005429/3.443, allocations: 203.4 kB / 1.055 GB, free: 147.9 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/3.443, allocations: 17.84 kB / 1.055 GB, free: 147.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002473/3.446, allocations: 3.978 MB / 1.059 GB, free: 143.9 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.425e-06/3.446, allocations: 0 / 1.059 GB, free: 143.9 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00298/3.449, allocations: 1.969 MB / 1.06 GB, free: 142.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002133/3.449, allocations: 135.2 kB / 1.061 GB, free: 142.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.324e-05/3.449, allocations: 18.56 kB / 1.061 GB, free: 142.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004024/3.449, allocations: 32.86 kB / 1.061 GB, free: 142.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001851/3.45, allocations: 63.8 kB / 1.061 GB, free: 142.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-05/3.45, allocations: 18.98 kB / 1.061 GB, free: 142.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0003074/3.45, allocations: 260.3 kB / 1.061 GB, free: 142.4 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.6e-07/3.45, allocations: 0 / 1.061 GB, free: 142.4 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0206/3.471, allocations: 5.458 MB / 1.066 GB, free: 138 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (volume.medium.p,volume.medium.h,volume1.medium.p,volume1.medium.h) * Number of discrete variables: 14 ($cse13.phase,$cse16.phase,$cse17.phase,$cse18.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,volume1.medium.state.phase,volume1.medium.sat.liq.phase,volume1.medium.sat.vap.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.03581/3.506, allocations: 6.813 MB / 1.073 GB, free: 133.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.004003/3.511, allocations: 1.562 MB / 1.074 GB, free: 132 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 8.566e-06/3.511, allocations: 4 kB / 1.074 GB, free: 132 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001281/3.512, allocations: 0.8252 MB / 1.075 GB, free: 131.5 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002472/3.514, allocations: 0.5313 MB / 1.076 GB, free: 131.1 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002847/3.517, allocations: 1.724 MB / 1.077 GB, free: 129.8 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005312/3.518, allocations: 0.9294 MB / 1.078 GB, free: 128.9 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005331/3.518, allocations: 186.2 kB / 1.079 GB, free: 128.8 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001522/3.518, allocations: 58.27 kB / 1.079 GB, free: 128.8 MB / 0.6856 GB Notification: Performance of SimCode: time 1.433e-06/3.518, allocations: 0 / 1.079 GB, free: 128.8 MB / 0.6856 GB Notification: Performance of Templates: time 0.6705/4.189, allocations: 202.2 MB / 1.276 GB, free: 308.7 MB / 0.6856 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.makefile (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.sim & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2 -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)