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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.006497/0.006497, allocations: 101.7 kB / 15.88 MB, free: 5.867 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001245/0.001245, allocations: 192.9 kB / 16.79 MB, free: 5.809 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 222.9 MB / 240.5 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.803/2.803, allocations: 461.8 MB / 0.7348 GB, free: 14.18 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 70.17 kB / 0.8991 GB, free: 37.07 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.355/0.3563, allocations: 157.4 MB / 1.053 GB, free: 8.25 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003733/0.3601, allocations: 1.817 MB / 1.055 GB, free: 6.414 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.008335/0.3685, allocations: 5.669 MB / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001651/0.3687, allocations: 0 / 1.06 GB, free: 0.7266 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001367/0.3701, allocations: 358.6 kB / 1.06 GB, free: 384 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001915/0.3703, allocations: 55.73 kB / 1.06 GB, free: 328 kB / 0.8106 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.003571/0.3739, allocations: 1.173 MB / 1.062 GB, free: 15.15 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0003001/0.3742, allocations: 199.3 kB / 1.062 GB, free: 14.95 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 5.343e-05/0.3743, allocations: 13.55 kB / 1.062 GB, free: 14.94 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001035/0.3744, allocations: 51.8 kB / 1.062 GB, free: 14.89 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002563/0.3747, allocations: 184.7 kB / 1.062 GB, free: 14.71 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 6.376e-05/0.3747, allocations: 20 kB / 1.062 GB, free: 14.69 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003453/0.3782, allocations: 2.18 MB / 1.064 GB, free: 12.51 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002331/0.3784, allocations: 275.8 kB / 1.064 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003202/0.3788, allocations: 306.1 kB / 1.065 GB, free: 11.93 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002268/0.3811, allocations: 1.555 MB / 1.066 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3811, allocations: 0 / 1.066 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3811, allocations: 0 / 1.066 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 2.098e-05/0.3811, allocations: 0 / 1.066 GB, free: 10.38 MB / 0.8262 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.008236/0.3893, allocations: 1.367 MB / 1.068 GB, free: 8.957 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.758e-05/0.3894, allocations: 11.97 kB / 1.068 GB, free: 8.945 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004574/0.3899, allocations: 103.5 kB / 1.068 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005311/0.3904, allocations: 402.2 kB / 1.068 GB, free: 8.402 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.833e-05/0.3905, allocations: 12.3 kB / 1.068 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.453e-05/0.3905, allocations: 8.375 kB / 1.068 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000447/0.391, allocations: 391.4 kB / 1.069 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.391, allocations: 0 / 1.069 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.555e-05/0.391, allocations: 4 kB / 1.069 GB, free: 7.984 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.391, allocations: 4 kB / 1.069 GB, free: 7.98 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004221/0.3914, allocations: 431.7 kB / 1.069 GB, free: 7.559 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006863/0.3921, allocations: 0.6693 MB / 1.07 GB, free: 6.84 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00051/0.3927, allocations: 0.5633 MB / 1.07 GB, free: 6.258 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003055/0.393, allocations: 337.7 kB / 1.07 GB, free: 5.922 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001077/0.3941, allocations: 1.028 MB / 1.071 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004092/0.3945, allocations: 416.7 kB / 1.072 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.3945, allocations: 0 / 1.072 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001341/0.3958, allocations: 1.293 MB / 1.073 GB, free: 2.945 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.729e-05/0.3959, allocations: 89.17 kB / 1.073 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.3972, allocations: 1.29 MB / 1.074 GB, free: 1.539 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.382e-05/0.3973, allocations: 33.7 kB / 1.074 GB, free: 1.5 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.00022/0.3975, allocations: 285.4 kB / 1.075 GB, free: 1.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.321e-05/0.3975, allocations: 19.7 kB / 1.075 GB, free: 1.195 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003497/0.3979, allocations: 351.6 kB / 1.075 GB, free: 0.8477 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001185/0.398, allocations: 322 kB / 1.075 GB, free: 0.5273 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.3992, allocations: 1.369 MB / 1.077 GB, free: 15.16 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001281/0.4005, allocations: 1.513 MB / 1.078 GB, free: 13.63 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006961/0.4075, allocations: 3.556 MB / 1.082 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.4075, allocations: 0 / 1.082 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004476/0.412, allocations: 4.018 MB / 1.086 GB, free: 5.93 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.244e-05/0.412, allocations: 4 kB / 1.086 GB, free: 5.926 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.051e-05/0.4121, allocations: 4 kB / 1.086 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.4121, allocations: 0 / 1.086 GB, free: 5.922 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001433/0.4122, allocations: 15.98 kB / 1.086 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/0.4123, allocations: 0 / 1.086 GB, free: 5.906 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004995/0.4128, allocations: 236.2 kB / 1.086 GB, free: 5.672 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.4128, allocations: 23.98 kB / 1.086 GB, free: 5.648 MB / 0.8419 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.0003547/0.4132, allocations: 253.6 kB / 1.086 GB, free: 5.391 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.387e-05/0.4133, allocations: 74.62 kB / 1.086 GB, free: 5.316 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003297/0.4136, allocations: 87.72 kB / 1.086 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4136, allocations: 0 / 1.086 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.4137, allocations: 0 / 1.086 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.4137, allocations: 0 / 1.086 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004987/0.4142, allocations: 0.518 MB / 1.087 GB, free: 4.66 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.784e-06/0.4142, allocations: 0 / 1.087 GB, free: 4.66 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.792e-05/0.4143, allocations: 15.92 kB / 1.087 GB, free: 4.645 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.918e-06/0.4143, allocations: 3.938 kB / 1.087 GB, free: 4.641 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.395e-05/0.4143, allocations: 0 / 1.087 GB, free: 4.641 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.4143, allocations: 4 kB / 1.087 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.4143, allocations: 0 / 1.087 GB, free: 4.637 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000925/0.4152, allocations: 1.002 MB / 1.088 GB, free: 3.613 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001479/0.4154, allocations: 163.7 kB / 1.088 GB, free: 3.434 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.945e-05/0.4155, allocations: 4 kB / 1.088 GB, free: 3.43 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001558/0.4157, allocations: 3.984 kB / 1.088 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.832e-05/0.4157, allocations: 4 kB / 1.088 GB, free: 3.422 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.832e-05/0.4157, allocations: 15.97 kB / 1.088 GB, free: 3.406 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008094/0.4166, allocations: 0.73 MB / 1.089 GB, free: 2.672 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4166, allocations: 0 / 1.089 GB, free: 2.672 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001638/0.4182, allocations: 0.5935 MB / 1.089 GB, free: 2.078 MB / 0.8419 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.002592/0.4208, allocations: 0.6939 MB / 1.09 GB, free: 1.395 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002287/0.4231, allocations: 2.552 MB / 1.092 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.4231, allocations: 0 / 1.092 GB, free: 14.83 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.4235, allocations: 343.8 kB / 1.093 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004246/0.4239, allocations: 60.56 kB / 1.093 GB, free: 14.43 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.4264, allocations: 2.108 MB / 1.095 GB, free: 12.29 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000533/0.427, allocations: 0.9919 MB / 1.096 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001192/0.4271, allocations: 27.41 kB / 1.096 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of SimCode: time 3.1e-07/0.4271, allocations: 0 / 1.096 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of Templates: time 0.02346/0.4506, allocations: 14.48 MB / 1.11 GB, free: 12.78 MB / 0.8731 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) 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/jenkins1/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) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time