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.0008483/0.0008483, allocations: 91.84 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.000771/0.000771, 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.227/1.227, allocations: 205.4 MB / 222.1 MB, free: 5.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0409/0.0409, allocations: 9.067 MB / 279.5 MB, free: 12.12 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.0004425/0.0004425, allocations: 12 kB / 339.2 MB, free: 25.87 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06831/0.06876, allocations: 49.18 MB / 388.4 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3023/0.3711, allocations: 182.5 MB / 0.5576 GB, free: 1.391 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2959/0.6671, allocations: 132.4 MB / 0.6868 GB, free: 8.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007115/0.6678, allocations: 8.969 kB / 0.6868 GB, free: 8.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002154/0.67, allocations: 1.05 MB / 0.6879 GB, free: 7.883 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002267/0.6723, allocations: 1.255 MB / 0.6891 GB, free: 7.543 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.07439/0.7467, allocations: 29.74 MB / 0.7181 GB, free: 3.875 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002407/0.7491, allocations: 2.201 MB / 0.7203 GB, free: 1.711 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.7493, allocations: 150.8 kB / 0.7204 GB, free: 1.559 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001001/0.7504, allocations: 0.6944 MB / 0.7211 GB, free: 0.8789 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005538/0.7509, allocations: 0.5062 MB / 0.7216 GB, free: 420 kB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.717e-05/0.751, allocations: 28 kB / 0.7216 GB, free: 392 kB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.06167/0.8127, allocations: 35.12 MB / 0.7559 GB, free: 14.41 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002639/0.813, allocations: 130.9 kB / 0.756 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003439/0.8133, allocations: 189.4 kB / 0.7562 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.02168/0.835, allocations: 11.45 MB / 0.7674 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.835, allocations: 4 kB / 0.7674 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.894e-06/0.8351, allocations: 0 / 0.7674 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.624e-06/0.8351, allocations: 0 / 0.7674 GB, free: 3.914 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.008088/0.8432, allocations: 3.24 MB / 0.7706 GB, free: 0.6289 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.611e-05/0.8432, allocations: 8.031 kB / 0.7706 GB, free: 0.6211 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001223/0.8433, allocations: 106.5 kB / 0.7707 GB, free: 0.5078 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007036/0.8441, allocations: 127.1 kB / 0.7708 GB, free: 392 kB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004899/0.8446, allocations: 397.7 kB / 0.7712 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.48e-05/0.8446, allocations: 38.55 kB / 0.7712 GB, free: 15.92 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.467e-05/0.8447, allocations: 48 kB / 0.7713 GB, free: 15.88 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001601/0.8463, allocations: 0.8393 MB / 0.7721 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.8463, allocations: 0 / 0.7721 GB, free: 15.02 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.811e-05/0.8464, allocations: 27.94 kB / 0.7721 GB, free: 14.99 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.356e-05/0.8464, allocations: 19.52 kB / 0.7721 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001618/0.848, allocations: 0.7816 MB / 0.7729 GB, free: 14.2 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003175/0.8512, allocations: 3.433 MB / 0.7762 GB, free: 10.47 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001323/0.8526, allocations: 0.6981 MB / 0.7769 GB, free: 9.77 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006926/0.8533, allocations: 0.4912 MB / 0.7774 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4663/1.32, allocations: 181.1 MB / 0.9542 GB, free: 27.98 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.095e-05/1.32, allocations: 43.78 kB / 0.9543 GB, free: 27.95 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=109): time 2.755e-06/1.32, allocations: 2.906 kB / 0.9543 GB, free: 27.95 MB / 0.6387 GB Notification: Performance of matching and sorting (n=117): time 0.00752/1.327, allocations: 3.517 MB / 0.9577 GB, free: 26.99 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.004e-05/1.327, allocations: 67.58 kB / 0.9578 GB, free: 26.92 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002517/1.327, allocations: 297.4 kB / 0.9581 GB, free: 26.78 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 3.696e-05/1.328, allocations: 36.27 kB / 0.9581 GB, free: 26.75 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/1.328, allocations: 232.8 kB / 0.9583 GB, free: 26.58 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.000153/1.328, allocations: 381.2 kB / 0.9587 GB, free: 26.3 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.578e-05/1.328, allocations: 17.19 kB / 0.9587 GB, free: 26.3 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001185/1.328, allocations: 370 kB / 0.9591 GB, free: 25.96 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005832/1.329, allocations: 408.7 kB / 0.9594 GB, free: 25.91 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006064/1.329, allocations: 0.5475 MB / 0.96 GB, free: 25.71 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006237/1.33, allocations: 475.2 kB / 0.9604 GB, free: 25.58 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/1.33, allocations: 0 / 0.9604 GB, free: 25.58 MB / 0.6387 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001649/1.331, allocations: 1.156 MB / 0.9616 GB, free: 24.8 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/1.331, allocations: 11.95 kB / 0.9616 GB, free: 24.79 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.208e-06/1.332, allocations: 4 kB / 0.9616 GB, free: 24.78 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003288/1.332, allocations: 114.3 kB / 0.9617 GB, free: 24.69 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008339/1.333, allocations: 213.5 kB / 0.9619 GB, free: 24.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3762/1.709, allocations: 46.3 MB / 1.007 GB, free: 186.2 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006298/1.71, allocations: 77.42 kB / 1.007 GB, free: 186.2 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.694e-05/1.71, allocations: 30.75 kB / 1.007 GB, free: 186.2 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.0003048/1.71, allocations: 225.5 kB / 1.007 GB, free: 186.1 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.944e-05/1.71, allocations: 60.31 kB / 1.007 GB, free: 186.1 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002968/1.713, allocations: 2.431 MB / 1.01 GB, free: 185.8 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.673e-05/1.713, allocations: 22.42 kB / 1.01 GB, free: 185.8 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/1.713, allocations: 7.5 kB / 1.01 GB, free: 185.8 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002015/1.715, allocations: 1.68 MB / 1.012 GB, free: 185.4 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002955/1.718, allocations: 2.489 MB / 1.014 GB, free: 185 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/1.718, allocations: 0 / 1.014 GB, free: 185 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004446/1.718, allocations: 129.1 kB / 1.014 GB, free: 185 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005311/1.719, allocations: 221.4 kB / 1.014 GB, free: 185 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.189e-05/1.719, allocations: 14.89 kB / 1.014 GB, free: 185 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001674/1.721, allocations: 3.794 MB / 1.018 GB, free: 181.5 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/1.721, allocations: 12.92 kB / 1.018 GB, free: 181.4 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002565/1.723, allocations: 2.015 MB / 1.02 GB, free: 181.2 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001318/1.723, allocations: 150.5 kB / 1.02 GB, free: 181.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.404e-05/1.724, allocations: 12.81 kB / 1.02 GB, free: 181.1 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004118/1.724, allocations: 69.36 kB / 1.02 GB, free: 181.1 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/1.724, allocations: 68.69 kB / 1.02 GB, free: 181.1 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.585e-05/1.724, allocations: 22.86 kB / 1.02 GB, free: 181.1 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0002158/1.724, allocations: 256.1 kB / 1.021 GB, free: 181 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.01e-07/1.724, allocations: 3.281 kB / 1.021 GB, free: 181 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.01002/1.734, allocations: 4.82 MB / 1.025 GB, free: 180.9 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.02116/1.756, allocations: 8.258 MB / 1.033 GB, free: 179.7 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002418/1.758, allocations: 1.554 MB / 1.035 GB, free: 179.3 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/1.758, allocations: 1.75 kB / 1.035 GB, free: 179.3 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0009896/1.759, allocations: 0.8398 MB / 1.036 GB, free: 179.1 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/1.761, allocations: 478 kB / 1.036 GB, free: 179.1 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01168/1.773, allocations: 6.221 MB / 1.042 GB, free: 177 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002855/1.773, allocations: 0.9296 MB / 1.043 GB, free: 176.2 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.000564/1.774, allocations: 183.7 kB / 1.043 GB, free: 176.2 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002609/1.774, allocations: 248.5 kB / 1.044 GB, free: 176.2 MB / 0.6544 GB Notification: Performance of SimCode: time 6.11e-07/1.774, allocations: 1.375 kB / 1.044 GB, free: 176.2 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3904/2.164, allocations: 193.9 MB / 1.233 GB, free: 236.5 MB / 0.6544 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001216/2.164, allocations: 233.2 kB / 1.233 GB, free: 236.2 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.836/10, allocations: 0 / 1.233 GB, free: 236.2 MB / 0.6544 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/linux/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) Environment - environmentSimulation: