Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_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_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_ph",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_MediaTestModels_ButaneTestModel_dT_component_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.005053/0.005052, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001363/0.001363, allocations: 196.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.407/1.407, allocations: 205.1 MB / 222.6 MB, free: 4.523 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.05159/0.05159, 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.002187/0.002187, allocations: 71.89 kB / 387 MB, free: 8.445 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2677/0.2699, allocations: 48.14 MB / 435.2 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1644/0.4343, allocations: 142.2 MB / 0.5638 GB, free: 2.102 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3313/0.7657, allocations: 97.71 MB / 0.6593 GB, free: 284 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005175/0.7663, allocations: 7.031 kB / 0.6593 GB, free: 284 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003144/0.7694, allocations: 1.364 MB / 0.6606 GB, free: 276 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003179/0.7726, allocations: 1.659 MB / 0.6622 GB, free: 228 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.07009/0.8427, allocations: 29.54 MB / 0.6911 GB, free: 6.957 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001935/0.8447, allocations: 1.413 MB / 0.6925 GB, free: 5.941 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000236/0.8449, allocations: 121.6 kB / 0.6926 GB, free: 5.848 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.018/0.8629, allocations: 9.869 MB / 0.7022 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000571/0.8635, allocations: 376.1 kB / 0.7026 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.969e-05/0.8636, allocations: 44 kB / 0.7026 GB, free: 13.36 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05942/0.923, allocations: 31.39 MB / 0.7333 GB, free: 1.184 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002786/0.9234, allocations: 121.9 kB / 0.7334 GB, free: 1.07 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.000571/0.924, allocations: 306.8 kB / 0.7337 GB, free: 0.7695 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.03667/0.9606, allocations: 12.69 MB / 0.7461 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.02e-06/0.9607, allocations: 0 / 0.7461 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9607, allocations: 0 / 0.7461 GB, free: 4.992 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 9.408e-06/0.9607, allocations: 0 / 0.7461 GB, free: 4.992 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.005765/0.9665, allocations: 2.382 MB / 0.7484 GB, free: 2.566 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.057e-05/0.9665, allocations: 8.031 kB / 0.7484 GB, free: 2.559 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.934e-05/0.9666, allocations: 86.52 kB / 0.7485 GB, free: 2.465 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005467/0.9672, allocations: 80.52 kB / 0.7486 GB, free: 2.387 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005356/0.9677, allocations: 342.3 kB / 0.7489 GB, free: 2.016 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.9678, allocations: 32.66 kB / 0.7489 GB, free: 1.984 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.543e-05/0.9678, allocations: 31.94 kB / 0.7489 GB, free: 1.953 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001326/0.9692, allocations: 0.5932 MB / 0.7495 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.9692, allocations: 0 / 0.7495 GB, free: 1.34 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.725e-05/0.9693, allocations: 12 kB / 0.7495 GB, free: 1.328 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.416e-05/0.9693, allocations: 23.17 kB / 0.7496 GB, free: 1.309 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.9707, allocations: 0.5293 MB / 0.7501 GB, free: 0.7852 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002889/0.9736, allocations: 2.493 MB / 0.7525 GB, free: 14.08 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001168/0.9747, allocations: 0.4916 MB / 0.753 GB, free: 13.58 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006113/0.9754, allocations: 338.3 kB / 0.7533 GB, free: 13.25 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3685/1.344, allocations: 121.8 MB / 0.8723 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/1.344, allocations: 40.53 kB / 0.8723 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.545e-06/1.344, allocations: 0 / 0.8723 GB, free: 240.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005241/1.349, allocations: 2.416 MB / 0.8747 GB, free: 239.2 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.929e-05/1.349, allocations: 55.38 kB / 0.8747 GB, free: 239.2 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001979/1.349, allocations: 257.5 kB / 0.875 GB, free: 239 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.339e-05/1.349, allocations: 29.7 kB / 0.875 GB, free: 239 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.876e-05/1.35, allocations: 191.5 kB / 0.8752 GB, free: 238.8 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001013/1.35, allocations: 285.1 kB / 0.8755 GB, free: 238.6 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/1.35, allocations: 95.77 kB / 0.8756 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 5.529e-05/1.35, allocations: 354.6 kB / 0.8759 GB, free: 238.2 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004325/1.35, allocations: 274.3 kB / 0.8762 GB, free: 238 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000473/1.351, allocations: 395.5 kB / 0.8765 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009307/1.352, allocations: 0.7063 MB / 0.8772 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/1.352, allocations: 0 / 0.8772 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001259/1.353, allocations: 0.8043 MB / 0.878 GB, free: 236.9 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.795e-05/1.353, allocations: 9.031 kB / 0.878 GB, free: 236.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.236e-06/1.353, allocations: 0 / 0.878 GB, free: 236.9 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/1.353, allocations: 115.9 kB / 0.8781 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004732/1.354, allocations: 108 kB / 0.8782 GB, free: 236.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06708/1.421, allocations: 19.19 MB / 0.897 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004308/1.422, allocations: 32.03 kB / 0.897 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.296e-05/1.422, allocations: 16 kB / 0.897 GB, free: 219.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 (47): * Single equations (assignments): 40 * 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, 2} * 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.0002481/1.422, allocations: 198.8 kB / 0.8972 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.82e-05/1.422, allocations: 43.72 kB / 0.8973 GB, free: 219.5 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001753/1.424, allocations: 1.707 MB / 0.8989 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.446e-05/1.424, allocations: 11.98 kB / 0.8989 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/1.424, allocations: 0 / 0.8989 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001276/1.425, allocations: 1.266 MB / 0.9002 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001959/1.427, allocations: 1.749 MB / 0.9019 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/1.427, allocations: 0 / 0.9019 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003087/1.427, allocations: 79.91 kB / 0.902 GB, free: 214.5 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002999/1.428, allocations: 190.1 kB / 0.9021 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.754e-05/1.428, allocations: 15.92 kB / 0.9022 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001065/1.429, allocations: 2.569 MB / 0.9047 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/1.429, allocations: 3.938 kB / 0.9047 GB, free: 211.5 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001783/1.431, allocations: 1.446 MB / 0.9061 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 8.291e-05/1.431, allocations: 124.1 kB / 0.9062 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.454e-05/1.431, allocations: 12.06 kB / 0.9062 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002983/1.431, allocations: 27.97 kB / 0.9062 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.561e-05/1.431, allocations: 51.88 kB / 0.9063 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.651e-05/1.431, allocations: 19.98 kB / 0.9063 GB, free: 209.8 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001671/1.431, allocations: 219.1 kB / 0.9065 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.31e-07/1.431, allocations: 4 kB / 0.9065 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.006745/1.438, allocations: 3.287 MB / 0.9097 GB, free: 206.6 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: 10 ($cse7.phase,$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 (37): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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): 2 systems {(1,1), (2,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0146/1.453, allocations: 5.888 MB / 0.9155 GB, free: 201.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001712/1.454, allocations: 0.9904 MB / 0.9164 GB, free: 200.1 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/1.454, allocations: 0 / 0.9164 GB, free: 200.1 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0007231/1.455, allocations: 0.5267 MB / 0.917 GB, free: 199.6 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001869/1.457, allocations: 392.3 kB / 0.9173 GB, free: 199.2 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009934/1.467, allocations: 6.177 MB / 0.9234 GB, free: 192.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/1.467, allocations: 0.8564 MB / 0.9242 GB, free: 192 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003945/1.468, allocations: 107.3 kB / 0.9243 GB, free: 191.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001956/1.468, allocations: 167.4 kB / 0.9245 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of SimCode: time 9.62e-07/1.468, allocations: 4 kB / 0.9245 GB, free: 191.7 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1671/1.635, allocations: 128.7 MB / 1.05 GB, free: 62.73 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.44/19.08, allocations: 11.8 kB / 1.05 GB, free: 62.71 MB / 0.6075 GB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_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_dT_component_ph.fmu > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)