Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.006865/0.006865, allocations: 98.91 kB / 15.73 MB, free: 6.008 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.001753/0.001753, allocations: 191.5 kB / 16.67 MB, free: 5.926 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.383/1.383, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.658/2.658, allocations: 469.8 MB / 0.7425 GB, free: 3.301 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 64.12 kB / 1.065 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7534/0.7553, allocations: 159.1 MB / 1.22 GB, free: 1.984 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003225/0.7587, allocations: 1.76 MB / 1.222 GB, free: 220 kB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.007982/0.7667, allocations: 5.394 MB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.7668, allocations: 3.938 kB / 1.227 GB, free: 10.8 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001335/0.7682, allocations: 362.5 kB / 1.228 GB, free: 10.44 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.0001291/0.7683, allocations: 71.66 kB / 1.228 GB, free: 10.37 MB / 0.9512 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.1.0-maint.11.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.00367/0.772, allocations: 1.482 MB / 1.229 GB, free: 8.891 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0002471/0.7723, allocations: 160.3 kB / 1.229 GB, free: 8.734 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.859e-05/0.7723, allocations: 17.48 kB / 1.229 GB, free: 8.719 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 7.72e-05/0.7724, allocations: 63.77 kB / 1.229 GB, free: 8.656 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002286/0.7726, allocations: 163.5 kB / 1.229 GB, free: 8.496 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 4.492e-05/0.7727, allocations: 16 kB / 1.229 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003362/0.7761, allocations: 2.208 MB / 1.232 GB, free: 6.27 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0003314/0.7764, allocations: 279.8 kB / 1.232 GB, free: 5.992 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.000285/0.7767, allocations: 310.1 kB / 1.232 GB, free: 5.688 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.003015/0.7797, allocations: 2.189 MB / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.7797, allocations: 0 / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.242e-06/0.7797, allocations: 0 / 1.234 GB, free: 3.492 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 1.124e-05/0.7798, allocations: 0 / 1.234 GB, free: 3.492 MB / 0.9512 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.01061/0.7904, allocations: 1.418 MB / 1.236 GB, free: 2.02 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.362e-05/0.7904, allocations: 8.031 kB / 1.236 GB, free: 2.012 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.868e-05/0.7905, allocations: 34.75 kB / 1.236 GB, free: 1.969 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003833/0.7909, allocations: 104.2 kB / 1.236 GB, free: 1.867 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007532/0.7916, allocations: 414.3 kB / 1.236 GB, free: 1.414 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.266e-05/0.7917, allocations: 4.375 kB / 1.236 GB, free: 1.41 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.316e-05/0.7917, allocations: 4.375 kB / 1.236 GB, free: 1.406 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004554/0.7922, allocations: 395.3 kB / 1.237 GB, free: 1.008 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.7922, allocations: 3.938 kB / 1.237 GB, free: 1.004 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.7922, allocations: 7.984 kB / 1.237 GB, free: 0.9961 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.7922, allocations: 4 kB / 1.237 GB, free: 0.9922 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004591/0.7927, allocations: 431.7 kB / 1.237 GB, free: 0.5703 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006555/0.7933, allocations: 0.6699 MB / 1.238 GB, free: 15.85 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.7939, allocations: 0.5594 MB / 1.238 GB, free: 15.27 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003969/0.7943, allocations: 337.7 kB / 1.239 GB, free: 14.94 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/0.7954, allocations: 1.028 MB / 1.24 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004292/0.7958, allocations: 408.8 kB / 1.24 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=8): time 1.462e-06/0.7958, allocations: 0 / 1.24 GB, free: 13.27 MB / 0.9669 GB Notification: Performance of matching and sorting (n=8): time 0.001457/0.7973, allocations: 1.301 MB / 1.241 GB, free: 11.96 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.846e-05/0.7974, allocations: 85.23 kB / 1.241 GB, free: 11.86 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001289/0.7987, allocations: 1.298 MB / 1.243 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 3.322e-05/0.7987, allocations: 29.7 kB / 1.243 GB, free: 10.52 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.799, allocations: 293.9 kB / 1.243 GB, free: 10.22 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.286e-05/0.799, allocations: 23.77 kB / 1.243 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003432/0.7994, allocations: 355.6 kB / 1.243 GB, free: 9.848 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001318/0.7995, allocations: 321.9 kB / 1.244 GB, free: 9.527 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001361/0.8009, allocations: 1.369 MB / 1.245 GB, free: 8.156 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001429/0.8023, allocations: 1.509 MB / 1.246 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007268/0.8096, allocations: 3.557 MB / 1.25 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.8096, allocations: 0 / 1.25 GB, free: 2.988 MB / 0.9669 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004573/0.8142, allocations: 4.023 MB / 1.254 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.938e-05/0.8142, allocations: 4 kB / 1.254 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.84e-05/0.8142, allocations: 4 kB / 1.254 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.571e-05/0.8143, allocations: 0 / 1.254 GB, free: 14.92 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001275/0.8144, allocations: 19.98 kB / 1.254 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.8144, allocations: 320 / 1.254 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005066/0.8149, allocations: 245.3 kB / 1.254 GB, free: 14.66 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001231/0.8151, allocations: 27.92 kB / 1.254 GB, free: 14.63 MB / 0.9825 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.0003729/0.8155, allocations: 249.7 kB / 1.254 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.452e-05/0.8156, allocations: 79.23 kB / 1.254 GB, free: 14.3 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002656/0.8158, allocations: 83.77 kB / 1.254 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.8158, allocations: 3.938 kB / 1.254 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.8159, allocations: 0 / 1.254 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.8159, allocations: 0 / 1.254 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004698/0.8163, allocations: 0.5141 MB / 1.255 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/0.8164, allocations: 3.938 kB / 1.255 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.708e-05/0.8164, allocations: 11.98 kB / 1.255 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.914e-06/0.8164, allocations: 0 / 1.255 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.302e-05/0.8165, allocations: 4 kB / 1.255 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.8165, allocations: 4 kB / 1.255 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.8165, allocations: 0 / 1.255 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009856/0.8175, allocations: 1.014 MB / 1.256 GB, free: 12.59 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001422/0.8176, allocations: 176.2 kB / 1.256 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.252e-05/0.8177, allocations: 8 kB / 1.256 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.8178, allocations: 3.984 kB / 1.256 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.29e-05/0.8179, allocations: 7.938 kB / 1.256 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.09e-05/0.8179, allocations: 15.97 kB / 1.256 GB, free: 12.36 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0008536/0.8188, allocations: 0.7261 MB / 1.257 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8188, allocations: 0 / 1.257 GB, free: 11.63 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001411/0.8202, allocations: 0.5923 MB / 1.257 GB, free: 11.04 MB / 0.9825 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.002971/0.8232, allocations: 2.155 MB / 1.26 GB, free: 8.867 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002439/0.8256, allocations: 2.548 MB / 1.262 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.8256, allocations: 0 / 1.262 GB, free: 6.305 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0003432/0.826, allocations: 343.7 kB / 1.262 GB, free: 5.969 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003421/0.8263, allocations: 66.31 kB / 1.262 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01585/0.8422, allocations: 15.29 MB / 1.277 GB, free: 6.43 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005882/0.8428, allocations: 0.9879 MB / 1.278 GB, free: 5.414 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000151/0.843, allocations: 41.42 kB / 1.278 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003436/0.8433, allocations: 293.4 kB / 1.279 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of SimCode: time 6.51e-07/0.8433, allocations: 0 / 1.279 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3058/1.149, allocations: 24.06 MB / 1.302 GB, free: 13.26 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/12.31, allocations: 10.44 kB / 1.302 GB, free: 13.25 MB / 1.029 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation_fmu --startTime=0 --stopTime=1.8e+12 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.fmu > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)