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_1borehole_5meters.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_1borehole_5meters,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.001116/0.001116, 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.001257/0.001257, allocations: 192.7 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.402/1.402, allocations: 205.1 MB / 222.4 MB, free: 4.59 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.717/1.717, allocations: 292.3 MB / 0.5489 GB, free: 12.84 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.002314/0.002314, allocations: 76.06 kB / 0.6717 GB, free: 26.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2262, allocations: 114.5 MB / 0.7835 GB, free: 13.36 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002251/0.2285, allocations: 1.415 MB / 0.7849 GB, free: 11.93 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004169/0.2327, allocations: 3.067 MB / 0.7879 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.265e-05/0.2328, allocations: 0 / 0.7879 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001007/0.2329, allocations: 7.922 kB / 0.7879 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.000203/0.2331, allocations: 31.78 kB / 0.7879 GB, free: 8.812 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.002201/0.2353, allocations: 0.9938 MB / 0.7889 GB, free: 7.816 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001027/0.2354, allocations: 83.67 kB / 0.789 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.006e-05/0.2355, allocations: 4 kB / 0.789 GB, free: 7.73 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.851e-05/0.2355, allocations: 35.92 kB / 0.789 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002005/0.2357, allocations: 139.6 kB / 0.7892 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.573e-05/0.2358, allocations: 15.98 kB / 0.7892 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001752/0.2375, allocations: 1.381 MB / 0.7905 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001986/0.2378, allocations: 263.8 kB / 0.7908 GB, free: 5.902 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002141/0.238, allocations: 274.3 kB / 0.791 GB, free: 5.633 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001456/0.2394, allocations: 1.469 MB / 0.7925 GB, free: 4.156 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.2395, allocations: 4 kB / 0.7925 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.773e-06/0.2395, allocations: 0 / 0.7925 GB, free: 4.152 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.2395, allocations: 0 / 0.7925 GB, free: 4.152 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.01015/0.2496, allocations: 1.21 MB / 0.7936 GB, free: 2.891 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.2497, allocations: 12.03 kB / 0.7937 GB, free: 2.879 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.87e-05/0.2497, allocations: 38.73 kB / 0.7937 GB, free: 2.832 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003646/0.2501, allocations: 87.69 kB / 0.7938 GB, free: 2.746 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003635/0.2505, allocations: 356.9 kB / 0.7941 GB, free: 2.348 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.2505, allocations: 8.375 kB / 0.7941 GB, free: 2.34 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.2506, allocations: 4.375 kB / 0.7941 GB, free: 2.336 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000399/0.251, allocations: 395.3 kB / 0.7945 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.251, allocations: 0 / 0.7945 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.251, allocations: 4 kB / 0.7945 GB, free: 1.934 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.251, allocations: 4 kB / 0.7945 GB, free: 1.93 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003937/0.2514, allocations: 431.7 kB / 0.7949 GB, free: 1.508 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005223/0.2519, allocations: 0.6403 MB / 0.7956 GB, free: 0.8164 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00046/0.2524, allocations: 0.5594 MB / 0.7961 GB, free: 244 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.2527, allocations: 333.7 kB / 0.7964 GB, free: 15.91 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001016/0.2537, allocations: 1.036 MB / 0.7974 GB, free: 14.65 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003663/0.2541, allocations: 404.8 kB / 0.7978 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.2541, allocations: 0 / 0.7978 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001246/0.2554, allocations: 1.293 MB / 0.7991 GB, free: 12.93 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.263e-05/0.2554, allocations: 81.23 kB / 0.7992 GB, free: 12.84 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001045/0.2565, allocations: 1.206 MB / 0.8003 GB, free: 11.61 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.05e-05/0.2565, allocations: 29.7 kB / 0.8004 GB, free: 11.58 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001714/0.2567, allocations: 265.4 kB / 0.8006 GB, free: 11.31 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.2567, allocations: 23.66 kB / 0.8006 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002879/0.257, allocations: 347.5 kB / 0.801 GB, free: 10.95 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.646e-05/0.2571, allocations: 314 kB / 0.8013 GB, free: 10.63 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001126/0.2583, allocations: 1.357 MB / 0.8026 GB, free: 9.273 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.2595, allocations: 1.509 MB / 0.8041 GB, free: 7.754 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00691/0.2664, allocations: 3.534 MB / 0.8075 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.092e-06/0.2665, allocations: 0 / 0.8075 GB, free: 4.129 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.003947/0.2704, allocations: 3.973 MB / 0.8114 GB, free: 124 kB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 2.545e-05/0.2705, allocations: 10.64 kB / 0.8114 GB, free: 116 kB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.558e-05/0.2705, allocations: 0 / 0.8114 GB, free: 116 kB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.2705, allocations: 4 kB / 0.8114 GB, free: 112 kB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000131/0.2707, allocations: 16 kB / 0.8114 GB, free: 96 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.127e-05/0.2707, allocations: 3.984 kB / 0.8114 GB, free: 92 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000492/0.2712, allocations: 224.3 kB / 0.8116 GB, free: 15.87 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.034e-05/0.2712, allocations: 23.98 kB / 0.8117 GB, free: 15.84 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.0002914/0.2715, allocations: 241.6 kB / 0.8119 GB, free: 15.6 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.092e-05/0.2716, allocations: 70.72 kB / 0.812 GB, free: 15.53 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.2719, allocations: 70.89 kB / 0.812 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.412e-06/0.2719, allocations: 4 kB / 0.812 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2719, allocations: 0 / 0.812 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2719, allocations: 0 / 0.812 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004085/0.2723, allocations: 0.4929 MB / 0.8125 GB, free: 14.91 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.086e-06/0.2724, allocations: 3.938 kB / 0.8125 GB, free: 14.9 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.406e-05/0.2724, allocations: 15.92 kB / 0.8125 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2725, allocations: 0 / 0.8125 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.186e-05/0.2725, allocations: 0 / 0.8125 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.498e-06/0.2725, allocations: 4 kB / 0.8125 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2725, allocations: 0 / 0.8125 GB, free: 14.88 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008678/0.2734, allocations: 0.9974 MB / 0.8135 GB, free: 13.86 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001064/0.2735, allocations: 155.8 kB / 0.8137 GB, free: 13.69 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.737e-05/0.2735, allocations: 0 / 0.8137 GB, free: 13.69 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001553/0.2737, allocations: 7.984 kB / 0.8137 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.399e-05/0.2738, allocations: 4 kB / 0.8137 GB, free: 13.68 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.193e-05/0.2738, allocations: 23.91 kB / 0.8137 GB, free: 13.66 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.000713/0.2745, allocations: 0.6648 MB / 0.8143 GB, free: 12.98 MB / 0.6387 GB Notification: Performance of sort global known variables: time 2.31e-07/0.2745, allocations: 0 / 0.8143 GB, free: 12.98 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009791/0.2755, allocations: 399.8 kB / 0.8147 GB, free: 12.59 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.002197/0.2777, allocations: 1.926 MB / 0.8166 GB, free: 10.63 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002031/0.2798, allocations: 2.495 MB / 0.819 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.2798, allocations: 0 / 0.819 GB, free: 8.129 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0002906/0.2801, allocations: 343.8 kB / 0.8194 GB, free: 7.793 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.2804, allocations: 37.11 kB / 0.8194 GB, free: 7.758 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.2936, allocations: 14.93 MB / 0.834 GB, free: 8.652 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.2941, allocations: 0.964 MB / 0.8349 GB, free: 7.66 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0001678/0.2943, allocations: 40.55 kB / 0.835 GB, free: 7.621 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002696/0.2946, allocations: 259.3 kB / 0.8352 GB, free: 7.367 MB / 0.6544 GB Notification: Performance of SimCode: time 8.61e-07/0.2946, allocations: 0 / 0.8352 GB, free: 7.367 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03879/0.3334, allocations: 19.45 MB / 0.8542 GB, free: 4.105 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.849/9.182, allocations: 15.36 kB / 0.8542 GB, free: 4.094 MB / 0.67 GB (rm -f Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.csv --start-time 0 --stop-time 4.12e+08 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_8_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)