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.00104/0.00104, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001151/0.001151, allocations: 195.9 kB / 16.14 MB, free: 6.703 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.268/1.268, allocations: 205.1 MB / 222 MB, free: 4.762 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04137/0.04137, allocations: 9.083 MB / 278.4 MB, free: 12.41 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.002059/0.002059, allocations: 63.91 kB / 337.3 MB, free: 25.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09925/0.1013, allocations: 48.18 MB / 385.5 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3178/0.4192, allocations: 198.8 MB / 0.5706 GB, free: 15.43 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.328/0.7472, allocations: 143.9 MB / 0.7111 GB, free: 12.13 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008043/0.748, allocations: 5.969 kB / 0.7111 GB, free: 12.12 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00296/0.751, allocations: 1.161 MB / 0.7123 GB, free: 11.12 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003165/0.7542, allocations: 1.404 MB / 0.7136 GB, free: 9.93 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.09303/0.8472, allocations: 32.69 MB / 0.7456 GB, free: 9.234 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002921/0.8502, allocations: 2.569 MB / 0.7481 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0003092/0.8505, allocations: 157.1 kB / 0.7482 GB, free: 6.496 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001479/0.852, allocations: 0.7126 MB / 0.7489 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006348/0.8526, allocations: 0.533 MB / 0.7494 GB, free: 5.246 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.125e-05/0.8527, allocations: 32 kB / 0.7495 GB, free: 5.215 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06934/0.9221, allocations: 39.38 MB / 0.7879 GB, free: 13.75 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0003301/0.9224, allocations: 135.5 kB / 0.788 GB, free: 13.62 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0007248/0.9232, allocations: 398.3 kB / 0.7884 GB, free: 13.23 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.349/1.272, allocations: 18.24 MB / 0.8062 GB, free: 46.57 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.596e-06/1.272, allocations: 1.906 kB / 0.8062 GB, free: 46.57 MB / 0.545 GB Notification: Performance of FrontEnd: time 4.418e-06/1.272, allocations: 3.594 kB / 0.8062 GB, free: 46.57 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.515e-05/1.272, allocations: 0 / 0.8062 GB, free: 46.57 MB / 0.545 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.01225/1.285, allocations: 3.349 MB / 0.8095 GB, free: 45.01 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/1.285, allocations: 9.625 kB / 0.8095 GB, free: 45.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/1.286, allocations: 118.4 kB / 0.8096 GB, free: 44.97 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007988/1.286, allocations: 403.9 kB / 0.81 GB, free: 44.73 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.555e-05/1.287, allocations: 41.69 kB / 0.8101 GB, free: 44.73 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.344e-05/1.287, allocations: 46.38 kB / 0.8101 GB, free: 44.73 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001739/1.288, allocations: 0.8236 MB / 0.8109 GB, free: 44.62 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.17e-05/1.288, allocations: 2.625 kB / 0.8109 GB, free: 44.62 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.392e-05/1.288, allocations: 19.88 kB / 0.8109 GB, free: 44.62 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.229e-05/1.288, allocations: 22.42 kB / 0.811 GB, free: 44.62 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001732/1.29, allocations: 0.7572 MB / 0.8117 GB, free: 44.62 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003545/1.294, allocations: 3.416 MB / 0.815 GB, free: 42.39 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001509/1.295, allocations: 0.6812 MB / 0.8157 GB, free: 42.36 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007249/1.296, allocations: 482.9 kB / 0.8162 GB, free: 42.35 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3143/1.61, allocations: 185.3 MB / 0.9971 GB, free: 19.93 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/1.61, allocations: 38.69 kB / 0.9972 GB, free: 19.89 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.836e-06/1.61, allocations: 4 kB / 0.9972 GB, free: 19.89 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.008365/1.619, allocations: 3.411 MB / 1.001 GB, free: 17.3 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/1.619, allocations: 62.59 kB / 1.001 GB, free: 17.23 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002924/1.619, allocations: 311.7 kB / 1.001 GB, free: 16.97 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 5.038e-05/1.619, allocations: 35.33 kB / 1.001 GB, free: 16.93 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/1.619, allocations: 230.3 kB / 1.001 GB, free: 16.74 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001573/1.62, allocations: 380 kB / 1.001 GB, free: 16.42 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000154/1.62, allocations: 142 kB / 1.002 GB, free: 16.33 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001172/1.62, allocations: 365.8 kB / 1.002 GB, free: 15.99 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000585/1.62, allocations: 395.3 kB / 1.002 GB, free: 15.75 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000646/1.621, allocations: 0.5402 MB / 1.003 GB, free: 15.34 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/1.622, allocations: 0.9722 MB / 1.004 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/1.622, allocations: 0 / 1.004 GB, free: 14.7 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001797/1.624, allocations: 1.136 MB / 1.005 GB, free: 13.94 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/1.624, allocations: 8.547 kB / 1.005 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/1.624, allocations: 4 kB / 1.005 GB, free: 13.93 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003595/1.625, allocations: 100.3 kB / 1.005 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009453/1.626, allocations: 208 kB / 1.005 GB, free: 13.66 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3562/1.982, allocations: 46.42 MB / 1.051 GB, free: 392.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007728/1.983, allocations: 75.41 kB / 1.051 GB, free: 392.8 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.421e-05/1.983, allocations: 26.12 kB / 1.051 GB, free: 392.8 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.0003548/1.983, allocations: 219.6 kB / 1.051 GB, free: 392.6 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001311/1.983, allocations: 61.19 kB / 1.051 GB, free: 392.6 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002582/1.986, allocations: 2.383 MB / 1.053 GB, free: 390.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.253e-05/1.986, allocations: 21.84 kB / 1.053 GB, free: 390.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/1.986, allocations: 10.88 kB / 1.053 GB, free: 390.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001681/1.987, allocations: 1.641 MB / 1.055 GB, free: 389.1 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002768/1.99, allocations: 2.46 MB / 1.057 GB, free: 386.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/1.99, allocations: 0 / 1.057 GB, free: 386.6 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004375/1.991, allocations: 119.8 kB / 1.057 GB, free: 386.5 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000449/1.991, allocations: 215 kB / 1.058 GB, free: 386.3 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.536e-05/1.991, allocations: 17.25 kB / 1.058 GB, free: 386.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00162/1.993, allocations: 3.794 MB / 1.061 GB, free: 382.2 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/1.993, allocations: 2.953 kB / 1.061 GB, free: 382.2 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002413/1.995, allocations: 1.968 MB / 1.063 GB, free: 380.2 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002029/1.995, allocations: 132.3 kB / 1.063 GB, free: 380.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.323e-05/1.996, allocations: 16.03 kB / 1.063 GB, free: 380.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004431/1.996, allocations: 55.58 kB / 1.063 GB, free: 380 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001273/1.996, allocations: 64.06 kB / 1.064 GB, free: 379.9 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.813e-05/1.996, allocations: 25.73 kB / 1.064 GB, free: 379.9 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002199/1.996, allocations: 251.2 kB / 1.064 GB, free: 379.7 MB / 0.6856 GB Notification: Performance of sort global known variables: time 2.3e-07/1.996, allocations: 0 / 1.064 GB, free: 379.7 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01442/2.011, allocations: 4.826 MB / 1.068 GB, free: 375.5 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.02845/2.039, allocations: 5.981 MB / 1.074 GB, free: 370.3 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002696/2.042, allocations: 1.515 MB / 1.076 GB, free: 368.8 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/2.042, allocations: 0 / 1.076 GB, free: 368.8 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001/2.043, allocations: 0.8292 MB / 1.077 GB, free: 367.9 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00236/2.045, allocations: 0.5076 MB / 1.077 GB, free: 367.4 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/2.048, allocations: 2.042 MB / 1.079 GB, free: 365.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002846/2.048, allocations: 0.9332 MB / 1.08 GB, free: 364.4 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005223/2.048, allocations: 190.8 kB / 1.08 GB, free: 364.3 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001092/2.049, allocations: 51.44 kB / 1.08 GB, free: 364.2 MB / 0.6856 GB Notification: Performance of SimCode: time 1.122e-06/2.049, allocations: 0 / 1.08 GB, free: 364.2 MB / 0.6856 GB Notification: Performance of Templates: time 0.1757/2.224, allocations: 186 MB / 1.262 GB, free: 177.9 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 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)