Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.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.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph",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.009541/0.009541, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001837/0.001837, allocations: 192.3 kB / 16.67 MB, free: 5.969 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.371/1.371, allocations: 205.1 MB / 222.6 MB, free: 4.504 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04697/0.04697, allocations: 9.096 MB / 279 MB, free: 12.07 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.001699/0.001699, allocations: 71.89 kB / 387 MB, free: 8.441 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2753, allocations: 48.16 MB / 435.2 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1516/0.4269, allocations: 142.2 MB / 0.5638 GB, free: 2.102 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3448/0.7718, allocations: 97.71 MB / 0.6593 GB, free: 304 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004265/0.7722, allocations: 8.875 kB / 0.6593 GB, free: 304 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002588/0.7749, allocations: 1.55 MB / 0.6608 GB, free: 296 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002986/0.7779, allocations: 1.832 MB / 0.6626 GB, free: 248 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.07216/0.85, allocations: 31.35 MB / 0.6932 GB, free: 6.223 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002104/0.8522, allocations: 1.407 MB / 0.6946 GB, free: 5.207 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002871/0.8525, allocations: 118.8 kB / 0.6947 GB, free: 5.117 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01676/0.8692, allocations: 10.05 MB / 0.7045 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000472/0.8697, allocations: 382.5 kB / 0.7049 GB, free: 12.6 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.272e-05/0.8698, allocations: 40 kB / 0.7049 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06351/0.9333, allocations: 35.4 MB / 0.7395 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000268/0.9337, allocations: 119.2 kB / 0.7396 GB, free: 10.9 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005366/0.9342, allocations: 308.8 kB / 0.7399 GB, free: 10.6 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04834/0.9826, allocations: 14.19 MB / 0.7537 GB, free: 13.49 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.9826, allocations: 0 / 0.7537 GB, free: 13.49 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.493e-06/0.9826, allocations: 0 / 0.7537 GB, free: 13.49 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.735e-05/0.9826, allocations: 0 / 0.7537 GB, free: 13.49 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 0.006966/0.9896, allocations: 2.684 MB / 0.7564 GB, free: 10.76 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.9897, allocations: 8.031 kB / 0.7564 GB, free: 10.75 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.754e-05/0.9898, allocations: 83.39 kB / 0.7564 GB, free: 10.66 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006235/0.9904, allocations: 87.62 kB / 0.7565 GB, free: 10.57 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.9909, allocations: 349.5 kB / 0.7569 GB, free: 10.2 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.991, allocations: 28.66 kB / 0.7569 GB, free: 10.17 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.585e-05/0.991, allocations: 35.94 kB / 0.7569 GB, free: 10.13 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001329/0.9924, allocations: 0.6033 MB / 0.7575 GB, free: 9.512 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.9924, allocations: 0 / 0.7575 GB, free: 9.512 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.056e-05/0.9924, allocations: 15.56 kB / 0.7575 GB, free: 9.5 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.033e-05/0.9925, allocations: 18.19 kB / 0.7575 GB, free: 9.484 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001352/0.9938, allocations: 0.5493 MB / 0.7581 GB, free: 8.938 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002663/0.9965, allocations: 2.512 MB / 0.7605 GB, free: 6.211 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001174/0.9977, allocations: 0.4919 MB / 0.761 GB, free: 5.711 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/0.9983, allocations: 334.3 kB / 0.7613 GB, free: 5.383 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.46/1.458, allocations: 139 MB / 0.8971 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.946e-05/1.458, allocations: 34.91 kB / 0.8971 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.357e-06/1.458, allocations: 0 / 0.8971 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005584/1.464, allocations: 2.342 MB / 0.8994 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.651e-05/1.464, allocations: 59.16 kB / 0.8994 GB, free: 213.6 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002286/1.464, allocations: 259.2 kB / 0.8997 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.511e-05/1.464, allocations: 36.92 kB / 0.8997 GB, free: 213.3 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.122e-05/1.464, allocations: 190.7 kB / 0.8999 GB, free: 213.2 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001211/1.465, allocations: 276.2 kB / 0.9002 GB, free: 213 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/1.465, allocations: 101.5 kB / 0.9003 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.325e-05/1.465, allocations: 345.8 kB / 0.9006 GB, free: 212.6 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004218/1.465, allocations: 279.2 kB / 0.9009 GB, free: 212.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004662/1.466, allocations: 401.2 kB / 0.9012 GB, free: 211.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008871/1.467, allocations: 0.7182 MB / 0.9019 GB, free: 211.1 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/1.467, allocations: 0 / 0.9019 GB, free: 211.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001308/1.468, allocations: 0.7974 MB / 0.9027 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/1.468, allocations: 8.938 kB / 0.9027 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/1.468, allocations: 4 kB / 0.9027 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002352/1.468, allocations: 64.08 kB / 0.9028 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005959/1.469, allocations: 131.8 kB / 0.9029 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06599/1.535, allocations: 19.1 MB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005238/1.535, allocations: 27.98 kB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/1.535, allocations: 23.98 kB / 0.9216 GB, free: 190.5 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * 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): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems 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.0002816/1.536, allocations: 189 kB / 0.9218 GB, free: 190.3 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.626e-05/1.536, allocations: 44.59 kB / 0.9218 GB, free: 190.2 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001652/1.537, allocations: 1.584 MB / 0.9234 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-05/1.538, allocations: 11.59 kB / 0.9234 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/1.538, allocations: 0 / 0.9234 GB, free: 188.6 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001177/1.539, allocations: 1.18 MB / 0.9246 GB, free: 187.3 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001957/1.541, allocations: 1.635 MB / 0.9262 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/1.541, allocations: 0 / 0.9262 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000308/1.541, allocations: 86.41 kB / 0.9262 GB, free: 185.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/1.541, allocations: 105.6 kB / 0.9263 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.229e-05/1.541, allocations: 8 kB / 0.9263 GB, free: 185.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009105/1.542, allocations: 2 MB / 0.9283 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/1.542, allocations: 4.031 kB / 0.9283 GB, free: 183.3 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001635/1.544, allocations: 1.243 MB / 0.9295 GB, free: 182 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001025/1.544, allocations: 122.9 kB / 0.9296 GB, free: 181.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.921e-05/1.544, allocations: 12.02 kB / 0.9296 GB, free: 181.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003083/1.544, allocations: 31.97 kB / 0.9297 GB, free: 181.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.971e-05/1.544, allocations: 47.88 kB / 0.9297 GB, free: 181.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.387e-05/1.544, allocations: 8 kB / 0.9297 GB, free: 181.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002132/1.545, allocations: 247 kB / 0.93 GB, free: 181.5 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.062e-06/1.545, allocations: 0 / 0.93 GB, free: 181.5 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.009185/1.554, allocations: 3.575 MB / 0.9335 GB, free: 178.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 (38): * Single equations (assignments): 33 * 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 Backend phase and start with SimCode phase: time 0.01968/1.574, allocations: 6.244 MB / 0.9395 GB, free: 172.6 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002372/1.576, allocations: 1.007 MB / 0.9405 GB, free: 171.6 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.94e-06/1.576, allocations: 0 / 0.9405 GB, free: 171.6 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007777/1.577, allocations: 0.496 MB / 0.941 GB, free: 171.1 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001973/1.579, allocations: 400.8 kB / 0.9414 GB, free: 170.7 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01204/1.591, allocations: 6.359 MB / 0.9476 GB, free: 164.1 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/1.591, allocations: 0.8486 MB / 0.9484 GB, free: 163.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004485/1.592, allocations: 150.5 kB / 0.9486 GB, free: 163.1 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002037/1.592, allocations: 167.4 kB / 0.9487 GB, free: 163 MB / 0.6075 GB Notification: Performance of SimCode: time 1.042e-06/1.592, allocations: 0 / 0.9487 GB, free: 163 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1922/1.784, allocations: 132.8 MB / 1.078 GB, free: 29.99 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.72/19.5, allocations: 19.66 kB / 1.078 GB, free: 29.97 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph_res.csv --start-time 0 --stop-time 1.01 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000404 HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph.pipe 2>&1)