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.001097/0.001097, 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.001269/0.001269, allocations: 198.6 kB / 16.64 MB, free: 6.445 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.347/1.347, allocations: 205.1 MB / 222.5 MB, free: 4.578 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.65/1.65, allocations: 292.3 MB / 0.549 GB, free: 12.78 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.001426/0.001426, allocations: 74.44 kB / 0.6718 GB, free: 26.2 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2501/0.2515, allocations: 114.6 MB / 0.7837 GB, free: 13.22 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003176/0.2547, allocations: 1.727 MB / 0.7854 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.005829/0.2606, allocations: 4.258 MB / 0.7895 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.2608, allocations: 4 kB / 0.7895 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001303/0.2621, allocations: 374.4 kB / 0.7899 GB, free: 6.832 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0001443/0.2622, allocations: 59.61 kB / 0.7899 GB, free: 6.773 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.002723/0.265, allocations: 0.9808 MB / 0.7909 GB, free: 5.789 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002569/0.2652, allocations: 142.5 kB / 0.791 GB, free: 5.652 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.19e-05/0.2653, allocations: 17.5 kB / 0.7911 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 7.661e-05/0.2654, allocations: 59.77 kB / 0.7911 GB, free: 5.574 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002254/0.2656, allocations: 167.5 kB / 0.7913 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 3.991e-05/0.2657, allocations: 12 kB / 0.7913 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002043/0.2677, allocations: 1.385 MB / 0.7926 GB, free: 4.012 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002164/0.2679, allocations: 275.8 kB / 0.7929 GB, free: 3.742 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002465/0.2682, allocations: 306.1 kB / 0.7932 GB, free: 3.441 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001823/0.27, allocations: 1.547 MB / 0.7947 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.118e-06/0.27, allocations: 0 / 0.7947 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.265e-06/0.2701, allocations: 0 / 0.7947 GB, free: 1.887 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 9.729e-06/0.2701, allocations: 0 / 0.7947 GB, free: 1.887 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.00946/0.2795, allocations: 1.288 MB / 0.796 GB, free: 0.5469 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.075e-05/0.2796, allocations: 12.03 kB / 0.796 GB, free: 0.5352 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.289e-05/0.2796, allocations: 34.75 kB / 0.796 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003737/0.28, allocations: 91.59 kB / 0.7961 GB, free: 412 kB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006078/0.2806, allocations: 398.1 kB / 0.7965 GB, free: 15.96 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.2807, allocations: 12.31 kB / 0.7965 GB, free: 15.95 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.993e-05/0.2807, allocations: 12.3 kB / 0.7965 GB, free: 15.94 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004245/0.2811, allocations: 391.3 kB / 0.7969 GB, free: 15.55 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.818e-06/0.2812, allocations: 3.984 kB / 0.7969 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.2812, allocations: 0 / 0.7969 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.2812, allocations: 0 / 0.7969 GB, free: 15.54 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004198/0.2816, allocations: 443.7 kB / 0.7973 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006049/0.2822, allocations: 0.6535 MB / 0.7979 GB, free: 14.41 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004978/0.2827, allocations: 0.5633 MB / 0.7985 GB, free: 13.82 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002928/0.283, allocations: 337.7 kB / 0.7988 GB, free: 13.49 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001027/0.2841, allocations: 1.025 MB / 0.7998 GB, free: 12.24 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003931/0.2845, allocations: 408.8 kB / 0.8002 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.303e-06/0.2845, allocations: 4 kB / 0.8002 GB, free: 11.82 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001305/0.2858, allocations: 1.308 MB / 0.8015 GB, free: 10.5 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.2859, allocations: 77.11 kB / 0.8015 GB, free: 10.41 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.287, allocations: 1.281 MB / 0.8028 GB, free: 9.117 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 3.758e-05/0.2871, allocations: 33.7 kB / 0.8028 GB, free: 9.078 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.2873, allocations: 277.5 kB / 0.8031 GB, free: 8.801 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.159e-05/0.2873, allocations: 23.75 kB / 0.8031 GB, free: 8.777 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000308/0.2877, allocations: 355.5 kB / 0.8035 GB, free: 8.426 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001222/0.2878, allocations: 314 kB / 0.8038 GB, free: 8.113 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.2889, allocations: 1.365 MB / 0.8051 GB, free: 6.746 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.2902, allocations: 1.489 MB / 0.8065 GB, free: 5.246 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006871/0.2971, allocations: 3.549 MB / 0.81 GB, free: 1.605 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.552e-06/0.2971, allocations: 0 / 0.81 GB, free: 1.605 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004905/0.302, allocations: 3.973 MB / 0.8139 GB, free: 13.6 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.894e-05/0.3021, allocations: 4.938 kB / 0.8139 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.275e-05/0.3021, allocations: 4 kB / 0.8139 GB, free: 13.59 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.315e-05/0.3022, allocations: 7.969 kB / 0.8139 GB, free: 13.58 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001372/0.3023, allocations: 19.98 kB / 0.8139 GB, free: 13.56 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3023, allocations: 0 / 0.8139 GB, free: 13.56 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006129/0.3029, allocations: 224.4 kB / 0.8141 GB, free: 13.34 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.486e-05/0.303, allocations: 27.97 kB / 0.8142 GB, free: 13.31 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.000316/0.3033, allocations: 245.6 kB / 0.8144 GB, free: 13.06 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.671e-05/0.3034, allocations: 78.53 kB / 0.8145 GB, free: 12.98 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000287/0.3037, allocations: 83.72 kB / 0.8146 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.141e-06/0.3037, allocations: 4 kB / 0.8146 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.3037, allocations: 0 / 0.8146 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3037, allocations: 0 / 0.8146 GB, free: 12.89 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004491/0.3042, allocations: 0.5099 MB / 0.8151 GB, free: 12.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3042, allocations: 7.938 kB / 0.8151 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.347e-05/0.3043, allocations: 4 kB / 0.8151 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3043, allocations: 4 kB / 0.8151 GB, free: 12.32 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.779e-05/0.3043, allocations: 12.02 kB / 0.8151 GB, free: 12.31 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3043, allocations: 3.938 kB / 0.8151 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.3043, allocations: 0 / 0.8151 GB, free: 12.3 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000945/0.3053, allocations: 1.006 MB / 0.8161 GB, free: 11.28 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001184/0.3054, allocations: 159.7 kB / 0.8162 GB, free: 11.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.869e-05/0.3055, allocations: 8 kB / 0.8162 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001395/0.3056, allocations: 7.984 kB / 0.8162 GB, free: 11.09 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.06e-05/0.3057, allocations: 4 kB / 0.8162 GB, free: 11.08 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.175e-05/0.3057, allocations: 11.97 kB / 0.8163 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007764/0.3065, allocations: 0.7179 MB / 0.817 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.963e-06/0.3065, allocations: 0 / 0.817 GB, free: 10.35 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001056/0.3076, allocations: 403.8 kB / 0.8173 GB, free: 9.953 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.31, allocations: 1.927 MB / 0.8192 GB, free: 7.988 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002458/0.3124, allocations: 2.502 MB / 0.8217 GB, free: 5.48 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/0.3125, allocations: 0 / 0.8217 GB, free: 5.48 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.000331/0.3128, allocations: 343.8 kB / 0.822 GB, free: 5.145 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000422/0.3132, allocations: 56.64 kB / 0.822 GB, free: 5.09 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01489/0.3281, allocations: 15 MB / 0.8367 GB, free: 5.934 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000536/0.3287, allocations: 0.9879 MB / 0.8377 GB, free: 4.918 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001679/0.3289, allocations: 42.05 kB / 0.8377 GB, free: 4.875 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003153/0.3292, allocations: 290.1 kB / 0.838 GB, free: 4.594 MB / 0.6544 GB Notification: Performance of SimCode: time 9.42e-07/0.3292, allocations: 0 / 0.838 GB, free: 4.594 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04118/0.3704, allocations: 19.7 MB / 0.8572 GB, free: 1.105 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.441/9.812, allocations: 12.81 kB / 0.8572 GB, free: 1.102 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --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)