Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.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_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_pT",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.008115/0.008115, allocations: 99.83 kB / 15.73 MB, free: 6.012 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.001687/0.001687, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.425/1.425, allocations: 205.1 MB / 222.6 MB, free: 4.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04663/0.04663, allocations: 9.095 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.001582/0.001582, allocations: 75.88 kB / 387 MB, free: 8.434 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2599/0.2615, allocations: 48.16 MB / 435.2 MB, free: 7.164 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT): time 0.144/0.4055, allocations: 142.2 MB / 0.5638 GB, free: 2.09 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3582/0.7637, allocations: 97.71 MB / 0.6593 GB, free: 312 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009273/0.7647, allocations: 6.875 kB / 0.6593 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004026/0.7689, allocations: 1.554 MB / 0.6608 GB, free: 300 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004184/0.7731, allocations: 1.834 MB / 0.6626 GB, free: 252 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.0873/0.8604, allocations: 31.34 MB / 0.6932 GB, free: 6.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002066/0.8625, allocations: 1.409 MB / 0.6946 GB, free: 5.152 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003273/0.8628, allocations: 128.8 kB / 0.6947 GB, free: 5.055 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01855/0.8814, allocations: 10.05 MB / 0.7045 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006479/0.8821, allocations: 377.8 kB / 0.7049 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.207e-05/0.8822, allocations: 40 kB / 0.7049 GB, free: 12.5 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.06982/0.952, allocations: 36.35 MB / 0.7404 GB, free: 10.07 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.9523, allocations: 117.8 kB / 0.7405 GB, free: 9.957 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.0005808/0.9529, allocations: 310.3 kB / 0.7408 GB, free: 9.656 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.05287/1.006, allocations: 14.6 MB / 0.7551 GB, free: 12.16 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 8.536e-06/1.006, allocations: 0 / 0.7551 GB, free: 12.16 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.683e-06/1.006, allocations: 0 / 0.7551 GB, free: 12.16 MB / 0.545 GB Notification: Performance of Transformations before backend: time 3.539e-05/1.006, allocations: 0 / 0.7551 GB, free: 12.16 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.008456/1.014, allocations: 2.776 MB / 0.7578 GB, free: 9.34 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/1.014, allocations: 16.02 kB / 0.7578 GB, free: 9.324 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001268/1.015, allocations: 82.5 kB / 0.7579 GB, free: 9.234 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006183/1.015, allocations: 87.64 kB / 0.7579 GB, free: 9.148 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005654/1.016, allocations: 338.8 kB / 0.7583 GB, free: 8.781 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.523e-05/1.016, allocations: 32.66 kB / 0.7583 GB, free: 8.75 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/1.016, allocations: 35.94 kB / 0.7583 GB, free: 8.715 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001378/1.017, allocations: 0.5815 MB / 0.7589 GB, free: 8.113 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.36e-05/1.017, allocations: 0 / 0.7589 GB, free: 8.113 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.533e-05/1.017, allocations: 15.98 kB / 0.7589 GB, free: 8.098 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.792e-05/1.017, allocations: 18.19 kB / 0.7589 GB, free: 8.082 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001442/1.019, allocations: 0.5181 MB / 0.7594 GB, free: 7.566 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003635/1.022, allocations: 2.49 MB / 0.7619 GB, free: 4.863 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00115/1.024, allocations: 487.7 kB / 0.7623 GB, free: 4.379 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005767/1.024, allocations: 326.3 kB / 0.7627 GB, free: 4.059 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4543/1.479, allocations: 113.4 MB / 0.8734 GB, free: 77.68 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.414e-05/1.479, allocations: 44.16 kB / 0.8734 GB, free: 77.64 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.557e-06/1.479, allocations: 0 / 0.8734 GB, free: 77.64 MB / 0.6075 GB Notification: Performance of matching and sorting (n=83): time 0.005853/1.484, allocations: 2.436 MB / 0.8758 GB, free: 77.18 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.336e-05/1.484, allocations: 57.16 kB / 0.8759 GB, free: 77.12 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/1.485, allocations: 257.9 kB / 0.8761 GB, free: 77.01 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/1.485, allocations: 34.98 kB / 0.8762 GB, free: 76.98 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.768e-05/1.485, allocations: 198 kB / 0.8764 GB, free: 76.86 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/1.485, allocations: 279.2 kB / 0.8766 GB, free: 76.71 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001144/1.485, allocations: 103 kB / 0.8767 GB, free: 76.69 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.488e-05/1.485, allocations: 353.1 kB / 0.8771 GB, free: 76.38 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000456/1.486, allocations: 279.1 kB / 0.8773 GB, free: 76.38 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005046/1.486, allocations: 396.4 kB / 0.8777 GB, free: 76.26 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009898/1.487, allocations: 0.7192 MB / 0.8784 GB, free: 76.12 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/1.487, allocations: 2.719 kB / 0.8784 GB, free: 76.12 MB / 0.6075 GB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001455/1.489, allocations: 0.8148 MB / 0.8792 GB, free: 76.04 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/1.489, allocations: 11.94 kB / 0.8792 GB, free: 76.04 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.189e-05/1.489, allocations: 3.781 kB / 0.8792 GB, free: 76.04 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000309/1.489, allocations: 85.92 kB / 0.8793 GB, free: 76.02 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004954/1.49, allocations: 107.7 kB / 0.8794 GB, free: 76.02 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04931/1.539, allocations: 14.7 MB / 0.8938 GB, free: 69.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004565/1.539, allocations: 29.67 kB / 0.8938 GB, free: 69.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.622e-05/1.539, allocations: 21.16 kB / 0.8938 GB, free: 69.8 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * 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): 1 system {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 {(2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0003148/1.54, allocations: 194.4 kB / 0.894 GB, free: 69.69 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001354/1.54, allocations: 41.75 kB / 0.894 GB, free: 69.66 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002022/1.542, allocations: 1.724 MB / 0.8957 GB, free: 69.39 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.511e-05/1.542, allocations: 14.42 kB / 0.8957 GB, free: 69.39 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.987e-06/1.542, allocations: 0 / 0.8957 GB, free: 69.39 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001728/1.544, allocations: 1.26 MB / 0.897 GB, free: 68.9 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/1.546, allocations: 1.76 MB / 0.8987 GB, free: 68.54 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/1.546, allocations: 0 / 0.8987 GB, free: 68.54 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000351/1.547, allocations: 83.5 kB / 0.8988 GB, free: 68.53 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003032/1.547, allocations: 112.6 kB / 0.8989 GB, free: 68.51 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.045e-05/1.547, allocations: 14.81 kB / 0.8989 GB, free: 68.51 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001302/1.548, allocations: 2.088 MB / 0.9009 GB, free: 66.64 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/1.548, allocations: 0 / 0.9009 GB, free: 66.64 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/1.55, allocations: 1.433 MB / 0.9023 GB, free: 66.41 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001092/1.551, allocations: 119.6 kB / 0.9024 GB, free: 66.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.188e-05/1.551, allocations: 11.88 kB / 0.9024 GB, free: 66.29 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003084/1.551, allocations: 27.89 kB / 0.9025 GB, free: 66.29 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.602e-05/1.551, allocations: 43.34 kB / 0.9025 GB, free: 66.29 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.103e-05/1.551, allocations: 22.34 kB / 0.9025 GB, free: 66.29 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001874/1.551, allocations: 222.5 kB / 0.9027 GB, free: 66.2 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/1.551, allocations: 4.062 kB / 0.9027 GB, free: 66.19 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.007485/1.559, allocations: 3.036 MB / 0.9057 GB, free: 66.19 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.T) * Number of discrete variables: 10 ($cse11.phase,$cse12.phase,$cse14.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 (41): * 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: 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 {(2,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.01835/1.577, allocations: 5.672 MB / 0.9112 GB, free: 64.7 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002596/1.58, allocations: 1.064 MB / 0.9123 GB, free: 64.43 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 5.58e-06/1.58, allocations: 0 / 0.9123 GB, free: 64.43 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0008056/1.581, allocations: 0.561 MB / 0.9128 GB, free: 64.3 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001954/1.583, allocations: 388.1 kB / 0.9132 GB, free: 64.23 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01378/1.596, allocations: 6.317 MB / 0.9194 GB, free: 61.73 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002693/1.597, allocations: 0.8573 MB / 0.9202 GB, free: 61.03 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0004832/1.597, allocations: 133.6 kB / 0.9203 GB, free: 61 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002075/1.597, allocations: 168 kB / 0.9205 GB, free: 61 MB / 0.6075 GB Notification: Performance of SimCode: time 1.042e-06/1.597, allocations: 0 / 0.9205 GB, free: 61 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1782/1.776, allocations: 118.7 MB / 1.036 GB, free: 15.7 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.1/18.88, allocations: 3.953 kB / 1.036 GB, free: 15.7 MB / 0.67 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT_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_pT.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_pT.pipe 2>&1)