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.001299/0.001299, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.727/1.727, allocations: 205.1 MB / 222.4 MB, free: 4.578 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04892/0.04892, allocations: 9.093 MB / 278.9 MB, free: 12.18 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.001456/0.001456, allocations: 67.84 kB / 338.1 MB, free: 25.33 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 48.15 MB / 386.3 MB, free: 9.133 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_ph): time 0.4407/0.5492, allocations: 142.2 MB / 0.5161 GB, free: 7.477 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.5049/1.054, allocations: 97.7 MB / 0.6115 GB, free: 304 kB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009251/1.055, allocations: 8.141 kB / 0.6115 GB, free: 304 kB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003891/1.059, allocations: 1.368 MB / 0.6128 GB, free: 296 kB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004721/1.064, allocations: 1.648 MB / 0.6144 GB, free: 272 kB / 446.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.09737/1.161, allocations: 29.54 MB / 0.6433 GB, free: 13.6 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.002766/1.164, allocations: 1.398 MB / 0.6447 GB, free: 13.21 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003292/1.164, allocations: 125 kB / 0.6448 GB, free: 13.18 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01893/1.183, allocations: 9.863 MB / 0.6544 GB, free: 9.215 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006711/1.184, allocations: 389.9 kB / 0.6548 GB, free: 8.953 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 7.85e-05/1.184, allocations: 40 kB / 0.6548 GB, free: 8.914 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07881/1.263, allocations: 33.92 MB / 0.6879 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003191/1.263, allocations: 119.5 kB / 0.6881 GB, free: 15.55 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006626/1.264, allocations: 305.5 kB / 0.6883 GB, free: 15.25 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06183/1.326, allocations: 14.17 MB / 0.7022 GB, free: 2.172 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/1.326, allocations: 3.375 kB / 0.7022 GB, free: 2.172 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.894e-06/1.326, allocations: 0 / 0.7022 GB, free: 2.172 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/1.326, allocations: 0 / 0.7022 GB, free: 2.172 MB / 494.1 MB 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.008461/1.334, allocations: 2.571 MB / 0.7047 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/1.334, allocations: 8.031 kB / 0.7047 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001204/1.335, allocations: 86.52 kB / 0.7048 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006814/1.335, allocations: 87.39 kB / 0.7049 GB, free: 15.37 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005325/1.336, allocations: 340.4 kB / 0.7052 GB, free: 15 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.776e-05/1.336, allocations: 28.66 kB / 0.7052 GB, free: 14.97 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.849e-05/1.336, allocations: 32 kB / 0.7053 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001367/1.337, allocations: 0.5961 MB / 0.7058 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/1.337, allocations: 7.844 kB / 0.7058 GB, free: 14.32 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.369e-05/1.337, allocations: 16 kB / 0.7059 GB, free: 14.3 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.403e-05/1.337, allocations: 21.47 kB / 0.7059 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/1.339, allocations: 0.5447 MB / 0.7064 GB, free: 13.75 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002844/1.342, allocations: 2.503 MB / 0.7089 GB, free: 11.04 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001181/1.343, allocations: 0.4964 MB / 0.7093 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005458/1.343, allocations: 346.3 kB / 0.7097 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4533/1.797, allocations: 139 MB / 0.8454 GB, free: 275.7 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.875e-05/1.797, allocations: 43.55 kB / 0.8454 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=78): time 2.665e-06/1.797, allocations: 0 / 0.8454 GB, free: 275.6 MB / 0.5919 GB Notification: Performance of matching and sorting (n=82): time 0.006258/1.803, allocations: 2.333 MB / 0.8477 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/1.803, allocations: 62.22 kB / 0.8478 GB, free: 274.3 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/1.803, allocations: 257.2 kB / 0.848 GB, free: 274.1 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/1.803, allocations: 33.64 kB / 0.848 GB, free: 274 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/1.804, allocations: 191.1 kB / 0.8482 GB, free: 273.9 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001953/1.804, allocations: 268.1 kB / 0.8485 GB, free: 273.7 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/1.804, allocations: 96.95 kB / 0.8486 GB, free: 273.6 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 9.297e-05/1.804, allocations: 354.2 kB / 0.8489 GB, free: 273.2 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004661/1.805, allocations: 277.9 kB / 0.8492 GB, free: 273.1 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005104/1.805, allocations: 399.9 kB / 0.8496 GB, free: 272.8 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009896/1.806, allocations: 0.7087 MB / 0.8502 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/1.806, allocations: 0 / 0.8502 GB, free: 272.4 MB / 0.5919 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001438/1.808, allocations: 0.7992 MB / 0.851 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/1.808, allocations: 7.938 kB / 0.851 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/1.808, allocations: 7.125 kB / 0.851 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002669/1.808, allocations: 59.67 kB / 0.8511 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006341/1.809, allocations: 127.8 kB / 0.8512 GB, free: 271.9 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09081/1.899, allocations: 24.85 MB / 0.8755 GB, free: 248.7 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004755/1.9, allocations: 31.97 kB / 0.8755 GB, free: 248.7 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.175e-05/1.9, allocations: 16 kB / 0.8755 GB, free: 248.6 MB / 0.5919 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.0002905/1.9, allocations: 203.6 kB / 0.8757 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001114/1.9, allocations: 43.52 kB / 0.8758 GB, free: 248.4 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001764/1.902, allocations: 1.575 MB / 0.8773 GB, free: 246.8 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/1.902, allocations: 11.98 kB / 0.8773 GB, free: 246.7 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.648e-06/1.902, allocations: 0 / 0.8773 GB, free: 246.7 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001153/1.903, allocations: 1.18 MB / 0.8785 GB, free: 245.5 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001914/1.905, allocations: 1.638 MB / 0.8801 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.468e-06/1.905, allocations: 4.031 kB / 0.8801 GB, free: 243.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003032/1.906, allocations: 77.89 kB / 0.8802 GB, free: 243.7 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002674/1.906, allocations: 109.5 kB / 0.8803 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.815e-05/1.906, allocations: 15.94 kB / 0.8803 GB, free: 243.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009138/1.907, allocations: 1.989 MB / 0.8822 GB, free: 241.4 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/1.907, allocations: 0 / 0.8822 GB, free: 241.4 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001595/1.908, allocations: 1.255 MB / 0.8834 GB, free: 240.1 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 9.843e-05/1.909, allocations: 116.5 kB / 0.8835 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-05/1.909, allocations: 4 kB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003069/1.909, allocations: 38.78 kB / 0.8836 GB, free: 240 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.973e-05/1.909, allocations: 47.69 kB / 0.8836 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.549e-05/1.909, allocations: 19.98 kB / 0.8837 GB, free: 239.9 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.0001926/1.909, allocations: 239.1 kB / 0.8839 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of sort global known variables: time 1.1e-07/1.909, allocations: 0 / 0.8839 GB, free: 239.7 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.008506/1.918, allocations: 3.181 MB / 0.887 GB, free: 236.9 MB / 0.5919 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.02061/1.938, allocations: 5.768 MB / 0.8926 GB, free: 231.6 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.002327/1.941, allocations: 1.001 MB / 0.8936 GB, free: 230.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 7.614e-06/1.941, allocations: 4.188 kB / 0.8936 GB, free: 230.5 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0008473/1.942, allocations: 0.4915 MB / 0.8941 GB, free: 230 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002053/1.944, allocations: 396.4 kB / 0.8945 GB, free: 229.7 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01549/1.959, allocations: 6.182 MB / 0.9005 GB, free: 223.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/1.96, allocations: 0.8525 MB / 0.9013 GB, free: 222.4 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0004828/1.96, allocations: 143.2 kB / 0.9015 GB, free: 222.3 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001957/1.96, allocations: 167.4 kB / 0.9016 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of SimCode: time 1.342e-06/1.96, allocations: 4 kB / 0.9016 GB, free: 222.1 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1942/2.155, allocations: 124.9 MB / 1.024 GB, free: 96.99 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.57/18.72, allocations: 12.23 kB / 1.024 GB, free: 96.98 MB / 0.5919 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)