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_SmallScaleValidation.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_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 109.9 kB / 16.36 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.001111/0.001111, allocations: 196.1 kB / 17.3 MB, free: 5.609 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.306/1.306, 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.798/1.798, allocations: 292.3 MB / 0.5496 GB, free: 17.6 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.001454/0.001454, allocations: 72.47 kB / 0.673 GB, free: 5.805 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2034/0.2049, allocations: 114.6 MB / 0.7848 GB, free: 3.141 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002863/0.2078, allocations: 1.734 MB / 0.7865 GB, free: 1.391 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.3614/0.5692, allocations: 4.251 MB / 0.7907 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.084e-05/0.5693, allocations: 2.656 kB / 0.7907 GB, free: 46.32 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.5704, allocations: 368.6 kB / 0.791 GB, free: 46.24 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001099/0.5705, allocations: 58.12 kB / 0.7911 GB, free: 46.23 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.002172/0.5727, allocations: 0.994 MB / 0.792 GB, free: 46.14 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001997/0.5729, allocations: 150.8 kB / 0.7922 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 4.163e-05/0.573, allocations: 9.938 kB / 0.7922 GB, free: 46.12 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 5.911e-05/0.573, allocations: 56.19 kB / 0.7923 GB, free: 46.11 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001887/0.5732, allocations: 161 kB / 0.7924 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 4.355e-05/0.5733, allocations: 14.56 kB / 0.7924 GB, free: 46.09 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001692/0.575, allocations: 1.38 MB / 0.7938 GB, free: 46.05 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001603/0.5752, allocations: 284.8 kB / 0.794 GB, free: 46 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0001891/0.5754, allocations: 302.6 kB / 0.7943 GB, free: 45.85 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001498/0.5769, allocations: 1.549 MB / 0.7958 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.5769, allocations: 0.8438 kB / 0.7958 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.583e-06/0.5769, allocations: 0 / 0.7958 GB, free: 45.52 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.5769, allocations: 1.031 kB / 0.7958 GB, free: 45.52 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.007982/0.5849, allocations: 1.274 MB / 0.7971 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.83e-05/0.5849, allocations: 8.203 kB / 0.7971 GB, free: 44.68 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003845/0.5853, allocations: 94.05 kB / 0.7972 GB, free: 44.62 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000429/0.5858, allocations: 411.1 kB / 0.7976 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.221e-05/0.5858, allocations: 6.891 kB / 0.7976 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.5858, allocations: 7 kB / 0.7976 GB, free: 44.31 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003589/0.5862, allocations: 382.1 kB / 0.798 GB, free: 44.26 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.5862, allocations: 14.19 kB / 0.798 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.5862, allocations: 0.6094 kB / 0.798 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.5863, allocations: 3.281 kB / 0.798 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004179/0.5867, allocations: 439.4 kB / 0.7984 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007421/0.5874, allocations: 0.6543 MB / 0.799 GB, free: 43.97 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006798/0.5881, allocations: 0.5659 MB / 0.7996 GB, free: 43.92 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003349/0.5885, allocations: 330.9 kB / 0.7999 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008569/0.5893, allocations: 1.03 MB / 0.8009 GB, free: 42.78 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005364/0.5899, allocations: 413 kB / 0.8013 GB, free: 42.71 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 1.854e-06/0.5899, allocations: 1.094 kB / 0.8013 GB, free: 42.71 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.001873/0.5918, allocations: 1.296 MB / 0.8026 GB, free: 42.62 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.5918, allocations: 84.67 kB / 0.8026 GB, free: 42.52 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001569/0.5934, allocations: 1.279 MB / 0.8039 GB, free: 42.29 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.916e-05/0.5935, allocations: 32.91 kB / 0.8039 GB, free: 42.26 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001864/0.5936, allocations: 278.6 kB / 0.8042 GB, free: 42.1 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.468e-05/0.5937, allocations: 24.91 kB / 0.8042 GB, free: 42.09 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003564/0.594, allocations: 350.7 kB / 0.8045 GB, free: 42.07 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 5.515e-05/0.5941, allocations: 317.8 kB / 0.8049 GB, free: 41.77 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.5954, allocations: 1.359 MB / 0.8062 GB, free: 41.48 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.5969, allocations: 1.498 MB / 0.8076 GB, free: 40.96 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007139/0.604, allocations: 3.54 MB / 0.8111 GB, free: 39.13 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.6041, allocations: 0 / 0.8111 GB, free: 39.13 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004132/0.6082, allocations: 3.974 MB / 0.815 GB, free: 37.17 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.6082, allocations: 10.12 kB / 0.815 GB, free: 37.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.6083, allocations: 2.875 kB / 0.815 GB, free: 37.16 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.891e-05/0.6083, allocations: 1.188 kB / 0.815 GB, free: 37.16 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001323/0.6084, allocations: 14.14 kB / 0.815 GB, free: 37.16 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.02e-05/0.6084, allocations: 6.594 kB / 0.815 GB, free: 37.16 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005233/0.609, allocations: 227.3 kB / 0.8152 GB, free: 36.98 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.609, allocations: 28.34 kB / 0.8153 GB, free: 36.98 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.0003255/0.6094, allocations: 249.6 kB / 0.8155 GB, free: 36.85 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.118e-05/0.6094, allocations: 80.41 kB / 0.8156 GB, free: 36.79 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002963/0.6098, allocations: 79.61 kB / 0.8156 GB, free: 36.73 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.6098, allocations: 5.25 kB / 0.8157 GB, free: 36.73 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.6098, allocations: 1.062 kB / 0.8157 GB, free: 36.73 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.6098, allocations: 1.734 kB / 0.8157 GB, free: 36.73 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005737/0.6104, allocations: 0.5108 MB / 0.8162 GB, free: 36.45 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.664e-06/0.6104, allocations: 5.219 kB / 0.8162 GB, free: 36.45 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.522e-05/0.6105, allocations: 8.219 kB / 0.8162 GB, free: 36.45 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.539e-06/0.6105, allocations: 5.062 kB / 0.8162 GB, free: 36.44 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.471e-05/0.6105, allocations: 2.562 kB / 0.8162 GB, free: 36.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.886e-06/0.6105, allocations: 1.578 kB / 0.8162 GB, free: 36.44 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.6105, allocations: 1.062 kB / 0.8162 GB, free: 36.44 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001136/0.6117, allocations: 1.008 MB / 0.8172 GB, free: 36.29 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001106/0.6118, allocations: 161.3 kB / 0.8173 GB, free: 36.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.965e-05/0.6119, allocations: 3.359 kB / 0.8173 GB, free: 36.14 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001596/0.612, allocations: 4.875 kB / 0.8173 GB, free: 36.14 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.6121, allocations: 10.19 kB / 0.8173 GB, free: 36.13 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.998e-05/0.6121, allocations: 12.05 kB / 0.8173 GB, free: 36.13 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0009756/0.6131, allocations: 0.7198 MB / 0.818 GB, free: 35.89 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.41e-07/0.6131, allocations: 0 / 0.818 GB, free: 35.89 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001295/0.6144, allocations: 407.5 kB / 0.8184 GB, free: 35.82 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.001129/0.6155, allocations: 484.3 kB / 0.8189 GB, free: 35.64 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002455/0.618, allocations: 2.492 MB / 0.8213 GB, free: 34.65 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.618, allocations: 0 / 0.8213 GB, free: 34.65 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003459/0.6184, allocations: 341.2 kB / 0.8217 GB, free: 34.64 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.6188, allocations: 61.69 kB / 0.8217 GB, free: 34.61 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002353/0.6212, allocations: 1.861 MB / 0.8235 GB, free: 34 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005206/0.6217, allocations: 0.9829 MB / 0.8245 GB, free: 33.3 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001523/0.6219, allocations: 40.75 kB / 0.8245 GB, free: 33.29 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001003/0.622, allocations: 26.03 kB / 0.8246 GB, free: 33.28 MB / 0.6544 GB Notification: Performance of SimCode: time 1.092e-06/0.622, allocations: 0 / 0.8246 GB, free: 33.28 MB / 0.6544 GB Notification: Performance of Templates: time 0.01964/0.6416, allocations: 10.16 MB / 0.8345 GB, free: 32.23 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)