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.001239/0.001239, allocations: 100.2 kB / 15.05 MB, free: 1.105 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.001178/0.001178, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.648/1.648, allocations: 205.4 MB / 222.1 MB, free: 5.652 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04664/0.04664, allocations: 9.069 MB / 279.4 MB, free: 12.27 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.0005222/0.0005222, allocations: 16.22 kB / 339.1 MB, free: 26.02 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09275/0.09328, allocations: 49.19 MB / 388.3 MB, free: 8.781 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3374/0.4307, allocations: 162.1 MB / 0.5374 GB, free: 4.973 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.3724/0.8031, allocations: 112.5 MB / 0.6473 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009189/0.8041, allocations: 6.656 kB / 0.6473 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002613/0.8067, allocations: 1.102 MB / 0.6484 GB, free: 10.93 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002551/0.8093, allocations: 1.183 MB / 0.6495 GB, free: 10.92 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08907/0.8984, allocations: 29.83 MB / 0.6787 GB, free: 6.211 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.002212/0.9006, allocations: 1.077 MB / 0.6797 GB, free: 6.105 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003058/0.9009, allocations: 155.1 kB / 0.6799 GB, free: 6.039 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.9026, allocations: 0.7605 MB / 0.6806 GB, free: 5.945 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005197/0.9031, allocations: 364.8 kB / 0.6809 GB, free: 5.898 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-05/0.9032, allocations: 25.94 kB / 0.681 GB, free: 5.898 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06878/0.972, allocations: 32.37 MB / 0.7126 GB, free: 14.65 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004187/0.9724, allocations: 131.4 kB / 0.7127 GB, free: 14.59 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005837/0.973, allocations: 192.4 kB / 0.7129 GB, free: 14.46 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02281/0.9959, allocations: 8.627 MB / 0.7213 GB, free: 7.66 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.9959, allocations: 0 / 0.7213 GB, free: 7.66 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.765e-06/0.9959, allocations: 0 / 0.7213 GB, free: 7.66 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.9959, allocations: 2.625 kB / 0.7213 GB, free: 7.66 MB / 478.1 MB 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.007466/1.003, allocations: 2.579 MB / 0.7238 GB, free: 5.145 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/1.003, allocations: 8.031 kB / 0.7238 GB, free: 5.137 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007679/1.004, allocations: 119 kB / 0.724 GB, free: 5.023 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005574/1.005, allocations: 396.6 kB / 0.7243 GB, free: 4.672 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.746e-05/1.005, allocations: 46.31 kB / 0.7244 GB, free: 4.648 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.169e-05/1.005, allocations: 51.56 kB / 0.7244 GB, free: 4.613 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001658/1.007, allocations: 0.8272 MB / 0.7252 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/1.007, allocations: 2.406 kB / 0.7252 GB, free: 4.027 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.006e-05/1.007, allocations: 19.81 kB / 0.7253 GB, free: 4.023 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.834e-05/1.007, allocations: 31.61 kB / 0.7253 GB, free: 4.004 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001738/1.009, allocations: 0.7847 MB / 0.7261 GB, free: 3.449 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003834/1.012, allocations: 3.431 MB / 0.7294 GB, free: 320 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001536/1.014, allocations: 0.6885 MB / 0.7301 GB, free: 15.89 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5994/1.613, allocations: 181.6 MB / 0.9074 GB, free: 24.77 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.794e-05/1.613, allocations: 38.28 kB / 0.9075 GB, free: 24.73 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=109): time 3.947e-06/1.613, allocations: 0 / 0.9075 GB, free: 24.73 MB / 0.5606 GB Notification: Performance of matching and sorting (n=117): time 0.009596/1.623, allocations: 3.923 MB / 0.9113 GB, free: 23.79 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.028e-05/1.623, allocations: 61.16 kB / 0.9113 GB, free: 23.72 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003913/1.624, allocations: 306.1 kB / 0.9116 GB, free: 23.62 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.011e-05/1.624, allocations: 40.17 kB / 0.9117 GB, free: 23.59 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001308/1.624, allocations: 223.4 kB / 0.9119 GB, free: 23.44 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002422/1.624, allocations: 384.2 kB / 0.9123 GB, free: 23.19 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.724e-05/1.624, allocations: 12.66 kB / 0.9123 GB, free: 23.19 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001804/1.624, allocations: 368.3 kB / 0.9126 GB, free: 22.88 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006787/1.625, allocations: 408.2 kB / 0.913 GB, free: 22.87 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006755/1.626, allocations: 0.5474 MB / 0.9135 GB, free: 22.73 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007355/1.626, allocations: 473.4 kB / 0.914 GB, free: 22.71 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.626, allocations: 6.125 kB / 0.914 GB, free: 22.71 MB / 0.5606 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002085/1.628, allocations: 1.159 MB / 0.9151 GB, free: 22.59 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/1.629, allocations: 5.781 kB / 0.9151 GB, free: 22.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.485e-05/1.629, allocations: 3.125 kB / 0.9151 GB, free: 22.59 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004286/1.629, allocations: 109.5 kB / 0.9152 GB, free: 22.57 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/1.63, allocations: 218 kB / 0.9154 GB, free: 22.57 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1863/1.816, allocations: 46.25 MB / 0.9606 GB, free: 13.32 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007845/1.817, allocations: 78.34 kB / 0.9607 GB, free: 13.26 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.076e-05/1.817, allocations: 28.92 kB / 0.9607 GB, free: 13.23 MB / 0.5919 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 (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,ambient.medium.sat.liq.phase,ambient.medium.sat.vap.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 initialization (73): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 4 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 4 {1,1,1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0004907/1.818, allocations: 223.5 kB / 0.9609 GB, free: 13.07 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001859/1.818, allocations: 55.34 kB / 0.961 GB, free: 13.01 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003308/1.821, allocations: 2.426 MB / 0.9634 GB, free: 11.35 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.971e-05/1.821, allocations: 22.33 kB / 0.9634 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/1.821, allocations: 4 kB / 0.9634 GB, free: 11.33 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002176/1.824, allocations: 1.681 MB / 0.965 GB, free: 10.06 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003562/1.827, allocations: 2.493 MB / 0.9675 GB, free: 8.355 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/1.827, allocations: 4 kB / 0.9675 GB, free: 8.352 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005311/1.828, allocations: 128.9 kB / 0.9676 GB, free: 8.234 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006107/1.828, allocations: 223.4 kB / 0.9678 GB, free: 8.051 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.272e-05/1.828, allocations: 20.05 kB / 0.9678 GB, free: 8.039 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002762/1.831, allocations: 3.81 MB / 0.9715 GB, free: 4.141 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/1.831, allocations: 0 / 0.9715 GB, free: 4.141 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003077/1.834, allocations: 2.017 MB / 0.9735 GB, free: 2.777 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002501/1.834, allocations: 160.7 kB / 0.9737 GB, free: 2.609 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.364e-05/1.835, allocations: 12 kB / 0.9737 GB, free: 2.605 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005356/1.835, allocations: 69.67 kB / 0.9737 GB, free: 2.547 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001456/1.835, allocations: 65.39 kB / 0.9738 GB, free: 2.488 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/1.835, allocations: 24.52 kB / 0.9738 GB, free: 2.469 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0003289/1.836, allocations: 252.5 kB / 0.9741 GB, free: 2.273 MB / 0.5919 GB Notification: Performance of sort global known variables: time 2.91e-07/1.836, allocations: 0 / 0.9741 GB, free: 2.273 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.0145/1.85, allocations: 4.817 MB / 0.9788 GB, free: 13.86 MB / 0.6075 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 (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.02721/1.877, allocations: 5.964 MB / 0.9846 GB, free: 8.723 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.003404/1.881, allocations: 1.547 MB / 0.9861 GB, free: 7.551 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.16e-06/1.881, allocations: 4 kB / 0.9861 GB, free: 7.547 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.001394/1.882, allocations: 0.84 MB / 0.9869 GB, free: 6.926 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00246/1.885, allocations: 453.2 kB / 0.9874 GB, free: 6.543 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003058/1.888, allocations: 2.068 MB / 0.9894 GB, free: 4.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005615/1.888, allocations: 0.9513 MB / 0.9903 GB, free: 3.754 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.000655/1.889, allocations: 180.4 kB / 0.9905 GB, free: 3.578 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001442/1.889, allocations: 50.44 kB / 0.9905 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of SimCode: time 7.11e-07/1.889, allocations: 0 / 0.9905 GB, free: 3.531 MB / 0.6075 GB Notification: Performance of Templates: time 0.4129/2.302, allocations: 185.7 MB / 1.172 GB, free: 191.1 MB / 0.6231 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: