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.001109/0.001109, 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.001116/0.001115, allocations: 190.5 kB / 16.64 MB, free: 6.594 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.453/1.453, allocations: 205.1 MB / 222.5 MB, free: 4.566 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.774/1.774, 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.002092/0.002092, allocations: 74.66 kB / 0.6718 GB, free: 26.23 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.2362, allocations: 114.6 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_1borehole_5meters): time 0.003242/0.2394, allocations: 1.404 MB / 0.7851 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.006471/0.246, allocations: 3.067 MB / 0.7881 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.932e-05/0.2461, allocations: 0 / 0.7881 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002364/0.2464, allocations: 11.94 kB / 0.7881 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002772/0.2467, allocations: 39.77 kB / 0.7881 GB, free: 8.656 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.003745/0.2504, allocations: 0.9859 MB / 0.7891 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002073/0.2507, allocations: 83.73 kB / 0.7891 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 5.53e-05/0.2507, allocations: 8 kB / 0.7892 GB, free: 7.578 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.621e-05/0.2508, allocations: 39.84 kB / 0.7892 GB, free: 7.539 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.2511, allocations: 143.6 kB / 0.7893 GB, free: 7.398 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.834e-05/0.2512, allocations: 16 kB / 0.7893 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003137/0.2543, allocations: 1.385 MB / 0.7907 GB, free: 5.996 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002823/0.2547, allocations: 263.8 kB / 0.7909 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000334/0.255, allocations: 274.3 kB / 0.7912 GB, free: 5.469 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002956/0.258, allocations: 1.477 MB / 0.7926 GB, free: 3.984 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.258, allocations: 4 kB / 0.7927 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.974e-06/0.258, allocations: 0 / 0.7927 GB, free: 3.98 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.003e-05/0.258, allocations: 0 / 0.7927 GB, free: 3.98 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.01281/0.2709, allocations: 1.21 MB / 0.7938 GB, free: 2.719 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.2709, allocations: 8.031 kB / 0.7938 GB, free: 2.711 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.369e-05/0.271, allocations: 38.73 kB / 0.7939 GB, free: 2.664 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003612/0.2713, allocations: 83.69 kB / 0.794 GB, free: 2.582 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003716/0.2717, allocations: 360.9 kB / 0.7943 GB, free: 2.18 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.2717, allocations: 4.375 kB / 0.7943 GB, free: 2.176 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.608e-05/0.2718, allocations: 8.375 kB / 0.7943 GB, free: 2.168 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004079/0.2722, allocations: 391.2 kB / 0.7947 GB, free: 1.773 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.2722, allocations: 4 kB / 0.7947 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.2722, allocations: 0 / 0.7947 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.2722, allocations: 0 / 0.7947 GB, free: 1.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004206/0.2727, allocations: 439.7 kB / 0.7951 GB, free: 1.34 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005406/0.2732, allocations: 0.6325 MB / 0.7957 GB, free: 0.6562 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004982/0.2737, allocations: 0.5672 MB / 0.7963 GB, free: 72 kB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003182/0.2741, allocations: 337.7 kB / 0.7966 GB, free: 15.73 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001166/0.2752, allocations: 1.032 MB / 0.7976 GB, free: 14.48 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004072/0.2757, allocations: 408.8 kB / 0.798 GB, free: 14.06 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.864e-06/0.2757, allocations: 7.875 kB / 0.798 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001297/0.277, allocations: 1.289 MB / 0.7993 GB, free: 12.76 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.277, allocations: 85.11 kB / 0.7993 GB, free: 12.66 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001196/0.2782, allocations: 1.194 MB / 0.8005 GB, free: 11.45 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.003e-05/0.2783, allocations: 41.81 kB / 0.8006 GB, free: 11.4 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/0.2785, allocations: 261.4 kB / 0.8008 GB, free: 11.14 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.37e-05/0.2785, allocations: 19.66 kB / 0.8008 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003103/0.2789, allocations: 351.5 kB / 0.8012 GB, free: 10.77 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.279, allocations: 310 kB / 0.8015 GB, free: 10.46 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.2801, allocations: 1.361 MB / 0.8028 GB, free: 9.098 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.2814, allocations: 1.497 MB / 0.8042 GB, free: 7.59 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006971/0.2884, allocations: 3.541 MB / 0.8077 GB, free: 3.957 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.99e-06/0.2884, allocations: 0 / 0.8077 GB, free: 3.957 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.00425/0.2927, allocations: 3.961 MB / 0.8116 GB, free: 15.96 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.228e-05/0.2927, allocations: 11.97 kB / 0.8116 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/0.2928, allocations: 4 kB / 0.8116 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.775e-05/0.2928, allocations: 0 / 0.8116 GB, free: 15.95 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001329/0.2929, allocations: 19.98 kB / 0.8116 GB, free: 15.93 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/0.2929, allocations: 3.984 kB / 0.8116 GB, free: 15.92 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004682/0.2934, allocations: 228.3 kB / 0.8118 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.992e-05/0.2935, allocations: 19.98 kB / 0.8118 GB, free: 15.68 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.0002916/0.2938, allocations: 245.6 kB / 0.8121 GB, free: 15.43 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.735e-05/0.2938, allocations: 66.72 kB / 0.8121 GB, free: 15.36 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000276/0.2941, allocations: 78.83 kB / 0.8122 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.2941, allocations: 0 / 0.8122 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.2941, allocations: 0 / 0.8122 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.2942, allocations: 0 / 0.8122 GB, free: 15.27 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004235/0.2946, allocations: 0.489 MB / 0.8127 GB, free: 14.74 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2946, allocations: 3.938 kB / 0.8127 GB, free: 14.73 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.743e-05/0.2947, allocations: 12.02 kB / 0.8127 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.375e-06/0.2947, allocations: 0 / 0.8127 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.578e-05/0.2947, allocations: 4 kB / 0.8127 GB, free: 14.72 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.066e-06/0.2947, allocations: 3.938 kB / 0.8127 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.2947, allocations: 0 / 0.8127 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009092/0.2956, allocations: 1.001 MB / 0.8137 GB, free: 13.69 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001034/0.2957, allocations: 155.8 kB / 0.8138 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.618e-05/0.2958, allocations: 4 kB / 0.8139 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001288/0.2959, allocations: 3.984 kB / 0.8139 GB, free: 13.51 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.421e-05/0.296, allocations: 8 kB / 0.8139 GB, free: 13.5 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.396e-05/0.296, allocations: 19.97 kB / 0.8139 GB, free: 13.48 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007258/0.2968, allocations: 0.6609 MB / 0.8145 GB, free: 12.82 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.81e-07/0.2968, allocations: 3.938 kB / 0.8145 GB, free: 12.81 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0009747/0.2978, allocations: 403.8 kB / 0.8149 GB, free: 12.42 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.002317/0.3001, allocations: 1.92 MB / 0.8168 GB, free: 10.46 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002235/0.3023, allocations: 2.492 MB / 0.8192 GB, free: 7.961 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3024, allocations: 0 / 0.8192 GB, free: 7.961 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003175/0.3027, allocations: 347.8 kB / 0.8196 GB, free: 7.621 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000302/0.303, allocations: 32.48 kB / 0.8196 GB, free: 7.59 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01455/0.3176, allocations: 15.02 MB / 0.8343 GB, free: 8.398 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005073/0.3181, allocations: 0.964 MB / 0.8352 GB, free: 7.406 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.0002011/0.3183, allocations: 36.55 kB / 0.8352 GB, free: 7.371 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002748/0.3186, allocations: 267.3 kB / 0.8355 GB, free: 7.109 MB / 0.6544 GB Notification: Performance of SimCode: time 9.22e-07/0.3186, allocations: 0 / 0.8355 GB, free: 7.109 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04516/0.3638, allocations: 19.45 MB / 0.8545 GB, free: 3.859 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.88/10.24, allocations: 14.91 kB / 0.8545 GB, free: 3.852 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)