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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001514/0.001514, allocations: 108 kB / 15.61 MB, free: 152 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.002202/0.002202, allocations: 196.4 kB / 16.53 MB, free: 6.664 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.432/1.432, allocations: 205.1 MB / 222.4 MB, free: 4.594 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.745/1.745, allocations: 292.3 MB / 0.5489 GB, free: 12.86 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.002656/0.002656, allocations: 69.89 kB / 0.6716 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2208/0.2235, allocations: 114.6 MB / 0.7835 GB, free: 13.4 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003632/0.2272, allocations: 1.739 MB / 0.7852 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00626/0.2335, allocations: 4.258 MB / 0.7894 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001122/0.2336, allocations: 0 / 0.7894 GB, free: 7.367 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001148/0.2348, allocations: 374.4 kB / 0.7897 GB, free: 7 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.2349, allocations: 51.67 kB / 0.7898 GB, free: 6.949 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.002657/0.2376, allocations: 0.9888 MB / 0.7907 GB, free: 5.957 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002704/0.2379, allocations: 151.4 kB / 0.7909 GB, free: 5.809 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 6.132e-05/0.238, allocations: 9.562 kB / 0.7909 GB, free: 5.797 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.856e-05/0.238, allocations: 51.78 kB / 0.7909 GB, free: 5.746 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002333/0.2383, allocations: 159.5 kB / 0.7911 GB, free: 5.59 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.038e-05/0.2383, allocations: 19.94 kB / 0.7911 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00187/0.2402, allocations: 1.377 MB / 0.7925 GB, free: 4.191 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001931/0.2404, allocations: 275.8 kB / 0.7927 GB, free: 3.922 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002312/0.2406, allocations: 306.1 kB / 0.793 GB, free: 3.621 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001726/0.2424, allocations: 1.535 MB / 0.7945 GB, free: 2.078 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.859e-06/0.2424, allocations: 0 / 0.7945 GB, free: 2.078 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2424, allocations: 0 / 0.7945 GB, free: 2.078 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.001e-05/0.2424, allocations: 3.938 kB / 0.7945 GB, free: 2.074 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.009973/0.2524, allocations: 1.281 MB / 0.7958 GB, free: 0.7422 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.072e-05/0.2525, allocations: 12.03 kB / 0.7958 GB, free: 0.7305 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.542e-05/0.2525, allocations: 34.73 kB / 0.7958 GB, free: 0.6875 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003587/0.2529, allocations: 91.59 kB / 0.7959 GB, free: 0.5977 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004444/0.2533, allocations: 410 kB / 0.7963 GB, free: 152 kB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2533, allocations: 8.312 kB / 0.7963 GB, free: 144 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.2534, allocations: 4.375 kB / 0.7963 GB, free: 140 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004539/0.2538, allocations: 395.3 kB / 0.7967 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.2539, allocations: 0 / 0.7967 GB, free: 15.74 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.2539, allocations: 7.984 kB / 0.7967 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.2539, allocations: 4 kB / 0.7967 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004248/0.2543, allocations: 427.8 kB / 0.7971 GB, free: 15.31 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005576/0.2549, allocations: 0.6574 MB / 0.7977 GB, free: 14.6 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000491/0.2554, allocations: 0.5672 MB / 0.7983 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002775/0.2557, allocations: 337.7 kB / 0.7986 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000972/0.2567, allocations: 1.025 MB / 0.7996 GB, free: 12.43 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003791/0.2571, allocations: 408.8 kB / 0.8 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.483e-06/0.2571, allocations: 0 / 0.8 GB, free: 12.02 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001225/0.2583, allocations: 1.304 MB / 0.8013 GB, free: 10.7 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.563e-05/0.2584, allocations: 85.09 kB / 0.8014 GB, free: 10.6 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001124/0.2595, allocations: 1.273 MB / 0.8026 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.415e-05/0.2595, allocations: 33.7 kB / 0.8026 GB, free: 9.277 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001882/0.2597, allocations: 281.4 kB / 0.8029 GB, free: 8.996 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.53e-05/0.2598, allocations: 23.73 kB / 0.8029 GB, free: 8.973 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002867/0.2601, allocations: 347.5 kB / 0.8033 GB, free: 8.629 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.694e-05/0.2602, allocations: 326.1 kB / 0.8036 GB, free: 8.305 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001129/0.2613, allocations: 1.357 MB / 0.8049 GB, free: 6.945 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001184/0.2625, allocations: 1.496 MB / 0.8064 GB, free: 5.441 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006655/0.2692, allocations: 3.545 MB / 0.8098 GB, free: 1.805 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.2692, allocations: 0 / 0.8098 GB, free: 1.805 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003906/0.2731, allocations: 3.98 MB / 0.8137 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/0.2731, allocations: 8 kB / 0.8137 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.2732, allocations: 0 / 0.8137 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.003e-05/0.2732, allocations: 0 / 0.8137 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/0.2733, allocations: 15.98 kB / 0.8137 GB, free: 13.77 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.556e-06/0.2733, allocations: 4 kB / 0.8137 GB, free: 13.76 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004595/0.2738, allocations: 228.3 kB / 0.814 GB, free: 13.54 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.356e-05/0.2739, allocations: 23.98 kB / 0.814 GB, free: 13.51 MB / 0.6387 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.0002843/0.2742, allocations: 245.6 kB / 0.8142 GB, free: 13.26 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.121e-05/0.2742, allocations: 82.52 kB / 0.8143 GB, free: 13.18 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002949/0.2745, allocations: 87.66 kB / 0.8144 GB, free: 13.09 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.2745, allocations: 4.031 kB / 0.8144 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.2745, allocations: 0 / 0.8144 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.2746, allocations: 0 / 0.8144 GB, free: 13.08 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000412/0.275, allocations: 0.5138 MB / 0.8149 GB, free: 12.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.275, allocations: 3.938 kB / 0.8149 GB, free: 12.52 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.947e-05/0.2751, allocations: 7.984 kB / 0.8149 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.508e-06/0.2751, allocations: 0 / 0.8149 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.062e-05/0.2751, allocations: 7.938 kB / 0.8149 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.2751, allocations: 0 / 0.8149 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2751, allocations: 0 / 0.8149 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008371/0.276, allocations: 1.014 MB / 0.8159 GB, free: 11.47 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001097/0.2761, allocations: 163.7 kB / 0.816 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.648e-05/0.2762, allocations: 3.984 kB / 0.816 GB, free: 11.29 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.2763, allocations: 4 kB / 0.816 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.915e-05/0.2763, allocations: 11.98 kB / 0.8161 GB, free: 11.27 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.755e-05/0.2764, allocations: 11.98 kB / 0.8161 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007101/0.2771, allocations: 0.7179 MB / 0.8168 GB, free: 10.54 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.31e-07/0.2771, allocations: 3.938 kB / 0.8168 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009604/0.2781, allocations: 395.9 kB / 0.8172 GB, free: 10.14 MB / 0.6387 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.002532/0.2806, allocations: 1.927 MB / 0.819 GB, free: 8.18 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002215/0.2829, allocations: 2.499 MB / 0.8215 GB, free: 5.672 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.2829, allocations: 0 / 0.8215 GB, free: 5.672 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003148/0.2832, allocations: 343.7 kB / 0.8218 GB, free: 5.336 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004455/0.2837, allocations: 55.38 kB / 0.8219 GB, free: 5.285 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01548/0.2991, allocations: 14.92 MB / 0.8364 GB, free: 6.203 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/0.2997, allocations: 0.9801 MB / 0.8374 GB, free: 5.195 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001933/0.2999, allocations: 45.36 kB / 0.8374 GB, free: 5.148 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002952/0.3002, allocations: 291.3 kB / 0.8377 GB, free: 4.863 MB / 0.6544 GB Notification: Performance of SimCode: time 9.21e-07/0.3002, allocations: 0 / 0.8377 GB, free: 4.863 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04315/0.3433, allocations: 19.69 MB / 0.8569 GB, free: 1.367 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.105/9.448, allocations: 13.67 kB / 0.8569 GB, free: 1.367 MB / 0.67 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.csv --start-time 0 --stop-time 1.8e+12 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)