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.001443/0.001443, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001524/0.001524, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.433/1.433, allocations: 205.1 MB / 223.2 MB, free: 12.11 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04673/0.04673, allocations: 9.099 MB / 279.6 MB, free: 2.949 MB / 222.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.001539/0.001539, allocations: 67.91 kB / 339.5 MB, free: 6.973 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2622, allocations: 48.14 MB / 387.6 MB, free: 51.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph): time 0.1376/0.3999, allocations: 142.2 MB / 0.5174 GB, free: 12.8 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.2993/0.6993, allocations: 97.7 MB / 0.6128 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005286/0.6999, allocations: 7.344 kB / 0.6128 GB, free: 14.56 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002813/0.7027, allocations: 1.376 MB / 0.6141 GB, free: 14.23 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.7059, allocations: 1.653 MB / 0.6158 GB, free: 13.84 MB / 430.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.07656/0.7825, allocations: 29.53 MB / 0.6446 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001842/0.7843, allocations: 1.402 MB / 0.646 GB, free: 8.516 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002398/0.7846, allocations: 138.2 kB / 0.6461 GB, free: 8.391 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01563/0.8002, allocations: 9.864 MB / 0.6557 GB, free: 14.93 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.8007, allocations: 368.2 kB / 0.6561 GB, free: 14.6 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 5.901e-05/0.8008, allocations: 44 kB / 0.6561 GB, free: 14.55 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.05779/0.8586, allocations: 31.39 MB / 0.6868 GB, free: 84 kB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002678/0.8589, allocations: 127.4 kB / 0.6869 GB, free: 15.96 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005609/0.8594, allocations: 308.9 kB / 0.6872 GB, free: 15.66 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03773/0.8972, allocations: 12.66 MB / 0.6996 GB, free: 3.922 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.8972, allocations: 0 / 0.6996 GB, free: 3.922 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.8972, allocations: 4 kB / 0.6996 GB, free: 3.918 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.667e-06/0.8973, allocations: 0 / 0.6996 GB, free: 3.918 MB / 494.1 MB 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.005186/0.9024, allocations: 2.281 MB / 0.7018 GB, free: 1.59 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.9025, allocations: 8.031 kB / 0.7018 GB, free: 1.582 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005514/0.9031, allocations: 83.34 kB / 0.7019 GB, free: 1.5 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005154/0.9036, allocations: 346.6 kB / 0.7022 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.295e-05/0.9036, allocations: 28.66 kB / 0.7022 GB, free: 1.098 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.661e-05/0.9037, allocations: 32 kB / 0.7023 GB, free: 1.066 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.9049, allocations: 0.5883 MB / 0.7028 GB, free: 472 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.9049, allocations: 7.844 kB / 0.7028 GB, free: 464 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.345e-05/0.905, allocations: 16 kB / 0.7029 GB, free: 448 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.905, allocations: 11.67 kB / 0.7029 GB, free: 440 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001185/0.9062, allocations: 0.5289 MB / 0.7034 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.9086, allocations: 2.492 MB / 0.7058 GB, free: 13.21 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001083/0.9097, allocations: 0.4934 MB / 0.7063 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005144/0.9102, allocations: 335.8 kB / 0.7066 GB, free: 12.39 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.349/1.259, allocations: 121.8 MB / 0.8256 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/1.259, allocations: 38.84 kB / 0.8256 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=78): time 2.685e-06/1.259, allocations: 0 / 0.8256 GB, free: 143.6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=82): time 0.005205/1.265, allocations: 2.408 MB / 0.828 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.259e-05/1.265, allocations: 64.84 kB / 0.8281 GB, free: 141.1 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000228/1.265, allocations: 254.6 kB / 0.8283 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.724e-05/1.265, allocations: 33.7 kB / 0.8283 GB, free: 140.8 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 9.606e-05/1.265, allocations: 193.5 kB / 0.8285 GB, free: 140.6 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001104/1.265, allocations: 253.9 kB / 0.8288 GB, free: 140.3 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001118/1.265, allocations: 102 kB / 0.8288 GB, free: 140.2 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 7.325e-05/1.265, allocations: 350.8 kB / 0.8292 GB, free: 139.9 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004101/1.266, allocations: 279.6 kB / 0.8295 GB, free: 139.6 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004569/1.266, allocations: 395.6 kB / 0.8298 GB, free: 139.2 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008533/1.267, allocations: 0.6904 MB / 0.8305 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/1.267, allocations: 7.938 kB / 0.8305 GB, free: 138.5 MB / 0.5137 GB Notification: Performance of matching and sorting (n=95) (initialization): time 0.001204/1.268, allocations: 0.8011 MB / 0.8313 GB, free: 137.7 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.752e-05/1.268, allocations: 8 kB / 0.8313 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.093e-05/1.268, allocations: 3.984 kB / 0.8313 GB, free: 137.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000501/1.269, allocations: 108.8 kB / 0.8314 GB, free: 137.5 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000493/1.269, allocations: 112.9 kB / 0.8315 GB, free: 137.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06243/1.332, allocations: 19.18 MB / 0.8502 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004269/1.332, allocations: 27.97 kB / 0.8503 GB, free: 117.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.405e-05/1.332, allocations: 21.75 kB / 0.8503 GB, free: 117.9 MB / 0.5137 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.0002395/1.333, allocations: 192.1 kB / 0.8505 GB, free: 117.7 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.722e-05/1.333, allocations: 43.53 kB / 0.8505 GB, free: 117.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/1.334, allocations: 1.69 MB / 0.8522 GB, free: 115.9 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.469e-05/1.334, allocations: 18.48 kB / 0.8522 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.925e-06/1.334, allocations: 0 / 0.8522 GB, free: 115.8 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001235/1.336, allocations: 1.273 MB / 0.8534 GB, free: 114.5 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001949/1.338, allocations: 1.744 MB / 0.8551 GB, free: 112.7 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/1.338, allocations: 0 / 0.8551 GB, free: 112.7 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002999/1.338, allocations: 79.44 kB / 0.8552 GB, free: 112.6 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002905/1.338, allocations: 190.2 kB / 0.8554 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/1.338, allocations: 11.98 kB / 0.8554 GB, free: 112.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001089/1.339, allocations: 2.577 MB / 0.8579 GB, free: 109.6 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/1.339, allocations: 160 / 0.8579 GB, free: 109.6 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/1.341, allocations: 1.454 MB / 0.8593 GB, free: 108.1 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 8.312e-05/1.341, allocations: 116.5 kB / 0.8594 GB, free: 108 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.414e-05/1.341, allocations: 11.98 kB / 0.8595 GB, free: 108 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002933/1.342, allocations: 28.05 kB / 0.8595 GB, free: 108 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.483e-05/1.342, allocations: 55.75 kB / 0.8595 GB, free: 107.9 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.625e-05/1.342, allocations: 11.98 kB / 0.8596 GB, free: 107.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000169/1.342, allocations: 223.1 kB / 0.8598 GB, free: 107.7 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.6e-07/1.342, allocations: 0 / 0.8598 GB, free: 107.7 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.00717/1.349, allocations: 3.225 MB / 0.8629 GB, free: 104.8 MB / 0.5137 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.01229/1.361, allocations: 4.151 MB / 0.867 GB, free: 101.1 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001736/1.363, allocations: 0.9979 MB / 0.8679 GB, free: 100.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.897e-06/1.363, allocations: 3.938 kB / 0.8679 GB, free: 100.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0006627/1.364, allocations: 0.5228 MB / 0.8685 GB, free: 99.55 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001667/1.365, allocations: 409.8 kB / 0.8688 GB, free: 99.16 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001457/1.367, allocations: 1.174 MB / 0.87 GB, free: 97.97 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002097/1.367, allocations: 0.8526 MB / 0.8708 GB, free: 97.09 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000286/1.367, allocations: 106.4 kB / 0.8709 GB, free: 96.98 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.937e-05/1.368, allocations: 39.42 kB / 0.871 GB, free: 96.95 MB / 0.5137 GB Notification: Performance of SimCode: time 2.5e-07/1.368, allocations: 0 / 0.871 GB, free: 96.95 MB / 0.5137 GB Notification: Performance of Templates: time 0.3046/1.672, allocations: 122 MB / 0.9901 GB, free: 220.3 MB / 0.5137 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 -s gbode -lv LOG_STATS > HelmholtzMedia_HelmholtzMedia.Examples.MediaTestModels.ButaneTestModel_dT_component_ph.pipe 2>&1)