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_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.0009203/0.0009203, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.001459/0.001459, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 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.041/1.041, allocations: 177.1 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.373/2.373, allocations: 438.8 MB / 0.6827 GB, free: 13.58 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 0.8387 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.228e-05/2.372e-05, allocations: 5.969 kB / 0.8387 GB, free: 14.03 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00342/0.003443, allocations: 1.848 MB / 0.8405 GB, free: 12.17 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0085/0.01194, allocations: 5.213 MB / 0.8456 GB, free: 6.934 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.01207, allocations: 3.938 kB / 0.8456 GB, free: 6.93 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 0.001332/0.0134, allocations: 362.2 kB / 0.846 GB, free: 6.574 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 0.0001491/0.01355, allocations: 67.66 kB / 0.846 GB, free: 6.508 MB / 0.8073 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'. Notification: Performance of NFTyping.typeClassSections: time 0.00515/0.0187, allocations: 1.433 MB / 0.8474 GB, free: 5.066 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 0.0002319/0.01893, allocations: 163.3 kB / 0.8476 GB, free: 4.906 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 4.613e-05/0.01898, allocations: 14.45 kB / 0.8476 GB, free: 4.895 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 8.819e-05/0.01907, allocations: 87.72 kB / 0.8477 GB, free: 4.809 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 9.463e-05/0.01916, allocations: 57.12 kB / 0.8477 GB, free: 4.754 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.657e-05/0.01918, allocations: 8 kB / 0.8478 GB, free: 4.746 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002877/0.02206, allocations: 2.581 MB / 0.8503 GB, free: 2.168 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 0.0001525/0.02221, allocations: 263.2 kB / 0.8505 GB, free: 1.91 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 0.0001289/0.02234, allocations: 139.3 kB / 0.8507 GB, free: 1.773 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.001846/0.02418, allocations: 2.376 MB / 0.853 GB, free: 15.39 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.02419, allocations: 3.984 kB / 0.853 GB, free: 15.38 MB / 0.823 GB Notification: Performance of FrontEnd: time 1.192e-06/0.02419, allocations: 0 / 0.853 GB, free: 15.38 MB / 0.823 GB Notification: Performance of Transformations before backend: time 5.83e-06/0.0242, allocations: 0 / 0.853 GB, free: 15.38 MB / 0.823 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.001128/0.02533, allocations: 1.274 MB / 0.8542 GB, free: 14.08 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 3.19e-05/0.02536, allocations: 8.625 kB / 0.8542 GB, free: 14.07 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001992/0.02556, allocations: 40.89 kB / 0.8543 GB, free: 14.03 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002841/0.02584, allocations: 331.8 kB / 0.8546 GB, free: 13.67 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.02585, allocations: 4.375 kB / 0.8546 GB, free: 13.67 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.458e-05/0.02588, allocations: 12.36 kB / 0.8546 GB, free: 13.66 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.02607, allocations: 232.5 kB / 0.8548 GB, free: 13.41 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.685e-06/0.02608, allocations: 4.125 kB / 0.8548 GB, free: 13.41 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.705e-06/0.02608, allocations: 384 / 0.8548 GB, free: 13.41 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.02609, allocations: 3.938 kB / 0.8548 GB, free: 13.41 MB / 0.823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001215/0.02621, allocations: 207.8 kB / 0.855 GB, free: 13.2 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001997/0.02641, allocations: 256.6 kB / 0.8553 GB, free: 12.93 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001827/0.02659, allocations: 285 kB / 0.8555 GB, free: 12.64 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001022/0.0267, allocations: 153.7 kB / 0.8557 GB, free: 12.48 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002809/0.02698, allocations: 124 kB / 0.8558 GB, free: 12.36 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.02716, allocations: 229 kB / 0.856 GB, free: 12.12 MB / 0.823 GB Notification: Performance of pre-optimization done (n=8): time 9.62e-07/0.02716, allocations: 4 kB / 0.856 GB, free: 12.11 MB / 0.823 GB Notification: Performance of matching and sorting (n=8): time 0.0003864/0.02755, allocations: 493.3 kB / 0.8565 GB, free: 11.62 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.253e-05/0.02758, allocations: 85.05 kB / 0.8566 GB, free: 11.52 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007878/0.02837, allocations: 1.057 MB / 0.8576 GB, free: 10.46 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.02839, allocations: 33.69 kB / 0.8577 GB, free: 10.42 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001102/0.0285, allocations: 269.7 kB / 0.8579 GB, free: 10.15 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.02853, allocations: 19.88 kB / 0.8579 GB, free: 10.13 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002033/0.02873, allocations: 339.2 kB / 0.8583 GB, free: 9.793 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 6.51e-05/0.0288, allocations: 317.9 kB / 0.8586 GB, free: 9.477 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003175/0.02911, allocations: 0.5138 MB / 0.8591 GB, free: 8.961 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000341/0.02945, allocations: 0.6031 MB / 0.8596 GB, free: 8.348 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001432/0.03089, allocations: 2.236 MB / 0.8618 GB, free: 6.023 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.03089, allocations: 0 / 0.8618 GB, free: 6.023 MB / 0.823 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002596/0.03348, allocations: 3.725 MB / 0.8655 GB, free: 2.27 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.367e-05/0.0335, allocations: 8 kB / 0.8655 GB, free: 2.262 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.085e-05/0.03351, allocations: 0 / 0.8655 GB, free: 2.262 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.134e-05/0.03352, allocations: 0 / 0.8655 GB, free: 2.262 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.732e-05/0.03362, allocations: 31.95 kB / 0.8655 GB, free: 2.23 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.066e-06/0.03362, allocations: 0 / 0.8655 GB, free: 2.23 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002347/0.03386, allocations: 253.2 kB / 0.8657 GB, free: 1.98 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.917e-05/0.03388, allocations: 15.98 kB / 0.8658 GB, free: 1.965 MB / 0.823 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 (labels[1],cluSiz[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.0001134/0.034, allocations: 119.3 kB / 0.8659 GB, free: 1.84 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.161e-05/0.03402, allocations: 11.98 kB / 0.8659 GB, free: 1.828 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002904/0.03431, allocations: 387.6 kB / 0.8663 GB, free: 1.434 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.03431, allocations: 4.031 kB / 0.8663 GB, free: 1.43 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.433e-06/0.03431, allocations: 0 / 0.8663 GB, free: 1.43 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.03432, allocations: 3.938 kB / 0.8663 GB, free: 1.426 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002005/0.03452, allocations: 303.2 kB / 0.8666 GB, free: 1.113 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/0.03452, allocations: 0 / 0.8666 GB, free: 1.113 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.505e-05/0.03455, allocations: 11.98 kB / 0.8666 GB, free: 1.102 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.03456, allocations: 0 / 0.8666 GB, free: 1.102 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.814e-06/0.03456, allocations: 4 kB / 0.8666 GB, free: 1.098 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.03456, allocations: 0 / 0.8666 GB, free: 1.098 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.03457, allocations: 3.938 kB / 0.8666 GB, free: 1.094 MB / 0.823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002341/0.0348, allocations: 383.4 kB / 0.8669 GB, free: 0.6992 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.268e-05/0.03485, allocations: 87.28 kB / 0.867 GB, free: 0.6133 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.03489, allocations: 3.984 kB / 0.867 GB, free: 0.6094 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.438e-05/0.03495, allocations: 4 kB / 0.867 GB, free: 0.6055 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.431e-05/0.03498, allocations: 7.984 kB / 0.867 GB, free: 0.5977 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.035, allocations: 15.98 kB / 0.8671 GB, free: 0.582 MB / 0.823 GB Notification: Performance of sorting global known variables: time 0.0002583/0.03526, allocations: 422.8 kB / 0.8675 GB, free: 168 kB / 0.823 GB Notification: Performance of sort global known variables: time 8e-08/0.03526, allocations: 0 / 0.8675 GB, free: 168 kB / 0.823 GB Notification: Performance of remove unused functions: time 0.0007214/0.03598, allocations: 0.5884 MB / 0.868 GB, free: 15.57 MB / 0.8386 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.001222/0.0372, allocations: 0.815 MB / 0.8688 GB, free: 14.79 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0006749/0.03787, allocations: 0.9691 MB / 0.8698 GB, free: 13.8 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 8.466e-06/0.03788, allocations: 12 kB / 0.8698 GB, free: 13.79 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001048/0.03799, allocations: 156.8 kB / 0.8699 GB, free: 13.63 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.0382, allocations: 75.14 kB / 0.87 GB, free: 13.56 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001585/0.03979, allocations: 1.555 MB / 0.8715 GB, free: 11.96 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001034/0.03989, allocations: 191.6 kB / 0.8717 GB, free: 11.76 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 8.634e-05/0.03998, allocations: 37.45 kB / 0.8717 GB, free: 11.72 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001391/0.04012, allocations: 83.34 kB / 0.8718 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of SimCode: time 6.31e-07/0.04012, allocations: 0 / 0.8718 GB, free: 11.64 MB / 0.8386 GB Notification: Performance of Templates: time 0.01706/0.05717, allocations: 16.26 MB / 0.8877 GB, free: 11.55 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.848650013096631]