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: translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") translateModel(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.009276/0.009276, allocations: 97.62 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.001929/0.001929, allocations: 199.4 kB / 16.68 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.537/1.537, allocations: 205.1 MB / 222.5 MB, free: 4.539 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04767/0.04767, allocations: 9.088 MB / 279 MB, free: 12.12 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.001699/0.001699, allocations: 71.84 kB / 387.5 MB, free: 7.98 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3158/0.3175, allocations: 48.15 MB / 435.7 MB, free: 7.793 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1617/0.4793, allocations: 142.2 MB / 0.5643 GB, free: 2.195 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.396/0.8753, allocations: 97.71 MB / 0.6597 GB, free: 320 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008752/0.8762, allocations: 8.531 kB / 0.6597 GB, free: 320 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003683/0.88, allocations: 1.364 MB / 0.6611 GB, free: 312 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00404/0.884, allocations: 1.651 MB / 0.6627 GB, free: 268 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.07757/0.9616, allocations: 29.55 MB / 0.6915 GB, free: 7.09 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001982/0.9636, allocations: 1.408 MB / 0.6929 GB, free: 6.078 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.9639, allocations: 127.2 kB / 0.693 GB, free: 5.984 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01772/0.9816, allocations: 9.87 MB / 0.7027 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0006174/0.9823, allocations: 376.8 kB / 0.703 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.911e-05/0.9824, allocations: 40 kB / 0.7031 GB, free: 13.48 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05978/1.042, allocations: 31.4 MB / 0.7337 GB, free: 1.34 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.000306/1.043, allocations: 123.4 kB / 0.7339 GB, free: 1.223 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005497/1.043, allocations: 301.5 kB / 0.7341 GB, free: 0.9297 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04069/1.084, allocations: 12.69 MB / 0.7465 GB, free: 5.152 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.453e-06/1.084, allocations: 0 / 0.7465 GB, free: 5.152 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.934e-06/1.084, allocations: 0 / 0.7465 GB, free: 5.152 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.478e-05/1.084, allocations: 0 / 0.7465 GB, free: 5.152 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.005965/1.09, allocations: 2.382 MB / 0.7489 GB, free: 2.727 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/1.09, allocations: 12.03 kB / 0.7489 GB, free: 2.715 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005563/1.09, allocations: 79.64 kB / 0.7489 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004481/1.091, allocations: 342.4 kB / 0.7493 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.79e-05/1.091, allocations: 40.31 kB / 0.7493 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.947e-05/1.091, allocations: 28 kB / 0.7493 GB, free: 2.203 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/1.092, allocations: 0.5932 MB / 0.7499 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.305e-05/1.092, allocations: 4 kB / 0.7499 GB, free: 1.586 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.936e-05/1.092, allocations: 12 kB / 0.7499 GB, free: 1.574 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.083e-05/1.092, allocations: 14.19 kB / 0.7499 GB, free: 1.562 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/1.094, allocations: 0.522 MB / 0.7505 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002542/1.096, allocations: 2.496 MB / 0.7529 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/1.097, allocations: 0.4919 MB / 0.7534 GB, free: 13.83 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005164/1.098, allocations: 338.3 kB / 0.7537 GB, free: 13.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4391/1.537, allocations: 121.8 MB / 0.8727 GB, free: 240.9 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.024e-05/1.537, allocations: 35.5 kB / 0.8727 GB, free: 240.9 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 2.775e-06/1.537, allocations: 0 / 0.8727 GB, free: 240.9 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.005652/1.543, allocations: 2.412 MB / 0.8751 GB, free: 239.5 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.359e-05/1.543, allocations: 57.47 kB / 0.8751 GB, free: 239.4 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002592/1.543, allocations: 256.8 kB / 0.8754 GB, free: 239.3 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.976e-05/1.543, allocations: 33.67 kB / 0.8754 GB, free: 239.2 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/1.543, allocations: 189.6 kB / 0.8756 GB, free: 239.1 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/1.543, allocations: 283.9 kB / 0.8759 GB, free: 238.9 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001158/1.543, allocations: 96.83 kB / 0.8759 GB, free: 238.8 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 6.838e-05/1.544, allocations: 346.5 kB / 0.8763 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004162/1.544, allocations: 282.2 kB / 0.8765 GB, free: 238.3 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004585/1.544, allocations: 388.9 kB / 0.8769 GB, free: 238 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008676/1.545, allocations: 0.7083 MB / 0.8776 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/1.545, allocations: 0 / 0.8776 GB, free: 237.6 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001283/1.547, allocations: 0.8088 MB / 0.8784 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/1.547, allocations: 3.969 kB / 0.8784 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.23e-05/1.547, allocations: 3.906 kB / 0.8784 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005223/1.547, allocations: 107.8 kB / 0.8785 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004558/1.548, allocations: 102.8 kB / 0.8786 GB, free: 237.1 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.063/1.611, allocations: 19.21 MB / 0.8974 GB, free: 219.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005806/1.611, allocations: 31.97 kB / 0.8974 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.651e-05/1.611, allocations: 20.06 kB / 0.8974 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.0003274/1.612, allocations: 194.7 kB / 0.8976 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001061/1.612, allocations: 43.72 kB / 0.8976 GB, free: 219.6 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/1.614, allocations: 1.699 MB / 0.8993 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.023e-05/1.614, allocations: 15.89 kB / 0.8993 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/1.614, allocations: 8 kB / 0.8993 GB, free: 217.8 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001278/1.615, allocations: 1.262 MB / 0.9006 GB, free: 216.4 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002206/1.617, allocations: 1.744 MB / 0.9023 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/1.617, allocations: 0 / 0.9023 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003082/1.617, allocations: 79.94 kB / 0.9023 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003589/1.618, allocations: 194.3 kB / 0.9025 GB, free: 214.4 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/1.618, allocations: 7.984 kB / 0.9025 GB, free: 214.3 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/1.619, allocations: 2.583 MB / 0.9051 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/1.619, allocations: 4.031 kB / 0.9051 GB, free: 211.6 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002003/1.621, allocations: 1.45 MB / 0.9065 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001612/1.622, allocations: 119 kB / 0.9066 GB, free: 210 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.058e-05/1.622, allocations: 8 kB / 0.9066 GB, free: 210 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002881/1.622, allocations: 27.97 kB / 0.9066 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/1.622, allocations: 47.88 kB / 0.9067 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.833e-05/1.622, allocations: 15.98 kB / 0.9067 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0002312/1.622, allocations: 222.6 kB / 0.9069 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.5e-07/1.622, allocations: 4.062 kB / 0.9069 GB, free: 209.6 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01123/1.634, allocations: 3.282 MB / 0.9101 GB, free: 206.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.01588/1.65, allocations: 4.208 MB / 0.9142 GB, free: 202.9 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001868/1.651, allocations: 1.002 MB / 0.9152 GB, free: 201.9 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/1.651, allocations: 0 / 0.9152 GB, free: 201.9 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0006693/1.652, allocations: 0.515 MB / 0.9157 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001796/1.654, allocations: 400.5 kB / 0.9161 GB, free: 201 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00153/1.656, allocations: 1.203 MB / 0.9173 GB, free: 199.8 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/1.656, allocations: 0.8526 MB / 0.9181 GB, free: 198.9 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0002973/1.656, allocations: 111.3 kB / 0.9182 GB, free: 198.8 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.947e-05/1.656, allocations: 39.42 kB / 0.9182 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of SimCode: time 2.21e-07/1.656, allocations: 4 kB / 0.9182 GB, free: 198.7 MB / 0.6075 GB Notification: Performance of Templates: time 0.1182/1.774, allocations: 122.2 MB / 1.038 GB, free: 76.33 MB / 0.6075 GB make -j1 -f HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.makefile (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 & ./HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph -abortSlowSimulation -alarm=480 -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)