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 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_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.005628/0.005628, allocations: 99.31 kB / 15.73 MB, free: 6.059 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.001571/0.001571, allocations: 191.9 kB / 16.68 MB, free: 5.969 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.657/2.657, allocations: 482.6 MB / 0.7551 GB, free: 6.605 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001816/0.001816, allocations: 65.12 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2932, allocations: 162.3 MB / 1.242 GB, free: 8.855 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002463/0.2958, allocations: 1.442 MB / 1.243 GB, free: 7.402 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.006392/0.3022, allocations: 4.184 MB / 1.247 GB, free: 3.199 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.435e-05/0.3022, allocations: 7.938 kB / 1.247 GB, free: 3.191 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 9.967e-05/0.3024, allocations: 15.86 kB / 1.247 GB, free: 3.176 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001972/0.3026, allocations: 35.77 kB / 1.247 GB, free: 3.141 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 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.003422/0.306, allocations: 1.5 MB / 1.249 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001265/0.3061, allocations: 91.67 kB / 1.249 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.844e-05/0.3062, allocations: 7.984 kB / 1.249 GB, free: 1.539 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 7.27e-05/0.3062, allocations: 47.89 kB / 1.249 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002087/0.3065, allocations: 147.6 kB / 1.249 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 4.013e-05/0.3065, allocations: 12 kB / 1.249 GB, free: 1.336 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003053/0.3096, allocations: 2.207 MB / 1.251 GB, free: 15.12 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0002214/0.3098, allocations: 275.8 kB / 1.252 GB, free: 14.86 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0002444/0.3101, allocations: 278.3 kB / 1.252 GB, free: 14.58 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002533/0.3126, allocations: 2.122 MB / 1.254 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3126, allocations: 0 / 1.254 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3126, allocations: 3.938 kB / 1.254 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.082e-06/0.3126, allocations: 0 / 1.254 GB, free: 12.45 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.01022/0.3229, allocations: 1.336 MB / 1.255 GB, free: 11.06 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.3229, allocations: 8.031 kB / 1.255 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.438e-05/0.3229, allocations: 34.75 kB / 1.255 GB, free: 11.01 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003443/0.3233, allocations: 100.2 kB / 1.255 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003822/0.3237, allocations: 368.9 kB / 1.256 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.321e-05/0.3237, allocations: 8.375 kB / 1.256 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.454e-05/0.3237, allocations: 4.375 kB / 1.256 GB, free: 10.49 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004283/0.3242, allocations: 391.3 kB / 1.256 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.204e-06/0.3242, allocations: 0 / 1.256 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.3242, allocations: 4 kB / 1.256 GB, free: 10.09 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.3242, allocations: 8 kB / 1.256 GB, free: 10.08 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.3247, allocations: 431.7 kB / 1.257 GB, free: 9.66 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006803/0.3254, allocations: 0.6371 MB / 1.257 GB, free: 8.973 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005315/0.3259, allocations: 0.5633 MB / 1.258 GB, free: 8.391 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000327/0.3262, allocations: 345.7 kB / 1.258 GB, free: 8.047 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00104/0.3273, allocations: 1.028 MB / 1.259 GB, free: 6.797 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004657/0.3278, allocations: 408.8 kB / 1.259 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=8): time 4.789e-06/0.3278, allocations: 0 / 1.259 GB, free: 6.379 MB / 0.9825 GB Notification: Performance of matching and sorting (n=8): time 0.001409/0.3292, allocations: 1.297 MB / 1.261 GB, free: 5.074 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.272e-05/0.3293, allocations: 81.11 kB / 1.261 GB, free: 4.977 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001159/0.3305, allocations: 1.227 MB / 1.262 GB, free: 3.734 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 3.318e-05/0.3305, allocations: 25.7 kB / 1.262 GB, free: 3.703 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002749/0.3308, allocations: 265.9 kB / 1.262 GB, free: 3.438 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.277e-05/0.3308, allocations: 23.84 kB / 1.262 GB, free: 3.414 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000336/0.3312, allocations: 355.6 kB / 1.263 GB, free: 3.062 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.3313, allocations: 310 kB / 1.263 GB, free: 2.754 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.3326, allocations: 1.369 MB / 1.264 GB, free: 1.383 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.3342, allocations: 1.513 MB / 1.266 GB, free: 15.86 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007125/0.3413, allocations: 3.557 MB / 1.269 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.3413, allocations: 0 / 1.269 GB, free: 12.21 MB / 0.9981 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004429/0.3458, allocations: 4.015 MB / 1.273 GB, free: 8.16 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.584e-05/0.3458, allocations: 4 kB / 1.273 GB, free: 8.156 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/0.3458, allocations: 4 kB / 1.273 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.391e-05/0.3458, allocations: 0 / 1.273 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.346, allocations: 15.98 kB / 1.273 GB, free: 8.137 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.346, allocations: 4 kB / 1.273 GB, free: 8.133 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004559/0.3464, allocations: 241.2 kB / 1.273 GB, free: 7.895 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.983e-05/0.3465, allocations: 27.98 kB / 1.273 GB, free: 7.867 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.0002817/0.3468, allocations: 241.6 kB / 1.274 GB, free: 7.621 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.026e-05/0.3468, allocations: 79.27 kB / 1.274 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000251/0.3471, allocations: 71.08 kB / 1.274 GB, free: 7.461 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.3471, allocations: 4 kB / 1.274 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.3471, allocations: 0 / 1.274 GB, free: 7.457 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.3471, allocations: 3.984 kB / 1.274 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004364/0.3476, allocations: 0.493 MB / 1.274 GB, free: 6.914 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.448e-06/0.3476, allocations: 15.89 kB / 1.274 GB, free: 6.898 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.298e-05/0.3477, allocations: 4 kB / 1.274 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.083e-06/0.3477, allocations: 0 / 1.274 GB, free: 6.895 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.3477, allocations: 7.984 kB / 1.274 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.3477, allocations: 0 / 1.274 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.3477, allocations: 0 / 1.274 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001017/0.3487, allocations: 1.002 MB / 1.275 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001131/0.3488, allocations: 156.4 kB / 1.275 GB, free: 5.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.484e-05/0.3489, allocations: 7.984 kB / 1.275 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001203/0.349, allocations: 4 kB / 1.275 GB, free: 5.68 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.318e-05/0.3491, allocations: 7.922 kB / 1.275 GB, free: 5.672 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.206e-05/0.3491, allocations: 11.98 kB / 1.276 GB, free: 5.66 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0007075/0.3498, allocations: 0.6728 MB / 1.276 GB, free: 4.98 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3498, allocations: 4 kB / 1.276 GB, free: 4.977 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001488/0.3513, allocations: 0.5845 MB / 1.277 GB, free: 4.391 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.002886/0.3542, allocations: 2.152 MB / 1.279 GB, free: 2.223 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002476/0.3567, allocations: 2.556 MB / 1.281 GB, free: 15.65 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.985e-06/0.3567, allocations: 0 / 1.281 GB, free: 15.65 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003863/0.3571, allocations: 339.8 kB / 1.282 GB, free: 15.32 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.3574, allocations: 39.06 kB / 1.282 GB, free: 15.28 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01541/0.3728, allocations: 15.28 MB / 1.297 GB, free: 15.82 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005665/0.3735, allocations: 0.9679 MB / 1.298 GB, free: 14.83 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.0001346/0.3736, allocations: 32.55 kB / 1.298 GB, free: 14.79 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00031/0.3739, allocations: 269 kB / 1.298 GB, free: 14.53 MB / 1.029 GB Notification: Performance of SimCode: time 6.52e-07/0.3739, allocations: 4 kB / 1.298 GB, free: 14.53 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.786/2.16, allocations: 23.81 MB / 1.321 GB, free: 6.906 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.26/16.42, allocations: 14.59 kB / 1.321 GB, free: 6.891 MB / 1.045 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=400 --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)