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: "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006446/0.0006446, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.004458/0.004458, allocations: 170.8 kB / 16.26 MB, free: 6.613 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.196/1.196, allocations: 205.4 MB / 222.4 MB, free: 5.57 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04451/0.04451, allocations: 9.073 MB / 279.8 MB, free: 12.14 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.0005033/0.0005034, allocations: 20 kB / 339.8 MB, free: 25.52 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06683/0.06734, allocations: 49.18 MB / 389 MB, free: 8.297 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3223/0.3896, allocations: 196.3 MB / 0.5716 GB, free: 3.082 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2863/0.676, allocations: 142.3 MB / 0.7105 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000713/0.6768, allocations: 10.62 kB / 0.7105 GB, free: 13 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002444/0.6792, allocations: 1.151 MB / 0.7117 GB, free: 12.41 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002719/0.682, allocations: 1.405 MB / 0.713 GB, free: 11.59 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0826/0.7646, allocations: 32.76 MB / 0.745 GB, free: 12.12 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002638/0.7672, allocations: 2.568 MB / 0.7475 GB, free: 9.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.7675, allocations: 150.8 kB / 0.7477 GB, free: 9.387 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001157/0.7687, allocations: 0.7039 MB / 0.7484 GB, free: 8.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000592/0.7693, allocations: 0.533 MB / 0.7489 GB, free: 8.145 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.686e-05/0.7693, allocations: 28 kB / 0.7489 GB, free: 8.117 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06448/0.8338, allocations: 39.37 MB / 0.7874 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002706/0.8341, allocations: 127.5 kB / 0.7875 GB, free: 0.5312 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0006376/0.8348, allocations: 420 kB / 0.7879 GB, free: 116 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.274/1.109, allocations: 18.17 MB / 0.8056 GB, free: 34.2 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/1.109, allocations: 2.312 kB / 0.8056 GB, free: 34.2 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.174e-06/1.109, allocations: 0 / 0.8056 GB, free: 34.2 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.548e-06/1.109, allocations: 3.219 kB / 0.8056 GB, free: 34.2 MB / 0.5137 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.008724/1.118, allocations: 3.238 MB / 0.8088 GB, free: 32.49 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/1.118, allocations: 7.719 kB / 0.8088 GB, free: 32.49 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000119/1.118, allocations: 103.6 kB / 0.8089 GB, free: 32.45 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007225/1.118, allocations: 119.2 kB / 0.809 GB, free: 32.42 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004377/1.119, allocations: 407 kB / 0.8094 GB, free: 32.17 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.926e-05/1.119, allocations: 43.78 kB / 0.8094 GB, free: 32.17 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.061e-05/1.119, allocations: 49.81 kB / 0.8095 GB, free: 32.17 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001555/1.121, allocations: 0.8372 MB / 0.8103 GB, free: 32.06 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.098e-05/1.121, allocations: 3.281 kB / 0.8103 GB, free: 32.06 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.922e-05/1.121, allocations: 20.06 kB / 0.8103 GB, free: 32.06 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.07e-05/1.121, allocations: 20.11 kB / 0.8104 GB, free: 32.06 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001612/1.122, allocations: 0.7892 MB / 0.8111 GB, free: 32.06 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002557/1.125, allocations: 3.436 MB / 0.8145 GB, free: 29.82 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001322/1.126, allocations: 0.7008 MB / 0.8152 GB, free: 29.8 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007134/1.127, allocations: 497.5 kB / 0.8156 GB, free: 29.79 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2921/1.419, allocations: 181.1 MB / 0.9925 GB, free: 12.86 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.852e-05/1.419, allocations: 38.31 kB / 0.9925 GB, free: 12.81 MB / 0.67 GB Notification: Performance of pre-optimization done (n=109): time 2.545e-06/1.419, allocations: 0 / 0.9925 GB, free: 12.81 MB / 0.67 GB Notification: Performance of matching and sorting (n=117): time 0.009363/1.429, allocations: 3.529 MB / 0.996 GB, free: 10.1 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.555e-05/1.429, allocations: 59.97 kB / 0.996 GB, free: 10.03 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003369/1.429, allocations: 313.6 kB / 0.9963 GB, free: 9.77 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 5.082e-05/1.429, allocations: 37.02 kB / 0.9964 GB, free: 9.734 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001286/1.429, allocations: 221.3 kB / 0.9966 GB, free: 9.551 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002709/1.429, allocations: 389.2 kB / 0.9969 GB, free: 9.227 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.506e-05/1.43, allocations: 86.84 kB / 0.997 GB, free: 9.164 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001464/1.43, allocations: 370.4 kB / 0.9974 GB, free: 8.816 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007295/1.43, allocations: 414.3 kB / 0.9978 GB, free: 8.566 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000803/1.431, allocations: 0.5497 MB / 0.9983 GB, free: 8.145 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001527/1.433, allocations: 1.013 MB / 0.9993 GB, free: 7.469 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.433, allocations: 2.719 kB / 0.9993 GB, free: 7.469 MB / 0.67 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.002078/1.435, allocations: 1.162 MB / 1 GB, free: 6.672 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 1.823e-05/1.435, allocations: 4 kB / 1 GB, free: 6.668 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.146e-05/1.435, allocations: 4 kB / 1 GB, free: 6.664 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004164/1.435, allocations: 110.1 kB / 1.001 GB, free: 6.566 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009969/1.436, allocations: 211.3 kB / 1.001 GB, free: 6.379 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.4299/1.866, allocations: 46.31 MB / 1.046 GB, free: 191.3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000712/1.867, allocations: 76.84 kB / 1.046 GB, free: 191.3 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.767e-05/1.867, allocations: 28.38 kB / 1.046 GB, free: 191.3 MB / 0.67 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.0003441/1.867, allocations: 221.8 kB / 1.046 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001188/1.868, allocations: 61.03 kB / 1.046 GB, free: 191.2 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002845/1.87, allocations: 2.433 MB / 1.049 GB, free: 190.9 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.255e-05/1.87, allocations: 22.41 kB / 1.049 GB, free: 190.9 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/1.87, allocations: 0 / 1.049 GB, free: 190.9 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001966/1.872, allocations: 1.683 MB / 1.05 GB, free: 190.4 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003019/1.875, allocations: 2.498 MB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.809e-06/1.875, allocations: 3.938 kB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004681/1.876, allocations: 128.8 kB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005624/1.876, allocations: 221.6 kB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.946e-05/1.877, allocations: 19.5 kB / 1.053 GB, free: 190 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001733/1.878, allocations: 3.795 MB / 1.057 GB, free: 186.5 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.878, allocations: 2.734 kB / 1.057 GB, free: 186.5 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002625/1.881, allocations: 2.028 MB / 1.059 GB, free: 186.2 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000182/1.881, allocations: 155.9 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.898e-05/1.881, allocations: 13.28 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004879/1.882, allocations: 63.33 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001218/1.882, allocations: 61.56 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.83e-05/1.882, allocations: 26.55 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0002151/1.882, allocations: 253 kB / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.41e-07/1.882, allocations: 0 / 1.059 GB, free: 186 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.01324/1.895, allocations: 4.821 MB / 1.064 GB, free: 185.3 MB / 0.67 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.02811/1.923, allocations: 8.28 MB / 1.072 GB, free: 179.3 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.002906/1.926, allocations: 1.554 MB / 1.074 GB, free: 178.3 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/1.926, allocations: 8.922 kB / 1.074 GB, free: 178.3 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.001156/1.928, allocations: 0.8421 MB / 1.075 GB, free: 177.7 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/1.93, allocations: 0.5106 MB / 1.075 GB, free: 177.4 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01853/1.949, allocations: 8.828 MB / 1.084 GB, free: 170.8 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/1.949, allocations: 0.9346 MB / 1.085 GB, free: 169.9 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0006189/1.95, allocations: 188.1 kB / 1.085 GB, free: 169.7 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/1.95, allocations: 257.6 kB / 1.085 GB, free: 169.7 MB / 0.67 GB Notification: Performance of SimCode: time 1.172e-06/1.95, allocations: 3.938 kB / 1.085 GB, free: 169.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4269/2.377, allocations: 194.2 MB / 1.275 GB, free: 238.7 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001477/2.377, allocations: 252.9 kB / 1.275 GB, free: 238.5 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.031/10.41, allocations: 3.875 kB / 1.275 GB, free: 238.5 MB / 0.67 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel2.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2.pipe 2>&1)