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.001395/0.001395, allocations: 109.4 kB / 15.69 MB, free: 128 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.001197/0.001197, allocations: 187.8 kB / 16.62 MB, free: 6.613 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.436/1.436, 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.736/1.736, allocations: 292.3 MB / 0.549 GB, free: 12.71 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.001435/0.001435, allocations: 71.58 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2259/0.2274, allocations: 114.5 MB / 0.7837 GB, free: 13.21 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003093/0.2305, allocations: 1.745 MB / 0.7854 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.00599/0.2365, allocations: 4.253 MB / 0.7895 GB, free: 7.18 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.2368, allocations: 7.875 kB / 0.7895 GB, free: 7.172 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001189/0.238, allocations: 373.6 kB / 0.7899 GB, free: 6.809 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001325/0.2381, allocations: 55.66 kB / 0.7899 GB, free: 6.754 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.002561/0.2407, allocations: 0.9824 MB / 0.7909 GB, free: 5.766 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002547/0.241, allocations: 151.3 kB / 0.791 GB, free: 5.617 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.139e-05/0.241, allocations: 13.56 kB / 0.7911 GB, free: 5.602 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.917e-05/0.2411, allocations: 51.72 kB / 0.7911 GB, free: 5.551 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002216/0.2413, allocations: 159.5 kB / 0.7913 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.617e-05/0.2414, allocations: 20 kB / 0.7913 GB, free: 5.375 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002169/0.2435, allocations: 1.381 MB / 0.7926 GB, free: 3.992 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002263/0.2438, allocations: 275.8 kB / 0.7929 GB, free: 3.723 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002542/0.2441, allocations: 306.1 kB / 0.7932 GB, free: 3.422 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001877/0.2459, allocations: 1.547 MB / 0.7947 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.246, allocations: 0 / 0.7947 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.246, allocations: 0 / 0.7947 GB, free: 1.867 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.389e-05/0.246, allocations: 0 / 0.7947 GB, free: 1.867 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.01051/0.2565, allocations: 1.285 MB / 0.7959 GB, free: 0.5312 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.87e-05/0.2566, allocations: 8.031 kB / 0.7959 GB, free: 0.5234 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.335e-05/0.2566, allocations: 38.69 kB / 0.796 GB, free: 488 kB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003666/0.257, allocations: 91.59 kB / 0.7961 GB, free: 396 kB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000734/0.2577, allocations: 410.2 kB / 0.7965 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.2578, allocations: 384 / 0.7965 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.776e-05/0.2578, allocations: 8.375 kB / 0.7965 GB, free: 15.93 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004194/0.2582, allocations: 399.2 kB / 0.7969 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.2582, allocations: 0 / 0.7969 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.332e-05/0.2583, allocations: 4 kB / 0.7969 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.2583, allocations: 0 / 0.7969 GB, free: 15.52 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004179/0.2587, allocations: 435.7 kB / 0.7973 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005879/0.2593, allocations: 0.6651 MB / 0.7979 GB, free: 14.38 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005052/0.2598, allocations: 0.5633 MB / 0.7985 GB, free: 13.8 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003069/0.2601, allocations: 337.7 kB / 0.7988 GB, free: 13.46 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.2612, allocations: 1.028 MB / 0.7998 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004058/0.2616, allocations: 396.8 kB / 0.8002 GB, free: 11.81 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2616, allocations: 4 kB / 0.8002 GB, free: 11.8 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001396/0.263, allocations: 1.3 MB / 0.8015 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.142e-05/0.2631, allocations: 89.09 kB / 0.8015 GB, free: 10.39 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001224/0.2643, allocations: 1.285 MB / 0.8028 GB, free: 9.094 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.548e-05/0.2644, allocations: 25.7 kB / 0.8028 GB, free: 9.062 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.000202/0.2646, allocations: 289.3 kB / 0.8031 GB, free: 8.773 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.918e-05/0.2646, allocations: 19.75 kB / 0.8031 GB, free: 8.754 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004636/0.2651, allocations: 351.7 kB / 0.8034 GB, free: 8.406 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001183/0.2652, allocations: 318 kB / 0.8037 GB, free: 8.09 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001191/0.2664, allocations: 1.361 MB / 0.8051 GB, free: 6.727 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/0.2677, allocations: 1.493 MB / 0.8065 GB, free: 5.223 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006859/0.2746, allocations: 3.541 MB / 0.81 GB, free: 1.59 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.581e-06/0.2746, allocations: 0 / 0.81 GB, free: 1.59 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004281/0.2789, allocations: 3.976 MB / 0.8139 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.22e-05/0.279, allocations: 4 kB / 0.8139 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.279, allocations: 0 / 0.8139 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.279, allocations: 4 kB / 0.8139 GB, free: 13.57 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.2792, allocations: 23.95 kB / 0.8139 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.2792, allocations: 0 / 0.8139 GB, free: 13.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005135/0.2797, allocations: 224.4 kB / 0.8141 GB, free: 13.32 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.569e-05/0.2798, allocations: 28.28 kB / 0.8141 GB, free: 13.3 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.0004352/0.2802, allocations: 245.7 kB / 0.8144 GB, free: 13.05 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.518e-05/0.2803, allocations: 78.53 kB / 0.8145 GB, free: 12.97 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/0.2806, allocations: 91.59 kB / 0.8145 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.2806, allocations: 0 / 0.8145 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2806, allocations: 0 / 0.8145 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.2807, allocations: 0 / 0.8145 GB, free: 12.87 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004564/0.2811, allocations: 0.5138 MB / 0.815 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.948e-06/0.2811, allocations: 3.938 kB / 0.8151 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.851e-05/0.2812, allocations: 4 kB / 0.8151 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.899e-06/0.2812, allocations: 7.984 kB / 0.8151 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.2812, allocations: 0 / 0.8151 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.2812, allocations: 4.031 kB / 0.8151 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.2813, allocations: 4 kB / 0.8151 GB, free: 12.29 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008802/0.2821, allocations: 1.009 MB / 0.8161 GB, free: 11.26 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001255/0.2823, allocations: 159.7 kB / 0.8162 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.971e-05/0.2823, allocations: 0 / 0.8162 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.2825, allocations: 11.98 kB / 0.8162 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.532e-05/0.2825, allocations: 8 kB / 0.8162 GB, free: 11.06 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.2826, allocations: 15.97 kB / 0.8162 GB, free: 11.05 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007391/0.2833, allocations: 0.714 MB / 0.8169 GB, free: 10.33 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2833, allocations: 0 / 0.8169 GB, free: 10.33 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001166/0.2845, allocations: 407.9 kB / 0.8173 GB, free: 9.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.002386/0.2869, allocations: 1.942 MB / 0.8192 GB, free: 7.953 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002337/0.2893, allocations: 2.494 MB / 0.8217 GB, free: 5.453 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2893, allocations: 0 / 0.8217 GB, free: 5.453 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.2896, allocations: 335.8 kB / 0.822 GB, free: 5.125 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.29, allocations: 56.83 kB / 0.822 GB, free: 5.07 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01512/0.3051, allocations: 15 MB / 0.8367 GB, free: 5.91 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005733/0.3058, allocations: 0.9801 MB / 0.8376 GB, free: 4.902 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001785/0.306, allocations: 41.42 kB / 0.8377 GB, free: 4.859 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003643/0.3063, allocations: 291.3 kB / 0.838 GB, free: 4.574 MB / 0.6544 GB Notification: Performance of SimCode: time 1.693e-06/0.3063, allocations: 0 / 0.838 GB, free: 4.574 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04433/0.3507, allocations: 19.71 MB / 0.8572 GB, free: 1.082 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.795/10.15, allocations: 2.625 kB / 0.8572 GB, free: 1.082 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)