Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 108.8 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 184 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002602/0.002602, allocations: 283.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.013/1.013, allocations: 169.2 MB / 0.499 GB, free: 4.422 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002831/0.002831, allocations: 95.84 kB / 0.6822 GB, free: 6.852 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4526/0.4554, allocations: 86.97 MB / 0.7671 GB, free: 3.875 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003428/0.4588, allocations: 1.757 MB / 0.7688 GB, free: 2.113 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.008735/0.4676, allocations: 5.402 MB / 0.7741 GB, free: 12.69 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001504/0.4677, allocations: 8 kB / 0.7741 GB, free: 12.68 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.001295/0.469, allocations: 373.3 kB / 0.7745 GB, free: 12.32 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.4692, allocations: 59.61 kB / 0.7745 GB, free: 12.26 MB / 0.545 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.004356/0.4735, allocations: 1.499 MB / 0.776 GB, free: 10.76 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.0003649/0.4739, allocations: 159.4 kB / 0.7761 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.992e-05/0.4739, allocations: 5.562 kB / 0.7762 GB, free: 10.6 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.656e-05/0.474, allocations: 59.77 kB / 0.7762 GB, free: 10.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.4743, allocations: 171.4 kB / 0.7764 GB, free: 10.37 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 4.101e-05/0.4743, allocations: 20 kB / 0.7764 GB, free: 10.35 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003974/0.4783, allocations: 2.204 MB / 0.7785 GB, free: 8.145 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002789/0.4785, allocations: 287.8 kB / 0.7788 GB, free: 7.863 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002978/0.4788, allocations: 298.2 kB / 0.7791 GB, free: 7.57 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.003636/0.4825, allocations: 2.195 MB / 0.7812 GB, free: 5.371 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.4825, allocations: 3.938 kB / 0.7813 GB, free: 5.367 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.794e-06/0.4825, allocations: 4 kB / 0.7813 GB, free: 5.363 MB / 0.545 GB Notification: Performance of Transformations before backend: time 8.927e-06/0.4825, allocations: 3.938 kB / 0.7813 GB, free: 5.359 MB / 0.545 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.01074/0.4932, allocations: 1.414 MB / 0.7826 GB, free: 3.891 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.4933, allocations: 12.03 kB / 0.7827 GB, free: 3.879 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004379/0.4937, allocations: 96.2 kB / 0.7827 GB, free: 3.785 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006357/0.4944, allocations: 414.3 kB / 0.7831 GB, free: 3.332 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.717e-05/0.4944, allocations: 12.36 kB / 0.7832 GB, free: 3.32 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.347e-05/0.4944, allocations: 4.375 kB / 0.7832 GB, free: 3.316 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004752/0.4949, allocations: 387.5 kB / 0.7835 GB, free: 2.926 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.4949, allocations: 7.938 kB / 0.7835 GB, free: 2.918 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.188e-05/0.4949, allocations: 0 / 0.7835 GB, free: 2.918 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.817e-06/0.4949, allocations: 7.938 kB / 0.7835 GB, free: 2.91 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004841/0.4954, allocations: 435.7 kB / 0.784 GB, free: 2.484 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007466/0.4961, allocations: 0.6738 MB / 0.7846 GB, free: 1.762 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005865/0.4967, allocations: 0.5593 MB / 0.7852 GB, free: 1.184 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003572/0.4971, allocations: 337.7 kB / 0.7855 GB, free: 0.8477 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001163/0.4983, allocations: 1.025 MB / 0.7865 GB, free: 15.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000462/0.4987, allocations: 412.8 kB / 0.7869 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.272e-06/0.4987, allocations: 3.938 kB / 0.7869 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001539/0.5003, allocations: 1.297 MB / 0.7881 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.5003, allocations: 85.05 kB / 0.7882 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.5017, allocations: 1.294 MB / 0.7895 GB, free: 12.46 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 5.037e-05/0.5018, allocations: 29.83 kB / 0.7895 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002544/0.502, allocations: 297.9 kB / 0.7898 GB, free: 12.13 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.5021, allocations: 23.88 kB / 0.7898 GB, free: 12.11 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003701/0.5025, allocations: 351.5 kB / 0.7902 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001478/0.5026, allocations: 318 kB / 0.7905 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001435/0.504, allocations: 1.369 MB / 0.7918 GB, free: 10.07 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001552/0.5056, allocations: 1.512 MB / 0.7933 GB, free: 8.555 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00763/0.5132, allocations: 3.56 MB / 0.7968 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.5132, allocations: 0 / 0.7968 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005061/0.5183, allocations: 4.019 MB / 0.8007 GB, free: 0.8477 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.5183, allocations: 4 kB / 0.8007 GB, free: 0.8438 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.142e-05/0.5183, allocations: 8.031 kB / 0.8007 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.778e-05/0.5184, allocations: 0 / 0.8007 GB, free: 0.8359 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001479/0.5185, allocations: 19.92 kB / 0.8007 GB, free: 0.8164 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.5185, allocations: 4 kB / 0.8007 GB, free: 0.8125 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.5191, allocations: 237.3 kB / 0.8009 GB, free: 0.5781 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.5191, allocations: 27.98 kB / 0.801 GB, free: 0.5508 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (cluSiz[1],labels[1],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 (17): * Single equations (assignments): 13 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * 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.0003635/0.5195, allocations: 241.7 kB / 0.8012 GB, free: 312 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.535e-05/0.5196, allocations: 87.22 kB / 0.8013 GB, free: 224 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003195/0.5199, allocations: 83.75 kB / 0.8014 GB, free: 128 kB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.5199, allocations: 3.938 kB / 0.8014 GB, free: 124 kB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.561e-06/0.5199, allocations: 0 / 0.8014 GB, free: 124 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/0.5199, allocations: 4 kB / 0.8014 GB, free: 120 kB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005683/0.5205, allocations: 0.514 MB / 0.8019 GB, free: 15.56 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.5205, allocations: 4 kB / 0.8019 GB, free: 15.55 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.752e-05/0.5206, allocations: 11.97 kB / 0.8019 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.736e-06/0.5206, allocations: 0 / 0.8019 GB, free: 15.54 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.5206, allocations: 11.98 kB / 0.8019 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.5206, allocations: 0 / 0.8019 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.552e-06/0.5206, allocations: 0 / 0.8019 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.5217, allocations: 1.01 MB / 0.8029 GB, free: 14.5 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001603/0.5218, allocations: 172.3 kB / 0.803 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.163e-05/0.5219, allocations: 4 kB / 0.8031 GB, free: 14.31 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001574/0.5221, allocations: 8 kB / 0.8031 GB, free: 14.3 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.5221, allocations: 7.984 kB / 0.8031 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.74e-05/0.5221, allocations: 7.984 kB / 0.8031 GB, free: 14.29 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0008963/0.523, allocations: 0.7261 MB / 0.8038 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1e-07/0.523, allocations: 0 / 0.8038 GB, free: 13.55 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.001709/0.5247, allocations: 0.5923 MB / 0.8044 GB, free: 12.96 MB / 0.5762 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.001987/0.5267, allocations: 0.6972 MB / 0.805 GB, free: 12.27 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00239/0.5291, allocations: 2.001 MB / 0.807 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.5291, allocations: 0 / 0.807 GB, free: 10.26 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0003848/0.5295, allocations: 339.8 kB / 0.8073 GB, free: 9.926 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004445/0.5299, allocations: 56.58 kB / 0.8074 GB, free: 9.867 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002566/0.5325, allocations: 1.895 MB / 0.8092 GB, free: 7.934 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006839/0.5332, allocations: 0.9879 MB / 0.8102 GB, free: 6.918 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.0001751/0.5334, allocations: 41.42 kB / 0.8102 GB, free: 6.879 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.5335, allocations: 27.42 kB / 0.8103 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of SimCode: time 9.61e-07/0.5335, allocations: 0 / 0.8103 GB, free: 6.852 MB / 0.5762 GB Notification: Performance of Templates: time 0.02619/0.5597, allocations: 14.23 MB / 0.8241 GB, free: 8.695 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)