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.001174/0.001174, allocations: 101.4 kB / 15.7 MB, free: 28 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.001314/0.001314, allocations: 191.8 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.356/1.356, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.631/1.631, allocations: 292.3 MB / 0.549 GB, free: 12.74 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.001387/0.001387, allocations: 70.95 kB / 0.6718 GB, free: 26.13 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.209/0.2104, 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_100boreholes): time 0.002843/0.2132, allocations: 1.419 MB / 0.7851 GB, free: 11.79 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.004332/0.2176, allocations: 3.06 MB / 0.788 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.089e-05/0.2177, allocations: 0 / 0.788 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.2179, allocations: 11.92 kB / 0.7881 GB, free: 8.707 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002293/0.2181, allocations: 31.78 kB / 0.7881 GB, free: 8.676 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.002529/0.2207, allocations: 1.002 MB / 0.7891 GB, free: 7.672 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001356/0.2208, allocations: 83.73 kB / 0.7891 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.404e-05/0.2209, allocations: 4 kB / 0.7892 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 6.612e-05/0.2209, allocations: 43.84 kB / 0.7892 GB, free: 7.543 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002181/0.2212, allocations: 153.6 kB / 0.7893 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 4.177e-05/0.2212, allocations: 16 kB / 0.7894 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001927/0.2232, allocations: 1.392 MB / 0.7907 GB, free: 5.98 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006503/0.2238, allocations: 0.6797 MB / 0.7914 GB, free: 5.301 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0003258/0.2242, allocations: 445 kB / 0.7918 GB, free: 4.863 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002202/0.2264, allocations: 1.795 MB / 0.7936 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.2264, allocations: 0 / 0.7936 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.783e-06/0.2264, allocations: 0 / 0.7936 GB, free: 3.059 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.305e-05/0.2264, allocations: 0 / 0.7936 GB, free: 3.059 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.009929/0.2364, allocations: 1.69 MB / 0.7952 GB, free: 1.309 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.394e-05/0.2364, allocations: 8.031 kB / 0.7952 GB, free: 1.301 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.824e-05/0.2365, allocations: 34.75 kB / 0.7952 GB, free: 1.258 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.2368, allocations: 146.9 kB / 0.7954 GB, free: 1.113 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000543/0.2374, allocations: 0.5289 MB / 0.7959 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.2374, allocations: 384 / 0.7959 GB, free: 0.5156 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.748e-05/0.2375, allocations: 12.36 kB / 0.7959 GB, free: 0.5039 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003959/0.2379, allocations: 391.3 kB / 0.7963 GB, free: 112 kB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.687e-06/0.2379, allocations: 0 / 0.7963 GB, free: 112 kB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.2379, allocations: 11.98 kB / 0.7963 GB, free: 100 kB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2379, allocations: 0 / 0.7963 GB, free: 100 kB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003901/0.2383, allocations: 431.7 kB / 0.7967 GB, free: 15.68 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006784/0.239, allocations: 0.8035 MB / 0.7975 GB, free: 14.81 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004665/0.2395, allocations: 0.5633 MB / 0.798 GB, free: 14.23 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002754/0.2398, allocations: 333.7 kB / 0.7984 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001024/0.2408, allocations: 1.032 MB / 0.7994 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003938/0.2412, allocations: 412.8 kB / 0.7998 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=8): time 1.363e-06/0.2412, allocations: 0 / 0.7998 GB, free: 12.22 MB / 0.6231 GB Notification: Performance of matching and sorting (n=8): time 0.001285/0.2425, allocations: 1.339 MB / 0.8011 GB, free: 10.87 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.052e-05/0.2426, allocations: 93.22 kB / 0.8012 GB, free: 10.76 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001752/0.2443, allocations: 1.835 MB / 0.803 GB, free: 8.879 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 5.364e-05/0.2444, allocations: 33.7 kB / 0.803 GB, free: 8.84 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003456/0.2448, allocations: 477.2 kB / 0.8034 GB, free: 8.367 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 4.178e-05/0.2448, allocations: 19.8 kB / 0.8035 GB, free: 8.348 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000299/0.2451, allocations: 355.5 kB / 0.8038 GB, free: 7.996 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 8.475e-05/0.2452, allocations: 301.1 kB / 0.8041 GB, free: 7.699 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001169/0.2464, allocations: 1.51 MB / 0.8056 GB, free: 6.188 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.2477, allocations: 1.657 MB / 0.8072 GB, free: 4.52 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006689/0.2544, allocations: 3.686 MB / 0.8108 GB, free: 0.7422 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.673e-06/0.2545, allocations: 0 / 0.8108 GB, free: 0.7422 MB / 0.6231 GB Notification: Performance of matching and sorting (n=317) (initialization): time 0.004136/0.2586, allocations: 4.331 MB / 0.815 GB, free: 12.38 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.45e-05/0.2587, allocations: 4 kB / 0.815 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.172e-05/0.2587, allocations: 4 kB / 0.815 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.938e-05/0.2587, allocations: 0 / 0.815 GB, free: 12.37 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001421/0.2589, allocations: 15.98 kB / 0.815 GB, free: 12.35 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.116e-06/0.2589, allocations: 0 / 0.815 GB, free: 12.35 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005895/0.2595, allocations: 228.3 kB / 0.8153 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.229e-05/0.2596, allocations: 23.98 kB / 0.8153 GB, free: 12.1 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.0004059/0.26, allocations: 369.5 kB / 0.8156 GB, free: 11.73 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.794e-05/0.2601, allocations: 130 kB / 0.8158 GB, free: 11.6 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003184/0.2604, allocations: 137.1 kB / 0.8159 GB, free: 11.46 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.2604, allocations: 7.984 kB / 0.8159 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.2604, allocations: 0 / 0.8159 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.877e-06/0.2604, allocations: 0 / 0.8159 GB, free: 11.45 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005619/0.261, allocations: 0.6756 MB / 0.8165 GB, free: 10.72 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.49e-06/0.261, allocations: 3.938 kB / 0.8166 GB, free: 10.71 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.2611, allocations: 19.92 kB / 0.8166 GB, free: 10.7 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.606e-06/0.2611, allocations: 0 / 0.8166 GB, free: 10.7 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/0.2611, allocations: 0 / 0.8166 GB, free: 10.7 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.468e-06/0.2611, allocations: 4 kB / 0.8166 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.2611, allocations: 0 / 0.8166 GB, free: 10.69 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008712/0.262, allocations: 1.067 MB / 0.8176 GB, free: 9.598 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001509/0.2622, allocations: 199.1 kB / 0.8178 GB, free: 9.383 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.486e-05/0.2623, allocations: 0 / 0.8178 GB, free: 9.383 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001873/0.2625, allocations: 7.984 kB / 0.8178 GB, free: 9.375 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.241e-05/0.2625, allocations: 4 kB / 0.8178 GB, free: 9.371 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.366e-05/0.2626, allocations: 19.91 kB / 0.8178 GB, free: 9.352 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001108/0.2637, allocations: 1.108 MB / 0.8189 GB, free: 8.219 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2637, allocations: 0 / 0.8189 GB, free: 8.219 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001108/0.2648, allocations: 431.8 kB / 0.8193 GB, free: 7.797 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.002207/0.267, allocations: 1.97 MB / 0.8213 GB, free: 5.789 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002192/0.2692, allocations: 2.655 MB / 0.8238 GB, free: 3.125 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 3.307e-06/0.2692, allocations: 3.938 kB / 0.8239 GB, free: 3.121 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0002986/0.2696, allocations: 347.7 kB / 0.8242 GB, free: 2.781 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000443/0.27, allocations: 53.33 kB / 0.8242 GB, free: 2.727 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.267/0.537, allocations: 36.36 MB / 0.8597 GB, free: 14.14 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006637/0.5377, allocations: 1.153 MB / 0.8609 GB, free: 12.96 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0001942/0.5379, allocations: 32.56 kB / 0.8609 GB, free: 12.93 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004135/0.5384, allocations: 431.3 kB / 0.8613 GB, free: 12.51 MB / 0.6856 GB Notification: Performance of SimCode: time 1.453e-06/0.5384, allocations: 0 / 0.8613 GB, free: 12.51 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0871/0.6255, allocations: 59.79 MB / 0.9197 GB, free: 0.8555 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.48/11.11, allocations: 12.38 kB / 0.9197 GB, free: 0.8477 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)