Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation",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.001113/0.001113, allocations: 107.4 kB / 15.34 MB, free: 0.5195 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.001095/0.001096, allocations: 192.4 kB / 16.25 MB, free: 6.629 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.348/1.348, allocations: 222.9 MB / 239.9 MB, free: 4.547 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.415/2.415, allocations: 437 MB / 0.7101 GB, free: 5.312 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001473/0.001473, allocations: 67.89 kB / 0.8689 GB, free: 4.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6089/0.6104, allocations: 151.6 MB / 1.017 GB, free: 2.699 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002977/0.6134, allocations: 1.815 MB / 1.019 GB, free: 0.8711 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.007139/0.6206, allocations: 5.401 MB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001559/0.6208, allocations: 4 kB / 1.024 GB, free: 11.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001278/0.6221, allocations: 354.6 kB / 1.024 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001696/0.6223, allocations: 55.73 kB / 1.024 GB, free: 11.04 MB / 0.7794 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/Buildings 10.1.1-maint.10.0.x/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.003558/0.6259, allocations: 1.349 MB / 1.026 GB, free: 9.695 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.6261, allocations: 159.3 kB / 1.026 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.56e-05/0.6262, allocations: 17.53 kB / 1.026 GB, free: 9.52 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 9.429e-05/0.6263, allocations: 51.8 kB / 1.026 GB, free: 9.469 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002281/0.6265, allocations: 180.8 kB / 1.026 GB, free: 9.293 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 5.279e-05/0.6266, allocations: 16 kB / 1.026 GB, free: 9.277 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002887/0.6295, allocations: 2.196 MB / 1.028 GB, free: 7.078 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002018/0.6297, allocations: 279.8 kB / 1.029 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002585/0.63, allocations: 310.1 kB / 1.029 GB, free: 6.5 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003033/0.633, allocations: 2.186 MB / 1.031 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.633, allocations: 0 / 1.031 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.734e-06/0.633, allocations: 0 / 1.031 GB, free: 4.305 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 2.052e-05/0.6331, allocations: 0 / 1.031 GB, free: 4.305 MB / 0.7794 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.008904/0.642, allocations: 1.363 MB / 1.032 GB, free: 2.891 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.799e-05/0.642, allocations: 15.97 kB / 1.032 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.088e-05/0.6421, allocations: 30.75 kB / 1.032 GB, free: 2.836 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004034/0.6425, allocations: 99.44 kB / 1.032 GB, free: 2.738 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004497/0.643, allocations: 414.1 kB / 1.033 GB, free: 2.285 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.643, allocations: 4.375 kB / 1.033 GB, free: 2.281 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.727e-05/0.643, allocations: 12.38 kB / 1.033 GB, free: 2.27 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003841/0.6434, allocations: 395.2 kB / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.6434, allocations: 0 / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.6435, allocations: 0 / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.6435, allocations: 0 / 1.033 GB, free: 1.871 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003739/0.6438, allocations: 435.7 kB / 1.034 GB, free: 1.445 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005672/0.6444, allocations: 0.6655 MB / 1.034 GB, free: 0.7305 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004403/0.6449, allocations: 0.5673 MB / 1.035 GB, free: 148 kB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002779/0.6452, allocations: 333.6 kB / 1.035 GB, free: 15.81 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009463/0.6461, allocations: 1.028 MB / 1.036 GB, free: 14.56 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003616/0.6465, allocations: 408.7 kB / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.703e-06/0.6465, allocations: 0 / 1.037 GB, free: 14.14 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001187/0.6477, allocations: 1.297 MB / 1.038 GB, free: 12.84 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.6478, allocations: 85.09 kB / 1.038 GB, free: 12.74 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001116/0.6489, allocations: 1.29 MB / 1.039 GB, free: 11.44 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.288e-05/0.6489, allocations: 29.7 kB / 1.039 GB, free: 11.4 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001905/0.6491, allocations: 285.4 kB / 1.039 GB, free: 11.12 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.976e-05/0.6492, allocations: 27.83 kB / 1.039 GB, free: 11.09 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003106/0.6495, allocations: 351.6 kB / 1.04 GB, free: 10.74 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 9.523e-05/0.6496, allocations: 322 kB / 1.04 GB, free: 10.42 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001091/0.6507, allocations: 1.369 MB / 1.041 GB, free: 9.051 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00116/0.6519, allocations: 1.497 MB / 1.043 GB, free: 7.543 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006578/0.6584, allocations: 3.568 MB / 1.046 GB, free: 3.883 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.434e-06/0.6585, allocations: 4 kB / 1.046 GB, free: 3.879 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004215/0.6627, allocations: 4.002 MB / 1.05 GB, free: 15.84 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.6627, allocations: 14.17 kB / 1.05 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.888e-05/0.6628, allocations: 0 / 1.05 GB, free: 15.83 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.62e-05/0.6628, allocations: 7.938 kB / 1.05 GB, free: 15.82 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001353/0.6629, allocations: 20.03 kB / 1.05 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.836e-06/0.6629, allocations: 3.984 kB / 1.05 GB, free: 15.8 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004596/0.6634, allocations: 224.3 kB / 1.051 GB, free: 15.57 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.012e-05/0.6635, allocations: 23.98 kB / 1.051 GB, free: 15.55 MB / 0.8106 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.0003053/0.6638, allocations: 246.2 kB / 1.051 GB, free: 15.3 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.757e-05/0.6639, allocations: 78.56 kB / 1.051 GB, free: 15.22 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002882/0.6642, allocations: 87.72 kB / 1.051 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.44e-06/0.6642, allocations: 8 kB / 1.051 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.11e-06/0.6642, allocations: 0 / 1.051 GB, free: 15.12 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.6642, allocations: 3.984 kB / 1.051 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003958/0.6646, allocations: 0.5179 MB / 1.052 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.6646, allocations: 3.938 kB / 1.052 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.56e-05/0.6647, allocations: 4 kB / 1.052 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.6647, allocations: 0 / 1.052 GB, free: 14.54 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.416e-05/0.6647, allocations: 12.02 kB / 1.052 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.6647, allocations: 0 / 1.052 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.6647, allocations: 0 / 1.052 GB, free: 14.53 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000827/0.6655, allocations: 1.006 MB / 1.053 GB, free: 13.5 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001192/0.6657, allocations: 163.7 kB / 1.053 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.317e-05/0.6657, allocations: 4 kB / 1.053 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001385/0.6659, allocations: 4 kB / 1.053 GB, free: 13.32 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.842e-05/0.6659, allocations: 15.97 kB / 1.053 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.48e-05/0.666, allocations: 11.98 kB / 1.053 GB, free: 13.29 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0006992/0.6667, allocations: 0.7222 MB / 1.053 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.583e-06/0.6667, allocations: 0 / 1.053 GB, free: 12.56 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001473/0.6682, allocations: 0.5856 MB / 1.054 GB, free: 11.98 MB / 0.8106 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.0027/0.6709, allocations: 2.151 MB / 1.056 GB, free: 9.816 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002039/0.6729, allocations: 2.556 MB / 1.059 GB, free: 7.246 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.6729, allocations: 4 kB / 1.059 GB, free: 7.242 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.6732, allocations: 343.7 kB / 1.059 GB, free: 6.906 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.6737, allocations: 52.7 kB / 1.059 GB, free: 6.855 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01358/0.6872, allocations: 15.28 MB / 1.074 GB, free: 7.402 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004488/0.6877, allocations: 0.9879 MB / 1.075 GB, free: 6.387 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 0.0001895/0.6879, allocations: 37.42 kB / 1.075 GB, free: 6.348 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002922/0.6882, allocations: 295.3 kB / 1.075 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of SimCode: time 4.8e-07/0.6882, allocations: 0 / 1.075 GB, free: 6.062 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.885/2.574, allocations: 23.75 MB / 1.098 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002367/2.574, allocations: 345.7 kB / 1.099 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.699/5.273, allocations: 2.406 kB / 1.099 GB, free: 14.18 MB / 0.8575 GB (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)