Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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: "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,fileNamePrefix="Buildings_latest_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_latest_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.001508/0.001508, 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.001631/0.001632, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.862/2.862, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00134/0.00134, allocations: 71.86 kB / 0.8992 GB, free: 36.97 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3667/0.3681, allocations: 157.4 MB / 1.053 GB, free: 8.195 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003854/0.372, allocations: 1.752 MB / 1.055 GB, free: 6.426 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.009071/0.3811, allocations: 5.382 MB / 1.06 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001517/0.3813, allocations: 11.94 kB / 1.06 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001406/0.3827, allocations: 374.4 kB / 1.06 GB, free: 0.6445 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.3829, allocations: 59.67 kB / 1.06 GB, free: 0.5859 MB / 0.8106 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 11.0.1-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.004759/0.3877, allocations: 1.508 MB / 1.062 GB, free: 15.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002987/0.388, allocations: 155.2 kB / 1.062 GB, free: 14.93 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.562e-05/0.3881, allocations: 9.562 kB / 1.062 GB, free: 14.92 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000102/0.3882, allocations: 63.72 kB / 1.062 GB, free: 14.86 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002422/0.3884, allocations: 159.5 kB / 1.062 GB, free: 14.7 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.598e-05/0.3885, allocations: 20 kB / 1.062 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003686/0.3922, allocations: 2.157 MB / 1.064 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002413/0.3925, allocations: 279.7 kB / 1.065 GB, free: 12.25 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003905/0.3929, allocations: 310.1 kB / 1.065 GB, free: 11.94 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.004044/0.3969, allocations: 2.163 MB / 1.067 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.838e-06/0.397, allocations: 0 / 1.067 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.707e-06/0.397, allocations: 11.94 kB / 1.067 GB, free: 9.758 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.339e-05/0.397, allocations: 0 / 1.067 GB, free: 9.758 MB / 0.8262 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.01082/0.4079, allocations: 1.368 MB / 1.068 GB, free: 8.34 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 6.764e-05/0.4079, allocations: 8.625 kB / 1.068 GB, free: 8.332 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.655e-05/0.408, allocations: 38.75 kB / 1.068 GB, free: 8.285 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005604/0.4086, allocations: 99.58 kB / 1.068 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005299/0.4091, allocations: 402.2 kB / 1.069 GB, free: 7.746 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.417e-05/0.4091, allocations: 8.359 kB / 1.069 GB, free: 7.738 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.102e-05/0.4092, allocations: 16.3 kB / 1.069 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004662/0.4097, allocations: 391.2 kB / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.4097, allocations: 0 / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.631e-05/0.4097, allocations: 0 / 1.069 GB, free: 7.328 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.787e-06/0.4097, allocations: 4 kB / 1.069 GB, free: 7.324 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004628/0.4102, allocations: 435.7 kB / 1.07 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007049/0.4109, allocations: 0.6692 MB / 1.07 GB, free: 6.18 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007641/0.4117, allocations: 0.5555 MB / 1.071 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003188/0.412, allocations: 337.7 kB / 1.071 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001175/0.4132, allocations: 1.028 MB / 1.072 GB, free: 4.02 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004741/0.4137, allocations: 412.8 kB / 1.073 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 2.715e-06/0.4137, allocations: 0 / 1.073 GB, free: 3.598 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001581/0.4153, allocations: 1.296 MB / 1.074 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.932e-05/0.4154, allocations: 81.11 kB / 1.074 GB, free: 2.195 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001629/0.417, allocations: 1.29 MB / 1.075 GB, free: 0.8945 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.514e-05/0.4171, allocations: 33.83 kB / 1.075 GB, free: 0.8555 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.000257/0.4173, allocations: 289.3 kB / 1.075 GB, free: 0.5664 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 6.436e-05/0.4174, allocations: 19.73 kB / 1.076 GB, free: 0.5469 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006722/0.4181, allocations: 355.6 kB / 1.076 GB, free: 200 kB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001491/0.4183, allocations: 318 kB / 1.076 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00138/0.4196, allocations: 1.373 MB / 1.077 GB, free: 14.5 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.4211, allocations: 1.511 MB / 1.079 GB, free: 12.98 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007329/0.4285, allocations: 3.56 MB / 1.082 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.4285, allocations: 0 / 1.082 GB, free: 9.332 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005418/0.4339, allocations: 4.014 MB / 1.086 GB, free: 5.281 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.162e-05/0.434, allocations: 8.031 kB / 1.086 GB, free: 5.273 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/0.434, allocations: 7.984 kB / 1.086 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.921e-05/0.434, allocations: 0 / 1.086 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001358/0.4341, allocations: 15.98 kB / 1.086 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.726e-06/0.4342, allocations: 0 / 1.086 GB, free: 5.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005418/0.4347, allocations: 228.4 kB / 1.087 GB, free: 5.023 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.059e-05/0.4348, allocations: 23.98 kB / 1.087 GB, free: 5 MB / 0.8419 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.000362/0.4352, allocations: 249.6 kB / 1.087 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.4353, allocations: 82.53 kB / 1.087 GB, free: 4.664 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003389/0.4356, allocations: 79.81 kB / 1.087 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.4356, allocations: 0 / 1.087 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.388e-06/0.4356, allocations: 0 / 1.087 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.4356, allocations: 0 / 1.087 GB, free: 4.578 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006164/0.4363, allocations: 0.514 MB / 1.088 GB, free: 4.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.4363, allocations: 3.938 kB / 1.088 GB, free: 4.016 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.089e-05/0.4364, allocations: 16.03 kB / 1.088 GB, free: 4 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.251e-05/0.4364, allocations: 3.984 kB / 1.088 GB, free: 3.996 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.684e-05/0.4365, allocations: 7.938 kB / 1.088 GB, free: 3.988 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.307e-05/0.4366, allocations: 7.938 kB / 1.088 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.637e-06/0.4366, allocations: 0 / 1.088 GB, free: 3.98 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.4376, allocations: 1.01 MB / 1.089 GB, free: 2.949 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.4379, allocations: 159.7 kB / 1.089 GB, free: 2.773 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.808e-05/0.438, allocations: 8 kB / 1.089 GB, free: 2.766 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001591/0.4381, allocations: 3.984 kB / 1.089 GB, free: 2.762 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.145e-05/0.4382, allocations: 4 kB / 1.089 GB, free: 2.758 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.4382, allocations: 15.97 kB / 1.089 GB, free: 2.742 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008305/0.4391, allocations: 0.7261 MB / 1.089 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.824e-06/0.4391, allocations: 0 / 1.089 GB, free: 2.012 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.002008/0.4411, allocations: 0.5934 MB / 1.09 GB, free: 1.418 MB / 0.8419 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.004071/0.4452, allocations: 2.131 MB / 1.092 GB, free: 15.27 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002498/0.4477, allocations: 2.556 MB / 1.095 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.4477, allocations: 0 / 1.095 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000317/0.448, allocations: 343.7 kB / 1.095 GB, free: 12.37 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004412/0.4485, allocations: 56.72 kB / 1.095 GB, free: 12.31 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01672/0.4652, allocations: 15.16 MB / 1.11 GB, free: 12.97 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005944/0.4659, allocations: 0.9917 MB / 1.111 GB, free: 11.95 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0002015/0.4661, allocations: 41.73 kB / 1.111 GB, free: 11.91 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003334/0.4664, allocations: 291.3 kB / 1.111 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of SimCode: time 1.242e-06/0.4664, allocations: 0 / 1.111 GB, free: 11.63 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1926/0.659, allocations: 23.89 MB / 1.134 GB, free: 3.938 MB / 0.8887 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.17/10.83, allocations: 11.41 kB / 1.134 GB, free: 3.926 MB / 0.8887 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)