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.0008806/0.0008806, allocations: 80.48 kB / 19.93 MB, free: 4.629 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.0008677/0.0008677, allocations: 177.9 kB / 23.21 MB, free: 1.348 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.9049/0.9049, allocations: 177.1 MB / 203.5 MB, free: 5.754 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 1.811/1.811, allocations: 389 MB / 0.6338 GB, free: 12.69 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.1 (/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.412e-06/1.412e-06, allocations: 0 / 1.001 GB, free: 12.94 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.618e-05/2.759e-05, allocations: 6.281 kB / 1.001 GB, free: 12.93 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002069/0.002097, allocations: 1.722 MB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.005178/0.007275, allocations: 4.899 MB / 1.007 GB, free: 6.281 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.533e-05/0.007351, allocations: 7.875 kB / 1.007 GB, free: 6.273 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 0.0009137/0.008264, allocations: 338.4 kB / 1.008 GB, free: 5.941 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 7.462e-05/0.008339, allocations: 67.59 kB / 1.008 GB, free: 5.875 MB / 0.9636 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.00235/0.01069, allocations: 1.595 MB / 1.009 GB, free: 4.281 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 0.0002117/0.0109, allocations: 175.2 kB / 1.01 GB, free: 4.109 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 4.382e-05/0.01094, allocations: 5.812 kB / 1.01 GB, free: 4.102 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 8.354e-05/0.01103, allocations: 75.8 kB / 1.01 GB, free: 4.027 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000165/0.01119, allocations: 155.6 kB / 1.01 GB, free: 3.875 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 2.836e-05/0.01122, allocations: 16 kB / 1.01 GB, free: 3.859 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00245/0.01367, allocations: 2.409 MB / 1.012 GB, free: 1.445 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 0.0001579/0.01383, allocations: 279.9 kB / 1.012 GB, free: 1.172 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.01395, allocations: 171.9 kB / 1.013 GB, free: 1.004 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.002261/0.01621, allocations: 2.51 MB / 1.015 GB, free: 14.49 MB / 0.9792 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.01622, allocations: 0 / 1.015 GB, free: 14.49 MB / 0.9792 GB Notification: Performance of FrontEnd: time 1.232e-06/0.01622, allocations: 4 kB / 1.015 GB, free: 14.48 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.01623, allocations: 0 / 1.015 GB, free: 14.48 MB / 0.9792 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.004272/0.0205, allocations: 1.342 MB / 1.016 GB, free: 13.11 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.02054, allocations: 8.75 kB / 1.016 GB, free: 13.1 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002621/0.0208, allocations: 96.2 kB / 1.016 GB, free: 13 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004066/0.02121, allocations: 351.7 kB / 1.017 GB, free: 12.62 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.424e-05/0.02122, allocations: 8.359 kB / 1.017 GB, free: 12.62 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.735e-05/0.02125, allocations: 16.38 kB / 1.017 GB, free: 12.6 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003103/0.02156, allocations: 387.7 kB / 1.017 GB, free: 12.21 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.856e-06/0.02157, allocations: 4.125 kB / 1.017 GB, free: 12.21 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.214e-05/0.02158, allocations: 384 / 1.017 GB, free: 12.21 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.02159, allocations: 3.938 kB / 1.017 GB, free: 12.2 MB / 0.9792 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002879/0.02187, allocations: 435.7 kB / 1.018 GB, free: 11.78 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004962/0.02237, allocations: 0.5976 MB / 1.018 GB, free: 11.15 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003569/0.02273, allocations: 0.5594 MB / 1.019 GB, free: 10.57 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001957/0.02292, allocations: 333.7 kB / 1.019 GB, free: 10.24 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003591/0.02328, allocations: 135.9 kB / 1.019 GB, free: 10.11 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002698/0.02355, allocations: 408.8 kB / 1.02 GB, free: 9.688 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.02355, allocations: 4 kB / 1.02 GB, free: 9.684 MB / 0.9792 GB Notification: Performance of matching and sorting (n=8): time 0.0008988/0.02445, allocations: 1.293 MB / 1.021 GB, free: 8.383 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.183e-05/0.02449, allocations: 85.05 kB / 1.021 GB, free: 8.281 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008046/0.0253, allocations: 1.294 MB / 1.022 GB, free: 6.977 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 2.601e-05/0.02532, allocations: 33.7 kB / 1.022 GB, free: 6.938 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.02547, allocations: 297.9 kB / 1.023 GB, free: 6.641 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.0255, allocations: 15.86 kB / 1.023 GB, free: 6.625 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.02572, allocations: 343.8 kB / 1.023 GB, free: 6.285 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 8.309e-05/0.0258, allocations: 322 kB / 1.023 GB, free: 5.965 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007808/0.02658, allocations: 1.373 MB / 1.025 GB, free: 4.59 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009056/0.02749, allocations: 1.509 MB / 1.026 GB, free: 3.07 MB / 0.9792 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00451/0.032, allocations: 3.556 MB / 1.029 GB, free: 15.43 MB / 0.9948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.032, allocations: 0 / 1.029 GB, free: 15.43 MB / 0.9948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002984/0.03499, allocations: 4.015 MB / 1.033 GB, free: 11.38 MB / 0.9948 GB Notification: Performance of prepare postOptimizeDAE: time 2.094e-05/0.03501, allocations: 4 kB / 1.033 GB, free: 11.37 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.501e-05/0.03502, allocations: 4 kB / 1.033 GB, free: 11.37 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.03504, allocations: 0 / 1.033 GB, free: 11.37 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.017e-05/0.03513, allocations: 23.86 kB / 1.033 GB, free: 11.34 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.074e-06/0.03514, allocations: 4 kB / 1.033 GB, free: 11.34 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002792/0.03541, allocations: 241.3 kB / 1.034 GB, free: 11.1 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.509e-05/0.03545, allocations: 32.02 kB / 1.034 GB, free: 11.07 MB / 0.9948 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.0002169/0.03567, allocations: 245.7 kB / 1.034 GB, free: 10.82 MB / 0.9948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.372e-05/0.03571, allocations: 79.25 kB / 1.034 GB, free: 10.74 MB / 0.9948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006535/0.03636, allocations: 0.9446 MB / 1.035 GB, free: 9.781 MB / 0.9948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.03637, allocations: 0 / 1.035 GB, free: 9.781 MB / 0.9948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.03637, allocations: 7.938 kB / 1.035 GB, free: 9.773 MB / 0.9948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.03638, allocations: 3.984 kB / 1.035 GB, free: 9.77 MB / 0.9948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002864/0.03667, allocations: 464.4 kB / 1.035 GB, free: 9.289 MB / 0.9948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.03667, allocations: 4 kB / 1.035 GB, free: 9.285 MB / 0.9948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.938e-05/0.03671, allocations: 7.984 kB / 1.035 GB, free: 9.277 MB / 0.9948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.03671, allocations: 0 / 1.035 GB, free: 9.277 MB / 0.9948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.06e-05/0.03672, allocations: 4 kB / 1.035 GB, free: 9.273 MB / 0.9948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.03672, allocations: 3.938 kB / 1.035 GB, free: 9.27 MB / 0.9948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/0.03673, allocations: 4 kB / 1.035 GB, free: 9.266 MB / 0.9948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005887/0.03731, allocations: 1.018 MB / 1.036 GB, free: 8.227 MB / 0.9948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.968e-05/0.03737, allocations: 91.23 kB / 1.036 GB, free: 8.137 MB / 0.9948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.885e-05/0.03741, allocations: 4 kB / 1.036 GB, free: 8.133 MB / 0.9948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.03749, allocations: 7.984 kB / 1.036 GB, free: 8.125 MB / 0.9948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.285e-05/0.03752, allocations: 7.938 kB / 1.036 GB, free: 8.117 MB / 0.9948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.902e-05/0.03755, allocations: 15.97 kB / 1.036 GB, free: 8.102 MB / 0.9948 GB Notification: Performance of sorting global known variables: time 0.000511/0.03806, allocations: 0.7183 MB / 1.037 GB, free: 7.379 MB / 0.9948 GB Notification: Performance of sort global known variables: time 6e-08/0.03806, allocations: 0 / 1.037 GB, free: 7.379 MB / 0.9948 GB Notification: Performance of remove unused functions: time 0.001214/0.03927, allocations: 0.5923 MB / 1.038 GB, free: 6.785 MB / 0.9948 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.001317/0.04059, allocations: 0.7919 MB / 1.039 GB, free: 6.008 MB / 0.9948 GB Notification: Performance of simCode: created initialization part: time 0.001347/0.04194, allocations: 1.997 MB / 1.041 GB, free: 3.996 MB / 0.9948 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.04194, allocations: 3.938 kB / 1.041 GB, free: 3.992 MB / 0.9948 GB Notification: Performance of simCode: created simulation system equations: time 0.0002145/0.04215, allocations: 331.8 kB / 1.041 GB, free: 3.668 MB / 0.9948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00028/0.04243, allocations: 72.75 kB / 1.041 GB, free: 3.594 MB / 0.9948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001496/0.04393, allocations: 1.918 MB / 1.043 GB, free: 1.633 MB / 0.9948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.04415, allocations: 393.8 kB / 1.043 GB, free: 1.223 MB / 0.9948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.625e-05/0.04423, allocations: 32.47 kB / 1.043 GB, free: 1.191 MB / 0.9948 GB Notification: Performance of SimCode: time 7.71e-07/0.04423, allocations: 0 / 1.043 GB, free: 1.191 MB / 0.9948 GB Notification: Performance of Templates: time 0.01359/0.05782, allocations: 15.09 MB / 1.058 GB, free: 2.125 MB / 1.01 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=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 800] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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: 10.136342614889145]