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.000995/0.000995, allocations: 92.2 kB / 20.19 MB, free: 4.363 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.0009089/0.0009089, allocations: 173 kB / 23.49 MB, free: 1.062 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.9401/0.9401, allocations: 177.1 MB / 203.8 MB, free: 5.641 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.063/2.063, allocations: 429.5 MB / 0.6736 GB, free: 4.059 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.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.834e-06/1.834e-06, allocations: 0 / 0.8783 GB, free: 6.559 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.164e-05, allocations: 2.312 kB / 0.8783 GB, free: 6.555 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002877/0.002899, allocations: 1.825 MB / 0.8801 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.007569/0.01047, allocations: 5.206 MB / 0.8851 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.84e-05/0.01057, allocations: 0 / 0.8851 GB, free: 15.54 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.001159/0.01173, allocations: 342.3 kB / 0.8855 GB, free: 15.2 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0001163/0.01184, allocations: 67.59 kB / 0.8855 GB, free: 15.13 MB / 0.8542 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.003443/0.01528, allocations: 1.589 MB / 0.8871 GB, free: 13.54 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002583/0.01554, allocations: 163.3 kB / 0.8872 GB, free: 13.38 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 4.945e-05/0.01559, allocations: 13.75 kB / 0.8873 GB, free: 13.37 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001157/0.01571, allocations: 87.72 kB / 0.8873 GB, free: 13.28 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002162/0.01592, allocations: 155.6 kB / 0.8875 GB, free: 13.13 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.781e-05/0.01596, allocations: 20 kB / 0.8875 GB, free: 13.11 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003328/0.01929, allocations: 2.402 MB / 0.8899 GB, free: 10.7 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0002302/0.01952, allocations: 283.9 kB / 0.8901 GB, free: 10.42 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001861/0.01971, allocations: 167.9 kB / 0.8903 GB, free: 10.26 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.003018/0.02273, allocations: 2.49 MB / 0.8927 GB, free: 7.762 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.02273, allocations: 4 kB / 0.8927 GB, free: 7.758 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.563e-06/0.02273, allocations: 0 / 0.8927 GB, free: 7.758 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.02274, allocations: 0 / 0.8927 GB, free: 7.758 MB / 0.8542 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.007436/0.03017, allocations: 1.474 MB / 0.8942 GB, free: 6.242 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.039e-05/0.03023, allocations: 12.03 kB / 0.8942 GB, free: 6.23 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003726/0.0306, allocations: 100.2 kB / 0.8943 GB, free: 6.133 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004598/0.03106, allocations: 350.5 kB / 0.8946 GB, free: 5.754 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.525e-05/0.03107, allocations: 8.375 kB / 0.8946 GB, free: 5.746 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.917e-05/0.03111, allocations: 8.375 kB / 0.8946 GB, free: 5.738 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004176/0.03153, allocations: 370.1 kB / 0.895 GB, free: 5.359 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.03154, allocations: 4.172 kB / 0.895 GB, free: 5.355 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.03155, allocations: 4.375 kB / 0.895 GB, free: 5.352 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.03156, allocations: 3.938 kB / 0.895 GB, free: 5.348 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.0319, allocations: 387.7 kB / 0.8954 GB, free: 4.969 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006531/0.03255, allocations: 0.668 MB / 0.896 GB, free: 4.266 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004475/0.033, allocations: 0.5251 MB / 0.8965 GB, free: 3.715 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.03325, allocations: 307.3 kB / 0.8968 GB, free: 3.406 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004964/0.03375, allocations: 143.7 kB / 0.897 GB, free: 3.266 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003528/0.0341, allocations: 376.2 kB / 0.8973 GB, free: 2.875 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=8): time 1.342e-06/0.03411, allocations: 0 / 0.8973 GB, free: 2.875 MB / 0.8542 GB Notification: Performance of matching and sorting (n=8): time 0.001167/0.03527, allocations: 1.176 MB / 0.8985 GB, free: 1.691 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.3e-05/0.03532, allocations: 85.05 kB / 0.8985 GB, free: 1.59 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007704/0.03609, allocations: 1.276 MB / 0.8998 GB, free: 312 kB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.03612, allocations: 33.64 kB / 0.8998 GB, free: 272 kB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001877/0.03631, allocations: 368.8 kB / 0.9002 GB, free: 15.89 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 3.202e-05/0.03634, allocations: 27.78 kB / 0.9002 GB, free: 15.87 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002593/0.0366, allocations: 406.5 kB / 0.9006 GB, free: 15.46 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.03671, allocations: 0.4965 MB / 0.9011 GB, free: 14.96 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004397/0.03715, allocations: 0.6742 MB / 0.9017 GB, free: 14.29 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005118/0.03767, allocations: 0.8476 MB / 0.9026 GB, free: 13.43 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001727/0.03939, allocations: 2.621 MB / 0.9051 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.03939, allocations: 0 / 0.9051 GB, free: 10.71 MB / 0.8698 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002848/0.04224, allocations: 4.246 MB / 0.9093 GB, free: 6.43 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.04226, allocations: 8 kB / 0.9093 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.254e-05/0.04227, allocations: 0 / 0.9093 GB, free: 6.422 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.309e-05/0.04228, allocations: 4 kB / 0.9093 GB, free: 6.418 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.04239, allocations: 27.67 kB / 0.9093 GB, free: 6.395 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.0424, allocations: 0 / 0.9093 GB, free: 6.395 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002656/0.04266, allocations: 245.4 kB / 0.9095 GB, free: 6.152 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.259e-05/0.0427, allocations: 23.98 kB / 0.9096 GB, free: 6.129 MB / 0.8698 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.0001257/0.04282, allocations: 164.6 kB / 0.9097 GB, free: 5.957 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.377e-05/0.04287, allocations: 75.3 kB / 0.9098 GB, free: 5.883 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005775/0.04344, allocations: 0.8625 MB / 0.9106 GB, free: 5.008 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.04345, allocations: 3.938 kB / 0.9106 GB, free: 5.004 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.407e-06/0.04345, allocations: 0 / 0.9106 GB, free: 5.004 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.098e-06/0.04345, allocations: 3.984 kB / 0.9106 GB, free: 5 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000321/0.04377, allocations: 0.5329 MB / 0.9112 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.04378, allocations: 0 / 0.9112 GB, free: 4.438 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.506e-05/0.04381, allocations: 4 kB / 0.9112 GB, free: 4.434 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.04381, allocations: 4 kB / 0.9112 GB, free: 4.43 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.04382, allocations: 3.984 kB / 0.9112 GB, free: 4.426 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.04383, allocations: 0 / 0.9112 GB, free: 4.426 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.04383, allocations: 3.938 kB / 0.9112 GB, free: 4.422 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005961/0.04442, allocations: 0.939 MB / 0.9121 GB, free: 3.457 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.49e-05/0.04448, allocations: 83.3 kB / 0.9122 GB, free: 3.375 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.969e-05/0.04452, allocations: 4 kB / 0.9122 GB, free: 3.371 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.09e-05/0.04459, allocations: 7.984 kB / 0.9122 GB, free: 3.363 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.403e-05/0.04462, allocations: 11.94 kB / 0.9122 GB, free: 3.352 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.011e-05/0.04464, allocations: 11.97 kB / 0.9122 GB, free: 3.34 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0004018/0.04505, allocations: 0.5973 MB / 0.9128 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7e-08/0.04505, allocations: 0 / 0.9128 GB, free: 2.738 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.001023/0.04607, allocations: 0.6001 MB / 0.9134 GB, free: 2.137 MB / 0.8698 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.001275/0.04734, allocations: 0.8112 MB / 0.9142 GB, free: 1.348 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0009205/0.04826, allocations: 1.406 MB / 0.9155 GB, free: 15.92 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.04827, allocations: 8 kB / 0.9155 GB, free: 15.91 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.000175/0.04844, allocations: 303.5 kB / 0.9158 GB, free: 15.61 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002662/0.04871, allocations: 53.89 kB / 0.9159 GB, free: 15.56 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001243/0.04995, allocations: 1.689 MB / 0.9175 GB, free: 13.83 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001013/0.05005, allocations: 191.6 kB / 0.9177 GB, free: 13.62 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 8.207e-05/0.05013, allocations: 37.45 kB / 0.9178 GB, free: 13.59 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.913e-05/0.0502, allocations: 32.48 kB / 0.9178 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of SimCode: time 7.12e-07/0.0502, allocations: 3.938 kB / 0.9178 GB, free: 13.55 MB / 0.8855 GB Notification: Performance of Templates: time 0.01694/0.06715, allocations: 15.03 MB / 0.9325 GB, free: 14.66 MB / 0.9011 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 -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.6383847910910845]