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.009205/0.009205, allocations: 96.7 kB / 15.73 MB, free: 6.039 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.001957/0.001957, allocations: 193.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.424/1.424, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04714/0.04714, allocations: 9.104 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.001544/0.001544, allocations: 67.91 kB / 387.1 MB, free: 8.438 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2883, allocations: 48.14 MB / 435.2 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1446/0.4329, allocations: 142.2 MB / 0.5638 GB, free: 2.094 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.3123/0.7452, allocations: 97.69 MB / 0.6593 GB, free: 264 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000468/0.7457, allocations: 8.375 kB / 0.6593 GB, free: 264 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.7491, allocations: 1.553 MB / 0.6608 GB, free: 256 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003684/0.7528, allocations: 1.827 MB / 0.6626 GB, free: 208 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.07434/0.8272, allocations: 31.35 MB / 0.6932 GB, free: 6.148 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002044/0.8293, allocations: 1.413 MB / 0.6946 GB, free: 5.129 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003023/0.8296, allocations: 127.6 kB / 0.6947 GB, free: 5.035 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01768/0.8473, allocations: 10.05 MB / 0.7045 GB, free: 12.82 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0004749/0.8478, allocations: 382.3 kB / 0.7049 GB, free: 12.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.439e-05/0.8479, allocations: 44 kB / 0.7049 GB, free: 12.48 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05355/0.9014, allocations: 31.39 MB / 0.7355 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.000423/0.9019, allocations: 123.4 kB / 0.7357 GB, free: 14.7 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.000675/0.9026, allocations: 309.5 kB / 0.736 GB, free: 14.4 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.04474/0.9473, allocations: 12.69 MB / 0.7483 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.9474, allocations: 0 / 0.7483 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.052e-06/0.9474, allocations: 0 / 0.7483 GB, free: 2.625 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.329e-05/0.9474, allocations: 4 kB / 0.7484 GB, free: 2.621 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.005397/0.9528, allocations: 2.377 MB / 0.7507 GB, free: 204 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.235e-05/0.9529, allocations: 8.031 kB / 0.7507 GB, free: 196 kB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.928e-05/0.953, allocations: 94.39 kB / 0.7508 GB, free: 96 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000557/0.9535, allocations: 83.62 kB / 0.7508 GB, free: 12 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.954, allocations: 342.1 kB / 0.7512 GB, free: 15.64 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.016e-05/0.9541, allocations: 33.53 kB / 0.7512 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.847e-05/0.9542, allocations: 31.94 kB / 0.7512 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.9554, allocations: 0.5932 MB / 0.7518 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.9555, allocations: 0 / 0.7518 GB, free: 14.96 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.032e-05/0.9555, allocations: 12 kB / 0.7518 GB, free: 14.95 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.199e-05/0.9555, allocations: 15.91 kB / 0.7518 GB, free: 14.94 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.9568, allocations: 0.5259 MB / 0.7524 GB, free: 14.42 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002541/0.9593, allocations: 2.496 MB / 0.7548 GB, free: 11.71 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.9604, allocations: 0.4914 MB / 0.7553 GB, free: 11.21 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005192/0.961, allocations: 334.3 kB / 0.7556 GB, free: 10.88 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.3869/1.348, allocations: 121.9 MB / 0.8746 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.627e-05/1.348, allocations: 30.84 kB / 0.8746 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.357e-06/1.348, allocations: 0 / 0.8746 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005525/1.354, allocations: 2.415 MB / 0.877 GB, free: 236.4 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.204e-05/1.354, allocations: 55.34 kB / 0.877 GB, free: 236.3 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/1.354, allocations: 253.2 kB / 0.8773 GB, free: 236.2 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.878e-05/1.354, allocations: 33.64 kB / 0.8773 GB, free: 236.1 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 7.672e-05/1.354, allocations: 190.7 kB / 0.8775 GB, free: 236 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001162/1.354, allocations: 280.8 kB / 0.8778 GB, free: 235.8 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000113/1.354, allocations: 100.9 kB / 0.8778 GB, free: 235.7 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 7.463e-05/1.354, allocations: 354.7 kB / 0.8782 GB, free: 235.4 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004407/1.355, allocations: 267.9 kB / 0.8784 GB, free: 235.2 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004959/1.355, allocations: 407.8 kB / 0.8788 GB, free: 234.9 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009431/1.356, allocations: 0.706 MB / 0.8795 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.356, allocations: 0 / 0.8795 GB, free: 234.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001302/1.357, allocations: 0.8035 MB / 0.8803 GB, free: 234 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.096e-05/1.358, allocations: 7.938 kB / 0.8803 GB, free: 234 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/1.358, allocations: 3.969 kB / 0.8803 GB, free: 234 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005299/1.358, allocations: 102.7 kB / 0.8804 GB, free: 234 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004939/1.359, allocations: 116.6 kB / 0.8805 GB, free: 233.9 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06611/1.425, allocations: 19.19 MB / 0.8993 GB, free: 216.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004331/1.425, allocations: 27.97 kB / 0.8993 GB, free: 216.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.369e-05/1.425, allocations: 22.95 kB / 0.8993 GB, free: 216.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.0002473/1.425, allocations: 198 kB / 0.8995 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.599e-05/1.426, allocations: 44.59 kB / 0.8996 GB, free: 216.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001698/1.427, allocations: 1.693 MB / 0.9012 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-05/1.427, allocations: 19.81 kB / 0.9012 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/1.427, allocations: 0 / 0.9012 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001234/1.429, allocations: 1.27 MB / 0.9025 GB, free: 213.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001962/1.431, allocations: 1.739 MB / 0.9042 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/1.431, allocations: 8.031 kB / 0.9042 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003053/1.431, allocations: 78.5 kB / 0.9042 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002976/1.431, allocations: 182.4 kB / 0.9044 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/1.431, allocations: 15.98 kB / 0.9044 GB, free: 211.4 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/1.432, allocations: 2.594 MB / 0.907 GB, free: 208.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.432, allocations: 0 / 0.907 GB, free: 208.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001768/1.434, allocations: 1.446 MB / 0.9084 GB, free: 207.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.913e-05/1.434, allocations: 126.1 kB / 0.9085 GB, free: 207 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.993e-05/1.434, allocations: 8 kB / 0.9085 GB, free: 207 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003085/1.435, allocations: 32.03 kB / 0.9085 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.587e-05/1.435, allocations: 39.89 kB / 0.9086 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/1.435, allocations: 19.98 kB / 0.9086 GB, free: 206.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001844/1.435, allocations: 219.1 kB / 0.9088 GB, free: 206.7 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2e-07/1.435, allocations: 0 / 0.9088 GB, free: 206.7 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.008223/1.443, allocations: 3.281 MB / 0.912 GB, free: 203.7 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.01909/1.462, allocations: 5.896 MB / 0.9178 GB, free: 198.2 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001929/1.464, allocations: 0.9864 MB / 0.9187 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.464, allocations: 0 / 0.9187 GB, free: 197.2 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006838/1.465, allocations: 0.519 MB / 0.9192 GB, free: 196.7 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001842/1.467, allocations: 396.2 kB / 0.9196 GB, free: 196.3 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01166/1.478, allocations: 6.187 MB / 0.9257 GB, free: 189.9 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002199/1.479, allocations: 0.8526 MB / 0.9265 GB, free: 189 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003813/1.479, allocations: 107.3 kB / 0.9266 GB, free: 188.9 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001885/1.479, allocations: 171.4 kB / 0.9268 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of SimCode: time 4.91e-07/1.479, allocations: 0 / 0.9268 GB, free: 188.8 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1894/1.669, allocations: 128.7 MB / 1.052 GB, free: 59.78 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.65/19.32, allocations: 3.859 kB / 1.052 GB, free: 59.78 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)