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.0008219/0.0008219, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005025/0.005025, allocations: 169.6 kB / 16.26 MB, free: 6.676 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.313/1.313, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.698/2.698, allocations: 462.7 MB / 0.7364 GB, free: 228 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003505/0.0003505, allocations: 12.69 kB / 0.9028 GB, free: 36.62 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2676/0.268, allocations: 159.6 MB / 1.059 GB, free: 5.406 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002016/0.27, allocations: 1.478 MB / 1.06 GB, free: 3.914 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007552/0.2776, allocations: 5.559 MB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001035/0.2778, allocations: 3.938 kB / 1.066 GB, free: 14.33 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.00108/0.2789, allocations: 354.6 kB / 1.066 GB, free: 13.98 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001148/0.279, allocations: 55.8 kB / 1.066 GB, free: 13.93 MB / 0.8262 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.002939/0.2819, allocations: 1.173 MB / 1.067 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002517/0.2822, allocations: 207.3 kB / 1.067 GB, free: 12.55 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.164e-05/0.2822, allocations: 9.562 kB / 1.067 GB, free: 12.54 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.581e-05/0.2823, allocations: 55.72 kB / 1.067 GB, free: 12.49 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002258/0.2826, allocations: 180.8 kB / 1.068 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.611e-05/0.2826, allocations: 20 kB / 1.068 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003051/0.2857, allocations: 2.176 MB / 1.07 GB, free: 10.11 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.000221/0.2859, allocations: 279.8 kB / 1.07 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.2862, allocations: 335.8 kB / 1.07 GB, free: 9.5 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.002825/0.289, allocations: 2.221 MB / 1.072 GB, free: 7.273 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 9.097e-06/0.289, allocations: 4 kB / 1.072 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of FrontEnd: time 3.487e-06/0.289, allocations: 0 / 1.072 GB, free: 7.27 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 1.002e-05/0.2891, allocations: 3.938 kB / 1.072 GB, free: 7.266 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.01118/0.3002, allocations: 1.3 MB / 1.074 GB, free: 5.914 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3003, allocations: 8.031 kB / 1.074 GB, free: 5.906 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003839/0.3007, allocations: 103.6 kB / 1.074 GB, free: 5.805 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004441/0.3011, allocations: 406.2 kB / 1.074 GB, free: 5.359 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.693e-05/0.3012, allocations: 16.3 kB / 1.074 GB, free: 5.344 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.344e-05/0.3012, allocations: 4.375 kB / 1.074 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.3016, allocations: 387.5 kB / 1.075 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.3016, allocations: 0 / 1.075 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.3017, allocations: 4 kB / 1.075 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.3017, allocations: 4 kB / 1.075 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004122/0.3021, allocations: 435.7 kB / 1.075 GB, free: 4.516 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006105/0.3027, allocations: 0.6693 MB / 1.076 GB, free: 3.797 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004868/0.3032, allocations: 0.5633 MB / 1.076 GB, free: 3.215 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.3035, allocations: 341.7 kB / 1.077 GB, free: 2.875 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009714/0.3045, allocations: 1.04 MB / 1.078 GB, free: 1.613 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003886/0.3049, allocations: 404.8 kB / 1.078 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.3049, allocations: 0 / 1.078 GB, free: 1.199 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001285/0.3062, allocations: 1.297 MB / 1.079 GB, free: 15.89 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.3063, allocations: 89.08 kB / 1.079 GB, free: 15.79 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001201/0.3075, allocations: 1.293 MB / 1.081 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 5.336e-05/0.3075, allocations: 33.64 kB / 1.081 GB, free: 14.45 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001951/0.3078, allocations: 281.4 kB / 1.081 GB, free: 14.16 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.196e-05/0.3078, allocations: 19.8 kB / 1.081 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002303/0.308, allocations: 283.7 kB / 1.081 GB, free: 13.86 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 9.988e-05/0.3081, allocations: 326 kB / 1.081 GB, free: 13.54 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.3093, allocations: 1.373 MB / 1.083 GB, free: 12.16 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001254/0.3106, allocations: 1.501 MB / 1.084 GB, free: 10.65 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007285/0.3179, allocations: 3.564 MB / 1.088 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.392e-06/0.3179, allocations: 0 / 1.088 GB, free: 6.996 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004717/0.3226, allocations: 4.018 MB / 1.092 GB, free: 2.941 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.3227, allocations: 5.875 kB / 1.092 GB, free: 2.938 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.411e-05/0.3227, allocations: 7.984 kB / 1.092 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.3227, allocations: 0 / 1.092 GB, free: 2.93 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001555/0.3229, allocations: 12 kB / 1.092 GB, free: 2.918 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.3229, allocations: 4 kB / 1.092 GB, free: 2.914 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005303/0.3235, allocations: 232.3 kB / 1.092 GB, free: 2.684 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.983e-05/0.3235, allocations: 27.98 kB / 1.092 GB, free: 2.656 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.0003201/0.3239, allocations: 245.6 kB / 1.092 GB, free: 2.406 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.55e-05/0.3239, allocations: 78.62 kB / 1.092 GB, free: 2.328 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002931/0.3242, allocations: 79.81 kB / 1.092 GB, free: 2.242 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.3242, allocations: 0 / 1.092 GB, free: 2.242 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.532e-06/0.3243, allocations: 8.031 kB / 1.092 GB, free: 2.234 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.3243, allocations: 3.984 kB / 1.092 GB, free: 2.23 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004367/0.3247, allocations: 0.5102 MB / 1.093 GB, free: 1.676 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3247, allocations: 4 kB / 1.093 GB, free: 1.672 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.318e-05/0.3248, allocations: 11.88 kB / 1.093 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.3248, allocations: 0 / 1.093 GB, free: 1.66 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.3248, allocations: 7.984 kB / 1.093 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3248, allocations: 0 / 1.093 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.412e-06/0.3249, allocations: 0 / 1.093 GB, free: 1.652 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008832/0.3257, allocations: 1.002 MB / 1.094 GB, free: 0.6289 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001186/0.3259, allocations: 171.6 kB / 1.094 GB, free: 452 kB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.266e-05/0.3259, allocations: 4 kB / 1.094 GB, free: 448 kB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001528/0.3261, allocations: 4 kB / 1.094 GB, free: 444 kB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.522e-05/0.3261, allocations: 7.984 kB / 1.094 GB, free: 436 kB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-05/0.3262, allocations: 15.98 kB / 1.094 GB, free: 420 kB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007642/0.327, allocations: 0.726 MB / 1.095 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.794e-06/0.327, allocations: 0 / 1.095 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001475/0.3284, allocations: 0.6012 MB / 1.095 GB, free: 15.08 MB / 0.8575 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.00178/0.3302, allocations: 0.6889 MB / 1.096 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002231/0.3325, allocations: 2.548 MB / 1.099 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3325, allocations: 0 / 1.099 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.3328, allocations: 339.8 kB / 1.099 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004493/0.3333, allocations: 61.28 kB / 1.099 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002331/0.3356, allocations: 2.082 MB / 1.101 GB, free: 9.324 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005251/0.3362, allocations: 0.992 MB / 1.102 GB, free: 8.305 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001858/0.3364, allocations: 37.42 kB / 1.102 GB, free: 8.27 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.999e-05/0.3365, allocations: 27.42 kB / 1.102 GB, free: 8.242 MB / 0.8575 GB Notification: Performance of SimCode: time 5.71e-07/0.3365, allocations: 4 kB / 1.102 GB, free: 8.238 MB / 0.8575 GB Notification: Performance of Templates: time 0.02311/0.3596, allocations: 13.78 MB / 1.115 GB, free: 10.52 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