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.007691/0.007691, allocations: 103.4 kB / 15.73 MB, free: 6.047 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.001615/0.001615, allocations: 188.1 kB / 16.67 MB, free: 5.969 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.517/1.517, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0454/0.0454, allocations: 9.099 MB / 279 MB, free: 12.08 MB / 238.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.001598/0.001598, allocations: 67.91 kB / 387.5 MB, free: 7.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2855/0.2871, allocations: 48.15 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.4516/0.7387, allocations: 196 MB / 0.6169 GB, free: 1.008 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.1155/0.8543, allocations: 141.7 MB / 0.7553 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007951/0.8551, allocations: 8 kB / 0.7553 GB, free: 12.98 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003106/0.8583, allocations: 1.365 MB / 0.7566 GB, free: 11.61 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.00333/0.8616, allocations: 1.63 MB / 0.7582 GB, free: 9.969 MB / 0.5294 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.09586/0.9575, allocations: 38.17 MB / 0.7955 GB, free: 3.648 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002754/0.9603, allocations: 1.924 MB / 0.7974 GB, free: 1.715 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003645/0.9607, allocations: 198.6 kB / 0.7976 GB, free: 1.512 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001534/0.9622, allocations: 0.8444 MB / 0.7984 GB, free: 0.6641 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000679/0.9629, allocations: 0.5252 MB / 0.7989 GB, free: 140 kB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 8.049e-05/0.963, allocations: 60 kB / 0.799 GB, free: 80 kB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3981/1.361, allocations: 44.15 MB / 0.8421 GB, free: 45.36 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003495/1.361, allocations: 173.3 kB / 0.8422 GB, free: 45.36 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.000751/1.362, allocations: 422 kB / 0.8426 GB, free: 45.36 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.05729/1.42, allocations: 18.82 MB / 0.861 GB, free: 45.14 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 7.264e-06/1.42, allocations: 3.75 kB / 0.861 GB, free: 45.14 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.973e-06/1.42, allocations: 1.375 kB / 0.861 GB, free: 45.14 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.419e-05/1.42, allocations: 0 / 0.861 GB, free: 45.14 MB / 0.5919 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.00973/1.429, allocations: 3.343 MB / 0.8643 GB, free: 43.39 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/1.429, allocations: 9.438 kB / 0.8643 GB, free: 43.39 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008411/1.43, allocations: 119.9 kB / 0.8644 GB, free: 43.35 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000598/1.431, allocations: 410 kB / 0.8648 GB, free: 43.11 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.041e-05/1.431, allocations: 45.25 kB / 0.8649 GB, free: 43.11 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.821e-05/1.431, allocations: 45.81 kB / 0.8649 GB, free: 43.11 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001633/1.433, allocations: 0.8205 MB / 0.8657 GB, free: 43 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.374e-05/1.433, allocations: 8.688 kB / 0.8657 GB, free: 43 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.259e-05/1.433, allocations: 20.22 kB / 0.8657 GB, free: 43 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.07e-05/1.433, allocations: 26.66 kB / 0.8657 GB, free: 43 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001664/1.434, allocations: 0.7517 MB / 0.8665 GB, free: 43 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002944/1.437, allocations: 3.417 MB / 0.8698 GB, free: 40.76 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00138/1.439, allocations: 0.6874 MB / 0.8705 GB, free: 40.73 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006835/1.439, allocations: 494.5 kB / 0.871 GB, free: 40.71 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3305/1.77, allocations: 185.3 MB / 1.052 GB, free: 15.68 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.021e-05/1.77, allocations: 38.62 kB / 1.052 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 3.026e-06/1.77, allocations: 2.906 kB / 1.052 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.009545/1.78, allocations: 3.416 MB / 1.055 GB, free: 13.05 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.184e-05/1.78, allocations: 55.97 kB / 1.055 GB, free: 12.98 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004053/1.78, allocations: 311.2 kB / 1.056 GB, free: 12.72 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.71e-05/1.78, allocations: 32.95 kB / 1.056 GB, free: 12.69 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/1.78, allocations: 240 kB / 1.056 GB, free: 12.5 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002743/1.781, allocations: 377.9 kB / 1.056 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001875/1.781, allocations: 145.7 kB / 1.056 GB, free: 12.08 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001745/1.781, allocations: 366.3 kB / 1.057 GB, free: 11.74 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006853/1.782, allocations: 390.1 kB / 1.057 GB, free: 11.51 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008162/1.783, allocations: 0.5378 MB / 1.058 GB, free: 11.1 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001574/1.784, allocations: 0.9718 MB / 1.059 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/1.784, allocations: 8 kB / 1.059 GB, free: 10.45 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002142/1.786, allocations: 1.127 MB / 1.06 GB, free: 9.688 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/1.786, allocations: 12.02 kB / 1.06 GB, free: 9.676 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.453e-05/1.786, allocations: 4 kB / 1.06 GB, free: 9.672 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004047/1.787, allocations: 104.8 kB / 1.06 GB, free: 9.586 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/1.788, allocations: 201.8 kB / 1.06 GB, free: 9.406 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3676/2.155, allocations: 35.26 MB / 1.094 GB, free: 423.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007807/2.156, allocations: 45.52 kB / 1.095 GB, free: 423.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.588e-05/2.156, allocations: 25.98 kB / 1.095 GB, free: 423.5 MB / 0.7637 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.0004062/2.157, allocations: 222.6 kB / 1.095 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00014/2.157, allocations: 63.12 kB / 1.095 GB, free: 423.4 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003415/2.16, allocations: 2.385 MB / 1.097 GB, free: 423.1 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.497e-05/2.16, allocations: 19.67 kB / 1.097 GB, free: 423.1 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/2.16, allocations: 1.094 kB / 1.097 GB, free: 423.1 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002288/2.163, allocations: 1.649 MB / 1.099 GB, free: 422.7 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003756/2.166, allocations: 2.459 MB / 1.101 GB, free: 421.6 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.672e-06/2.166, allocations: 1.25 kB / 1.101 GB, free: 421.6 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005144/2.167, allocations: 117.8 kB / 1.101 GB, free: 421.6 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004926/2.167, allocations: 213.8 kB / 1.101 GB, free: 421.5 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.104e-05/2.168, allocations: 18.81 kB / 1.102 GB, free: 421.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002229/2.17, allocations: 3.983 MB / 1.105 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.487e-06/2.17, allocations: 4.25 kB / 1.105 GB, free: 417.5 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00339/2.173, allocations: 1.966 MB / 1.107 GB, free: 416.6 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000263/2.173, allocations: 137.1 kB / 1.107 GB, free: 416.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.196e-05/2.174, allocations: 9.125 kB / 1.107 GB, free: 416.5 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004159/2.174, allocations: 40.14 kB / 1.107 GB, free: 416.5 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/2.174, allocations: 71.95 kB / 1.108 GB, free: 416.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.933e-05/2.174, allocations: 21.08 kB / 1.108 GB, free: 416.5 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002879/2.175, allocations: 256 kB / 1.108 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.21e-07/2.175, allocations: 0 / 1.108 GB, free: 416.3 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.01846/2.193, allocations: 5.454 MB / 1.113 GB, free: 416.1 MB / 0.7637 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.03536/2.228, allocations: 6.809 MB / 1.12 GB, free: 415.2 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003426/2.232, allocations: 1.575 MB / 1.121 GB, free: 414.4 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/2.232, allocations: 0 / 1.121 GB, free: 414.4 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001202/2.233, allocations: 0.824 MB / 1.122 GB, free: 413.9 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002685/2.236, allocations: 0.5238 MB / 1.123 GB, free: 413.8 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002615/2.238, allocations: 1.713 MB / 1.124 GB, free: 413 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003191/2.239, allocations: 0.9331 MB / 1.125 GB, free: 412.2 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0005624/2.239, allocations: 187.3 kB / 1.125 GB, free: 412.2 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001365/2.239, allocations: 57.97 kB / 1.125 GB, free: 412.2 MB / 0.7637 GB Notification: Performance of SimCode: time 1.192e-06/2.24, allocations: 0 / 1.125 GB, free: 412.2 MB / 0.7637 GB Notification: Performance of Templates: time 0.2306/2.47, allocations: 202.7 MB / 1.323 GB, free: 219.1 MB / 0.7637 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)