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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001554/0.001554, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001158/0.001158, allocations: 195.8 kB / 16.14 MB, free: 6.652 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.329/1.329, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.648/2.648, allocations: 461.9 MB / 0.7342 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 62.48 kB / 0.8984 GB, free: 37.26 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2612/0.2626, allocations: 157.4 MB / 1.052 GB, free: 8.812 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00273/0.2653, allocations: 1.821 MB / 1.054 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007762/0.2731, allocations: 5.668 MB / 1.059 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.2733, allocations: 4 kB / 1.059 GB, free: 1.281 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001263/0.2746, allocations: 354.6 kB / 1.06 GB, free: 0.9336 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.2748, allocations: 55.73 kB / 1.06 GB, free: 0.8789 MB / 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.003306/0.2781, allocations: 1.181 MB / 1.061 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002707/0.2784, allocations: 203.3 kB / 1.061 GB, free: 15.5 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.831e-05/0.2784, allocations: 9.562 kB / 1.061 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001076/0.2786, allocations: 59.7 kB / 1.061 GB, free: 15.43 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.2788, allocations: 180.8 kB / 1.061 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.17e-05/0.2788, allocations: 12 kB / 1.061 GB, free: 15.25 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003279/0.2821, allocations: 2.184 MB / 1.064 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002219/0.2824, allocations: 279.8 kB / 1.064 GB, free: 12.78 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0003188/0.2827, allocations: 310.1 kB / 1.064 GB, free: 12.48 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.003206/0.2859, allocations: 2.225 MB / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.439e-06/0.2859, allocations: 0 / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.52e-07/0.2859, allocations: 0 / 1.066 GB, free: 10.25 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.939e-05/0.286, allocations: 0 / 1.066 GB, free: 10.25 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.008487/0.2945, allocations: 1.359 MB / 1.068 GB, free: 8.836 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.2945, allocations: 16.02 kB / 1.068 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004443/0.295, allocations: 99.5 kB / 1.068 GB, free: 8.723 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004973/0.2955, allocations: 410.1 kB / 1.068 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.363e-05/0.2955, allocations: 4.375 kB / 1.068 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.003e-05/0.2956, allocations: 8.375 kB / 1.068 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004294/0.296, allocations: 395.4 kB / 1.069 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.296, allocations: 4 kB / 1.069 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.402e-05/0.296, allocations: 0 / 1.069 GB, free: 7.859 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.2961, allocations: 4 kB / 1.069 GB, free: 7.855 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004273/0.2965, allocations: 427.8 kB / 1.069 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006477/0.2972, allocations: 0.6654 MB / 1.07 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000506/0.2977, allocations: 0.5633 MB / 1.07 GB, free: 6.141 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003035/0.298, allocations: 345.6 kB / 1.07 GB, free: 5.797 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001058/0.2991, allocations: 1.025 MB / 1.071 GB, free: 4.551 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004019/0.2995, allocations: 420.7 kB / 1.072 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.2995, allocations: 0 / 1.072 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001321/0.3008, allocations: 1.293 MB / 1.073 GB, free: 2.82 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.3009, allocations: 85.11 kB / 1.073 GB, free: 2.719 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001212/0.3021, allocations: 1.29 MB / 1.074 GB, free: 1.418 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.164e-05/0.3021, allocations: 29.7 kB / 1.075 GB, free: 1.383 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002034/0.3023, allocations: 289.4 kB / 1.075 GB, free: 1.094 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.656e-05/0.3024, allocations: 15.72 kB / 1.075 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003342/0.3027, allocations: 351.6 kB / 1.075 GB, free: 0.7305 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.49e-05/0.3028, allocations: 318 kB / 1.075 GB, free: 424 kB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.304, allocations: 1.373 MB / 1.077 GB, free: 15.04 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.3053, allocations: 1.505 MB / 1.078 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007173/0.3125, allocations: 3.56 MB / 1.082 GB, free: 9.871 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.509e-06/0.3125, allocations: 3.938 kB / 1.082 GB, free: 9.867 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004269/0.3168, allocations: 4.014 MB / 1.086 GB, free: 5.816 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.068e-05/0.3168, allocations: 4 kB / 1.086 GB, free: 5.812 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.156e-05/0.3169, allocations: 11.94 kB / 1.086 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.615e-05/0.3169, allocations: 0 / 1.086 GB, free: 5.801 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001407/0.317, allocations: 19.97 kB / 1.086 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.317, allocations: 0 / 1.086 GB, free: 5.781 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004782/0.3175, allocations: 240.2 kB / 1.086 GB, free: 5.543 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.599e-05/0.3176, allocations: 28.02 kB / 1.086 GB, free: 5.516 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.0003161/0.3179, allocations: 245.6 kB / 1.086 GB, free: 5.266 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.095e-05/0.318, allocations: 74.62 kB / 1.086 GB, free: 5.191 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003073/0.3183, allocations: 83.72 kB / 1.086 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.3183, allocations: 0 / 1.086 GB, free: 5.102 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3183, allocations: 4.031 kB / 1.086 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3183, allocations: 0 / 1.086 GB, free: 5.098 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004563/0.3188, allocations: 0.5141 MB / 1.087 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.3188, allocations: 0 / 1.087 GB, free: 4.539 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.569e-05/0.3189, allocations: 15.92 kB / 1.087 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.3189, allocations: 0 / 1.087 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.3189, allocations: 0 / 1.087 GB, free: 4.523 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.319, allocations: 4 kB / 1.087 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.319, allocations: 0 / 1.087 GB, free: 4.52 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008858/0.3198, allocations: 1.01 MB / 1.088 GB, free: 3.488 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001313/0.32, allocations: 163.7 kB / 1.088 GB, free: 3.309 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.845e-05/0.3201, allocations: 4 kB / 1.088 GB, free: 3.305 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001605/0.3202, allocations: 3.984 kB / 1.088 GB, free: 3.301 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.806e-05/0.3203, allocations: 11.92 kB / 1.088 GB, free: 3.289 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.776e-05/0.3203, allocations: 15.98 kB / 1.088 GB, free: 3.273 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007778/0.3211, allocations: 0.7261 MB / 1.089 GB, free: 2.543 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3211, allocations: 0 / 1.089 GB, free: 2.543 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001495/0.3226, allocations: 0.5934 MB / 1.089 GB, free: 1.949 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.002274/0.3249, allocations: 0.6921 MB / 1.09 GB, free: 1.27 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002281/0.3272, allocations: 2.548 MB / 1.092 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.3272, allocations: 4.062 kB / 1.092 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003248/0.3276, allocations: 343.7 kB / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004378/0.328, allocations: 52.59 kB / 1.093 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.3303, allocations: 2.071 MB / 1.095 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005224/0.3308, allocations: 0.988 MB / 1.096 GB, free: 11.2 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0002127/0.3311, allocations: 37.42 kB / 1.096 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001218/0.3312, allocations: 35.41 kB / 1.096 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of SimCode: time 4.3e-07/0.3312, allocations: 4 kB / 1.096 GB, free: 11.12 MB / 0.8575 GB Notification: Performance of Templates: time 0.02335/0.3546, allocations: 13.88 MB / 1.109 GB, free: 13.3 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/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) Reference file matches