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.005159/0.005159, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.00124/0.00124, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.192/1.192, allocations: 205.1 MB / 222.6 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04186/0.04186, allocations: 9.095 MB / 279 MB, free: 12.09 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.001333/0.001333, allocations: 63.89 kB / 387.5 MB, free: 7.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2177, allocations: 48.16 MB / 435.7 MB, free: 7.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3755/0.5932, allocations: 196 MB / 0.6169 GB, free: 0.9727 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.09879/0.6921, allocations: 141.7 MB / 0.7553 GB, free: 13.06 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000706/0.6928, allocations: 11.94 kB / 0.7553 GB, free: 13.05 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.003034/0.6958, allocations: 1.615 MB / 0.7569 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.003323/0.6992, allocations: 1.907 MB / 0.7587 GB, free: 9.512 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.08415/0.7834, allocations: 40.58 MB / 0.7984 GB, free: 0.7812 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.002259/0.7857, allocations: 1.92 MB / 0.8002 GB, free: 14.85 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002909/0.786, allocations: 206.6 kB / 0.8004 GB, free: 14.64 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001135/0.7871, allocations: 0.8406 MB / 0.8013 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005944/0.7877, allocations: 0.5252 MB / 0.8018 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 7.103e-05/0.7878, allocations: 60 kB / 0.8018 GB, free: 13.21 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.3111/1.099, allocations: 44.16 MB / 0.8449 GB, free: 44.3 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.000256/1.099, allocations: 163 kB / 0.8451 GB, free: 44.3 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0006821/1.1, allocations: 433 kB / 0.8455 GB, free: 44.3 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.04388/1.144, allocations: 18.82 MB / 0.8639 GB, free: 44.05 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/1.144, allocations: 3.938 kB / 0.8639 GB, free: 44.05 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.583e-06/1.144, allocations: 1.094 kB / 0.8639 GB, free: 44.05 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.637e-05/1.144, allocations: 0 / 0.8639 GB, free: 44.05 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.007361/1.151, allocations: 3.34 MB / 0.8672 GB, free: 42.3 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/1.151, allocations: 10.94 kB / 0.8672 GB, free: 42.3 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007443/1.152, allocations: 120.4 kB / 0.8673 GB, free: 42.27 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004128/1.152, allocations: 414.6 kB / 0.8677 GB, free: 42.03 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.004e-05/1.152, allocations: 41.62 kB / 0.8677 GB, free: 42.03 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.867e-05/1.153, allocations: 44.66 kB / 0.8678 GB, free: 42.03 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001457/1.154, allocations: 0.8187 MB / 0.8686 GB, free: 41.92 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.984e-05/1.154, allocations: 3.906 kB / 0.8686 GB, free: 41.91 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.715e-05/1.154, allocations: 26.41 kB / 0.8686 GB, free: 41.91 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.065e-05/1.154, allocations: 24.59 kB / 0.8686 GB, free: 41.91 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001553/1.156, allocations: 0.7519 MB / 0.8694 GB, free: 41.91 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/1.158, allocations: 3.416 MB / 0.8727 GB, free: 39.68 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001241/1.159, allocations: 0.6965 MB / 0.8734 GB, free: 39.64 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006019/1.16, allocations: 486.9 kB / 0.8738 GB, free: 39.62 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2864/1.446, allocations: 185.3 MB / 1.055 GB, free: 13.28 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.171e-05/1.446, allocations: 40.94 kB / 1.055 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=109): time 2.695e-06/1.446, allocations: 0 / 1.055 GB, free: 13.23 MB / 0.7481 GB Notification: Performance of matching and sorting (n=117): time 0.008894/1.455, allocations: 3.41 MB / 1.058 GB, free: 10.65 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.519e-05/1.455, allocations: 58.88 kB / 1.058 GB, free: 10.58 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000344/1.456, allocations: 312.3 kB / 1.059 GB, free: 10.32 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 5.161e-05/1.456, allocations: 36.02 kB / 1.059 GB, free: 10.29 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/1.456, allocations: 235.2 kB / 1.059 GB, free: 10.09 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002694/1.456, allocations: 373.4 kB / 1.059 GB, free: 9.777 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001771/1.456, allocations: 145.4 kB / 1.059 GB, free: 9.68 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001339/1.457, allocations: 369.8 kB / 1.06 GB, free: 9.336 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006791/1.457, allocations: 394 kB / 1.06 GB, free: 9.109 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007428/1.458, allocations: 0.5369 MB / 1.061 GB, free: 8.699 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001417/1.459, allocations: 0.9693 MB / 1.061 GB, free: 8.055 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.208e-06/1.459, allocations: 8 kB / 1.061 GB, free: 8.047 MB / 0.7481 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001964/1.461, allocations: 1.124 MB / 1.063 GB, free: 7.289 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/1.461, allocations: 7.438 kB / 1.063 GB, free: 7.285 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/1.461, allocations: 8 kB / 1.063 GB, free: 7.277 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003468/1.462, allocations: 100.1 kB / 1.063 GB, free: 7.191 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009536/1.463, allocations: 207 kB / 1.063 GB, free: 7.008 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3955/1.858, allocations: 35.27 MB / 1.097 GB, free: 225 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005884/1.859, allocations: 40.56 kB / 1.097 GB, free: 225 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.175e-05/1.859, allocations: 25.45 kB / 1.097 GB, free: 225 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.0002942/1.859, allocations: 230.2 kB / 1.098 GB, free: 224.9 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001095/1.859, allocations: 55.94 kB / 1.098 GB, free: 224.9 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002576/1.862, allocations: 2.381 MB / 1.1 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.395e-05/1.862, allocations: 23.81 kB / 1.1 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/1.862, allocations: 3.562 kB / 1.1 GB, free: 224.7 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001994/1.864, allocations: 1.649 MB / 1.102 GB, free: 224.2 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002957/1.867, allocations: 2.457 MB / 1.104 GB, free: 223.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/1.867, allocations: 1.875 kB / 1.104 GB, free: 223.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004705/1.867, allocations: 124.8 kB / 1.104 GB, free: 223.9 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004604/1.868, allocations: 202.6 kB / 1.104 GB, free: 223.8 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/1.868, allocations: 20.06 kB / 1.104 GB, free: 223.8 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001835/1.87, allocations: 3.978 MB / 1.108 GB, free: 220.2 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/1.87, allocations: 1.375 kB / 1.108 GB, free: 220.2 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002766/1.873, allocations: 1.978 MB / 1.11 GB, free: 219.9 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001621/1.873, allocations: 139.4 kB / 1.11 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.345e-05/1.873, allocations: 9.75 kB / 1.11 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003833/1.873, allocations: 35.73 kB / 1.11 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00017/1.873, allocations: 78.78 kB / 1.11 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.025e-05/1.873, allocations: 16.91 kB / 1.11 GB, free: 219.8 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0002757/1.874, allocations: 256.7 kB / 1.111 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/1.874, allocations: 0 / 1.111 GB, free: 219.7 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0141/1.888, allocations: 5.452 MB / 1.116 GB, free: 219.6 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.02782/1.916, allocations: 6.815 MB / 1.123 GB, free: 218.8 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.003085/1.919, allocations: 1.564 MB / 1.124 GB, free: 218.4 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/1.919, allocations: 0 / 1.124 GB, free: 218.4 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.001006/1.92, allocations: 0.8258 MB / 1.125 GB, free: 218.2 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002267/1.922, allocations: 0.532 MB / 1.126 GB, free: 218.1 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/1.924, allocations: 1.704 MB / 1.127 GB, free: 217.4 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000312/1.925, allocations: 0.9361 MB / 1.128 GB, free: 216.7 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0004224/1.925, allocations: 182.3 kB / 1.128 GB, free: 216.7 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/1.925, allocations: 60.38 kB / 1.128 GB, free: 216.6 MB / 0.7637 GB Notification: Performance of SimCode: time 3.51e-07/1.925, allocations: 0 / 1.128 GB, free: 216.6 MB / 0.7637 GB Notification: Performance of Templates: time 0.1824/2.108, allocations: 202.4 MB / 1.326 GB, free: 39.06 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)