Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009076/0.0009076, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.0009154/0.0009154, allocations: 161 kB / 23.82 MB, free: 0.75 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 0.9199/0.9199, allocations: 177.1 MB / 204.2 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.793/1.793, allocations: 377.9 MB / 0.6236 GB, free: 8.555 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_12_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_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 0.8116 GB, free: 1.617 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.846e-05/3.058e-05, allocations: 4.703 kB / 0.8116 GB, free: 1.613 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003252/0.003283, allocations: 1.82 MB / 0.8134 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.007812/0.01109, allocations: 5.233 MB / 0.8185 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001063/0.0112, allocations: 7.938 kB / 0.8185 GB, free: 10.55 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001169/0.01237, allocations: 333 kB / 0.8189 GB, free: 10.23 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001236/0.01249, allocations: 72.38 kB / 0.8189 GB, free: 10.16 MB / 0.7761 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.003703/0.0162, allocations: 1.615 MB / 0.8205 GB, free: 8.551 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.01646, allocations: 168.3 kB / 0.8207 GB, free: 8.387 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.201e-05/0.0165, allocations: 6.938 kB / 0.8207 GB, free: 8.383 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001211/0.01662, allocations: 83.78 kB / 0.8207 GB, free: 8.301 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000224/0.01685, allocations: 152.7 kB / 0.8209 GB, free: 8.152 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 4.554e-05/0.01689, allocations: 16 kB / 0.8209 GB, free: 8.137 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003527/0.02042, allocations: 2.471 MB / 0.8233 GB, free: 5.684 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0002135/0.02063, allocations: 285.5 kB / 0.8236 GB, free: 5.402 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001659/0.0208, allocations: 167.9 kB / 0.8238 GB, free: 5.238 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.004512/0.02531, allocations: 2.512 MB / 0.8262 GB, free: 2.723 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 7.354e-06/0.02532, allocations: 0 / 0.8262 GB, free: 2.723 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.635e-06/0.02532, allocations: 0 / 0.8262 GB, free: 2.723 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 2.24e-05/0.02534, allocations: 0 / 0.8262 GB, free: 2.723 MB / 0.7761 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.004934/0.03028, allocations: 1.471 MB / 0.8276 GB, free: 1.211 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.671e-05/0.03032, allocations: 8.031 kB / 0.8277 GB, free: 1.203 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000357/0.03068, allocations: 102.5 kB / 0.8278 GB, free: 1.105 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.03115, allocations: 354.5 kB / 0.8281 GB, free: 0.7227 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.922e-05/0.03117, allocations: 4.375 kB / 0.8281 GB, free: 0.7188 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.104e-05/0.0312, allocations: 16.3 kB / 0.8281 GB, free: 0.7031 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000388/0.03159, allocations: 370.1 kB / 0.8285 GB, free: 332 kB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.0316, allocations: 192 / 0.8285 GB, free: 332 kB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.592e-05/0.03162, allocations: 4.375 kB / 0.8285 GB, free: 328 kB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.03163, allocations: 3.938 kB / 0.8285 GB, free: 324 kB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00029/0.03192, allocations: 383.8 kB / 0.8288 GB, free: 15.94 MB / 0.7917 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006358/0.03256, allocations: 0.6835 MB / 0.8295 GB, free: 15.22 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003864/0.03294, allocations: 0.5174 MB / 0.83 GB, free: 14.68 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001912/0.03313, allocations: 307.4 kB / 0.8303 GB, free: 14.37 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004862/0.03362, allocations: 139.8 kB / 0.8304 GB, free: 14.23 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002923/0.03391, allocations: 376.2 kB / 0.8308 GB, free: 13.84 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=8): time 1.453e-06/0.03391, allocations: 0 / 0.8308 GB, free: 13.84 MB / 0.7917 GB Notification: Performance of matching and sorting (n=8): time 0.0009016/0.03482, allocations: 1.172 MB / 0.8319 GB, free: 12.66 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.274e-05/0.03486, allocations: 89.17 kB / 0.832 GB, free: 12.56 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008405/0.0357, allocations: 1.272 MB / 0.8333 GB, free: 11.28 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.591e-05/0.03573, allocations: 33.7 kB / 0.8333 GB, free: 11.24 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.03594, allocations: 376.6 kB / 0.8337 GB, free: 10.86 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.892e-05/0.03598, allocations: 23.8 kB / 0.8337 GB, free: 10.84 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002909/0.03627, allocations: 402.5 kB / 0.8341 GB, free: 10.44 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001271/0.0364, allocations: 0.4964 MB / 0.8345 GB, free: 9.938 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000454/0.03685, allocations: 0.682 MB / 0.8352 GB, free: 9.254 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.03737, allocations: 0.8399 MB / 0.836 GB, free: 8.402 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001784/0.03916, allocations: 2.621 MB / 0.8386 GB, free: 5.688 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.03916, allocations: 0 / 0.8386 GB, free: 5.688 MB / 0.7917 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003147/0.04231, allocations: 4.242 MB / 0.8427 GB, free: 1.41 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.04233, allocations: 8 kB / 0.8427 GB, free: 1.402 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.171e-05/0.04235, allocations: 3.984 kB / 0.8427 GB, free: 1.398 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.995e-05/0.04237, allocations: 0 / 0.8427 GB, free: 1.398 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.04252, allocations: 31.86 kB / 0.8428 GB, free: 1.367 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.04252, allocations: 3.938 kB / 0.8428 GB, free: 1.363 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003152/0.04284, allocations: 245.4 kB / 0.843 GB, free: 1.121 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.924e-05/0.04288, allocations: 19.98 kB / 0.843 GB, free: 1.102 MB / 0.7917 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.0001832/0.04306, allocations: 168.5 kB / 0.8432 GB, free: 0.9258 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.387e-05/0.04313, allocations: 83.23 kB / 0.8433 GB, free: 0.8438 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000647/0.04377, allocations: 0.8586 MB / 0.8441 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.446e-06/0.04378, allocations: 0 / 0.8441 GB, free: 15.98 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.04378, allocations: 3.938 kB / 0.8441 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.04379, allocations: 0 / 0.8441 GB, free: 15.97 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.04418, allocations: 0.529 MB / 0.8446 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.04418, allocations: 4.031 kB / 0.8446 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.82e-05/0.04424, allocations: 4 kB / 0.8446 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.928e-06/0.04424, allocations: 0 / 0.8446 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.179e-05/0.04425, allocations: 4 kB / 0.8446 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.188e-06/0.04426, allocations: 3.984 kB / 0.8446 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.04426, allocations: 0 / 0.8446 GB, free: 15.4 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005788/0.04484, allocations: 0.9428 MB / 0.8456 GB, free: 14.43 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.711e-05/0.04491, allocations: 91.28 kB / 0.8457 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.022e-05/0.04495, allocations: 0 / 0.8457 GB, free: 14.34 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.617e-05/0.04504, allocations: 8 kB / 0.8457 GB, free: 14.33 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.016e-05/0.04508, allocations: 11.92 kB / 0.8457 GB, free: 14.32 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.128e-05/0.04511, allocations: 11.98 kB / 0.8457 GB, free: 14.31 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0004437/0.04556, allocations: 0.6012 MB / 0.8463 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1.8e-07/0.04556, allocations: 0 / 0.8463 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.00129/0.04685, allocations: 0.5962 MB / 0.8469 GB, free: 13.11 MB / 0.8073 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.001587/0.04843, allocations: 0.8045 MB / 0.8476 GB, free: 12.32 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001006/0.04944, allocations: 1.41 MB / 0.849 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.04944, allocations: 0 / 0.849 GB, free: 10.89 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001908/0.04963, allocations: 319.4 kB / 0.8493 GB, free: 10.57 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003103/0.04994, allocations: 56.64 kB / 0.8494 GB, free: 10.52 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001422/0.05136, allocations: 1.681 MB / 0.851 GB, free: 8.793 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001101/0.05148, allocations: 195.5 kB / 0.8512 GB, free: 8.582 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 9.283e-05/0.05157, allocations: 37.45 kB / 0.8512 GB, free: 8.547 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.065e-05/0.05165, allocations: 32.47 kB / 0.8513 GB, free: 8.512 MB / 0.8073 GB Notification: Performance of SimCode: time 1.353e-06/0.05165, allocations: 4 kB / 0.8513 GB, free: 8.508 MB / 0.8073 GB Notification: Performance of Templates: time 0.02216/0.07381, allocations: 16.97 MB / 0.8678 GB, free: 7.688 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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.499931076075882]