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.0009332/0.0009332, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001062/0.001062, allocations: 197 kB / 16.26 MB, free: 6.621 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.279/1.279, allocations: 205.1 MB / 222.1 MB, free: 4.719 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04252/0.04252, allocations: 9.087 MB / 278.5 MB, free: 12.33 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.00127/0.00127, allocations: 63.91 kB / 337.6 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0745/0.07578, allocations: 48.16 MB / 385.8 MB, free: 9.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.3076/0.3834, allocations: 195.2 MB / 0.5673 GB, free: 2.73 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.2805/0.6639, allocations: 141.3 MB / 0.7053 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000687/0.6647, allocations: 10.62 kB / 0.7053 GB, free: 0.918 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002362/0.6671, allocations: 1.285 MB / 0.7066 GB, free: 15.79 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002547/0.6696, allocations: 1.525 MB / 0.7081 GB, free: 14.48 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08064/0.7503, allocations: 34.56 MB / 0.7418 GB, free: 12.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002065/0.7524, allocations: 1.929 MB / 0.7437 GB, free: 10.31 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002699/0.7526, allocations: 192.1 kB / 0.7439 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001002/0.7536, allocations: 0.8219 MB / 0.7447 GB, free: 9.289 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005185/0.7542, allocations: 0.5462 MB / 0.7452 GB, free: 8.742 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.722e-05/0.7543, allocations: 60 kB / 0.7453 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06576/0.82, allocations: 43.03 MB / 0.7873 GB, free: 13.57 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002917/0.8203, allocations: 167.5 kB / 0.7875 GB, free: 13.41 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006063/0.821, allocations: 426.3 kB / 0.7879 GB, free: 12.99 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2635/1.084, allocations: 18.86 MB / 0.8063 GB, free: 51.55 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/1.084, allocations: 3.031 kB / 0.8063 GB, free: 51.55 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.203e-06/1.084, allocations: 0 / 0.8063 GB, free: 51.55 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.774e-05/1.085, allocations: 0 / 0.8063 GB, free: 51.55 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.00797/1.092, allocations: 3.349 MB / 0.8096 GB, free: 49.9 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/1.093, allocations: 10.28 kB / 0.8096 GB, free: 49.9 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.706e-05/1.093, allocations: 107.7 kB / 0.8097 GB, free: 49.86 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006821/1.093, allocations: 120.7 kB / 0.8098 GB, free: 49.83 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003771/1.094, allocations: 403.1 kB / 0.8102 GB, free: 49.58 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.334e-05/1.094, allocations: 43.62 kB / 0.8102 GB, free: 49.58 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.603e-05/1.094, allocations: 47.66 kB / 0.8103 GB, free: 49.58 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00147/1.095, allocations: 0.8189 MB / 0.8111 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.995e-05/1.095, allocations: 3.188 kB / 0.8111 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.596e-05/1.095, allocations: 21.69 kB / 0.8111 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.373e-05/1.095, allocations: 21.52 kB / 0.8111 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001515/1.097, allocations: 0.7533 MB / 0.8119 GB, free: 49.47 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002312/1.099, allocations: 3.42 MB / 0.8152 GB, free: 47.24 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/1.1, allocations: 0.6865 MB / 0.8159 GB, free: 47.21 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005897/1.101, allocations: 478 kB / 0.8163 GB, free: 47.2 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2803/1.381, allocations: 185.3 MB / 0.9973 GB, free: 22.23 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/1.381, allocations: 38.31 kB / 0.9973 GB, free: 22.19 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.494e-06/1.381, allocations: 0 / 0.9973 GB, free: 22.19 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.007443/1.389, allocations: 3.424 MB / 1.001 GB, free: 19.59 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.973e-05/1.389, allocations: 59.72 kB / 1.001 GB, free: 19.52 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002506/1.389, allocations: 308 kB / 1.001 GB, free: 19.26 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.418e-05/1.389, allocations: 39.52 kB / 1.001 GB, free: 19.23 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 8.73e-05/1.389, allocations: 226.7 kB / 1.001 GB, free: 19.04 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/1.389, allocations: 386.4 kB / 1.002 GB, free: 18.71 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001375/1.39, allocations: 140.4 kB / 1.002 GB, free: 18.62 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001201/1.39, allocations: 367.7 kB / 1.002 GB, free: 18.28 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005389/1.39, allocations: 394.5 kB / 1.003 GB, free: 18.04 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005959/1.391, allocations: 0.5321 MB / 1.003 GB, free: 17.64 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001136/1.392, allocations: 0.9783 MB / 1.004 GB, free: 16.99 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/1.392, allocations: 4 kB / 1.004 GB, free: 16.99 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001598/1.394, allocations: 1.127 MB / 1.005 GB, free: 16.23 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/1.394, allocations: 4.469 kB / 1.005 GB, free: 16.23 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/1.394, allocations: 8 kB / 1.005 GB, free: 16.22 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003139/1.394, allocations: 101.8 kB / 1.005 GB, free: 16.13 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008097/1.395, allocations: 201.9 kB / 1.005 GB, free: 15.95 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3721/1.767, allocations: 46.9 MB / 1.051 GB, free: 184 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007652/1.768, allocations: 73.11 kB / 1.051 GB, free: 184 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.32e-05/1.768, allocations: 28.06 kB / 1.051 GB, free: 184 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.0003546/1.768, allocations: 211.2 kB / 1.051 GB, free: 183.9 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001566/1.768, allocations: 65.22 kB / 1.052 GB, free: 183.9 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002757/1.771, allocations: 2.391 MB / 1.054 GB, free: 183.6 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/1.771, allocations: 23.91 kB / 1.054 GB, free: 183.6 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.009e-06/1.771, allocations: 0 / 1.054 GB, free: 183.6 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001764/1.773, allocations: 1.65 MB / 1.056 GB, free: 183.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002825/1.776, allocations: 2.47 MB / 1.058 GB, free: 182.8 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/1.776, allocations: 0.6875 kB / 1.058 GB, free: 182.8 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004265/1.776, allocations: 111.1 kB / 1.058 GB, free: 182.8 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004179/1.777, allocations: 213.3 kB / 1.058 GB, free: 182.8 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.862e-05/1.777, allocations: 13.7 kB / 1.058 GB, free: 182.8 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001817/1.779, allocations: 3.993 MB / 1.062 GB, free: 179 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/1.779, allocations: 0 / 1.062 GB, free: 179 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002577/1.781, allocations: 1.978 MB / 1.064 GB, free: 178.8 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002326/1.781, allocations: 131 kB / 1.064 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.616e-05/1.781, allocations: 16.94 kB / 1.064 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004899/1.782, allocations: 59.88 kB / 1.064 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001226/1.782, allocations: 63.08 kB / 1.064 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/1.782, allocations: 21.39 kB / 1.064 GB, free: 178.6 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0002205/1.782, allocations: 258.5 kB / 1.065 GB, free: 178.5 MB / 0.6856 GB Notification: Performance of sort global known variables: time 3e-07/1.782, allocations: 0 / 1.065 GB, free: 178.5 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.01555/1.798, allocations: 4.821 MB / 1.069 GB, free: 178.4 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.02833/1.826, allocations: 8.242 MB / 1.077 GB, free: 176.6 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.003153/1.829, allocations: 1.544 MB / 1.079 GB, free: 176.2 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/1.829, allocations: 4.062 kB / 1.079 GB, free: 176.2 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.001037/1.831, allocations: 0.8195 MB / 1.08 GB, free: 176 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002353/1.833, allocations: 0.5297 MB / 1.08 GB, free: 175.9 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/1.85, allocations: 8.66 MB / 1.089 GB, free: 172.5 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002774/1.85, allocations: 0.9329 MB / 1.09 GB, free: 171.8 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005169/1.85, allocations: 180.4 kB / 1.09 GB, free: 171.8 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002495/1.851, allocations: 253.4 kB / 1.09 GB, free: 171.8 MB / 0.6856 GB Notification: Performance of SimCode: time 4.41e-07/1.851, allocations: 0 / 1.09 GB, free: 171.8 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.051/3.902, allocations: 195.2 MB / 1.281 GB, free: 265.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001706/3.902, allocations: 254.2 kB / 1.281 GB, free: 265.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.982/12.88, allocations: 0 / 1.281 GB, free: 265.1 MB / 0.6856 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)