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.001631/0.001631, allocations: 109 kB / 16.37 MB, free: 6.477 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.001745/0.001745, allocations: 193.1 kB / 17.31 MB, free: 5.824 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.419/1.419, 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.04651/0.04651, allocations: 9.089 MB / 279.6 MB, free: 2.992 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.0015/0.0015, allocations: 75.88 kB / 339.5 MB, free: 7.004 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2261/0.2276, allocations: 48.14 MB / 387.6 MB, free: 51.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3852/0.6128, allocations: 196 MB / 0.57 GB, free: 0.6562 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.1134/0.7262, allocations: 141.7 MB / 0.7083 GB, free: 10.71 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007073/0.727, allocations: 7.938 kB / 0.7084 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.002722/0.7297, allocations: 1.369 MB / 0.7097 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.003159/0.7329, allocations: 1.642 MB / 0.7113 GB, free: 7.68 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.3463/1.079, allocations: 38.16 MB / 0.7486 GB, free: 3.191 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002159/1.081, allocations: 1.928 MB / 0.7504 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002886/1.082, allocations: 192.8 kB / 0.7506 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001234/1.083, allocations: 0.8244 MB / 0.7514 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006162/1.084, allocations: 0.5231 MB / 0.7519 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.329e-05/1.084, allocations: 61.5 kB / 0.752 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06976/1.153, allocations: 44.32 MB / 0.7953 GB, free: 7.355 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003631/1.154, allocations: 178 kB / 0.7955 GB, free: 7.281 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0008659/1.155, allocations: 425 kB / 0.7959 GB, free: 7.078 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.05635/1.211, allocations: 18.81 MB / 0.8142 GB, free: 8.344 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/1.211, allocations: 0 / 0.8142 GB, free: 8.344 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.393e-06/1.211, allocations: 4 kB / 0.8142 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.029e-05/1.211, allocations: 0 / 0.8142 GB, free: 8.34 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.007425/1.219, allocations: 3.349 MB / 0.8175 GB, free: 4.988 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/1.219, allocations: 12.02 kB / 0.8175 GB, free: 4.977 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007883/1.219, allocations: 119 kB / 0.8176 GB, free: 4.859 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005392/1.22, allocations: 413.3 kB / 0.818 GB, free: 4.418 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/1.22, allocations: 45 kB / 0.8181 GB, free: 4.375 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.122e-05/1.22, allocations: 44 kB / 0.8181 GB, free: 4.332 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/1.222, allocations: 0.8191 MB / 0.8189 GB, free: 3.492 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/1.222, allocations: 3.906 kB / 0.8189 GB, free: 3.488 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.902e-05/1.222, allocations: 20 kB / 0.8189 GB, free: 3.469 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.27e-05/1.222, allocations: 30.75 kB / 0.819 GB, free: 3.441 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001713/1.224, allocations: 0.7564 MB / 0.8197 GB, free: 2.691 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003218/1.227, allocations: 3.421 MB / 0.823 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001432/1.228, allocations: 0.6872 MB / 0.8237 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007283/1.229, allocations: 481.6 kB / 0.8242 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5874/1.816, allocations: 185.3 MB / 1.005 GB, free: 164.4 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.872e-05/1.816, allocations: 38.88 kB / 1.005 GB, free: 164.4 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 3.376e-06/1.816, allocations: 0 / 1.005 GB, free: 164.4 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008322/1.825, allocations: 3.422 MB / 1.009 GB, free: 163.9 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.734e-05/1.825, allocations: 58.94 kB / 1.009 GB, free: 163.8 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/1.825, allocations: 308.9 kB / 1.009 GB, free: 163.7 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 3.597e-05/1.825, allocations: 37.05 kB / 1.009 GB, free: 163.7 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/1.825, allocations: 229.9 kB / 1.009 GB, free: 163.5 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000169/1.826, allocations: 385.7 kB / 1.009 GB, free: 163.3 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/1.826, allocations: 138.2 kB / 1.01 GB, free: 163.3 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 8.112e-05/1.826, allocations: 369.6 kB / 1.01 GB, free: 163 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006532/1.826, allocations: 392.2 kB / 1.01 GB, free: 163 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007007/1.827, allocations: 0.5383 MB / 1.011 GB, free: 162.8 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00139/1.829, allocations: 0.9696 MB / 1.012 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/1.829, allocations: 1.062 kB / 1.012 GB, free: 162.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001864/1.83, allocations: 1.133 MB / 1.013 GB, free: 162.5 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 2.142e-05/1.83, allocations: 9.344 kB / 1.013 GB, free: 162.5 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.234e-05/1.83, allocations: 8.344 kB / 1.013 GB, free: 162.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003767/1.831, allocations: 96.27 kB / 1.013 GB, free: 162.5 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009463/1.832, allocations: 210.3 kB / 1.013 GB, free: 162.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1265/1.958, allocations: 35.28 MB / 1.048 GB, free: 149.3 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005995/1.959, allocations: 38.09 kB / 1.048 GB, free: 149.3 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.863e-05/1.959, allocations: 28.34 kB / 1.048 GB, free: 149.3 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.0003511/1.959, allocations: 222.9 kB / 1.048 GB, free: 149.1 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/1.96, allocations: 59.97 kB / 1.048 GB, free: 149.1 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002684/1.962, allocations: 2.379 MB / 1.05 GB, free: 148.8 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.669e-05/1.962, allocations: 27.22 kB / 1.05 GB, free: 148.8 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/1.962, allocations: 0 / 1.05 GB, free: 148.8 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001941/1.964, allocations: 1.646 MB / 1.052 GB, free: 148.4 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003027/1.967, allocations: 2.459 MB / 1.054 GB, free: 147.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.446e-06/1.967, allocations: 17.97 kB / 1.054 GB, free: 147.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004676/1.968, allocations: 109 kB / 1.054 GB, free: 147.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000457/1.968, allocations: 213.5 kB / 1.055 GB, free: 147.5 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.554e-05/1.968, allocations: 11.38 kB / 1.055 GB, free: 147.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001878/1.97, allocations: 3.978 MB / 1.059 GB, free: 143.5 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.093e-06/1.97, allocations: 4.031 kB / 1.059 GB, free: 143.5 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002588/1.973, allocations: 1.969 MB / 1.061 GB, free: 142.4 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001869/1.973, allocations: 133.9 kB / 1.061 GB, free: 142.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.745e-05/1.973, allocations: 18.94 kB / 1.061 GB, free: 142.2 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003959/1.973, allocations: 33.14 kB / 1.061 GB, free: 142.2 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001315/1.974, allocations: 64.62 kB / 1.061 GB, free: 142.2 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.705e-05/1.974, allocations: 22.09 kB / 1.061 GB, free: 142.2 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002321/1.974, allocations: 256.9 kB / 1.061 GB, free: 142 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.21e-07/1.974, allocations: 0.9844 kB / 1.061 GB, free: 142 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01387/1.988, allocations: 5.454 MB / 1.066 GB, free: 137.6 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.02675/2.015, allocations: 6.817 MB / 1.073 GB, free: 132.7 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00307/2.018, allocations: 1.575 MB / 1.075 GB, free: 131.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/2.018, allocations: 0 / 1.075 GB, free: 131.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001105/2.019, allocations: 0.822 MB / 1.075 GB, free: 131.1 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002232/2.021, allocations: 0.5235 MB / 1.076 GB, free: 130.8 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002227/2.023, allocations: 1.731 MB / 1.078 GB, free: 129.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002841/2.024, allocations: 0.93 MB / 1.078 GB, free: 128.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0004786/2.024, allocations: 189.1 kB / 1.079 GB, free: 128.4 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001219/2.024, allocations: 57.56 kB / 1.079 GB, free: 128.4 MB / 0.6856 GB Notification: Performance of SimCode: time 1.173e-06/2.024, allocations: 0 / 1.079 GB, free: 128.4 MB / 0.6856 GB Notification: Performance of Templates: time 0.3771/2.401, allocations: 202.2 MB / 1.276 GB, free: 309.1 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 gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)