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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002128/0.002128, allocations: 216.4 kB / 23.04 MB, free: 5.078 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.387/1.387, allocations: 230.6 MB / 256.8 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.626/2.626, allocations: 476.7 MB / 0.7714 GB, free: 4.309 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001951/0.001951, allocations: 65.14 kB / 1.118 GB, free: 40.45 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2948, allocations: 169.9 MB / 1.284 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003124/0.2979, allocations: 1.801 MB / 1.286 GB, free: 9.898 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.008447/0.3064, allocations: 5.496 MB / 1.291 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001826/0.3066, allocations: 0 / 1.291 GB, free: 4.383 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001362/0.3079, allocations: 382 kB / 1.292 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0001652/0.3081, allocations: 55.67 kB / 1.292 GB, free: 3.957 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1-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.004514/0.3126, allocations: 1.598 MB / 1.293 GB, free: 2.359 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0003365/0.3129, allocations: 159.4 kB / 1.293 GB, free: 2.203 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 5.725e-05/0.313, allocations: 6.594 kB / 1.293 GB, free: 2.199 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001027/0.3131, allocations: 63.7 kB / 1.294 GB, free: 2.137 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002543/0.3133, allocations: 171.4 kB / 1.294 GB, free: 1.969 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.023e-05/0.3134, allocations: 16 kB / 1.294 GB, free: 1.953 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004543/0.3179, allocations: 2.628 MB / 1.296 GB, free: 15.32 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002803/0.3182, allocations: 283.8 kB / 1.297 GB, free: 15.04 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003172/0.3185, allocations: 302.1 kB / 1.297 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003992/0.3225, allocations: 2.231 MB / 1.299 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.3225, allocations: 4 kB / 1.299 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.445e-06/0.3225, allocations: 0 / 1.299 GB, free: 12.5 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.3225, allocations: 0 / 1.299 GB, free: 12.5 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.01115/0.3337, allocations: 1.331 MB / 1.3 GB, free: 11.13 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.339e-05/0.3337, allocations: 12.03 kB / 1.3 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.226e-05/0.3338, allocations: 192 / 1.3 GB, free: 11.12 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.752e-05/0.3338, allocations: 34.75 kB / 1.3 GB, free: 11.08 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004423/0.3343, allocations: 108.1 kB / 1.3 GB, free: 10.97 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006627/0.3349, allocations: 348.5 kB / 1.301 GB, free: 10.6 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.773e-05/0.3349, allocations: 12.38 kB / 1.301 GB, free: 10.59 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.984e-05/0.335, allocations: 4.375 kB / 1.301 GB, free: 10.58 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004838/0.3355, allocations: 391.1 kB / 1.301 GB, free: 10.19 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.3355, allocations: 3.984 kB / 1.301 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.3355, allocations: 0 / 1.301 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.3355, allocations: 0 / 1.301 GB, free: 10.18 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004655/0.336, allocations: 443.6 kB / 1.302 GB, free: 9.75 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006682/0.3366, allocations: 0.6571 MB / 1.302 GB, free: 9.051 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005471/0.3372, allocations: 0.5516 MB / 1.303 GB, free: 8.48 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003527/0.3375, allocations: 337.6 kB / 1.303 GB, free: 8.145 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006269/0.3382, allocations: 143.8 kB / 1.303 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004387/0.3386, allocations: 392.9 kB / 1.304 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=8): time 1.232e-06/0.3386, allocations: 4 kB / 1.304 GB, free: 7.598 MB / 0.9981 GB Notification: Performance of matching and sorting (n=8): time 0.001515/0.3401, allocations: 1.305 MB / 1.305 GB, free: 6.285 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/0.3402, allocations: 77.11 kB / 1.305 GB, free: 6.191 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.3416, allocations: 1.302 MB / 1.306 GB, free: 4.879 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 5.059e-05/0.3416, allocations: 29.7 kB / 1.306 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002449/0.3418, allocations: 290 kB / 1.307 GB, free: 4.555 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.3419, allocations: 23.84 kB / 1.307 GB, free: 4.531 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003745/0.3423, allocations: 351.6 kB / 1.307 GB, free: 4.184 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3424, allocations: 321.9 kB / 1.307 GB, free: 3.863 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001379/0.3438, allocations: 1.373 MB / 1.309 GB, free: 2.488 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00149/0.3453, allocations: 1.501 MB / 1.31 GB, free: 0.9766 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007362/0.3526, allocations: 3.557 MB / 1.314 GB, free: 13.33 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.969e-06/0.3526, allocations: 0 / 1.314 GB, free: 13.33 MB / 1.014 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005012/0.3577, allocations: 4.029 MB / 1.317 GB, free: 9.266 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/0.3577, allocations: 4 kB / 1.317 GB, free: 9.262 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.426e-05/0.3577, allocations: 8.031 kB / 1.317 GB, free: 9.254 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.3577, allocations: 4 kB / 1.317 GB, free: 9.25 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.3579, allocations: 15.98 kB / 1.317 GB, free: 9.234 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.092e-05/0.3579, allocations: 4 kB / 1.317 GB, free: 9.23 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006315/0.3585, allocations: 241.2 kB / 1.318 GB, free: 8.992 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.666e-05/0.3586, allocations: 27.92 kB / 1.318 GB, free: 8.965 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.0003794/0.3589, allocations: 241.7 kB / 1.318 GB, free: 8.719 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001015/0.3591, allocations: 87.22 kB / 1.318 GB, free: 8.633 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001149/0.3602, allocations: 0.9488 MB / 1.319 GB, free: 7.672 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3602, allocations: 4 kB / 1.319 GB, free: 7.668 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.3602, allocations: 0 / 1.319 GB, free: 7.668 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-06/0.3602, allocations: 0 / 1.319 GB, free: 7.668 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005553/0.3608, allocations: 0.4936 MB / 1.319 GB, free: 7.137 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3608, allocations: 0 / 1.319 GB, free: 7.137 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.148e-05/0.3608, allocations: 7.984 kB / 1.319 GB, free: 7.129 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.3608, allocations: 8.031 kB / 1.319 GB, free: 7.121 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3609, allocations: 0 / 1.319 GB, free: 7.121 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.994e-06/0.3609, allocations: 3.938 kB / 1.319 GB, free: 7.117 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.517e-06/0.3609, allocations: 4 kB / 1.319 GB, free: 7.113 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.3619, allocations: 1.014 MB / 1.32 GB, free: 6.078 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.362, allocations: 91.3 kB / 1.321 GB, free: 5.988 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.677e-05/0.3621, allocations: 4 kB / 1.321 GB, free: 5.984 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001434/0.3622, allocations: 3.984 kB / 1.321 GB, free: 5.98 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/0.3623, allocations: 4 kB / 1.321 GB, free: 5.977 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.3623, allocations: 15.97 kB / 1.321 GB, free: 5.961 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0008779/0.3632, allocations: 0.7222 MB / 1.321 GB, free: 5.234 MB / 1.014 GB Notification: Performance of sort global known variables: time 7e-08/0.3632, allocations: 0 / 1.321 GB, free: 5.234 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001625/0.3648, allocations: 0.5962 MB / 1.322 GB, free: 4.637 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.003374/0.3682, allocations: 2.165 MB / 1.324 GB, free: 2.457 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002209/0.3704, allocations: 2.001 MB / 1.326 GB, free: 452 kB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.3704, allocations: 0 / 1.326 GB, free: 452 kB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0003538/0.3708, allocations: 331.8 kB / 1.326 GB, free: 120 kB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004333/0.3712, allocations: 57.53 kB / 1.326 GB, free: 60 kB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01716/0.3884, allocations: 15.31 MB / 1.341 GB, free: 0.5742 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006687/0.389, allocations: 0.9879 MB / 1.342 GB, free: 15.56 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.0001852/0.3892, allocations: 41.41 kB / 1.342 GB, free: 15.52 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003565/0.3896, allocations: 291.2 kB / 1.343 GB, free: 15.23 MB / 1.045 GB Notification: Performance of SimCode: time 1.022e-06/0.3896, allocations: 0 / 1.343 GB, free: 15.23 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05677/0.4463, allocations: 24.41 MB / 1.366 GB, free: 7.039 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.34, allocations: 10.47 kB / 1.366 GB, free: 7.031 MB / 1.061 GB " [Timeout remaining time 286] (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 --stepSize=7.2e+08 --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) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 20.13146397197852] Failed to read output from testmodel.py, exit status != 0: 13.924867009976879 13.54165163 13.214390945 Calling exit ...