Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.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/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001138/0.001138, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001188/0.001188, allocations: 194.6 kB / 16.53 MB, free: 6.391 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.38/1.38, allocations: 205.1 MB / 222.4 MB, free: 4.586 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.677/1.677, allocations: 292.3 MB / 0.5489 GB, free: 13.51 MB / 462.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.001451/0.001451, allocations: 68.73 kB / 0.6715 GB, free: 25.89 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2298/0.2313, allocations: 114.6 MB / 0.7834 GB, free: 13.54 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002818/0.2342, allocations: 1.404 MB / 0.7848 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004681/0.2389, allocations: 3.064 MB / 0.7878 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.673e-05/0.2389, allocations: 0 / 0.7878 GB, free: 9.043 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.2391, allocations: 11.86 kB / 0.7878 GB, free: 9.031 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002189/0.2393, allocations: 27.84 kB / 0.7878 GB, free: 9.004 MB / 0.6075 GB [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Fluid/Geothermal/Borefields/BaseClasses/HeatTransfer/ThermalResponseFactors/gFunction.mo:2:1-295:14:writable] Warning: Pure function 'Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.gFunction' contains a call to impure function 'Modelica.Math.Matrices.solve'. Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.2418, allocations: 0.9973 MB / 0.7888 GB, free: 8.004 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001179/0.2419, allocations: 87.69 kB / 0.7889 GB, free: 7.918 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.829e-05/0.242, allocations: 4 kB / 0.7889 GB, free: 7.914 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.909e-05/0.242, allocations: 43.83 kB / 0.7889 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002144/0.2422, allocations: 165.5 kB / 0.7891 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.119e-05/0.2423, allocations: 12 kB / 0.7891 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001921/0.2442, allocations: 1.373 MB / 0.7904 GB, free: 6.32 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006383/0.2449, allocations: 0.6835 MB / 0.7911 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000364/0.2452, allocations: 445 kB / 0.7915 GB, free: 5.199 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002041/0.2473, allocations: 1.776 MB / 0.7933 GB, free: 3.414 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.2473, allocations: 0 / 0.7933 GB, free: 3.414 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.492e-06/0.2473, allocations: 0 / 0.7933 GB, free: 3.414 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.108e-06/0.2473, allocations: 0 / 0.7933 GB, free: 3.414 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.01047/0.2578, allocations: 1.694 MB / 0.7949 GB, free: 1.66 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.2579, allocations: 12.03 kB / 0.7949 GB, free: 1.648 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004166/0.2583, allocations: 142.9 kB / 0.7951 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005105/0.2588, allocations: 0.5328 MB / 0.7956 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.2588, allocations: 384 / 0.7956 GB, free: 0.9062 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.205e-05/0.2589, allocations: 12.36 kB / 0.7956 GB, free: 0.8945 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004121/0.2593, allocations: 383.5 kB / 0.796 GB, free: 0.5078 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.074e-06/0.2593, allocations: 4 kB / 0.796 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.446e-05/0.2593, allocations: 8 kB / 0.796 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.2593, allocations: 0 / 0.796 GB, free: 0.4961 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004154/0.2598, allocations: 439.7 kB / 0.7964 GB, free: 68 kB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007408/0.2605, allocations: 0.7918 MB / 0.7972 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005007/0.261, allocations: 0.5672 MB / 0.7977 GB, free: 14.62 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003044/0.2613, allocations: 337.7 kB / 0.798 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001043/0.2624, allocations: 1.032 MB / 0.799 GB, free: 13.04 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003869/0.2628, allocations: 412.8 kB / 0.7994 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.312e-06/0.2628, allocations: 0 / 0.7994 GB, free: 12.61 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001289/0.2641, allocations: 1.339 MB / 0.8007 GB, free: 11.27 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.2642, allocations: 89.22 kB / 0.8008 GB, free: 11.16 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001688/0.2659, allocations: 1.843 MB / 0.8026 GB, free: 9.27 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.523e-05/0.2659, allocations: 25.7 kB / 0.8027 GB, free: 9.238 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003392/0.2663, allocations: 477.3 kB / 0.8031 GB, free: 8.766 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.553e-05/0.2663, allocations: 23.7 kB / 0.8031 GB, free: 8.742 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000295/0.2666, allocations: 351.5 kB / 0.8035 GB, free: 8.395 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.294e-05/0.2667, allocations: 301.1 kB / 0.8038 GB, free: 8.098 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.268, allocations: 1.514 MB / 0.8052 GB, free: 6.582 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001351/0.2693, allocations: 1.646 MB / 0.8068 GB, free: 4.926 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007142/0.2765, allocations: 3.686 MB / 0.8104 GB, free: 1.148 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.2765, allocations: 7.938 kB / 0.8104 GB, free: 1.141 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004491/0.281, allocations: 4.331 MB / 0.8147 GB, free: 12.77 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 1.983e-05/0.2811, allocations: 4 kB / 0.8147 GB, free: 12.77 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.2811, allocations: 4 kB / 0.8147 GB, free: 12.76 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.2811, allocations: 3.938 kB / 0.8147 GB, free: 12.76 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001385/0.2813, allocations: 15.98 kB / 0.8147 GB, free: 12.74 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.2813, allocations: 0 / 0.8147 GB, free: 12.74 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005567/0.2818, allocations: 232.3 kB / 0.8149 GB, free: 12.51 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.582e-05/0.2819, allocations: 28.02 kB / 0.8149 GB, free: 12.48 MB / 0.6388 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 11 (gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004333/0.2823, allocations: 369.5 kB / 0.8153 GB, free: 12.11 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2824, allocations: 122 kB / 0.8154 GB, free: 11.99 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003353/0.2828, allocations: 145.1 kB / 0.8156 GB, free: 11.84 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.186e-06/0.2828, allocations: 0 / 0.8156 GB, free: 11.84 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.2828, allocations: 0 / 0.8156 GB, free: 11.84 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.2828, allocations: 8.016 kB / 0.8156 GB, free: 11.84 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006022/0.2834, allocations: 0.6755 MB / 0.8162 GB, free: 11.11 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.2834, allocations: 0 / 0.8162 GB, free: 11.11 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.592e-05/0.2835, allocations: 15.88 kB / 0.8162 GB, free: 11.09 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.2835, allocations: 3.984 kB / 0.8162 GB, free: 11.09 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.536e-05/0.2836, allocations: 8 kB / 0.8162 GB, free: 11.08 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.734e-06/0.2836, allocations: 0 / 0.8162 GB, free: 11.08 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.2836, allocations: 0 / 0.8162 GB, free: 11.08 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001/0.2846, allocations: 1.055 MB / 0.8173 GB, free: 9.996 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.2848, allocations: 195.1 kB / 0.8175 GB, free: 9.785 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.322e-05/0.2849, allocations: 4 kB / 0.8175 GB, free: 9.781 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.285, allocations: 0 / 0.8175 GB, free: 9.781 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.287e-05/0.2851, allocations: 11.98 kB / 0.8175 GB, free: 9.77 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.483e-05/0.2852, allocations: 15.92 kB / 0.8175 GB, free: 9.754 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.00122/0.2864, allocations: 1.108 MB / 0.8186 GB, free: 8.621 MB / 0.6388 GB Notification: Performance of sort global known variables: time 1.5e-07/0.2864, allocations: 0 / 0.8186 GB, free: 8.621 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.001156/0.2876, allocations: 427.8 kB / 0.819 GB, free: 8.203 MB / 0.6388 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,k,t1,t2,gFun1,gFun2) * Number of discrete states: 2 (k,t2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001199/0.2888, allocations: 494.8 kB / 0.8195 GB, free: 7.707 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.002476/0.2913, allocations: 2.64 MB / 0.822 GB, free: 5.059 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2913, allocations: 0 / 0.822 GB, free: 5.059 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.0003414/0.2916, allocations: 335.8 kB / 0.8224 GB, free: 4.73 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004419/0.2921, allocations: 66.41 kB / 0.8224 GB, free: 4.66 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002891/0.295, allocations: 2.603 MB / 0.825 GB, free: 2.02 MB / 0.6388 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006795/0.2957, allocations: 1.149 MB / 0.8261 GB, free: 0.8438 MB / 0.6388 GB Notification: Performance of simCode: alias equations: time 0.0001853/0.2959, allocations: 40.48 kB / 0.8261 GB, free: 0.8047 MB / 0.6388 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.758e-05/0.296, allocations: 23.42 kB / 0.8261 GB, free: 0.7812 MB / 0.6388 GB Notification: Performance of SimCode: time 7.01e-07/0.296, allocations: 4 kB / 0.8261 GB, free: 0.7773 MB / 0.6388 GB Notification: Performance of Templates: time 0.01801/0.314, allocations: 10.11 MB / 0.836 GB, free: 6.707 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)