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.001514/0.001514, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002109/0.002109, allocations: 191.9 kB / 16.13 MB, free: 6.711 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.543/1.543, allocations: 205.1 MB / 222 MB, free: 4.773 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04721/0.04721, allocations: 9.097 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.001401/0.001401, allocations: 63.91 kB / 337.4 MB, free: 25.79 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1038, allocations: 48.16 MB / 385.6 MB, free: 9.594 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel2): time 0.4326/0.5365, allocations: 198.8 MB / 0.5707 GB, free: 15.39 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4169/0.9534, allocations: 143.9 MB / 0.7112 GB, free: 12.12 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007658/0.9542, allocations: 13.53 kB / 0.7112 GB, free: 12.11 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002702/0.9569, allocations: 1.155 MB / 0.7124 GB, free: 11.11 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002904/0.9598, allocations: 1.404 MB / 0.7137 GB, free: 9.922 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.08887/1.049, allocations: 32.68 MB / 0.7456 GB, free: 9.25 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.00267/1.051, allocations: 2.569 MB / 0.7481 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002749/1.052, allocations: 162.6 kB / 0.7483 GB, free: 6.508 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001178/1.053, allocations: 0.7048 MB / 0.749 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005567/1.053, allocations: 0.5485 MB / 0.7495 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.909e-05/1.053, allocations: 28 kB / 0.7496 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06293/1.116, allocations: 39.37 MB / 0.788 GB, free: 13.77 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.000288/1.117, allocations: 147.3 kB / 0.7881 GB, free: 13.62 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0006233/1.117, allocations: 394.4 kB / 0.7885 GB, free: 13.24 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.2559/1.373, allocations: 18.25 MB / 0.8063 GB, free: 46.84 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/1.373, allocations: 0.5312 kB / 0.8063 GB, free: 46.84 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.372e-06/1.373, allocations: 2.25 kB / 0.8063 GB, free: 46.84 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.476e-06/1.373, allocations: 0.7812 kB / 0.8063 GB, free: 46.84 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.007432/1.381, allocations: 3.344 MB / 0.8096 GB, free: 45.29 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.45e-05/1.381, allocations: 9.625 kB / 0.8096 GB, free: 45.29 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.117e-05/1.381, allocations: 110.2 kB / 0.8097 GB, free: 45.25 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006769/1.382, allocations: 120.6 kB / 0.8098 GB, free: 45.21 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003785/1.382, allocations: 403.3 kB / 0.8102 GB, free: 44.96 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.694e-05/1.382, allocations: 44.81 kB / 0.8103 GB, free: 44.96 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.209e-05/1.382, allocations: 48.23 kB / 0.8103 GB, free: 44.96 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001337/1.383, allocations: 0.8179 MB / 0.8111 GB, free: 44.86 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.711e-05/1.383, allocations: 3.938 kB / 0.8111 GB, free: 44.86 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/1.383, allocations: 23.09 kB / 0.8111 GB, free: 44.86 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.82e-05/1.383, allocations: 27.67 kB / 0.8112 GB, free: 44.86 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001508/1.385, allocations: 0.7498 MB / 0.8119 GB, free: 44.86 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00235/1.387, allocations: 3.422 MB / 0.8152 GB, free: 42.62 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001231/1.389, allocations: 0.6802 MB / 0.8159 GB, free: 42.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006186/1.389, allocations: 485 kB / 0.8164 GB, free: 42.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2997/1.689, allocations: 185.3 MB / 0.9973 GB, free: 20.11 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/1.689, allocations: 38.56 kB / 0.9974 GB, free: 20.07 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=109): time 2.655e-06/1.689, allocations: 0 / 0.9974 GB, free: 20.07 MB / 0.6856 GB Notification: Performance of matching and sorting (n=117): time 0.00861/1.698, allocations: 3.423 MB / 1.001 GB, free: 17.48 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.658e-05/1.698, allocations: 59.97 kB / 1.001 GB, free: 17.41 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002906/1.698, allocations: 302.4 kB / 1.001 GB, free: 17.16 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 4.23e-05/1.698, allocations: 38.34 kB / 1.001 GB, free: 17.12 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/1.698, allocations: 236.1 kB / 1.001 GB, free: 16.93 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.000165/1.698, allocations: 378.3 kB / 1.002 GB, free: 16.61 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001609/1.699, allocations: 141.3 kB / 1.002 GB, free: 16.51 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001272/1.699, allocations: 368.6 kB / 1.002 GB, free: 16.17 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005971/1.699, allocations: 394.1 kB / 1.003 GB, free: 15.93 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006949/1.7, allocations: 0.5339 MB / 1.003 GB, free: 15.53 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001295/1.701, allocations: 0.975 MB / 1.004 GB, free: 14.89 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.865e-06/1.701, allocations: 4 kB / 1.004 GB, free: 14.88 MB / 0.6856 GB Notification: Performance of matching and sorting (n=136) (initialization): time 0.001815/1.703, allocations: 1.126 MB / 1.005 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/1.703, allocations: 8 kB / 1.005 GB, free: 14.12 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.898e-06/1.703, allocations: 4 kB / 1.005 GB, free: 14.11 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003628/1.704, allocations: 102.9 kB / 1.005 GB, free: 14.02 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009352/1.705, allocations: 208.1 kB / 1.005 GB, free: 13.84 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3212/2.026, allocations: 46.42 MB / 1.051 GB, free: 392.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008227/2.027, allocations: 75.47 kB / 1.051 GB, free: 392.6 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.364e-05/2.027, allocations: 23.34 kB / 1.051 GB, free: 392.6 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.0004186/2.027, allocations: 231.1 kB / 1.051 GB, free: 392.5 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001902/2.027, allocations: 55.78 kB / 1.051 GB, free: 392.5 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003171/2.03, allocations: 2.387 MB / 1.053 GB, free: 390.9 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.209e-05/2.031, allocations: 21.31 kB / 1.053 GB, free: 390.9 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/2.031, allocations: 0 / 1.053 GB, free: 390.9 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002018/2.033, allocations: 1.645 MB / 1.055 GB, free: 389.2 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003087/2.036, allocations: 2.461 MB / 1.057 GB, free: 386.7 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.578e-06/2.036, allocations: 0 / 1.057 GB, free: 386.7 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005053/2.036, allocations: 127.5 kB / 1.058 GB, free: 386.6 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000433/2.037, allocations: 205.4 kB / 1.058 GB, free: 386.4 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.216e-05/2.037, allocations: 15.94 kB / 1.058 GB, free: 386.4 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001509/2.038, allocations: 3.792 MB / 1.062 GB, free: 382.3 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/2.038, allocations: 2.562 kB / 1.062 GB, free: 382.3 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002222/2.04, allocations: 1.978 MB / 1.063 GB, free: 380.3 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001363/2.041, allocations: 132.3 kB / 1.064 GB, free: 380.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.972e-05/2.041, allocations: 12 kB / 1.064 GB, free: 380.1 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/2.041, allocations: 63.7 kB / 1.064 GB, free: 380.1 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001085/2.041, allocations: 60.47 kB / 1.064 GB, free: 380 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.159e-05/2.041, allocations: 19.98 kB / 1.064 GB, free: 380 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.0001824/2.041, allocations: 254.6 kB / 1.064 GB, free: 379.8 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.5e-07/2.041, allocations: 0 / 1.064 GB, free: 379.8 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0115/2.053, allocations: 4.831 MB / 1.069 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.02008/2.073, allocations: 8.228 MB / 1.077 GB, free: 368.1 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.002245/2.075, allocations: 1.516 MB / 1.078 GB, free: 366.6 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/2.075, allocations: 4 kB / 1.078 GB, free: 366.6 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0009234/2.076, allocations: 0.8291 MB / 1.079 GB, free: 365.7 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002102/2.078, allocations: 0.5099 MB / 1.08 GB, free: 365.2 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01344/2.092, allocations: 8.655 MB / 1.088 GB, free: 356.4 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002684/2.092, allocations: 0.9332 MB / 1.089 GB, free: 355.5 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0005105/2.093, allocations: 189 kB / 1.089 GB, free: 355.3 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002326/2.093, allocations: 247.4 kB / 1.089 GB, free: 355.1 MB / 0.6856 GB Notification: Performance of SimCode: time 3.3e-07/2.093, allocations: 0 / 1.089 GB, free: 355.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.48/6.573, allocations: 194.3 MB / 1.279 GB, free: 160.4 MB / 0.6856 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001839/6.574, allocations: 245.9 kB / 1.279 GB, free: 160.1 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.647/15.22, allocations: 0 / 1.279 GB, free: 160.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)