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.001972/0.001972, allocations: 108 kB / 15.6 MB, free: 132 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.002452/0.002452, allocations: 192.9 kB / 16.53 MB, free: 6.391 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.437/1.437, allocations: 205.1 MB / 222.4 MB, free: 4.574 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.708/1.708, allocations: 292.3 MB / 0.5489 GB, free: 12.79 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.00149/0.00149, allocations: 69.09 kB / 0.6716 GB, free: 26.26 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2069/0.2084, allocations: 114.6 MB / 0.7835 GB, free: 13.33 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002265/0.2107, allocations: 1.412 MB / 0.7849 GB, free: 11.9 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004072/0.2148, allocations: 3.06 MB / 0.7879 GB, free: 8.824 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.628e-05/0.2149, allocations: 3.938 kB / 0.7879 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 8.958e-05/0.215, allocations: 7.922 kB / 0.7879 GB, free: 8.812 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001878/0.2152, allocations: 31.83 kB / 0.7879 GB, free: 8.781 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.002151/0.2173, allocations: 0.9942 MB / 0.7889 GB, free: 7.781 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.2175, allocations: 75.75 kB / 0.789 GB, free: 7.707 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 3.928e-05/0.2175, allocations: 4 kB / 0.789 GB, free: 7.703 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.073e-05/0.2176, allocations: 43.84 kB / 0.789 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000206/0.2178, allocations: 157.6 kB / 0.7892 GB, free: 7.504 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 5.22e-05/0.2178, allocations: 12 kB / 0.7892 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001871/0.2197, allocations: 1.385 MB / 0.7905 GB, free: 6.105 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006411/0.2204, allocations: 0.6835 MB / 0.7912 GB, free: 5.422 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003509/0.2207, allocations: 445 kB / 0.7916 GB, free: 4.984 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001865/0.2226, allocations: 1.78 MB / 0.7934 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.546e-06/0.2226, allocations: 0 / 0.7934 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.132e-06/0.2226, allocations: 0 / 0.7934 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.536e-06/0.2226, allocations: 0 / 0.7934 GB, free: 3.195 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.01065/0.2333, allocations: 1.694 MB / 0.795 GB, free: 1.441 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.2334, allocations: 8.031 kB / 0.795 GB, free: 1.434 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.967e-05/0.2334, allocations: 34.75 kB / 0.7951 GB, free: 1.391 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003927/0.2338, allocations: 146.9 kB / 0.7952 GB, free: 1.246 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.2343, allocations: 0.5211 MB / 0.7957 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.2343, allocations: 8.375 kB / 0.7957 GB, free: 0.6484 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.2344, allocations: 4.375 kB / 0.7957 GB, free: 0.6445 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003923/0.2348, allocations: 407.2 kB / 0.7961 GB, free: 240 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.2348, allocations: 0 / 0.7961 GB, free: 240 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.272e-05/0.2348, allocations: 0 / 0.7961 GB, free: 240 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.2348, allocations: 8 kB / 0.7961 GB, free: 232 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004193/0.2352, allocations: 427.8 kB / 0.7965 GB, free: 15.81 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007195/0.236, allocations: 0.8074 MB / 0.7973 GB, free: 14.94 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004894/0.2365, allocations: 0.5634 MB / 0.7979 GB, free: 14.36 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002867/0.2368, allocations: 337.6 kB / 0.7982 GB, free: 14.02 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/0.2378, allocations: 1.024 MB / 0.7992 GB, free: 12.77 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003965/0.2382, allocations: 412.8 kB / 0.7996 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.2382, allocations: 0 / 0.7996 GB, free: 12.35 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001256/0.2395, allocations: 1.347 MB / 0.8009 GB, free: 11 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.949e-05/0.2395, allocations: 81.11 kB / 0.801 GB, free: 10.9 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001631/0.2412, allocations: 1.843 MB / 0.8028 GB, free: 9.008 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.544e-05/0.2412, allocations: 41.62 kB / 0.8028 GB, free: 8.961 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003334/0.2416, allocations: 473.2 kB / 0.8033 GB, free: 8.492 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.726e-05/0.2416, allocations: 15.81 kB / 0.8033 GB, free: 8.477 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003102/0.2419, allocations: 351.5 kB / 0.8036 GB, free: 8.129 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.647e-05/0.242, allocations: 301.1 kB / 0.8039 GB, free: 7.832 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.2432, allocations: 1.514 MB / 0.8054 GB, free: 6.316 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001286/0.2445, allocations: 1.653 MB / 0.807 GB, free: 4.652 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006879/0.2514, allocations: 3.69 MB / 0.8106 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.252e-06/0.2514, allocations: 0 / 0.8106 GB, free: 0.8711 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004468/0.2559, allocations: 4.323 MB / 0.8148 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/0.256, allocations: 6.5 kB / 0.8148 GB, free: 12.51 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.318e-05/0.256, allocations: 4 kB / 0.8148 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.361e-05/0.256, allocations: 0 / 0.8148 GB, free: 12.5 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001492/0.2562, allocations: 19.92 kB / 0.8148 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.237e-06/0.2562, allocations: 0 / 0.8148 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006749/0.2569, allocations: 240.2 kB / 0.8151 GB, free: 12.25 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.888e-05/0.257, allocations: 19.98 kB / 0.8151 GB, free: 12.23 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.0004723/0.2574, allocations: 365.6 kB / 0.8154 GB, free: 11.86 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.354e-05/0.2575, allocations: 126 kB / 0.8156 GB, free: 11.73 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.2579, allocations: 145 kB / 0.8157 GB, free: 11.59 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.731e-06/0.2579, allocations: 4 kB / 0.8157 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.2579, allocations: 0 / 0.8157 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.2579, allocations: 0 / 0.8157 GB, free: 11.58 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000574/0.2585, allocations: 0.6756 MB / 0.8164 GB, free: 10.85 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.2585, allocations: 3.969 kB / 0.8164 GB, free: 10.84 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.408e-05/0.2586, allocations: 11.98 kB / 0.8164 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.2586, allocations: 4 kB / 0.8164 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.191e-05/0.2586, allocations: 0 / 0.8164 GB, free: 10.83 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.2587, allocations: 4 kB / 0.8164 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.298e-06/0.2587, allocations: 7.984 kB / 0.8164 GB, free: 10.82 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008991/0.2596, allocations: 1.055 MB / 0.8174 GB, free: 9.734 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.2597, allocations: 199.1 kB / 0.8176 GB, free: 9.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.341e-05/0.2598, allocations: 3.984 kB / 0.8176 GB, free: 9.516 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001855/0.26, allocations: 8 kB / 0.8176 GB, free: 9.508 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.2601, allocations: 7.984 kB / 0.8176 GB, free: 9.5 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.815e-05/0.2601, allocations: 11.98 kB / 0.8176 GB, free: 9.488 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001079/0.2612, allocations: 1.101 MB / 0.8187 GB, free: 8.363 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.3e-07/0.2612, allocations: 4 kB / 0.8187 GB, free: 8.359 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001053/0.2623, allocations: 439.8 kB / 0.8191 GB, free: 7.93 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.002265/0.2645, allocations: 1.987 MB / 0.8211 GB, free: 5.91 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002163/0.2667, allocations: 2.652 MB / 0.8237 GB, free: 3.25 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.2667, allocations: 0 / 0.8237 GB, free: 3.25 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003045/0.2671, allocations: 343.8 kB / 0.824 GB, free: 2.914 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004425/0.2675, allocations: 51.16 kB / 0.824 GB, free: 2.859 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2686/0.5361, allocations: 36.43 MB / 0.8596 GB, free: 14.2 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006267/0.5368, allocations: 1.157 MB / 0.8608 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0002051/0.537, allocations: 32.55 kB / 0.8608 GB, free: 12.98 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003861/0.5374, allocations: 435.3 kB / 0.8612 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of SimCode: time 6.21e-07/0.5374, allocations: 0 / 0.8612 GB, free: 12.56 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08117/0.6186, allocations: 59.77 MB / 0.9196 GB, free: 0.918 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.941/9.56, allocations: 9.453 kB / 0.9196 GB, free: 0.9102 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)