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_1borehole_5meters.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_1borehole_5meters,fileNamePrefix="Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,fileNamePrefix="Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters",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.00491/0.00491, allocations: 101.1 kB / 15.73 MB, free: 6.062 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.001218/0.001218, allocations: 189.6 kB / 16.67 MB, free: 5.973 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.4/1.4, 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 11.1.0-maint.11.x/package.mo): time 2.803/2.803, allocations: 469.8 MB / 0.7425 GB, free: 7.293 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001845/0.001845, allocations: 64.05 kB / 1.065 GB, free: 13.5 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3027/0.3046, allocations: 159.1 MB / 1.22 GB, free: 14.24 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002431/0.3071, allocations: 1.432 MB / 1.222 GB, free: 12.79 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.006598/0.3137, allocations: 4.202 MB / 1.226 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.291e-05/0.3138, allocations: 0 / 1.226 GB, free: 8.57 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001083/0.3139, allocations: 11.88 kB / 1.226 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001994/0.3141, allocations: 43.7 kB / 1.226 GB, free: 8.516 MB / 0.9825 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.003577/0.3177, allocations: 1.492 MB / 1.227 GB, free: 7.023 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.3178, allocations: 99.66 kB / 1.227 GB, free: 6.926 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.544e-05/0.3179, allocations: 4 kB / 1.227 GB, free: 6.922 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 6.919e-05/0.3179, allocations: 47.78 kB / 1.227 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002183/0.3182, allocations: 147.6 kB / 1.228 GB, free: 6.73 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.265e-05/0.3182, allocations: 16 kB / 1.228 GB, free: 6.715 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003205/0.3214, allocations: 2.207 MB / 1.23 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002227/0.3217, allocations: 271.8 kB / 1.23 GB, free: 4.234 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002475/0.3219, allocations: 274.3 kB / 1.23 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002685/0.3246, allocations: 2.126 MB / 1.232 GB, free: 1.832 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3246, allocations: 4 kB / 1.232 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3246, allocations: 0 / 1.232 GB, free: 1.828 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 7.133e-06/0.3246, allocations: 0 / 1.232 GB, free: 1.828 MB / 0.9825 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.01052/0.3352, allocations: 1.343 MB / 1.234 GB, free: 440 kB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.3352, allocations: 12.03 kB / 1.234 GB, free: 428 kB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.75e-05/0.3353, allocations: 30.75 kB / 1.234 GB, free: 388 kB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003571/0.3356, allocations: 96.23 kB / 1.234 GB, free: 292 kB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003983/0.336, allocations: 361.2 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.3361, allocations: 4.375 kB / 1.234 GB, free: 15.88 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.868e-05/0.3361, allocations: 8.375 kB / 1.234 GB, free: 15.87 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004432/0.3366, allocations: 395.2 kB / 1.234 GB, free: 15.47 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.3366, allocations: 3.984 kB / 1.234 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.085e-05/0.3366, allocations: 0 / 1.234 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3366, allocations: 0 / 1.234 GB, free: 15.46 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005006/0.3371, allocations: 439.7 kB / 1.235 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005918/0.3377, allocations: 0.641 MB / 1.236 GB, free: 14.34 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005443/0.3383, allocations: 0.5673 MB / 1.236 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003264/0.3386, allocations: 333.6 kB / 1.236 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001174/0.3398, allocations: 1.025 MB / 1.237 GB, free: 12.18 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005036/0.3403, allocations: 412.8 kB / 1.238 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 3.156e-06/0.3403, allocations: 0 / 1.238 GB, free: 11.76 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001363/0.3417, allocations: 1.293 MB / 1.239 GB, free: 10.46 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/0.3418, allocations: 77.11 kB / 1.239 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001287/0.3431, allocations: 1.227 MB / 1.24 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.468e-05/0.3431, allocations: 29.7 kB / 1.24 GB, free: 9.086 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002009/0.3433, allocations: 273.9 kB / 1.241 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.57e-05/0.3434, allocations: 23.8 kB / 1.241 GB, free: 8.789 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003293/0.3437, allocations: 347.6 kB / 1.241 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001245/0.3438, allocations: 317.9 kB / 1.241 GB, free: 8.129 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.3451, allocations: 1.369 MB / 1.243 GB, free: 6.758 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001485/0.3466, allocations: 1.509 MB / 1.244 GB, free: 5.238 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007066/0.3537, allocations: 3.56 MB / 1.248 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3537, allocations: 0 / 1.248 GB, free: 1.586 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.5344/0.8881, allocations: 4 MB / 1.251 GB, free: 28.65 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.8882, allocations: 5.438 kB / 1.251 GB, free: 28.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.928e-05/0.8882, allocations: 4.016 kB / 1.251 GB, free: 28.65 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.8882, allocations: 1.719 kB / 1.251 GB, free: 28.65 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001258/0.8883, allocations: 17.94 kB / 1.251 GB, free: 28.65 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.705e-06/0.8884, allocations: 7.281 kB / 1.252 GB, free: 28.65 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005571/0.8889, allocations: 244.6 kB / 1.252 GB, free: 28.54 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.176e-05/0.889, allocations: 22.78 kB / 1.252 GB, free: 28.54 MB / 0.9981 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.0002746/0.8893, allocations: 237.2 kB / 1.252 GB, free: 28.43 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.614e-05/0.8893, allocations: 71.61 kB / 1.252 GB, free: 28.38 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002464/0.8896, allocations: 75.7 kB / 1.252 GB, free: 28.32 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.468e-06/0.8896, allocations: 1.688 kB / 1.252 GB, free: 28.32 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.8896, allocations: 4.656 kB / 1.252 GB, free: 28.32 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.8896, allocations: 2.078 kB / 1.252 GB, free: 28.32 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004225/0.89, allocations: 0.4922 MB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.89, allocations: 1.594 kB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.509e-05/0.8901, allocations: 8.391 kB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.8901, allocations: 4.094 kB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.236e-05/0.8901, allocations: 4.656 kB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.8901, allocations: 1.156 kB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.8902, allocations: 1.25 kB / 1.253 GB, free: 28.13 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009882/0.8911, allocations: 1.01 MB / 1.254 GB, free: 28 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.251e-05/0.8912, allocations: 159 kB / 1.254 GB, free: 27.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.549e-05/0.8913, allocations: 3.875 kB / 1.254 GB, free: 27.85 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001256/0.8914, allocations: 8.875 kB / 1.254 GB, free: 27.85 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.8915, allocations: 9.266 kB / 1.254 GB, free: 27.85 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.8915, allocations: 13.52 kB / 1.254 GB, free: 27.85 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000768/0.8923, allocations: 0.6709 MB / 1.254 GB, free: 27.74 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8923, allocations: 0 / 1.254 GB, free: 27.74 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001167/0.8935, allocations: 0.5932 MB / 1.255 GB, free: 27.73 MB / 0.9981 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.002376/0.8958, allocations: 2.147 MB / 1.257 GB, free: 27.04 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002026/0.8979, allocations: 2.547 MB / 1.26 GB, free: 26.98 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.8979, allocations: 0.9688 kB / 1.26 GB, free: 26.98 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.8984, allocations: 343.8 kB / 1.26 GB, free: 26.98 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003196/0.8987, allocations: 38.33 kB / 1.26 GB, free: 26.97 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01557/0.9143, allocations: 15.28 MB / 1.275 GB, free: 21.52 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004284/0.9147, allocations: 0.9648 MB / 1.276 GB, free: 20.82 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0001305/0.9148, allocations: 32.95 kB / 1.276 GB, free: 20.81 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002475/0.9151, allocations: 263.9 kB / 1.276 GB, free: 20.59 MB / 0.9981 GB Notification: Performance of SimCode: time 7.31e-07/0.9151, allocations: 1.281 kB / 1.276 GB, free: 20.59 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3555/1.271, allocations: 23.83 MB / 1.299 GB, free: 17.17 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.63, allocations: 9.031 kB / 1.299 GB, free: 17.16 MB / 0.9981 GB (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)