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_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001102/0.001102, allocations: 108.9 kB / 16.29 MB, free: 6.426 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.0011/0.0011, allocations: 188.7 kB / 17.22 MB, free: 5.957 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.385/1.385, allocations: 205.1 MB / 223.1 MB, free: 12.32 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.858/1.858, allocations: 292.3 MB / 0.5495 GB, free: 17.59 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.00138/0.00138, allocations: 63.91 kB / 0.6722 GB, free: 6.523 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2429, allocations: 114.6 MB / 0.7841 GB, free: 3.855 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.00421/0.2471, allocations: 1.403 MB / 0.7855 GB, free: 2.438 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.4129/0.66, allocations: 3.057 MB / 0.7885 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.619e-05/0.6601, allocations: 0 / 0.7885 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.6603, allocations: 15.53 kB / 0.7885 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0002256/0.6605, allocations: 28.33 kB / 0.7885 GB, free: 46 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.002305/0.6629, allocations: 0.9941 MB / 0.7895 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.000105/0.663, allocations: 79.56 kB / 0.7896 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.721e-05/0.663, allocations: 5.047 kB / 0.7896 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 5.916e-05/0.6631, allocations: 43.88 kB / 0.7896 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001995/0.6633, allocations: 145.6 kB / 0.7897 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.955e-05/0.6633, allocations: 12.75 kB / 0.7898 GB, free: 45.99 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001734/0.6651, allocations: 1.383 MB / 0.7911 GB, free: 45.97 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001914/0.6653, allocations: 268.5 kB / 0.7914 GB, free: 45.94 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001911/0.6655, allocations: 280.3 kB / 0.7916 GB, free: 45.8 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001548/0.667, allocations: 1.47 MB / 0.7931 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.6671, allocations: 3.75 kB / 0.7931 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.223e-06/0.6671, allocations: 3.406 kB / 0.7931 GB, free: 45.56 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 8.676e-06/0.6671, allocations: 0 / 0.7931 GB, free: 45.56 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.007521/0.6746, allocations: 1.207 MB / 0.7943 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.576e-05/0.6747, allocations: 7 kB / 0.7943 GB, free: 44.75 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003502/0.675, allocations: 87.25 kB / 0.7943 GB, free: 44.7 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003183/0.6753, allocations: 371.8 kB / 0.7947 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.6754, allocations: 384 / 0.7947 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.787e-05/0.6754, allocations: 8.469 kB / 0.7947 GB, free: 44.43 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.6758, allocations: 393.7 kB / 0.7951 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.6758, allocations: 3.938 kB / 0.7951 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.403e-05/0.6759, allocations: 3.141 kB / 0.7951 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.6759, allocations: 3.406 kB / 0.7951 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003978/0.6763, allocations: 438 kB / 0.7955 GB, free: 44.38 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004654/0.6767, allocations: 0.6289 MB / 0.7961 GB, free: 44.09 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004919/0.6773, allocations: 0.5624 MB / 0.7967 GB, free: 44.04 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003254/0.6776, allocations: 336.5 kB / 0.797 GB, free: 44.02 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008339/0.6784, allocations: 1.025 MB / 0.798 GB, free: 42.9 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004387/0.6789, allocations: 412.1 kB / 0.7984 GB, free: 42.83 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 1.503e-06/0.6789, allocations: 0 / 0.7984 GB, free: 42.83 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.001721/0.6806, allocations: 1.289 MB / 0.7997 GB, free: 42.75 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.622e-05/0.6807, allocations: 89.67 kB / 0.7997 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001468/0.6822, allocations: 1.201 MB / 0.8009 GB, free: 42.42 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.6822, allocations: 31.55 kB / 0.8009 GB, free: 42.39 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001775/0.6824, allocations: 257.9 kB / 0.8012 GB, free: 42.26 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.503e-05/0.6824, allocations: 23.52 kB / 0.8012 GB, free: 42.25 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004515/0.6829, allocations: 348.4 kB / 0.8015 GB, free: 42.23 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.289e-05/0.683, allocations: 312.3 kB / 0.8018 GB, free: 41.93 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.6845, allocations: 1.358 MB / 0.8032 GB, free: 41.92 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001831/0.6864, allocations: 1.495 MB / 0.8046 GB, free: 41.6 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007525/0.6939, allocations: 3.538 MB / 0.8081 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.234e-06/0.6939, allocations: 0 / 0.8081 GB, free: 39.77 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004623/0.6986, allocations: 3.967 MB / 0.812 GB, free: 37.82 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.597e-05/0.6986, allocations: 10.7 kB / 0.812 GB, free: 37.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.734e-05/0.6986, allocations: 5.344 kB / 0.812 GB, free: 37.81 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.519e-05/0.6987, allocations: 1.125 kB / 0.812 GB, free: 37.81 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001397/0.6988, allocations: 15.22 kB / 0.812 GB, free: 37.81 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.044e-05/0.6988, allocations: 3.812 kB / 0.812 GB, free: 37.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005789/0.6994, allocations: 234.5 kB / 0.8122 GB, free: 37.62 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.783e-05/0.6995, allocations: 24.58 kB / 0.8122 GB, free: 37.62 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.0003251/0.6998, allocations: 238.6 kB / 0.8125 GB, free: 37.5 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.464e-05/0.6999, allocations: 67.8 kB / 0.8125 GB, free: 37.45 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002478/0.7002, allocations: 78.16 kB / 0.8126 GB, free: 37.39 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.7002, allocations: 1.594 kB / 0.8126 GB, free: 37.39 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.7002, allocations: 0.7969 kB / 0.8126 GB, free: 37.39 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.7002, allocations: 5.031 kB / 0.8126 GB, free: 37.39 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005177/0.7008, allocations: 494.7 kB / 0.8131 GB, free: 37.12 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.7008, allocations: 1.219 kB / 0.8131 GB, free: 37.12 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.862e-05/0.7008, allocations: 8.203 kB / 0.8131 GB, free: 37.12 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.7009, allocations: 9.25 kB / 0.8131 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.565e-05/0.7009, allocations: 5.844 kB / 0.8131 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.716e-06/0.7009, allocations: 1.156 kB / 0.8131 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.7009, allocations: 0.7969 kB / 0.8131 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001215/0.7021, allocations: 0.9967 MB / 0.8141 GB, free: 36.96 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001121/0.7022, allocations: 158 kB / 0.8142 GB, free: 36.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.515e-05/0.7023, allocations: 5.984 kB / 0.8142 GB, free: 36.81 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001353/0.7024, allocations: 5.5 kB / 0.8142 GB, free: 36.81 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.611e-05/0.7025, allocations: 7.328 kB / 0.8142 GB, free: 36.81 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.864e-05/0.7025, allocations: 12.47 kB / 0.8143 GB, free: 36.81 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0008423/0.7034, allocations: 0.668 MB / 0.8149 GB, free: 36.59 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7034, allocations: 0.6562 kB / 0.8149 GB, free: 36.59 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001307/0.7047, allocations: 400.1 kB / 0.8153 GB, free: 36.52 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.001225/0.7059, allocations: 486.6 kB / 0.8158 GB, free: 36.35 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.00295/0.7089, allocations: 2.497 MB / 0.8182 GB, free: 35.36 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.7089, allocations: 0 / 0.8182 GB, free: 35.36 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004435/0.7094, allocations: 340.9 kB / 0.8185 GB, free: 35.36 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.7097, allocations: 40.19 kB / 0.8186 GB, free: 35.33 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.7121, allocations: 1.737 MB / 0.8203 GB, free: 34.78 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005138/0.7127, allocations: 0.9613 MB / 0.8212 GB, free: 34.08 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001276/0.7128, allocations: 34.59 kB / 0.8212 GB, free: 34.07 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000106/0.7129, allocations: 29.27 kB / 0.8213 GB, free: 34.06 MB / 0.6544 GB Notification: Performance of SimCode: time 7.51e-07/0.7129, allocations: 0 / 0.8213 GB, free: 34.06 MB / 0.6544 GB Notification: Performance of Templates: time 0.02229/0.7352, allocations: 9.541 MB / 0.8306 GB, free: 33.57 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)