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.0008888/0.0008888, allocations: 91.69 kB / 15.06 MB, free: 1.098 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.001103/0.001103, allocations: 172.7 kB / 15.95 MB, free: 208 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.521/1.521, allocations: 205.4 MB / 222.1 MB, free: 5.66 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0426/0.0426, allocations: 9.058 MB / 279.5 MB, free: 12.26 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.0005064/0.0005069, allocations: 12 kB / 339.1 MB, free: 26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09207/0.09259, allocations: 49.2 MB / 388.3 MB, free: 8.762 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.374/0.4666, allocations: 182.5 MB / 0.5575 GB, free: 1.484 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.4139/0.8806, allocations: 132.3 MB / 0.6867 GB, free: 8.113 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009235/0.8816, allocations: 5.312 kB / 0.6867 GB, free: 8.113 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002618/0.8842, allocations: 1.052 MB / 0.6878 GB, free: 7.82 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003023/0.8872, allocations: 1.252 MB / 0.689 GB, free: 7.484 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.09135/0.9786, allocations: 29.74 MB / 0.718 GB, free: 3.875 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.003971/0.9826, allocations: 2.205 MB / 0.7202 GB, free: 1.707 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004273/0.983, allocations: 150.2 kB / 0.7203 GB, free: 1.555 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002009/0.985, allocations: 0.7004 MB / 0.721 GB, free: 0.8711 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000833/0.9859, allocations: 0.5054 MB / 0.7215 GB, free: 412 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 6.369e-05/0.986, allocations: 28 kB / 0.7215 GB, free: 384 kB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07414/1.06, allocations: 35.12 MB / 0.7558 GB, free: 14.4 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004798/1.061, allocations: 127.1 kB / 0.7559 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0006314/1.061, allocations: 193.3 kB / 0.7561 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02796/1.089, allocations: 11.44 MB / 0.7673 GB, free: 3.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.77e-06/1.089, allocations: 4 kB / 0.7673 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.285e-06/1.089, allocations: 0 / 0.7673 GB, free: 3.906 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.142e-05/1.089, allocations: 0 / 0.7673 GB, free: 3.906 MB / 0.4981 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.008404/1.098, allocations: 3.24 MB / 0.7705 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 8.031e-05/1.098, allocations: 8.031 kB / 0.7705 GB, free: 0.6133 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007533/1.099, allocations: 115.1 kB / 0.7706 GB, free: 0.5 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005514/1.099, allocations: 401.1 kB / 0.771 GB, free: 72 kB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.516e-05/1.099, allocations: 46.55 kB / 0.771 GB, free: 28 kB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.218e-05/1.099, allocations: 40.91 kB / 0.7711 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001669/1.101, allocations: 0.8392 MB / 0.7719 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/1.101, allocations: 4 kB / 0.7719 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.224e-05/1.101, allocations: 20 kB / 0.7719 GB, free: 15.11 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.665e-05/1.101, allocations: 27.58 kB / 0.7719 GB, free: 15.09 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00167/1.103, allocations: 0.7816 MB / 0.7727 GB, free: 14.3 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004325/1.107, allocations: 3.432 MB / 0.776 GB, free: 10.58 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002245/1.109, allocations: 0.6955 MB / 0.7767 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/1.111, allocations: 0.4912 MB / 0.7772 GB, free: 9.391 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5992/1.71, allocations: 181.1 MB / 0.954 GB, free: 28.03 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.844e-05/1.71, allocations: 37.56 kB / 0.9541 GB, free: 27.99 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=109): time 2.755e-06/1.71, allocations: 3.094 kB / 0.9541 GB, free: 27.99 MB / 0.6387 GB Notification: Performance of matching and sorting (n=117): time 0.009008/1.719, allocations: 3.524 MB / 0.9575 GB, free: 27.03 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.673e-05/1.719, allocations: 56.34 kB / 0.9576 GB, free: 26.97 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004175/1.719, allocations: 307.5 kB / 0.9579 GB, free: 26.82 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 6.472e-05/1.719, allocations: 38.83 kB / 0.9579 GB, free: 26.79 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/1.72, allocations: 225 kB / 0.9581 GB, free: 26.62 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002569/1.72, allocations: 387.8 kB / 0.9585 GB, free: 26.34 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.932e-05/1.72, allocations: 14.69 kB / 0.9585 GB, free: 26.34 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001677/1.72, allocations: 367 kB / 0.9589 GB, free: 26.01 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006769/1.721, allocations: 410.8 kB / 0.9592 GB, free: 25.95 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006909/1.722, allocations: 0.5443 MB / 0.9598 GB, free: 25.76 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008731/1.722, allocations: 482.9 kB / 0.9602 GB, free: 25.62 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/1.722, allocations: 0 / 0.9602 GB, free: 25.62 MB / 0.6387 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002062/1.724, allocations: 1.15 MB / 0.9614 GB, free: 24.84 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.307e-05/1.725, allocations: 10.95 kB / 0.9614 GB, free: 24.84 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/1.725, allocations: 4 kB / 0.9614 GB, free: 24.83 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003846/1.725, allocations: 117 kB / 0.9615 GB, free: 24.73 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009366/1.726, allocations: 209.2 kB / 0.9617 GB, free: 24.55 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3897/2.116, allocations: 46.32 MB / 1.007 GB, free: 363.9 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007289/2.116, allocations: 81.56 kB / 1.007 GB, free: 363.9 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.151e-05/2.116, allocations: 27.31 kB / 1.007 GB, free: 363.9 MB / 0.6544 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.0004143/2.117, allocations: 222.8 kB / 1.007 GB, free: 363.8 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001668/2.117, allocations: 59.72 kB / 1.007 GB, free: 363.8 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003633/2.121, allocations: 2.431 MB / 1.01 GB, free: 363.5 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.789e-05/2.121, allocations: 18.88 kB / 1.01 GB, free: 363.5 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/2.121, allocations: 3.781 kB / 1.01 GB, free: 363.5 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002375/2.123, allocations: 1.682 MB / 1.011 GB, free: 363.1 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003527/2.127, allocations: 2.497 MB / 1.014 GB, free: 362.3 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/2.127, allocations: 1.75 kB / 1.014 GB, free: 362.3 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004924/2.127, allocations: 126.2 kB / 1.014 GB, free: 362.3 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005676/2.128, allocations: 221.9 kB / 1.014 GB, free: 362.2 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.007e-05/2.128, allocations: 16.52 kB / 1.014 GB, free: 362.2 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001992/2.13, allocations: 3.794 MB / 1.018 GB, free: 358.5 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/2.13, allocations: 1.031 kB / 1.018 GB, free: 358.5 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/2.133, allocations: 2.021 MB / 1.02 GB, free: 357.5 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002607/2.133, allocations: 153.8 kB / 1.02 GB, free: 357.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.773e-05/2.133, allocations: 10.81 kB / 1.02 GB, free: 357.4 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005138/2.134, allocations: 69.88 kB / 1.02 GB, free: 357.4 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001723/2.134, allocations: 72.78 kB / 1.02 GB, free: 357.4 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.979e-05/2.134, allocations: 20.22 kB / 1.02 GB, free: 357.4 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002988/2.134, allocations: 255.8 kB / 1.02 GB, free: 357.2 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.2e-07/2.134, allocations: 0 / 1.02 GB, free: 357.2 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01253/2.147, allocations: 4.81 MB / 1.025 GB, free: 357 MB / 0.6544 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.02717/2.174, allocations: 5.948 MB / 1.031 GB, free: 356.2 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003101/2.177, allocations: 1.554 MB / 1.032 GB, free: 355.4 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.791e-06/2.177, allocations: 0 / 1.032 GB, free: 355.4 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.001258/2.179, allocations: 0.8547 MB / 1.033 GB, free: 354.9 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002362/2.181, allocations: 479.2 kB / 1.034 GB, free: 354.9 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003009/2.184, allocations: 2.064 MB / 1.036 GB, free: 353.8 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004413/2.184, allocations: 0.9349 MB / 1.037 GB, free: 353 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0006813/2.185, allocations: 177.2 kB / 1.037 GB, free: 353 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000146/2.185, allocations: 51.33 kB / 1.037 GB, free: 353 MB / 0.6544 GB Notification: Performance of SimCode: time 1.953e-06/2.185, allocations: 2.953 kB / 1.037 GB, free: 353 MB / 0.6544 GB Notification: Performance of Templates: time 0.2103/2.396, allocations: 185.7 MB / 1.218 GB, free: 173.5 MB / 0.6544 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: