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.001738/0.001738, allocations: 111.5 kB / 17.13 MB, free: 6.008 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.002305/0.002305, allocations: 213.8 kB / 20.1 MB, free: 3.055 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.576/1.576, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.017/3.017, allocations: 0.49 GB / 0.7923 GB, free: 1.262 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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: 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.002078/0.002078, allocations: 72.08 kB / 1.15 GB, free: 14.78 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.213/1.215, allocations: 176.1 MB / 1.322 GB, free: 25.07 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002693/1.217, allocations: 1.793 MB / 1.324 GB, free: 23.82 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.007068/1.224, allocations: 5.453 MB / 1.329 GB, free: 20.12 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001339/1.225, allocations: 4.438 kB / 1.329 GB, free: 20.11 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001346/1.226, allocations: 379.2 kB / 1.329 GB, free: 19.95 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001305/1.226, allocations: 55.62 kB / 1.33 GB, free: 19.92 MB / 1.061 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.004921/1.231, allocations: 1.522 MB / 1.331 GB, free: 19.33 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0003203/1.231, allocations: 158.1 kB / 1.331 GB, free: 19.28 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 6.022e-05/1.231, allocations: 10.16 kB / 1.331 GB, free: 19.27 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 9.207e-05/1.231, allocations: 62.39 kB / 1.331 GB, free: 19.25 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000261/1.232, allocations: 174.5 kB / 1.331 GB, free: 19.2 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 4.511e-05/1.232, allocations: 14.28 kB / 1.331 GB, free: 19.2 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004861/1.237, allocations: 2.347 MB / 1.334 GB, free: 18.49 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.000341/1.237, allocations: 281.5 kB / 1.334 GB, free: 18.41 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0003583/1.237, allocations: 305.7 kB / 1.334 GB, free: 18.21 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.005829/1.243, allocations: 2.198 MB / 1.336 GB, free: 17.56 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/1.243, allocations: 0 / 1.336 GB, free: 17.56 MB / 1.061 GB Notification: Performance of FrontEnd: time 2.254e-06/1.243, allocations: 0 / 1.336 GB, free: 17.56 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.306e-05/1.243, allocations: 1.438 kB / 1.336 GB, free: 17.56 MB / 1.061 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.01217/1.255, allocations: 1.42 MB / 1.338 GB, free: 16.55 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 6.966e-05/1.255, allocations: 12.2 kB / 1.338 GB, free: 16.54 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006441/1.256, allocations: 103.3 kB / 1.338 GB, free: 16.48 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008845/1.257, allocations: 403.5 kB / 1.338 GB, free: 16.16 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.372e-05/1.257, allocations: 12.03 kB / 1.338 GB, free: 16.16 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.404e-05/1.257, allocations: 9.188 kB / 1.338 GB, free: 16.15 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006771/1.258, allocations: 397.1 kB / 1.339 GB, free: 16.09 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.163e-05/1.258, allocations: 1.594 kB / 1.339 GB, free: 16.09 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/1.258, allocations: 0.6562 kB / 1.339 GB, free: 16.09 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.764e-06/1.258, allocations: 5.312 kB / 1.339 GB, free: 16.08 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006949/1.258, allocations: 432.5 kB / 1.339 GB, free: 16.08 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001205/1.26, allocations: 0.6832 MB / 1.34 GB, free: 15.66 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009358/1.261, allocations: 0.5525 MB / 1.34 GB, free: 15.61 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006237/1.261, allocations: 332.8 kB / 1.341 GB, free: 15.59 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001175/1.262, allocations: 1.029 MB / 1.342 GB, free: 14.46 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007042/1.263, allocations: 412.8 kB / 1.342 GB, free: 14.37 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 4.268e-06/1.263, allocations: 0 / 1.342 GB, free: 14.37 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.002482/1.266, allocations: 1.302 MB / 1.343 GB, free: 14.25 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.131e-05/1.266, allocations: 84.64 kB / 1.343 GB, free: 14.15 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/1.268, allocations: 1.287 MB / 1.345 GB, free: 13.65 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0001224/1.268, allocations: 30.8 kB / 1.345 GB, free: 13.61 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002175/1.268, allocations: 290.9 kB / 1.345 GB, free: 13.39 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 4.345e-05/1.268, allocations: 30.02 kB / 1.345 GB, free: 13.37 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004525/1.268, allocations: 354.4 kB / 1.345 GB, free: 13.27 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.291e-05/1.269, allocations: 317.4 kB / 1.346 GB, free: 12.96 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001833/1.27, allocations: 1.371 MB / 1.347 GB, free: 12.5 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002062/1.272, allocations: 1.504 MB / 1.348 GB, free: 11.98 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00781/1.28, allocations: 3.561 MB / 1.352 GB, free: 10.13 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.374e-06/1.28, allocations: 0 / 1.352 GB, free: 10.13 MB / 1.061 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005493/1.286, allocations: 4.021 MB / 1.356 GB, free: 8.141 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.091e-05/1.286, allocations: 6.438 kB / 1.356 GB, free: 8.141 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.647e-05/1.286, allocations: 2.938 kB / 1.356 GB, free: 8.141 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.396e-05/1.286, allocations: 2.188 kB / 1.356 GB, free: 8.141 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001564/1.286, allocations: 22.83 kB / 1.356 GB, free: 8.133 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/1.286, allocations: 2.188 kB / 1.356 GB, free: 8.133 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008498/1.287, allocations: 244.2 kB / 1.356 GB, free: 7.934 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.473e-05/1.287, allocations: 27.22 kB / 1.356 GB, free: 7.93 MB / 1.061 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.0004624/1.287, allocations: 252.3 kB / 1.356 GB, free: 7.801 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.218e-05/1.287, allocations: 81.12 kB / 1.356 GB, free: 7.738 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002949/1.288, allocations: 81.33 kB / 1.357 GB, free: 7.68 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/1.288, allocations: 1.375 kB / 1.357 GB, free: 7.68 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.374e-06/1.288, allocations: 1.594 kB / 1.357 GB, free: 7.68 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/1.288, allocations: 0.7031 kB / 1.357 GB, free: 7.68 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006394/1.288, allocations: 0.5133 MB / 1.357 GB, free: 7.398 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/1.288, allocations: 0.5625 kB / 1.357 GB, free: 7.398 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.228e-05/1.288, allocations: 15.17 kB / 1.357 GB, free: 7.391 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/1.288, allocations: 2.109 kB / 1.357 GB, free: 7.391 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.692e-05/1.288, allocations: 10.72 kB / 1.357 GB, free: 7.383 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.895e-06/1.288, allocations: 5.734 kB / 1.357 GB, free: 7.379 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.705e-06/1.288, allocations: 1.188 kB / 1.357 GB, free: 7.379 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/1.29, allocations: 1.009 MB / 1.358 GB, free: 7.223 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/1.29, allocations: 166.7 kB / 1.358 GB, free: 7.066 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.853e-05/1.29, allocations: 1.938 kB / 1.358 GB, free: 7.066 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001533/1.29, allocations: 13.58 kB / 1.358 GB, free: 7.059 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.94e-05/1.29, allocations: 4.906 kB / 1.358 GB, free: 7.059 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.701e-05/1.29, allocations: 12.86 kB / 1.358 GB, free: 7.059 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001071/1.291, allocations: 0.7233 MB / 1.359 GB, free: 6.816 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/1.291, allocations: 3.938 kB / 1.359 GB, free: 6.812 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.003211/1.294, allocations: 0.5928 MB / 1.36 GB, free: 6.703 MB / 1.061 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.002728/1.297, allocations: 0.7076 MB / 1.36 GB, free: 6.438 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002959/1.3, allocations: 2 MB / 1.362 GB, free: 5.887 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.065e-06/1.3, allocations: 0 / 1.362 GB, free: 5.887 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0005013/1.301, allocations: 332 kB / 1.362 GB, free: 5.883 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005979/1.301, allocations: 63.97 kB / 1.363 GB, free: 5.84 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002959/1.304, allocations: 1.941 MB / 1.364 GB, free: 5.16 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006137/1.305, allocations: 0.9848 MB / 1.365 GB, free: 4.461 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001757/1.305, allocations: 27.28 kB / 1.365 GB, free: 4.453 MB / 1.061 GB Notification: Performance of SimCode: time 8.92e-07/1.305, allocations: 0 / 1.365 GB, free: 4.453 MB / 1.061 GB Notification: Performance of Templates: time 0.03596/1.341, allocations: 14.72 MB / 1.38 GB, free: 2.566 MB / 1.061 GB " [Timeout remaining time 299] 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 400] 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time [Calling sys.exit(0), Time elapsed: 17.69037887500599]