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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.004607/0.004607, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.001224/0.001224, allocations: 197.7 kB / 16.67 MB, free: 5.922 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.842/2.842, allocations: 482.6 MB / 0.755 GB, free: 10.65 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001995/0.001995, allocations: 68.06 kB / 1.083 GB, free: 12.18 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3556/0.3576, allocations: 162.3 MB / 1.242 GB, free: 9.785 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003169/0.3608, allocations: 1.769 MB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.007966/0.3688, allocations: 5.374 MB / 1.249 GB, free: 2.605 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.3689, allocations: 4 kB / 1.249 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.3703, allocations: 366.4 kB / 1.249 GB, free: 2.242 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0001156/0.3704, allocations: 59.67 kB / 1.249 GB, free: 2.184 MB / 0.9981 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 12.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.003818/0.3743, allocations: 1.508 MB / 1.251 GB, free: 0.6719 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002524/0.3745, allocations: 163.3 kB / 1.251 GB, free: 0.5117 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.483e-05/0.3746, allocations: 9.562 kB / 1.251 GB, free: 0.5039 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 7.797e-05/0.3747, allocations: 59.78 kB / 1.251 GB, free: 456 kB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.3749, allocations: 163.5 kB / 1.251 GB, free: 292 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 4.368e-05/0.375, allocations: 20 kB / 1.251 GB, free: 272 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.731/1.106, allocations: 2.199 MB / 1.253 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003229/1.106, allocations: 278.5 kB / 1.254 GB, free: 8.039 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003093/1.107, allocations: 307.1 kB / 1.254 GB, free: 7.898 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003829/1.11, allocations: 2.194 MB / 1.256 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/1.11, allocations: 0 / 1.256 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.114e-06/1.11, allocations: 0.6562 kB / 1.256 GB, free: 7.629 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.085e-05/1.111, allocations: 0 / 1.256 GB, free: 7.629 MB / 0.9981 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.0106/1.121, allocations: 1.412 MB / 1.257 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.941e-05/1.121, allocations: 9.656 kB / 1.257 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.88e-05/1.121, allocations: 36.31 kB / 1.257 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004986/1.122, allocations: 103.3 kB / 1.258 GB, free: 6.582 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006309/1.122, allocations: 421.4 kB / 1.258 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/1.122, allocations: 3.5 kB / 1.258 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/1.122, allocations: 8.062 kB / 1.258 GB, free: 6.289 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006058/1.123, allocations: 392.7 kB / 1.258 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.908e-06/1.123, allocations: 0.9062 kB / 1.258 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.388e-05/1.123, allocations: 2.219 kB / 1.258 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/1.123, allocations: 1.312 kB / 1.258 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006843/1.124, allocations: 435.6 kB / 1.259 GB, free: 6.238 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007722/1.125, allocations: 0.6728 MB / 1.259 GB, free: 5.949 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008508/1.125, allocations: 0.5604 MB / 1.26 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004774/1.126, allocations: 340 kB / 1.26 GB, free: 5.887 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007795/1.127, allocations: 1.024 MB / 1.261 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004072/1.127, allocations: 407.3 kB / 1.262 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 2.084e-06/1.127, allocations: 0 / 1.262 GB, free: 4.695 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001448/1.129, allocations: 1.308 MB / 1.263 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.985e-05/1.129, allocations: 80.73 kB / 1.263 GB, free: 4.508 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/1.13, allocations: 1.296 MB / 1.264 GB, free: 4.27 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.397e-05/1.13, allocations: 29.41 kB / 1.264 GB, free: 4.238 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001994/1.13, allocations: 290.6 kB / 1.265 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.477e-05/1.13, allocations: 23.38 kB / 1.265 GB, free: 4.09 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003501/1.131, allocations: 355.7 kB / 1.265 GB, free: 4.074 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.36e-05/1.131, allocations: 319.7 kB / 1.265 GB, free: 3.77 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/1.132, allocations: 1.37 MB / 1.267 GB, free: 3.465 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001279/1.133, allocations: 1.506 MB / 1.268 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007079/1.14, allocations: 3.553 MB / 1.272 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/1.14, allocations: 0.5938 kB / 1.272 GB, free: 1.102 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004547/1.145, allocations: 4.04 MB / 1.275 GB, free: 15.16 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/1.145, allocations: 6.719 kB / 1.275 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.242e-05/1.145, allocations: 3.859 kB / 1.276 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/1.145, allocations: 5.031 kB / 1.276 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001287/1.145, allocations: 15.89 kB / 1.276 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/1.145, allocations: 1.219 kB / 1.276 GB, free: 15.16 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006666/1.146, allocations: 243 kB / 1.276 GB, free: 14.96 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-05/1.146, allocations: 23.11 kB / 1.276 GB, free: 14.96 MB / 1.014 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.0003907/1.146, allocations: 256 kB / 1.276 GB, free: 14.84 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.173e-05/1.146, allocations: 83.33 kB / 1.276 GB, free: 14.78 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002786/1.147, allocations: 76.23 kB / 1.276 GB, free: 14.72 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/1.147, allocations: 2.953 kB / 1.276 GB, free: 14.72 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/1.147, allocations: 0.625 kB / 1.276 GB, free: 14.72 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/1.147, allocations: 2.328 kB / 1.276 GB, free: 14.72 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006358/1.147, allocations: 0.5206 MB / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.083e-06/1.147, allocations: 0 / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.886e-05/1.147, allocations: 16.42 kB / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/1.147, allocations: 5.094 kB / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/1.147, allocations: 2.781 kB / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.876e-06/1.148, allocations: 1.688 kB / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/1.148, allocations: 1.281 kB / 1.277 GB, free: 14.43 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/1.149, allocations: 1.012 MB / 1.278 GB, free: 14.27 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000153/1.149, allocations: 169.5 kB / 1.278 GB, free: 14.11 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.508e-05/1.149, allocations: 2.766 kB / 1.278 GB, free: 14.11 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001371/1.149, allocations: 4.391 kB / 1.278 GB, free: 14.11 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.088e-05/1.149, allocations: 5.734 kB / 1.278 GB, free: 14.11 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.906e-05/1.149, allocations: 13.12 kB / 1.278 GB, free: 14.11 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009158/1.15, allocations: 0.7269 MB / 1.279 GB, free: 13.87 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.11e-07/1.15, allocations: 0 / 1.279 GB, free: 13.87 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002465/1.152, allocations: 0.5907 MB / 1.279 GB, free: 13.76 MB / 1.014 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.003817/1.156, allocations: 2.168 MB / 1.281 GB, free: 12.95 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002608/1.159, allocations: 2.548 MB / 1.284 GB, free: 11.93 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/1.159, allocations: 1.094 kB / 1.284 GB, free: 11.93 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003456/1.159, allocations: 340.4 kB / 1.284 GB, free: 11.92 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004293/1.16, allocations: 62 kB / 1.284 GB, free: 11.88 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01637/1.176, allocations: 15.3 MB / 1.299 GB, free: 4.832 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006261/1.177, allocations: 0.9859 MB / 1.3 GB, free: 4.133 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0001636/1.177, allocations: 42.25 kB / 1.3 GB, free: 4.121 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003541/1.177, allocations: 287.3 kB / 1.3 GB, free: 3.883 MB / 1.014 GB Notification: Performance of SimCode: time 5.81e-07/1.177, allocations: 2.625 kB / 1.3 GB, free: 3.883 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.82/4.997, allocations: 24.08 MB / 1.324 GB, free: 14.37 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.11/21.11, allocations: 11.03 kB / 1.324 GB, free: 14.37 MB / 1.029 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=400 --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)