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_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.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_1borehole_5meters,fileNamePrefix="Buildings_latest_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_latest_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.004815/0.004815, allocations: 101.2 kB / 15.73 MB, free: 6.047 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.001082/0.001082, allocations: 193.2 kB / 16.67 MB, free: 5.977 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.311/1.311, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.619/2.619, allocations: 461.9 MB / 0.7348 GB, free: 14.71 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001309/0.001309, allocations: 71.88 kB / 1.054 GB, free: 7.641 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.317, allocations: 157.4 MB / 1.207 GB, free: 10.14 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.003292/0.3203, allocations: 1.429 MB / 1.209 GB, free: 8.703 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.006604/0.327, allocations: 4.207 MB / 1.213 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.951e-05/0.3271, allocations: 4 kB / 1.213 GB, free: 4.473 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001286/0.3272, allocations: 11.86 kB / 1.213 GB, free: 4.461 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002543/0.3275, allocations: 31.84 kB / 1.213 GB, free: 4.43 MB / 0.9669 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.004369/0.3319, allocations: 1.495 MB / 1.214 GB, free: 2.934 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001688/0.3321, allocations: 95.67 kB / 1.214 GB, free: 2.84 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.576e-05/0.3321, allocations: 7.984 kB / 1.214 GB, free: 2.832 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 9.174e-05/0.3322, allocations: 55.77 kB / 1.215 GB, free: 2.777 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002347/0.3324, allocations: 143.6 kB / 1.215 GB, free: 2.637 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.521e-05/0.3325, allocations: 12 kB / 1.215 GB, free: 2.625 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003717/0.3362, allocations: 2.204 MB / 1.217 GB, free: 428 kB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0002162/0.3365, allocations: 267.8 kB / 1.217 GB, free: 156 kB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0002594/0.3367, allocations: 278.4 kB / 1.217 GB, free: 15.88 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003413/0.3401, allocations: 2.116 MB / 1.219 GB, free: 13.76 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 6.372e-06/0.3402, allocations: 4 kB / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.363e-06/0.3402, allocations: 0 / 1.219 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.565e-05/0.3402, allocations: 0 / 1.219 GB, free: 13.75 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.01092/0.3511, allocations: 1.3 MB / 1.221 GB, free: 12.4 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.3512, allocations: 8.625 kB / 1.221 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.246e-05/0.3512, allocations: 38.75 kB / 1.221 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003934/0.3516, allocations: 87.69 kB / 1.221 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004396/0.3521, allocations: 368.9 kB / 1.221 GB, free: 11.85 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.3521, allocations: 8.375 kB / 1.221 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.255e-05/0.3522, allocations: 4.375 kB / 1.221 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004354/0.3526, allocations: 399.2 kB / 1.222 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.3526, allocations: 0 / 1.222 GB, free: 11.44 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.3526, allocations: 3.984 kB / 1.222 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.212e-06/0.3526, allocations: 4 kB / 1.222 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004299/0.3531, allocations: 427.8 kB / 1.222 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006235/0.3537, allocations: 0.6327 MB / 1.223 GB, free: 10.33 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006027/0.3543, allocations: 0.5672 MB / 1.223 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.3546, allocations: 333.7 kB / 1.223 GB, free: 9.41 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001097/0.3558, allocations: 1.032 MB / 1.224 GB, free: 8.156 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003932/0.3562, allocations: 408.8 kB / 1.225 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 1.513e-06/0.3562, allocations: 0 / 1.225 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.001304/0.3575, allocations: 1.3 MB / 1.226 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.574e-05/0.3575, allocations: 81.11 kB / 1.226 GB, free: 6.332 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.3588, allocations: 1.207 MB / 1.227 GB, free: 5.109 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.638e-05/0.3588, allocations: 29.7 kB / 1.227 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002109/0.3591, allocations: 257.4 kB / 1.228 GB, free: 4.816 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.3591, allocations: 27.64 kB / 1.228 GB, free: 4.789 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000346/0.3595, allocations: 355.6 kB / 1.228 GB, free: 4.438 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001136/0.3596, allocations: 314 kB / 1.228 GB, free: 4.125 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001257/0.3609, allocations: 1.373 MB / 1.23 GB, free: 2.75 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.3622, allocations: 1.501 MB / 1.231 GB, free: 1.238 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007019/0.3693, allocations: 3.56 MB / 1.235 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.3693, allocations: 4 kB / 1.235 GB, free: 13.58 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004494/0.3738, allocations: 4 MB / 1.239 GB, free: 9.543 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.188e-05/0.3738, allocations: 4 kB / 1.239 GB, free: 9.539 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.222e-05/0.3738, allocations: 7.984 kB / 1.239 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.9e-05/0.3739, allocations: 0 / 1.239 GB, free: 9.531 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001354/0.374, allocations: 19.94 kB / 1.239 GB, free: 9.512 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.888e-06/0.374, allocations: 4 kB / 1.239 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005341/0.3746, allocations: 232.3 kB / 1.239 GB, free: 9.277 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.736e-05/0.3746, allocations: 27.98 kB / 1.239 GB, free: 9.25 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.0003217/0.375, allocations: 237.6 kB / 1.239 GB, free: 9.008 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.518e-05/0.375, allocations: 70.72 kB / 1.239 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000286/0.3753, allocations: 75 kB / 1.239 GB, free: 8.855 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.228e-06/0.3754, allocations: 4 kB / 1.239 GB, free: 8.852 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3754, allocations: 4.031 kB / 1.239 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3754, allocations: 0 / 1.239 GB, free: 8.848 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004384/0.3758, allocations: 0.4891 MB / 1.24 GB, free: 8.312 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3758, allocations: 7.875 kB / 1.24 GB, free: 8.305 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.232e-05/0.3759, allocations: 7.984 kB / 1.24 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3759, allocations: 0 / 1.24 GB, free: 8.297 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.635e-05/0.3759, allocations: 4 kB / 1.24 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.3759, allocations: 0 / 1.24 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.376, allocations: 0 / 1.24 GB, free: 8.293 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000955/0.3769, allocations: 1.013 MB / 1.241 GB, free: 7.262 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/0.3771, allocations: 155.8 kB / 1.241 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.905e-05/0.3771, allocations: 4 kB / 1.241 GB, free: 7.086 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001293/0.3773, allocations: 7.984 kB / 1.241 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.3773, allocations: 0 / 1.241 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.854e-05/0.3774, allocations: 19.97 kB / 1.241 GB, free: 7.059 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007306/0.3781, allocations: 0.6689 MB / 1.241 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3781, allocations: 0 / 1.241 GB, free: 6.383 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001565/0.3797, allocations: 0.5818 MB / 1.242 GB, free: 5.801 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.003729/0.3834, allocations: 2.136 MB / 1.244 GB, free: 3.652 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002343/0.3858, allocations: 2.556 MB / 1.247 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3858, allocations: 0 / 1.247 GB, free: 1.082 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003122/0.3861, allocations: 339.9 kB / 1.247 GB, free: 0.75 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004904/0.3866, allocations: 36.55 kB / 1.247 GB, free: 0.7148 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6018/0.9884, allocations: 15.24 MB / 1.262 GB, free: 35.96 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007025/0.9893, allocations: 0.9657 MB / 1.263 GB, free: 35.27 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.000162/0.9894, allocations: 36.34 kB / 1.263 GB, free: 35.27 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002954/0.9897, allocations: 266.5 kB / 1.263 GB, free: 35.27 MB / 0.9981 GB Notification: Performance of SimCode: time 7.31e-07/0.9897, allocations: 0.625 kB / 1.263 GB, free: 35.27 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06448/1.054, allocations: 24.03 MB / 1.287 GB, free: 32.64 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.604/10.66, allocations: 11.17 kB / 1.287 GB, free: 32.64 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters_fmu --startTime=0 --stopTime=4.12e+08 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.fmu > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)