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.00646/0.00646, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001469/0.001469, allocations: 189.7 kB / 16.67 MB, free: 5.977 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.493/1.493, allocations: 205.1 MB / 222.5 MB, free: 4.535 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04948/0.04948, allocations: 9.104 MB / 279 MB, free: 12.08 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.001633/0.001633, allocations: 71.91 kB / 387 MB, free: 8.457 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3288/0.3304, allocations: 48.16 MB / 435.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.177/0.5075, allocations: 127.6 MB / 0.5496 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.434/0.9416, allocations: 109.6 MB / 0.6566 GB, free: 316 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007676/0.9424, allocations: 9.812 kB / 0.6566 GB, free: 316 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002811/0.9452, allocations: 1.015 MB / 0.6576 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002771/0.9481, allocations: 1.087 MB / 0.6586 GB, free: 288 kB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.08706/1.035, allocations: 28.67 MB / 0.6866 GB, free: 8.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002474/1.038, allocations: 1.37 MB / 0.688 GB, free: 7.988 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002849/1.038, allocations: 124.7 kB / 0.6881 GB, free: 7.895 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02028/1.058, allocations: 11.92 MB / 0.6997 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005707/1.059, allocations: 376.5 kB / 0.7001 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.52e-05/1.059, allocations: 44 kB / 0.7001 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06796/1.127, allocations: 33.12 MB / 0.7325 GB, free: 460 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0003946/1.127, allocations: 118.2 kB / 0.7326 GB, free: 344 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0007269/1.128, allocations: 310.7 kB / 0.7329 GB, free: 36 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04768/1.176, allocations: 14.1 MB / 0.7466 GB, free: 3.023 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 9.198e-06/1.176, allocations: 4 kB / 0.7466 GB, free: 3.02 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.074e-06/1.176, allocations: 3.938 kB / 0.7467 GB, free: 3.016 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.187e-05/1.176, allocations: 0 / 0.7467 GB, free: 3.016 MB / 0.5294 GB 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.007512/1.183, allocations: 2.572 MB / 0.7492 GB, free: 408 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.715e-05/1.183, allocations: 8.031 kB / 0.7492 GB, free: 400 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001083/1.184, allocations: 86.52 kB / 0.7493 GB, free: 304 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006714/1.184, allocations: 91.33 kB / 0.7493 GB, free: 212 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005502/1.185, allocations: 337.7 kB / 0.7497 GB, free: 15.84 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.304e-05/1.185, allocations: 32.66 kB / 0.7497 GB, free: 15.81 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.552e-05/1.185, allocations: 32 kB / 0.7497 GB, free: 15.78 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/1.186, allocations: 0.5963 MB / 0.7503 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/1.186, allocations: 4 kB / 0.7503 GB, free: 15.16 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.667e-05/1.186, allocations: 19.94 kB / 0.7503 GB, free: 15.14 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.802e-05/1.186, allocations: 23.45 kB / 0.7504 GB, free: 15.12 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001328/1.188, allocations: 0.5481 MB / 0.7509 GB, free: 14.58 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002684/1.19, allocations: 2.544 MB / 0.7534 GB, free: 11.82 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001209/1.192, allocations: 0.5067 MB / 0.7539 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005198/1.192, allocations: 334.8 kB / 0.7542 GB, free: 10.98 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4721/1.664, allocations: 139 MB / 0.8899 GB, free: 221.5 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.224e-05/1.664, allocations: 34.83 kB / 0.8899 GB, free: 221.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 3.387e-06/1.664, allocations: 0 / 0.8899 GB, free: 221.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005656/1.67, allocations: 2.334 MB / 0.8922 GB, free: 220.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.516e-05/1.67, allocations: 58.66 kB / 0.8923 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002601/1.67, allocations: 257.2 kB / 0.8925 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.201e-05/1.67, allocations: 31.77 kB / 0.8926 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.887e-05/1.671, allocations: 181.6 kB / 0.8927 GB, free: 219.7 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/1.671, allocations: 260.2 kB / 0.893 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001331/1.671, allocations: 101.3 kB / 0.8931 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.79e-05/1.671, allocations: 351.7 kB / 0.8934 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004543/1.671, allocations: 277.6 kB / 0.8937 GB, free: 218.9 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004572/1.672, allocations: 392.7 kB / 0.894 GB, free: 218.6 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008721/1.673, allocations: 0.7021 MB / 0.8947 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/1.673, allocations: 0 / 0.8947 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001235/1.674, allocations: 0.7942 MB / 0.8955 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/1.674, allocations: 7.938 kB / 0.8955 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.136e-05/1.674, allocations: 4 kB / 0.8955 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002493/1.674, allocations: 57.69 kB / 0.8956 GB, free: 217.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003943/1.675, allocations: 104.8 kB / 0.8957 GB, free: 217 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06622/1.741, allocations: 17.19 MB / 0.9125 GB, free: 199.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000487/1.741, allocations: 31.97 kB / 0.9125 GB, free: 199.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/1.742, allocations: 16 kB / 0.9125 GB, free: 199.3 MB / 0.6075 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.0002949/1.742, allocations: 188.2 kB / 0.9127 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.646e-05/1.742, allocations: 39.53 kB / 0.9127 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001646/1.744, allocations: 1.551 MB / 0.9142 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.745e-05/1.744, allocations: 11.89 kB / 0.9142 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/1.744, allocations: 3.562 kB / 0.9142 GB, free: 197.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001138/1.745, allocations: 1.138 MB / 0.9154 GB, free: 196.2 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001989/1.747, allocations: 1.592 MB / 0.9169 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/1.747, allocations: 1.875 kB / 0.9169 GB, free: 194.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/1.747, allocations: 83.88 kB / 0.917 GB, free: 194.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002194/1.747, allocations: 40.84 kB / 0.917 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/1.747, allocations: 15.98 kB / 0.9171 GB, free: 194.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007413/1.748, allocations: 1.425 MB / 0.9184 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/1.748, allocations: 0 / 0.9184 GB, free: 192.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00149/1.75, allocations: 1.182 MB / 0.9196 GB, free: 191.6 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.898e-05/1.75, allocations: 120.5 kB / 0.9197 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.841e-05/1.75, allocations: 12 kB / 0.9197 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/1.75, allocations: 23.97 kB / 0.9197 GB, free: 191.5 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/1.75, allocations: 43.94 kB / 0.9198 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/1.75, allocations: 19.92 kB / 0.9198 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002199/1.75, allocations: 239.1 kB / 0.92 GB, free: 191.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.1e-07/1.75, allocations: 4.062 kB / 0.92 GB, free: 191.2 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009541/1.76, allocations: 3.513 MB / 0.9235 GB, free: 188.1 MB / 0.6075 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.01942/1.779, allocations: 6.164 MB / 0.9295 GB, free: 182.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001758/1.781, allocations: 0.9612 MB / 0.9304 GB, free: 181.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/1.781, allocations: 0 / 0.9304 GB, free: 181.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007478/1.782, allocations: 0.4955 MB / 0.9309 GB, free: 180.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001816/1.784, allocations: 393 kB / 0.9313 GB, free: 180.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01246/1.796, allocations: 6.241 MB / 0.9374 GB, free: 174.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/1.797, allocations: 0.8526 MB / 0.9382 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004901/1.797, allocations: 167.1 kB / 0.9384 GB, free: 173.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002027/1.797, allocations: 167.3 kB / 0.9385 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of SimCode: time 1.182e-06/1.797, allocations: 0 / 0.9385 GB, free: 172.9 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1681/1.966, allocations: 132.6 MB / 1.068 GB, free: 40.15 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.97/18.94, allocations: 4 kB / 1.068 GB, free: 40.14 MB / 0.6075 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)