Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.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.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel",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.001205/0.001205, 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.00132/0.00132, allocations: 186.5 kB / 16.25 MB, free: 6.617 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.281/1.281, allocations: 205.1 MB / 222.1 MB, free: 4.715 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04198/0.04198, allocations: 9.086 MB / 278.5 MB, free: 12.3 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.001337/0.001337, allocations: 63.91 kB / 337.6 MB, free: 25.65 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07479/0.07613, allocations: 48.16 MB / 385.8 MB, free: 9.453 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.2466/0.3228, allocations: 127 MB / 0.5008 GB, free: 7.113 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.2729/0.5957, allocations: 109.3 MB / 0.6075 GB, free: 268 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005127/0.5963, allocations: 6.094 kB / 0.6075 GB, free: 268 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0019/0.5983, allocations: 0.9474 MB / 0.6084 GB, free: 264 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001721/0.6, allocations: 1.019 MB / 0.6094 GB, free: 256 kB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.05458/0.6546, allocations: 25.92 MB / 0.6347 GB, free: 15.63 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001363/0.656, allocations: 1.369 MB / 0.6361 GB, free: 15.62 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.6562, allocations: 123.5 kB / 0.6362 GB, free: 15.6 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01403/0.6702, allocations: 12.2 MB / 0.6481 GB, free: 11.78 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003911/0.6706, allocations: 389.8 kB / 0.6485 GB, free: 11.55 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.313e-05/0.6707, allocations: 44 kB / 0.6485 GB, free: 11.51 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04467/0.7154, allocations: 32.27 MB / 0.68 GB, free: 5.434 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002088/0.7156, allocations: 120.5 kB / 0.6802 GB, free: 5.336 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005032/0.7161, allocations: 304.2 kB / 0.6804 GB, free: 5.062 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03326/0.7494, allocations: 14.14 MB / 0.6943 GB, free: 8.016 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.7494, allocations: 7.938 kB / 0.6943 GB, free: 8.008 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.7494, allocations: 0 / 0.6943 GB, free: 8.008 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.7494, allocations: 0 / 0.6943 GB, free: 8.008 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.005653/0.7551, allocations: 2.564 MB / 0.6968 GB, free: 5.395 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.7551, allocations: 8.031 kB / 0.6968 GB, free: 5.387 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.942e-05/0.7552, allocations: 86.45 kB / 0.6969 GB, free: 5.297 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005869/0.7558, allocations: 91.39 kB / 0.6969 GB, free: 5.207 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.7562, allocations: 335.3 kB / 0.6973 GB, free: 4.844 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.252e-05/0.7563, allocations: 36.53 kB / 0.6973 GB, free: 4.809 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.94e-05/0.7563, allocations: 32 kB / 0.6973 GB, free: 4.777 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001196/0.7575, allocations: 0.6003 MB / 0.6979 GB, free: 4.164 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.03e-05/0.7576, allocations: 7.844 kB / 0.6979 GB, free: 4.156 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.747e-05/0.7576, allocations: 16 kB / 0.6979 GB, free: 4.141 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.7576, allocations: 21.61 kB / 0.698 GB, free: 4.125 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.7588, allocations: 0.5481 MB / 0.6985 GB, free: 3.582 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002213/0.761, allocations: 2.541 MB / 0.701 GB, free: 0.8203 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001059/0.7621, allocations: 0.5007 MB / 0.7015 GB, free: 320 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004979/0.7626, allocations: 344.9 kB / 0.7018 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3454/1.108, allocations: 139 MB / 0.8375 GB, free: 280.4 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.277e-05/1.108, allocations: 41.91 kB / 0.8375 GB, free: 280.3 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=79): time 3.557e-06/1.108, allocations: 0 / 0.8375 GB, free: 280.3 MB / 0.5919 GB Notification: Performance of matching and sorting (n=83): time 0.004782/1.113, allocations: 2.33 MB / 0.8398 GB, free: 279 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.882e-05/1.113, allocations: 66.69 kB / 0.8399 GB, free: 279 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001842/1.113, allocations: 248.9 kB / 0.8401 GB, free: 278.8 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 2.697e-05/1.113, allocations: 33.7 kB / 0.8402 GB, free: 278.8 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 6.501e-05/1.113, allocations: 185.4 kB / 0.8403 GB, free: 278.6 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 9.844e-05/1.113, allocations: 270.2 kB / 0.8406 GB, free: 278.4 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.594e-05/1.113, allocations: 93.8 kB / 0.8407 GB, free: 278.3 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 5.412e-05/1.114, allocations: 350.7 kB / 0.841 GB, free: 278 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/1.114, allocations: 271.3 kB / 0.8413 GB, free: 277.8 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004034/1.114, allocations: 401.6 kB / 0.8417 GB, free: 277.5 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007891/1.115, allocations: 0.6958 MB / 0.8423 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/1.115, allocations: 3.969 kB / 0.8423 GB, free: 277.1 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001117/1.116, allocations: 0.7874 MB / 0.8431 GB, free: 276.7 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/1.116, allocations: 11.69 kB / 0.8431 GB, free: 276.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.145e-06/1.116, allocations: 3.938 kB / 0.8431 GB, free: 276.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002028/1.116, allocations: 64.61 kB / 0.8432 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/1.117, allocations: 98.5 kB / 0.8433 GB, free: 276.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08259/1.199, allocations: 22.95 MB / 0.8657 GB, free: 256.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003583/1.2, allocations: 51.8 kB / 0.8657 GB, free: 256.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.852e-05/1.2, allocations: 19.94 kB / 0.8658 GB, free: 256.9 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 9 (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 (48): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001586/1.2, allocations: 192.1 kB / 0.8659 GB, free: 256.7 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.033e-05/1.2, allocations: 47.47 kB / 0.866 GB, free: 256.6 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/1.201, allocations: 1.541 MB / 0.8675 GB, free: 255 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.183e-05/1.201, allocations: 19.92 kB / 0.8675 GB, free: 255 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/1.202, allocations: 1.812 kB / 0.8675 GB, free: 255 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009733/1.202, allocations: 1.137 MB / 0.8686 GB, free: 253.8 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001541/1.204, allocations: 1.588 MB / 0.8702 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/1.204, allocations: 4 kB / 0.8702 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002791/1.204, allocations: 83.91 kB / 0.8703 GB, free: 252.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000163/1.205, allocations: 40.81 kB / 0.8703 GB, free: 252 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.206e-05/1.205, allocations: 15.98 kB / 0.8703 GB, free: 252 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005847/1.205, allocations: 1.431 MB / 0.8717 GB, free: 250.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/1.205, allocations: 0 / 0.8717 GB, free: 250.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001325/1.206, allocations: 1.176 MB / 0.8729 GB, free: 249.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 5.964e-05/1.207, allocations: 108.6 kB / 0.873 GB, free: 249.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.031e-05/1.207, allocations: 8 kB / 0.873 GB, free: 249.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003061/1.207, allocations: 47.92 kB / 0.873 GB, free: 249.1 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.943e-05/1.207, allocations: 39.89 kB / 0.8731 GB, free: 249 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.172e-05/1.207, allocations: 15.98 kB / 0.8731 GB, free: 249 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001576/1.207, allocations: 247 kB / 0.8733 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of sort global known variables: time 5.31e-07/1.207, allocations: 0 / 0.8733 GB, free: 248.8 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.00522/1.212, allocations: 3.193 MB / 0.8764 GB, free: 246 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (volume.medium.p,volume.medium.h) * Number of discrete variables: 9 ($cse8.phase,$cse9.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) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (40): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01229/1.225, allocations: 5.739 MB / 0.882 GB, free: 240.7 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.001387/1.226, allocations: 0.9659 MB / 0.883 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/1.226, allocations: 0 / 0.883 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0006105/1.227, allocations: 499.2 kB / 0.8834 GB, free: 239.2 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001479/1.228, allocations: 409.9 kB / 0.8838 GB, free: 238.8 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00753/1.236, allocations: 6.343 MB / 0.89 GB, free: 232.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001765/1.236, allocations: 0.8565 MB / 0.8909 GB, free: 231.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0003325/1.236, allocations: 167 kB / 0.891 GB, free: 231.2 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/1.236, allocations: 167.4 kB / 0.8912 GB, free: 231 MB / 0.5919 GB Notification: Performance of SimCode: time 2.41e-07/1.236, allocations: 0 / 0.8912 GB, free: 231 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.646/3.882, allocations: 124.2 MB / 1.013 GB, free: 106.6 MB / 0.5919 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002092/3.883, allocations: 237 kB / 1.013 GB, free: 106.4 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.391/10.27, allocations: 0 / 1.013 GB, free: 106.4 MB / 0.5919 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)