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.0011/0.001099, 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.001163/0.001163, allocations: 191.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.39/1.39, allocations: 205.1 MB / 222.4 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.76/1.76, allocations: 292.3 MB / 0.5489 GB, free: 12.85 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.001434/0.001434, allocations: 71.09 kB / 0.6717 GB, free: 26.12 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.2083, allocations: 114.5 MB / 0.7835 GB, free: 13.37 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_100boreholes): time 0.002834/0.2112, allocations: 1.407 MB / 0.7849 GB, free: 11.95 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004715/0.2159, allocations: 3.064 MB / 0.7879 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.487e-05/0.216, allocations: 0 / 0.7879 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001281/0.2161, allocations: 15.86 kB / 0.7879 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002512/0.2164, allocations: 31.83 kB / 0.7879 GB, free: 8.82 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.002696/0.2191, allocations: 0.9904 MB / 0.7889 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001553/0.2193, allocations: 83.69 kB / 0.789 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.615e-05/0.2194, allocations: 8 kB / 0.789 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 8.562e-05/0.2195, allocations: 39.89 kB / 0.789 GB, free: 7.695 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002587/0.2197, allocations: 165.5 kB / 0.7892 GB, free: 7.531 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 6.063e-05/0.2198, allocations: 12 kB / 0.7892 GB, free: 7.52 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002394/0.2222, allocations: 1.373 MB / 0.7905 GB, free: 6.145 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006372/0.2228, allocations: 0.6874 MB / 0.7912 GB, free: 5.457 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003666/0.2232, allocations: 441 kB / 0.7916 GB, free: 5.023 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002272/0.2255, allocations: 1.776 MB / 0.7934 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2255, allocations: 0 / 0.7934 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.553e-06/0.2255, allocations: 0 / 0.7934 GB, free: 3.238 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 2.147e-05/0.2256, allocations: 0 / 0.7934 GB, free: 3.238 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.01072/0.2363, allocations: 1.694 MB / 0.795 GB, free: 1.484 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.476e-05/0.2363, allocations: 12.03 kB / 0.795 GB, free: 1.473 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.2364, allocations: 42.73 kB / 0.7951 GB, free: 1.422 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004228/0.2368, allocations: 142.9 kB / 0.7952 GB, free: 1.281 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005056/0.2373, allocations: 0.5289 MB / 0.7957 GB, free: 0.6836 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.331e-05/0.2374, allocations: 8.375 kB / 0.7957 GB, free: 0.6758 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.875e-05/0.2374, allocations: 4.375 kB / 0.7957 GB, free: 0.6719 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004219/0.2378, allocations: 395.3 kB / 0.7961 GB, free: 280 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.2379, allocations: 0 / 0.7961 GB, free: 280 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.401e-05/0.2379, allocations: 0 / 0.7961 GB, free: 280 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.2379, allocations: 0 / 0.7961 GB, free: 280 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004453/0.2383, allocations: 435.7 kB / 0.7965 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008103/0.2392, allocations: 0.8074 MB / 0.7973 GB, free: 14.98 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004916/0.2397, allocations: 0.5555 MB / 0.7978 GB, free: 14.4 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000293/0.24, allocations: 337.7 kB / 0.7982 GB, free: 14.07 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001183/0.2412, allocations: 1.036 MB / 0.7992 GB, free: 12.81 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004331/0.2416, allocations: 408.8 kB / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 2.284e-06/0.2416, allocations: 0 / 0.7996 GB, free: 12.39 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001469/0.2431, allocations: 1.343 MB / 0.8009 GB, free: 11.04 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.273e-05/0.2432, allocations: 81.11 kB / 0.801 GB, free: 10.94 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001866/0.245, allocations: 1.846 MB / 0.8028 GB, free: 9.047 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 4.045e-05/0.2451, allocations: 29.69 kB / 0.8028 GB, free: 9.012 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003368/0.2454, allocations: 481.2 kB / 0.8033 GB, free: 8.535 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 3.437e-05/0.2455, allocations: 19.8 kB / 0.8033 GB, free: 8.516 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003063/0.2458, allocations: 347.7 kB / 0.8036 GB, free: 8.172 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.298e-05/0.2459, allocations: 309.1 kB / 0.8039 GB, free: 7.867 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001304/0.2472, allocations: 1.514 MB / 0.8054 GB, free: 6.352 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001441/0.2486, allocations: 1.653 MB / 0.807 GB, free: 4.688 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007042/0.2557, allocations: 3.69 MB / 0.8106 GB, free: 0.9062 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.19e-06/0.2557, allocations: 0 / 0.8106 GB, free: 0.9062 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004601/0.2603, allocations: 4.323 MB / 0.8148 GB, free: 12.55 MB / 0.6388 GB Notification: Performance of prepare postOptimizeDAE: time 2.483e-05/0.2604, allocations: 4.781 kB / 0.8148 GB, free: 12.54 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.2604, allocations: 0 / 0.8148 GB, free: 12.54 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/0.2604, allocations: 4 kB / 0.8148 GB, free: 12.54 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001448/0.2606, allocations: 15.98 kB / 0.8148 GB, free: 12.52 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.024e-06/0.2606, allocations: 4.031 kB / 0.8148 GB, free: 12.52 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005989/0.2612, allocations: 228.3 kB / 0.8151 GB, free: 12.29 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.213e-05/0.2613, allocations: 31.92 kB / 0.8151 GB, free: 12.26 MB / 0.6388 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.0004837/0.2618, allocations: 365.5 kB / 0.8154 GB, free: 11.89 MB / 0.6388 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.493e-05/0.2619, allocations: 122 kB / 0.8156 GB, free: 11.77 MB / 0.6388 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003468/0.2622, allocations: 149.1 kB / 0.8157 GB, free: 11.62 MB / 0.6388 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.2622, allocations: 0 / 0.8157 GB, free: 11.62 MB / 0.6388 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.2623, allocations: 7.938 kB / 0.8157 GB, free: 11.61 MB / 0.6388 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.2623, allocations: 0 / 0.8157 GB, free: 11.61 MB / 0.6388 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006264/0.2629, allocations: 0.6756 MB / 0.8164 GB, free: 10.88 MB / 0.6388 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.697e-06/0.2629, allocations: 3.938 kB / 0.8164 GB, free: 10.88 MB / 0.6388 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.505e-05/0.263, allocations: 11.98 kB / 0.8164 GB, free: 10.86 MB / 0.6388 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.595e-06/0.263, allocations: 0 / 0.8164 GB, free: 10.86 MB / 0.6388 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.36e-05/0.263, allocations: 4 kB / 0.8164 GB, free: 10.86 MB / 0.6388 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.263, allocations: 0 / 0.8164 GB, free: 10.86 MB / 0.6388 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.226e-06/0.263, allocations: 8.016 kB / 0.8164 GB, free: 10.85 MB / 0.6388 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009981/0.264, allocations: 1.051 MB / 0.8174 GB, free: 9.773 MB / 0.6388 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001699/0.2642, allocations: 195.1 kB / 0.8176 GB, free: 9.562 MB / 0.6388 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.422e-05/0.2643, allocations: 7.984 kB / 0.8176 GB, free: 9.555 MB / 0.6388 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.2645, allocations: 8 kB / 0.8176 GB, free: 9.547 MB / 0.6388 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.133e-05/0.2646, allocations: 11.92 kB / 0.8176 GB, free: 9.535 MB / 0.6388 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.072e-05/0.2646, allocations: 7.984 kB / 0.8176 GB, free: 9.527 MB / 0.6388 GB Notification: Performance of sorting global known variables: time 0.00114/0.2658, allocations: 1.108 MB / 0.8187 GB, free: 8.395 MB / 0.6388 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2658, allocations: 0 / 0.8187 GB, free: 8.395 MB / 0.6388 GB Notification: Performance of remove unused functions: time 0.001073/0.2669, allocations: 435.8 kB / 0.8191 GB, free: 7.969 MB / 0.6388 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.002268/0.2691, allocations: 1.986 MB / 0.8211 GB, free: 5.949 MB / 0.6388 GB Notification: Performance of simCode: created initialization part: time 0.002299/0.2714, allocations: 2.659 MB / 0.8237 GB, free: 3.281 MB / 0.6388 GB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.2715, allocations: 4 kB / 0.8237 GB, free: 3.277 MB / 0.6388 GB Notification: Performance of simCode: created simulation system equations: time 0.0003191/0.2718, allocations: 336.3 kB / 0.824 GB, free: 2.949 MB / 0.6388 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004111/0.2722, allocations: 46.53 kB / 0.824 GB, free: 2.898 MB / 0.6388 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2702/0.5424, allocations: 36.43 MB / 0.8596 GB, free: 14.23 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006622/0.5431, allocations: 1.157 MB / 0.8608 GB, free: 13.05 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0002221/0.5434, allocations: 32.56 kB / 0.8608 GB, free: 13.02 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004113/0.5438, allocations: 431.3 kB / 0.8612 GB, free: 12.6 MB / 0.6856 GB Notification: Performance of SimCode: time 7.62e-07/0.5438, allocations: 0 / 0.8612 GB, free: 12.6 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1193/0.6631, allocations: 59.78 MB / 0.9196 GB, free: 0.957 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.378/9.042, allocations: 13.2 kB / 0.9196 GB, free: 0.9492 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_100boreholes_fmu --startTime=0 --stopTime=3.7e+11 --timeout=50 --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)