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.001126/0.001126, allocations: 109.1 kB / 16.29 MB, free: 6.43 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.001179/0.00118, allocations: 187.9 kB / 17.22 MB, free: 5.934 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.377/1.377, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.806/1.806, allocations: 292.3 MB / 0.5495 GB, free: 17.61 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.001484/0.001484, allocations: 71.91 kB / 0.6722 GB, free: 6.438 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2397, allocations: 114.6 MB / 0.7841 GB, free: 3.77 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003609/0.2434, allocations: 1.723 MB / 0.7858 GB, free: 2.031 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.4099/0.6533, allocations: 4.251 MB / 0.7899 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001871/0.6536, allocations: 10.72 kB / 0.79 GB, free: 45.96 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.001446/0.6551, allocations: 364.5 kB / 0.7903 GB, free: 45.95 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.0001332/0.6552, allocations: 61.06 kB / 0.7904 GB, free: 45.95 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.002385/0.6576, allocations: 0.9871 MB / 0.7913 GB, free: 45.93 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0002143/0.6578, allocations: 145.4 kB / 0.7915 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 5.125e-05/0.6579, allocations: 17 kB / 0.7915 GB, free: 45.92 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 6.401e-05/0.658, allocations: 57.11 kB / 0.7915 GB, free: 45.91 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/0.6582, allocations: 153.9 kB / 0.7917 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 3.859e-05/0.6582, allocations: 19.69 kB / 0.7917 GB, free: 45.89 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001851/0.6601, allocations: 1.385 MB / 0.7931 GB, free: 45.88 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0001936/0.6603, allocations: 277.3 kB / 0.7933 GB, free: 45.84 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0002196/0.6605, allocations: 303.7 kB / 0.7936 GB, free: 45.69 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.001539/0.662, allocations: 1.554 MB / 0.7951 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.6621, allocations: 0 / 0.7951 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of FrontEnd: time 2.094e-06/0.6621, allocations: 0 / 0.7951 GB, free: 45.43 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 9.709e-06/0.6621, allocations: 0 / 0.7951 GB, free: 45.43 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.008073/0.6702, allocations: 1.276 MB / 0.7964 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.811e-05/0.6702, allocations: 9.719 kB / 0.7964 GB, free: 44.59 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000355/0.6706, allocations: 93.73 kB / 0.7965 GB, free: 44.53 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003975/0.671, allocations: 399.9 kB / 0.7969 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.287e-05/0.671, allocations: 2.781 kB / 0.7969 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.6711, allocations: 14.55 kB / 0.7969 GB, free: 44.25 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003899/0.6715, allocations: 388.8 kB / 0.7972 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.371e-05/0.6715, allocations: 3.938 kB / 0.7972 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.27e-05/0.6715, allocations: 3.875 kB / 0.7972 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.6715, allocations: 0.6562 kB / 0.7973 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004222/0.6719, allocations: 440 kB / 0.7977 GB, free: 44.2 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.6726, allocations: 0.6547 MB / 0.7983 GB, free: 43.91 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006406/0.6733, allocations: 0.5624 MB / 0.7989 GB, free: 43.87 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003933/0.6737, allocations: 340.7 kB / 0.7992 GB, free: 43.85 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009338/0.6746, allocations: 1.027 MB / 0.8002 GB, free: 42.73 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005385/0.6752, allocations: 413.6 kB / 0.8006 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.6752, allocations: 0 / 0.8006 GB, free: 42.66 MB / 0.6544 GB Notification: Performance of matching and sorting (n=8): time 0.00162/0.6768, allocations: 1.299 MB / 0.8018 GB, free: 42.57 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.6768, allocations: 85.36 kB / 0.8019 GB, free: 42.47 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001444/0.6783, allocations: 1.281 MB / 0.8032 GB, free: 42.23 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.6783, allocations: 36.52 kB / 0.8032 GB, free: 42.2 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001922/0.6785, allocations: 285 kB / 0.8035 GB, free: 42.06 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 3.36e-05/0.6786, allocations: 21.98 kB / 0.8035 GB, free: 42.05 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003776/0.679, allocations: 347.7 kB / 0.8038 GB, free: 42.04 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 6.7e-05/0.679, allocations: 320.2 kB / 0.8041 GB, free: 41.73 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001267/0.6803, allocations: 1.358 MB / 0.8055 GB, free: 41.61 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001367/0.6817, allocations: 1.494 MB / 0.8069 GB, free: 41.08 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007185/0.6889, allocations: 3.54 MB / 0.8104 GB, free: 39.25 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.001e-06/0.6889, allocations: 2.562 kB / 0.8104 GB, free: 39.25 MB / 0.6544 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004626/0.6935, allocations: 3.968 MB / 0.8143 GB, free: 37.3 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.335e-05/0.6936, allocations: 14.5 kB / 0.8143 GB, free: 37.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.6936, allocations: 1.25 kB / 0.8143 GB, free: 37.29 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.131e-05/0.6936, allocations: 1.828 kB / 0.8143 GB, free: 37.29 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001472/0.6938, allocations: 16.59 kB / 0.8143 GB, free: 37.29 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.6938, allocations: 2.203 kB / 0.8143 GB, free: 37.29 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006009/0.6944, allocations: 226.8 kB / 0.8145 GB, free: 37.11 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-05/0.6945, allocations: 24.16 kB / 0.8145 GB, free: 37.11 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.0003653/0.6949, allocations: 253.4 kB / 0.8148 GB, free: 36.98 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.21e-05/0.6949, allocations: 79.8 kB / 0.8149 GB, free: 36.91 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002916/0.6952, allocations: 78.66 kB / 0.8149 GB, free: 36.86 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.489e-06/0.6952, allocations: 1.125 kB / 0.8149 GB, free: 36.86 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.296e-06/0.6953, allocations: 1.734 kB / 0.8149 GB, free: 36.86 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.012e-06/0.6953, allocations: 3.656 kB / 0.8149 GB, free: 36.86 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.6958, allocations: 0.5112 MB / 0.8154 GB, free: 36.58 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.6958, allocations: 0 / 0.8154 GB, free: 36.58 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.711e-05/0.6959, allocations: 11.39 kB / 0.8154 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.6959, allocations: 5.969 kB / 0.8155 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.738e-05/0.6959, allocations: 7.484 kB / 0.8155 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.6959, allocations: 2.109 kB / 0.8155 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.6959, allocations: 0.9688 kB / 0.8155 GB, free: 36.57 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009816/0.6969, allocations: 1.007 MB / 0.8164 GB, free: 36.42 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 9.077e-05/0.697, allocations: 160 kB / 0.8166 GB, free: 36.27 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.6971, allocations: 8.812 kB / 0.8166 GB, free: 36.26 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.6972, allocations: 8.688 kB / 0.8166 GB, free: 36.26 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.377e-05/0.6973, allocations: 9.219 kB / 0.8166 GB, free: 36.26 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.765e-05/0.6973, allocations: 12.02 kB / 0.8166 GB, free: 36.26 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0007828/0.6981, allocations: 0.7186 MB / 0.8173 GB, free: 36.02 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6981, allocations: 5.312 kB / 0.8173 GB, free: 36.01 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.001136/0.6993, allocations: 403.3 kB / 0.8177 GB, free: 35.95 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.001166/0.7004, allocations: 474.5 kB / 0.8182 GB, free: 35.77 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.002336/0.7028, allocations: 2.497 MB / 0.8206 GB, free: 34.77 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7028, allocations: 0 / 0.8206 GB, free: 34.77 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0004062/0.7032, allocations: 346.3 kB / 0.8209 GB, free: 34.76 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004311/0.7037, allocations: 53.59 kB / 0.821 GB, free: 34.73 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002617/0.7063, allocations: 1.859 MB / 0.8228 GB, free: 34.12 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005638/0.7069, allocations: 0.9852 MB / 0.8238 GB, free: 33.42 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001766/0.707, allocations: 44.27 kB / 0.8238 GB, free: 33.41 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001084/0.7072, allocations: 29.81 kB / 0.8238 GB, free: 33.4 MB / 0.6544 GB Notification: Performance of SimCode: time 1.523e-06/0.7072, allocations: 0 / 0.8238 GB, free: 33.4 MB / 0.6544 GB Notification: Performance of Templates: time 0.02381/0.731, allocations: 10.17 MB / 0.8338 GB, free: 32.39 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 cvode -lv LOG_STATS > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)