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.008043/0.008043, allocations: 106 kB / 15.73 MB, free: 6.008 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.001232/0.001232, allocations: 192.2 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.752/1.752, allocations: 205.1 MB / 222.5 MB, free: 4.516 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04907/0.04907, allocations: 9.096 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.001537/0.001537, allocations: 68.41 kB / 387.5 MB, free: 7.961 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3935/0.3951, allocations: 48.15 MB / 435.7 MB, free: 7.539 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1864/0.5815, allocations: 142.2 MB / 0.5643 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.4238/1.005, allocations: 97.7 MB / 0.6597 GB, free: 328 kB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000728/1.006, allocations: 5.562 kB / 0.6597 GB, free: 328 kB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004181/1.01, allocations: 1.363 MB / 0.6611 GB, free: 320 kB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004675/1.015, allocations: 1.662 MB / 0.6627 GB, free: 272 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.086/1.101, allocations: 29.54 MB / 0.6915 GB, free: 6.988 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.002158/1.103, allocations: 1.415 MB / 0.6929 GB, free: 5.973 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002904/1.104, allocations: 123.2 kB / 0.693 GB, free: 5.879 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01775/1.121, allocations: 9.883 MB / 0.7027 GB, free: 13.71 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005297/1.122, allocations: 373.5 kB / 0.703 GB, free: 13.42 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 6.792e-05/1.122, allocations: 44 kB / 0.7031 GB, free: 13.38 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.05748/1.18, allocations: 31.39 MB / 0.7337 GB, free: 1.195 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0002833/1.18, allocations: 131 kB / 0.7339 GB, free: 1.07 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0005728/1.18, allocations: 300.9 kB / 0.7342 GB, free: 0.7773 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.04329/1.224, allocations: 12.66 MB / 0.7465 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 8.036e-06/1.224, allocations: 0 / 0.7465 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.093e-06/1.224, allocations: 0 / 0.7465 GB, free: 5.039 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 1.201e-05/1.224, allocations: 4 kB / 0.7465 GB, free: 5.035 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.00724/1.231, allocations: 2.281 MB / 0.7487 GB, free: 2.707 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 5.345e-05/1.231, allocations: 12.02 kB / 0.7488 GB, free: 2.695 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005808/1.232, allocations: 79.41 kB / 0.7488 GB, free: 2.617 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005249/1.232, allocations: 338.8 kB / 0.7492 GB, free: 2.25 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.841e-05/1.232, allocations: 28.66 kB / 0.7492 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.378e-05/1.232, allocations: 32 kB / 0.7492 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/1.234, allocations: 0.5922 MB / 0.7498 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.768e-05/1.234, allocations: 0 / 0.7498 GB, free: 1.582 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/1.234, allocations: 16 kB / 0.7498 GB, free: 1.566 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.127e-05/1.234, allocations: 23.11 kB / 0.7498 GB, free: 1.547 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001176/1.235, allocations: 0.5169 MB / 0.7503 GB, free: 1.035 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002714/1.238, allocations: 2.5 MB / 0.7528 GB, free: 14.33 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001061/1.239, allocations: 498.8 kB / 0.7533 GB, free: 13.84 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005497/1.239, allocations: 350.7 kB / 0.7536 GB, free: 13.49 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.4899/1.729, allocations: 121.8 MB / 0.8726 GB, free: 241.2 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.063e-05/1.729, allocations: 30.84 kB / 0.8726 GB, free: 241.1 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=78): time 3.607e-06/1.729, allocations: 0 / 0.8726 GB, free: 241.1 MB / 0.6075 GB Notification: Performance of matching and sorting (n=82): time 0.006793/1.736, allocations: 2.408 MB / 0.8749 GB, free: 239.7 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.065e-05/1.736, allocations: 57.66 kB / 0.875 GB, free: 239.7 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/1.736, allocations: 252.7 kB / 0.8752 GB, free: 239.5 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.342e-05/1.736, allocations: 33.67 kB / 0.8753 GB, free: 239.5 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/1.737, allocations: 195.1 kB / 0.8755 GB, free: 239.3 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001616/1.737, allocations: 260.6 kB / 0.8757 GB, free: 239.1 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001425/1.737, allocations: 99.77 kB / 0.8758 GB, free: 239 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 8.963e-05/1.737, allocations: 358.7 kB / 0.8761 GB, free: 238.7 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004545/1.737, allocations: 267.8 kB / 0.8764 GB, free: 238.5 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005473/1.738, allocations: 399.2 kB / 0.8768 GB, free: 238.2 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001055/1.739, allocations: 0.7004 MB / 0.8775 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/1.739, allocations: 10.38 kB / 0.8775 GB, free: 237.8 MB / 0.6075 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001419/1.741, allocations: 0.8098 MB / 0.8783 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.355e-05/1.741, allocations: 3.969 kB / 0.8783 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.344e-05/1.741, allocations: 7.344 kB / 0.8783 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005118/1.741, allocations: 102.6 kB / 0.8784 GB, free: 237.3 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004976/1.742, allocations: 109.8 kB / 0.8785 GB, free: 237.2 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0664/1.808, allocations: 19.19 MB / 0.8972 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004688/1.809, allocations: 28.03 kB / 0.8972 GB, free: 220.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.247e-05/1.809, allocations: 20 kB / 0.8973 GB, free: 220 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.0002708/1.809, allocations: 196 kB / 0.8974 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.795e-05/1.809, allocations: 43.53 kB / 0.8975 GB, free: 219.8 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001724/1.811, allocations: 1.689 MB / 0.8991 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.777e-05/1.811, allocations: 17.94 kB / 0.8992 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/1.811, allocations: 0 / 0.8992 GB, free: 218 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001256/1.812, allocations: 1.274 MB / 0.9004 GB, free: 216.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001964/1.814, allocations: 1.741 MB / 0.9021 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/1.814, allocations: 0 / 0.9021 GB, free: 214.9 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000296/1.814, allocations: 79.92 kB / 0.9022 GB, free: 214.8 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002925/1.815, allocations: 186.2 kB / 0.9023 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.581e-05/1.815, allocations: 15.94 kB / 0.9024 GB, free: 214.6 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001124/1.816, allocations: 2.587 MB / 0.9049 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/1.816, allocations: 0 / 0.9049 GB, free: 211.8 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001741/1.818, allocations: 1.446 MB / 0.9063 GB, free: 210.3 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001171/1.818, allocations: 124.4 kB / 0.9064 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.174e-05/1.818, allocations: 12 kB / 0.9064 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002816/1.818, allocations: 23.97 kB / 0.9065 GB, free: 210.2 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/1.818, allocations: 47.88 kB / 0.9065 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/1.818, allocations: 12 kB / 0.9065 GB, free: 210.1 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001731/1.818, allocations: 223.1 kB / 0.9067 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.4e-07/1.818, allocations: 0 / 0.9067 GB, free: 209.9 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.01032/1.829, allocations: 3.228 MB / 0.9099 GB, free: 207 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.01681/1.845, allocations: 4.17 MB / 0.9139 GB, free: 203.3 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002022/1.848, allocations: 0.9899 MB / 0.9149 GB, free: 202.3 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/1.848, allocations: 0.6875 kB / 0.9149 GB, free: 202.3 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.000703/1.848, allocations: 0.5227 MB / 0.9154 GB, free: 201.8 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/1.85, allocations: 398.2 kB / 0.9158 GB, free: 201.4 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00164/1.852, allocations: 1.172 MB / 0.917 GB, free: 200.2 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002514/1.852, allocations: 0.8526 MB / 0.9178 GB, free: 199.3 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0003263/1.852, allocations: 123.2 kB / 0.9179 GB, free: 199.2 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.726e-05/1.853, allocations: 39.44 kB / 0.9179 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of SimCode: time 3.51e-07/1.853, allocations: 0 / 0.9179 GB, free: 199.1 MB / 0.6075 GB Notification: Performance of Templates: time 0.1279/1.98, allocations: 122.4 MB / 1.037 GB, free: 76.55 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)