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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes",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.001182/0.001182, allocations: 105.4 kB / 15.7 MB, free: 24 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.001263/0.001263, allocations: 196.8 kB / 16.64 MB, free: 6.449 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.353/1.353, allocations: 205.1 MB / 222.5 MB, free: 4.559 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.682/1.682, allocations: 292.3 MB / 0.549 GB, free: 12.75 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.001418/0.001418, allocations: 72.12 kB / 0.6718 GB, free: 26.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2186/0.22, allocations: 114.6 MB / 0.7837 GB, free: 13.24 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002642/0.2227, allocations: 1.404 MB / 0.7851 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004694/0.2275, allocations: 3.06 MB / 0.788 GB, free: 8.746 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.932e-05/0.2275, allocations: 11.94 kB / 0.7881 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001052/0.2277, allocations: 3.938 kB / 0.7881 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002485/0.228, allocations: 35.77 kB / 0.7881 GB, free: 8.695 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.00246/0.2304, allocations: 0.9928 MB / 0.7891 GB, free: 7.699 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.000142/0.2306, allocations: 83.73 kB / 0.7891 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.524e-05/0.2306, allocations: 4 kB / 0.7891 GB, free: 7.613 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 9.575e-05/0.2307, allocations: 47.83 kB / 0.7892 GB, free: 7.566 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002425/0.231, allocations: 157.6 kB / 0.7893 GB, free: 7.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.231, allocations: 12 kB / 0.7894 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002075/0.2331, allocations: 1.385 MB / 0.7907 GB, free: 6.012 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0007272/0.2339, allocations: 0.6875 MB / 0.7914 GB, free: 5.324 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003643/0.2342, allocations: 441 kB / 0.7918 GB, free: 4.891 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002156/0.2364, allocations: 1.795 MB / 0.7935 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.2364, allocations: 0 / 0.7935 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.512e-06/0.2364, allocations: 0 / 0.7935 GB, free: 3.086 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.121e-05/0.2364, allocations: 0 / 0.7935 GB, free: 3.086 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.01077/0.2472, allocations: 1.69 MB / 0.7952 GB, free: 1.336 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.982e-05/0.2473, allocations: 12.03 kB / 0.7952 GB, free: 1.324 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.946e-05/0.2473, allocations: 38.73 kB / 0.7952 GB, free: 1.277 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000418/0.2478, allocations: 138.9 kB / 0.7954 GB, free: 1.141 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006563/0.2484, allocations: 0.5211 MB / 0.7959 GB, free: 0.5508 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.71e-05/0.2484, allocations: 8.375 kB / 0.7959 GB, free: 0.543 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.498e-05/0.2485, allocations: 4.375 kB / 0.7959 GB, free: 0.5391 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004405/0.2489, allocations: 399.2 kB / 0.7963 GB, free: 140 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.249, allocations: 4 kB / 0.7963 GB, free: 136 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.249, allocations: 0 / 0.7963 GB, free: 136 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.249, allocations: 0 / 0.7963 GB, free: 136 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.2494, allocations: 439.7 kB / 0.7967 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007638/0.2502, allocations: 0.8074 MB / 0.7975 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005209/0.2507, allocations: 0.5632 MB / 0.798 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.2511, allocations: 333.7 kB / 0.7984 GB, free: 13.92 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00116/0.2522, allocations: 1.032 MB / 0.7994 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004296/0.2527, allocations: 416.8 kB / 0.7998 GB, free: 12.24 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.493e-06/0.2527, allocations: 3.938 kB / 0.7998 GB, free: 12.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001415/0.2541, allocations: 1.339 MB / 0.8011 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.083e-05/0.2542, allocations: 81.11 kB / 0.8012 GB, free: 10.79 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001976/0.2562, allocations: 1.846 MB / 0.803 GB, free: 8.895 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.364e-05/0.2562, allocations: 25.7 kB / 0.803 GB, free: 8.863 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003578/0.2566, allocations: 485.2 kB / 0.8034 GB, free: 8.383 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.2566, allocations: 19.8 kB / 0.8035 GB, free: 8.363 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/0.257, allocations: 351.7 kB / 0.8038 GB, free: 8.016 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.877e-05/0.2571, allocations: 301.1 kB / 0.8041 GB, free: 7.719 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/0.2584, allocations: 1.514 MB / 0.8056 GB, free: 6.203 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001402/0.2599, allocations: 1.65 MB / 0.8072 GB, free: 4.543 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007029/0.2669, allocations: 3.694 MB / 0.8108 GB, free: 0.7578 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.549e-06/0.2669, allocations: 0 / 0.8108 GB, free: 0.7578 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004727/0.2717, allocations: 4.323 MB / 0.815 GB, free: 12.4 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.2717, allocations: 7.938 kB / 0.815 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.492e-05/0.2717, allocations: 0 / 0.815 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2717, allocations: 4 kB / 0.815 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.2719, allocations: 20.02 kB / 0.815 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.2719, allocations: 0 / 0.815 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005531/0.2725, allocations: 224.3 kB / 0.8153 GB, free: 12.14 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.932e-05/0.2725, allocations: 27.98 kB / 0.8153 GB, free: 12.12 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.0004351/0.273, allocations: 365.5 kB / 0.8156 GB, free: 11.75 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001018/0.2731, allocations: 122 kB / 0.8157 GB, free: 11.63 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003267/0.2734, allocations: 149.1 kB / 0.8159 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.2734, allocations: 0 / 0.8159 GB, free: 11.48 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.2734, allocations: 4 kB / 0.8159 GB, free: 11.47 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.2734, allocations: 0 / 0.8159 GB, free: 11.47 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006135/0.2741, allocations: 0.6794 MB / 0.8166 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.689e-06/0.2741, allocations: 3.938 kB / 0.8166 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.853e-05/0.2741, allocations: 4 kB / 0.8166 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.2742, allocations: 0 / 0.8166 GB, free: 10.73 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.041e-05/0.2742, allocations: 7.984 kB / 0.8166 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.2742, allocations: 4.031 kB / 0.8166 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.2742, allocations: 0 / 0.8166 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001079/0.2753, allocations: 1.055 MB / 0.8176 GB, free: 9.633 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001729/0.2755, allocations: 211 kB / 0.8178 GB, free: 9.406 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.688e-05/0.2756, allocations: 0 / 0.8178 GB, free: 9.406 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001858/0.2758, allocations: 8 kB / 0.8178 GB, free: 9.398 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.045e-05/0.2758, allocations: 7.984 kB / 0.8178 GB, free: 9.391 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/0.2759, allocations: 11.98 kB / 0.8178 GB, free: 9.379 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.00116/0.277, allocations: 1.104 MB / 0.8189 GB, free: 8.25 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.6e-07/0.277, allocations: 0 / 0.8189 GB, free: 8.25 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001124/0.2782, allocations: 435.8 kB / 0.8193 GB, free: 7.824 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.002527/0.2807, allocations: 1.985 MB / 0.8213 GB, free: 5.805 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002656/0.2834, allocations: 2.652 MB / 0.8239 GB, free: 3.145 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.2834, allocations: 0 / 0.8239 GB, free: 3.145 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003902/0.2838, allocations: 347.7 kB / 0.8242 GB, free: 2.805 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004437/0.2842, allocations: 57.11 kB / 0.8242 GB, free: 2.746 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2748/0.559, allocations: 36.36 MB / 0.8597 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000963/0.56, allocations: 1.153 MB / 0.8609 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001811/0.5602, allocations: 32.56 kB / 0.8609 GB, free: 12.95 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004521/0.5607, allocations: 431.3 kB / 0.8613 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of SimCode: time 1.002e-06/0.5607, allocations: 0 / 0.8613 GB, free: 12.53 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08988/0.6506, allocations: 59.78 MB / 0.9197 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.72, allocations: 13.11 kB / 0.9197 GB, free: 0.8789 MB / 0.7325 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes_res.csv --start-time 0 --stop-time 3.7e+11 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes.pipe 2>&1)