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.001215/0.001215, allocations: 115.2 kB / 16.38 MB, free: 6.012 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.001157/0.001157, allocations: 186.9 kB / 17.31 MB, free: 5.613 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.556/1.556, allocations: 205.1 MB / 223.2 MB, free: 12.25 MB / 190.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.891/1.891, allocations: 292.3 MB / 0.5496 GB, free: 17.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.001668/0.001668, allocations: 67.91 kB / 0.673 GB, free: 5.84 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2659/0.2676, allocations: 114.6 MB / 0.7848 GB, free: 3.176 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.003254/0.2709, allocations: 1.418 MB / 0.7862 GB, free: 1.746 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.5192/0.7902, allocations: 3.066 MB / 0.7892 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.206e-05/0.7903, allocations: 3.844 kB / 0.7892 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001335/0.7905, allocations: 4.125 kB / 0.7892 GB, free: 46.5 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002708/0.7908, allocations: 36.14 kB / 0.7892 GB, free: 46.5 MB / 0.6544 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.002949/0.7938, allocations: 0.9911 MB / 0.7902 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001542/0.7939, allocations: 86.62 kB / 0.7903 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.608e-05/0.794, allocations: 2.625 kB / 0.7903 GB, free: 46.47 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 6.581e-05/0.7941, allocations: 44.5 kB / 0.7903 GB, free: 46.46 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002187/0.7943, allocations: 161.6 kB / 0.7905 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.564e-05/0.7943, allocations: 13.12 kB / 0.7905 GB, free: 46.45 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001908/0.7962, allocations: 1.375 MB / 0.7919 GB, free: 46.44 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0006075/0.7969, allocations: 0.6908 MB / 0.7925 GB, free: 46.38 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0003121/0.7972, allocations: 438.9 kB / 0.7929 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001955/0.7991, allocations: 1.797 MB / 0.7947 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.7992, allocations: 1 kB / 0.7947 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7992, allocations: 0 / 0.7947 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.445e-05/0.7992, allocations: 0.7188 kB / 0.7947 GB, free: 45.8 MB / 0.6544 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.01076/0.81, allocations: 1.688 MB / 0.7963 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.81, allocations: 11.66 kB / 0.7964 GB, free: 44.71 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004416/0.8105, allocations: 143.1 kB / 0.7965 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000516/0.811, allocations: 0.5232 MB / 0.797 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.811, allocations: 2.406 kB / 0.797 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.861e-05/0.8111, allocations: 15.58 kB / 0.797 GB, free: 44.24 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004274/0.8115, allocations: 390.2 kB / 0.7974 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.527e-06/0.8115, allocations: 3.938 kB / 0.7974 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.8115, allocations: 3.062 kB / 0.7974 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.8116, allocations: 5.016 kB / 0.7974 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004545/0.812, allocations: 432.4 kB / 0.7978 GB, free: 44.19 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008332/0.8129, allocations: 0.8005 MB / 0.7986 GB, free: 43.88 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006438/0.8135, allocations: 0.5673 MB / 0.7992 GB, free: 43.83 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004242/0.8139, allocations: 333.2 kB / 0.7995 GB, free: 43.82 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000896/0.8149, allocations: 1.032 MB / 0.8005 GB, free: 42.69 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005676/0.8154, allocations: 402.6 kB / 0.8009 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 1.743e-06/0.8154, allocations: 0 / 0.8009 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.002157/0.8176, allocations: 1.35 MB / 0.8022 GB, free: 42.5 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.728e-05/0.8177, allocations: 79.91 kB / 0.8023 GB, free: 42.41 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.8202, allocations: 1.843 MB / 0.8041 GB, free: 42.11 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 8.26e-05/0.8203, allocations: 35.45 kB / 0.8041 GB, free: 42.07 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003747/0.8207, allocations: 477 kB / 0.8045 GB, free: 41.94 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 4.072e-05/0.8208, allocations: 28.39 kB / 0.8046 GB, free: 41.92 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000515/0.8213, allocations: 347.8 kB / 0.8049 GB, free: 41.91 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.953e-05/0.8214, allocations: 301.9 kB / 0.8052 GB, free: 41.61 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001826/0.8232, allocations: 1.515 MB / 0.8067 GB, free: 41.27 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001754/0.825, allocations: 1.641 MB / 0.8083 GB, free: 40.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007442/0.8324, allocations: 3.695 MB / 0.8119 GB, free: 38.92 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.8325, allocations: 1.406 kB / 0.8119 GB, free: 38.92 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.006334/0.8388, allocations: 4.316 MB / 0.8161 GB, free: 36.94 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 3.995e-05/0.8389, allocations: 8.75 kB / 0.8161 GB, free: 36.94 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/0.839, allocations: 2.438 kB / 0.8161 GB, free: 36.94 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.544e-05/0.839, allocations: 7 kB / 0.8161 GB, free: 36.93 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001942/0.8392, allocations: 21.36 kB / 0.8161 GB, free: 36.93 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/0.8392, allocations: 3.844 kB / 0.8161 GB, free: 36.93 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009875/0.8402, allocations: 228.4 kB / 0.8164 GB, free: 36.75 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-05/0.8403, allocations: 23.95 kB / 0.8164 GB, free: 36.75 MB / 0.6544 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.0006444/0.841, allocations: 363.9 kB / 0.8167 GB, free: 36.63 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001223/0.8411, allocations: 123.9 kB / 0.8169 GB, free: 36.54 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003732/0.8415, allocations: 148.3 kB / 0.817 GB, free: 36.47 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.8415, allocations: 1.219 kB / 0.817 GB, free: 36.47 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.8415, allocations: 1.25 kB / 0.817 GB, free: 36.47 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.8415, allocations: 0.6562 kB / 0.817 GB, free: 36.47 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008696/0.8424, allocations: 0.6826 MB / 0.8177 GB, free: 36.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.478e-06/0.8424, allocations: 1.125 kB / 0.8177 GB, free: 36.12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.086e-05/0.8425, allocations: 7.297 kB / 0.8177 GB, free: 36.12 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.3e-06/0.8425, allocations: 5 kB / 0.8177 GB, free: 36.12 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.595e-05/0.8425, allocations: 7.797 kB / 0.8177 GB, free: 36.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.63e-06/0.8425, allocations: 5.922 kB / 0.8177 GB, free: 36.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.8425, allocations: 0.9688 kB / 0.8177 GB, free: 36.11 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.8439, allocations: 1.052 MB / 0.8187 GB, free: 35.93 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/0.844, allocations: 201 kB / 0.8189 GB, free: 35.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.279e-05/0.8441, allocations: 9.75 kB / 0.8189 GB, free: 35.75 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001963/0.8443, allocations: 5.469 kB / 0.8189 GB, free: 35.75 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.8444, allocations: 5.219 kB / 0.8189 GB, free: 35.75 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.889e-05/0.8445, allocations: 18.58 kB / 0.8189 GB, free: 35.74 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.001562/0.846, allocations: 1.106 MB / 0.82 GB, free: 35.41 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.5e-07/0.846, allocations: 2.125 kB / 0.82 GB, free: 35.41 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001675/0.8477, allocations: 429.8 kB / 0.8204 GB, free: 35.34 MB / 0.6544 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.001389/0.8491, allocations: 485.8 kB / 0.8209 GB, free: 35.18 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.003324/0.8524, allocations: 2.649 MB / 0.8235 GB, free: 34.19 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.8525, allocations: 0 / 0.8235 GB, free: 34.19 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.000511/0.853, allocations: 340.9 kB / 0.8238 GB, free: 34.18 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007523/0.8538, allocations: 50.14 kB / 0.8239 GB, free: 34.14 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003929/0.8577, allocations: 2.624 MB / 0.8264 GB, free: 33.29 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007967/0.8585, allocations: 1.158 MB / 0.8276 GB, free: 32.59 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000185/0.8587, allocations: 25.94 kB / 0.8276 GB, free: 32.58 MB / 0.6544 GB Notification: Performance of SimCode: time 1.423e-06/0.8587, allocations: 0 / 0.8276 GB, free: 32.58 MB / 0.6544 GB Notification: Performance of Templates: time 0.03351/0.8923, allocations: 15.03 MB / 0.8423 GB, free: 28.47 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)