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.00695/0.00695, allocations: 99.5 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.001385/0.001385, allocations: 191.9 kB / 16.67 MB, free: 5.973 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.488/1.488, allocations: 205.1 MB / 222.6 MB, free: 4.531 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0526/0.0526, allocations: 9.092 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.003097/0.003097, allocations: 71.89 kB / 387 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2647/0.2678, allocations: 48.16 MB / 435.2 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.1656/0.4335, allocations: 142.2 MB / 0.5638 GB, free: 2.105 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.322/0.7555, allocations: 97.71 MB / 0.6593 GB, free: 264 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005176/0.7561, allocations: 9.781 kB / 0.6593 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002931/0.7591, allocations: 1.366 MB / 0.6606 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003396/0.7625, allocations: 1.663 MB / 0.6622 GB, free: 204 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.07951/0.842, allocations: 29.52 MB / 0.6911 GB, free: 6.914 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002624/0.8447, allocations: 1.415 MB / 0.6924 GB, free: 5.895 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003588/0.845, allocations: 127.4 kB / 0.6926 GB, free: 5.793 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02539/0.8704, allocations: 9.856 MB / 0.7022 GB, free: 13.65 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008299/0.8713, allocations: 371.6 kB / 0.7025 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.8714, allocations: 44 kB / 0.7026 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.07548/0.9469, allocations: 35.4 MB / 0.7371 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002767/0.9473, allocations: 114.2 kB / 0.7373 GB, free: 13.27 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0006159/0.9479, allocations: 313.2 kB / 0.7376 GB, free: 12.96 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04872/0.9966, allocations: 14.19 MB / 0.7514 GB, free: 15.85 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.9967, allocations: 0 / 0.7514 GB, free: 15.85 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.763e-06/0.9967, allocations: 0 / 0.7514 GB, free: 15.85 MB / 0.545 GB Notification: Performance of Transformations before backend: time 9.467e-06/0.9967, allocations: 0 / 0.7514 GB, free: 15.85 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.007015/1.004, allocations: 2.682 MB / 0.754 GB, free: 13.12 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.716e-05/1.004, allocations: 12.03 kB / 0.754 GB, free: 13.11 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001081/1.004, allocations: 90.45 kB / 0.7541 GB, free: 13.01 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006659/1.005, allocations: 83.64 kB / 0.7542 GB, free: 12.93 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006054/1.005, allocations: 350 kB / 0.7545 GB, free: 12.55 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.896e-05/1.005, allocations: 28.66 kB / 0.7546 GB, free: 12.53 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.221e-05/1.005, allocations: 39.94 kB / 0.7546 GB, free: 12.49 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001426/1.007, allocations: 0.5971 MB / 0.7552 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.761e-05/1.007, allocations: 4 kB / 0.7552 GB, free: 11.87 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.26e-05/1.007, allocations: 12 kB / 0.7552 GB, free: 11.86 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.298e-05/1.007, allocations: 16 kB / 0.7552 GB, free: 11.84 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/1.008, allocations: 0.5454 MB / 0.7558 GB, free: 11.3 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003227/1.012, allocations: 2.513 MB / 0.7582 GB, free: 8.57 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001297/1.013, allocations: 0.4891 MB / 0.7587 GB, free: 8.074 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006177/1.014, allocations: 342.3 kB / 0.759 GB, free: 7.738 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4329/1.447, allocations: 139 MB / 0.8948 GB, free: 217.3 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.989e-05/1.447, allocations: 38.83 kB / 0.8948 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.316e-06/1.447, allocations: 0 / 0.8948 GB, free: 217.2 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006801/1.453, allocations: 2.329 MB / 0.8971 GB, free: 216 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/1.454, allocations: 59.03 kB / 0.8971 GB, free: 215.9 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003024/1.454, allocations: 266.9 kB / 0.8974 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.769e-05/1.454, allocations: 33.52 kB / 0.8974 GB, free: 215.7 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.96e-05/1.454, allocations: 193 kB / 0.8976 GB, free: 215.5 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001587/1.454, allocations: 275.2 kB / 0.8979 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/1.454, allocations: 101.1 kB / 0.8979 GB, free: 215.3 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.062e-05/1.454, allocations: 354.5 kB / 0.8983 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004925/1.455, allocations: 276.7 kB / 0.8986 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005944/1.455, allocations: 402.2 kB / 0.8989 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001057/1.457, allocations: 0.7172 MB / 0.8996 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/1.457, allocations: 0 / 0.8996 GB, free: 213.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.00142/1.458, allocations: 0.7931 MB / 0.9004 GB, free: 213.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.194e-05/1.458, allocations: 8.938 kB / 0.9004 GB, free: 213.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.171e-05/1.458, allocations: 4 kB / 0.9004 GB, free: 213.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002569/1.458, allocations: 69.27 kB / 0.9005 GB, free: 213 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006243/1.459, allocations: 127.8 kB / 0.9006 GB, free: 212.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08155/1.541, allocations: 19.09 MB / 0.9193 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004474/1.541, allocations: 23.97 kB / 0.9193 GB, free: 193.3 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.23e-05/1.541, allocations: 23.94 kB / 0.9193 GB, free: 193.3 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.0002349/1.541, allocations: 190.7 kB / 0.9195 GB, free: 193.1 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.009e-05/1.541, allocations: 47.7 kB / 0.9195 GB, free: 193 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001637/1.543, allocations: 1.576 MB / 0.9211 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.611e-05/1.543, allocations: 15.81 kB / 0.9211 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/1.543, allocations: 3.469 kB / 0.9211 GB, free: 191.4 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001174/1.544, allocations: 1.18 MB / 0.9222 GB, free: 190.1 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001805/1.546, allocations: 1.63 MB / 0.9238 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/1.546, allocations: 0 / 0.9238 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003178/1.546, allocations: 83.92 kB / 0.9239 GB, free: 188.4 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002387/1.547, allocations: 105.2 kB / 0.924 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/1.547, allocations: 12 kB / 0.924 GB, free: 188.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008577/1.548, allocations: 1.995 MB / 0.926 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.548, allocations: 0 / 0.926 GB, free: 186.1 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001617/1.549, allocations: 1.247 MB / 0.9272 GB, free: 184.8 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.889e-05/1.549, allocations: 118.8 kB / 0.9273 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.699e-05/1.549, allocations: 16 kB / 0.9273 GB, free: 184.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003046/1.55, allocations: 27.97 kB / 0.9273 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.378e-05/1.55, allocations: 51.88 kB / 0.9274 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.489e-05/1.55, allocations: 15.98 kB / 0.9274 GB, free: 184.6 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001854/1.55, allocations: 239.1 kB / 0.9276 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.55, allocations: 0 / 0.9276 GB, free: 184.3 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007089/1.557, allocations: 3.58 MB / 0.9311 GB, free: 181.2 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.01653/1.574, allocations: 6.254 MB / 0.9372 GB, free: 175.4 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.00198/1.576, allocations: 0.9942 MB / 0.9382 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/1.576, allocations: 3.938 kB / 0.9382 GB, free: 174.4 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007666/1.576, allocations: 0.496 MB / 0.9387 GB, free: 173.9 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00192/1.578, allocations: 398 kB / 0.9391 GB, free: 173.5 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01218/1.591, allocations: 6.363 MB / 0.9453 GB, free: 166.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/1.591, allocations: 0.8525 MB / 0.9461 GB, free: 166.1 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004058/1.591, allocations: 143.2 kB / 0.9463 GB, free: 165.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000179/1.591, allocations: 167.4 kB / 0.9464 GB, free: 165.8 MB / 0.6075 GB Notification: Performance of SimCode: time 5.71e-07/1.591, allocations: 4 kB / 0.9464 GB, free: 165.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1834/1.775, allocations: 132.8 MB / 1.076 GB, free: 32.79 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/19.43, allocations: 19.59 kB / 1.076 GB, free: 32.77 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)