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.004958/0.004958, allocations: 98.38 kB / 15.73 MB, free: 6.008 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.001327/0.001327, allocations: 191.1 kB / 16.67 MB, free: 5.934 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.499/1.499, allocations: 205.1 MB / 222.6 MB, free: 4.5 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05289/0.05289, allocations: 9.096 MB / 279 MB, free: 12.09 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.002154/0.002154, allocations: 67.91 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.292/0.2942, allocations: 48.16 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel): time 0.1559/0.4501, allocations: 127.6 MB / 0.5496 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.3613/0.8114, allocations: 109.6 MB / 0.6566 GB, free: 324 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006028/0.8121, allocations: 8.094 kB / 0.6566 GB, free: 324 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002487/0.8146, allocations: 1.004 MB / 0.6576 GB, free: 320 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002664/0.8173, allocations: 1.099 MB / 0.6586 GB, free: 292 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.07557/0.8929, allocations: 28.64 MB / 0.6866 GB, free: 8.871 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002012/0.8949, allocations: 1.366 MB / 0.6879 GB, free: 7.883 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002738/0.8952, allocations: 126.4 kB / 0.6881 GB, free: 7.789 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0196/0.9148, allocations: 11.91 MB / 0.6997 GB, free: 14.09 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00057/0.9154, allocations: 379.6 kB / 0.7001 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.069e-05/0.9155, allocations: 40 kB / 0.7001 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06606/0.9816, allocations: 33.13 MB / 0.7324 GB, free: 464 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002583/0.9819, allocations: 119.4 kB / 0.7326 GB, free: 348 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005348/0.9824, allocations: 301.5 kB / 0.7328 GB, free: 48 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04711/1.03, allocations: 14.14 MB / 0.7467 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.483e-06/1.03, allocations: 0 / 0.7467 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.585e-06/1.03, allocations: 0 / 0.7467 GB, free: 2.988 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.43e-05/1.03, allocations: 0 / 0.7467 GB, free: 2.988 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.007399/1.037, allocations: 2.688 MB / 0.7493 GB, free: 260 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.985e-05/1.037, allocations: 8.031 kB / 0.7493 GB, free: 252 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001031/1.037, allocations: 86.52 kB / 0.7494 GB, free: 156 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000653/1.038, allocations: 87.62 kB / 0.7494 GB, free: 68 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006531/1.039, allocations: 347 kB / 0.7498 GB, free: 15.69 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.445e-05/1.039, allocations: 32.59 kB / 0.7498 GB, free: 15.66 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.004e-05/1.039, allocations: 32 kB / 0.7498 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/1.04, allocations: 0.601 MB / 0.7504 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.003e-05/1.04, allocations: 0 / 0.7504 GB, free: 15.01 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.192e-05/1.04, allocations: 19.56 kB / 0.7504 GB, free: 14.99 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.775e-05/1.04, allocations: 25.84 kB / 0.7505 GB, free: 14.97 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/1.042, allocations: 0.5376 MB / 0.751 GB, free: 14.44 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003204/1.045, allocations: 2.551 MB / 0.7535 GB, free: 11.66 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001312/1.046, allocations: 0.5076 MB / 0.754 GB, free: 11.14 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005758/1.047, allocations: 329.7 kB / 0.7543 GB, free: 10.82 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4489/1.496, allocations: 139 MB / 0.89 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.106e-05/1.496, allocations: 38.5 kB / 0.8901 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=79): time 5.34e-06/1.496, allocations: 6.469 kB / 0.8901 GB, free: 220.7 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.006131/1.502, allocations: 2.334 MB / 0.8924 GB, free: 219.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.291e-05/1.502, allocations: 53.47 kB / 0.8924 GB, free: 219.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002498/1.502, allocations: 250 kB / 0.8926 GB, free: 219.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.473e-05/1.502, allocations: 35.95 kB / 0.8927 GB, free: 219.1 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.28e-05/1.502, allocations: 183.7 kB / 0.8929 GB, free: 219 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001454/1.503, allocations: 288.9 kB / 0.8931 GB, free: 218.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001255/1.503, allocations: 95.17 kB / 0.8932 GB, free: 218.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.244e-05/1.503, allocations: 356.2 kB / 0.8936 GB, free: 218.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004609/1.503, allocations: 273.8 kB / 0.8938 GB, free: 218.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000497/1.504, allocations: 395 kB / 0.8942 GB, free: 217.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009315/1.505, allocations: 0.7019 MB / 0.8949 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/1.505, allocations: 0 / 0.8949 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001323/1.506, allocations: 0.7892 MB / 0.8957 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.78e-05/1.506, allocations: 8 kB / 0.8957 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.488e-06/1.506, allocations: 0 / 0.8957 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002356/1.506, allocations: 63.67 kB / 0.8957 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003852/1.507, allocations: 106.2 kB / 0.8958 GB, free: 216.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0653/1.572, allocations: 17.18 MB / 0.9126 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004245/1.572, allocations: 36.03 kB / 0.9126 GB, free: 198.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.198e-05/1.573, allocations: 20 kB / 0.9127 GB, free: 198.6 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.0002435/1.573, allocations: 194.1 kB / 0.9128 GB, free: 198.4 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.297e-05/1.573, allocations: 43.72 kB / 0.9129 GB, free: 198.4 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/1.574, allocations: 1.553 MB / 0.9144 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.377e-05/1.575, allocations: 11.94 kB / 0.9144 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/1.575, allocations: 0 / 0.9144 GB, free: 196.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001185/1.576, allocations: 1.142 MB / 0.9155 GB, free: 195.5 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001908/1.578, allocations: 1.589 MB / 0.9171 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/1.578, allocations: 0 / 0.9171 GB, free: 193.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/1.578, allocations: 87.91 kB / 0.9172 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001925/1.578, allocations: 44.8 kB / 0.9172 GB, free: 193.8 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.593e-05/1.578, allocations: 9.812 kB / 0.9172 GB, free: 193.7 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00071/1.579, allocations: 1.429 MB / 0.9186 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/1.579, allocations: 4.156 kB / 0.9186 GB, free: 192.2 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001536/1.58, allocations: 1.182 MB / 0.9198 GB, free: 191 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.598e-05/1.581, allocations: 119.4 kB / 0.9199 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.715e-05/1.581, allocations: 12 kB / 0.9199 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003096/1.581, allocations: 32.03 kB / 0.9199 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001019/1.581, allocations: 39.95 kB / 0.92 GB, free: 190.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.639e-05/1.581, allocations: 15.98 kB / 0.92 GB, free: 190.7 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001953/1.581, allocations: 247 kB / 0.9202 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/1.581, allocations: 0 / 0.9202 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007691/1.589, allocations: 3.572 MB / 0.9237 GB, free: 187.4 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.01983/1.609, allocations: 6.214 MB / 0.9298 GB, free: 181.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001807/1.611, allocations: 0.9517 MB / 0.9307 GB, free: 180.7 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/1.611, allocations: 0 / 0.9307 GB, free: 180.7 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007199/1.611, allocations: 0.4954 MB / 0.9312 GB, free: 180.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0019/1.613, allocations: 396.8 kB / 0.9316 GB, free: 179.8 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0124/1.626, allocations: 6.329 MB / 0.9377 GB, free: 173.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002585/1.626, allocations: 0.8486 MB / 0.9386 GB, free: 172.4 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004514/1.627, allocations: 159.2 kB / 0.9387 GB, free: 172.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001972/1.627, allocations: 167.4 kB / 0.9389 GB, free: 172 MB / 0.6075 GB Notification: Performance of SimCode: time 1.222e-06/1.627, allocations: 0 / 0.9389 GB, free: 172 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1853/1.812, allocations: 132.4 MB / 1.068 GB, free: 39.5 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.73/18.54, allocations: 8 kB / 1.068 GB, free: 39.49 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 & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel_res.csv --start-time 0 --stop-time 11 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0044 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_EthanolTestModel.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.EthanolTestModel.pipe 2>&1)