Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001347/0.001347, allocations: 102.5 kB / 16.27 MB, free: 5.98 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.001493/0.001493, allocations: 189.8 kB / 17.19 MB, free: 5.605 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.392/1.392, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.517/2.517, allocations: 437 MB / 0.711 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002081/0.002082, allocations: 67.88 kB / 0.8699 GB, free: 2.227 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3318/0.334, allocations: 151.6 MB / 1.018 GB, free: 10.66 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003585/0.3376, allocations: 1.763 MB / 1.02 GB, free: 8.887 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.008178/0.3458, allocations: 5.394 MB / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000173/0.346, allocations: 0 / 1.025 GB, free: 3.469 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0014/0.3475, allocations: 370.9 kB / 1.025 GB, free: 3.105 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0001966/0.3477, allocations: 59.66 kB / 1.025 GB, free: 3.047 MB / 0.795 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.004267/0.352, allocations: 1.508 MB / 1.027 GB, free: 1.539 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0003061/0.3523, allocations: 159.3 kB / 1.027 GB, free: 1.383 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.848e-05/0.3524, allocations: 9.562 kB / 1.027 GB, free: 1.371 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001064/0.3525, allocations: 55.78 kB / 1.027 GB, free: 1.316 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002336/0.3527, allocations: 171.5 kB / 1.027 GB, free: 1.148 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.065e-05/0.3528, allocations: 15.98 kB / 1.027 GB, free: 1.133 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003482/0.3563, allocations: 2.149 MB / 1.029 GB, free: 14.98 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002472/0.3565, allocations: 287.8 kB / 1.03 GB, free: 14.7 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0003082/0.3568, allocations: 306.1 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.003584/0.3604, allocations: 2.167 MB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3605, allocations: 4 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.3605, allocations: 3.938 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.777e-05/0.3605, allocations: 0 / 1.032 GB, free: 12.22 MB / 0.8106 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.01088/0.3714, allocations: 1.367 MB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.891e-05/0.3714, allocations: 8.922 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004882/0.3719, allocations: 91.59 kB / 1.033 GB, free: 10.7 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006024/0.3726, allocations: 414.1 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.598e-05/0.3726, allocations: 4.375 kB / 1.034 GB, free: 10.25 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.54e-05/0.3726, allocations: 12.36 kB / 1.034 GB, free: 10.23 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004495/0.3731, allocations: 387.5 kB / 1.034 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.3731, allocations: 0 / 1.034 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.659e-05/0.3731, allocations: 0 / 1.034 GB, free: 9.844 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.3732, allocations: 7.984 kB / 1.034 GB, free: 9.836 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004404/0.3736, allocations: 439.7 kB / 1.035 GB, free: 9.406 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.3744, allocations: 0.6654 MB / 1.035 GB, free: 8.691 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005385/0.3749, allocations: 0.5556 MB / 1.036 GB, free: 8.117 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003113/0.3752, allocations: 345.6 kB / 1.036 GB, free: 7.773 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001173/0.3764, allocations: 1.025 MB / 1.037 GB, free: 6.527 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004217/0.3768, allocations: 412.8 kB / 1.038 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.894e-06/0.3769, allocations: 0 / 1.038 GB, free: 6.105 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.00138/0.3782, allocations: 1.293 MB / 1.039 GB, free: 4.805 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.848e-05/0.3783, allocations: 81.11 kB / 1.039 GB, free: 4.707 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001376/0.3797, allocations: 1.29 MB / 1.04 GB, free: 3.406 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 5.173e-05/0.3798, allocations: 33.83 kB / 1.04 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002302/0.38, allocations: 289.3 kB / 1.041 GB, free: 3.078 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.3801, allocations: 27.72 kB / 1.041 GB, free: 3.051 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003726/0.3804, allocations: 347.6 kB / 1.041 GB, free: 2.707 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.3806, allocations: 325.9 kB / 1.041 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001261/0.3819, allocations: 1.369 MB / 1.043 GB, free: 1.012 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001348/0.3832, allocations: 1.523 MB / 1.044 GB, free: 15.48 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007104/0.3903, allocations: 3.553 MB / 1.047 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.553e-06/0.3904, allocations: 0 / 1.047 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004738/0.3951, allocations: 4.01 MB / 1.051 GB, free: 7.789 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.3952, allocations: 4 kB / 1.051 GB, free: 7.785 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.553e-05/0.3952, allocations: 8.031 kB / 1.051 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.499e-05/0.3952, allocations: 0 / 1.051 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001493/0.3954, allocations: 15.98 kB / 1.051 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.097e-06/0.3954, allocations: 0 / 1.051 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005925/0.396, allocations: 232.3 kB / 1.052 GB, free: 7.531 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.059e-05/0.3961, allocations: 27.92 kB / 1.052 GB, free: 7.504 MB / 0.8262 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.00038/0.3965, allocations: 241.7 kB / 1.052 GB, free: 7.258 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.3966, allocations: 86.52 kB / 1.052 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000348/0.3969, allocations: 79.83 kB / 1.052 GB, free: 7.082 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.502e-06/0.397, allocations: 7.922 kB / 1.052 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.397, allocations: 0 / 1.052 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.397, allocations: 0 / 1.052 GB, free: 7.074 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005222/0.3975, allocations: 0.5179 MB / 1.053 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.244e-06/0.3975, allocations: 0 / 1.053 GB, free: 6.512 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.008e-05/0.3976, allocations: 15.97 kB / 1.053 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.3976, allocations: 0 / 1.053 GB, free: 6.496 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.511e-05/0.3976, allocations: 3.984 kB / 1.053 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.906e-06/0.3977, allocations: 4 kB / 1.053 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.305e-06/0.3977, allocations: 0 / 1.053 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009518/0.3986, allocations: 0.9979 MB / 1.054 GB, free: 5.469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000172/0.3988, allocations: 167.7 kB / 1.054 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.177e-05/0.3989, allocations: 4 kB / 1.054 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001524/0.399, allocations: 0 / 1.054 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.715e-05/0.3991, allocations: 11.92 kB / 1.054 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.299e-05/0.3992, allocations: 11.98 kB / 1.054 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0008639/0.4, allocations: 0.7261 MB / 1.054 GB, free: 4.527 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.4, allocations: 3.938 kB / 1.054 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001749/0.4018, allocations: 0.5779 MB / 1.055 GB, free: 3.945 MB / 0.8262 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.002621/0.4044, allocations: 0.7047 MB / 1.056 GB, free: 3.254 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.00247/0.4069, allocations: 2.556 MB / 1.058 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.4069, allocations: 0 / 1.058 GB, free: 0.6836 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003409/0.4073, allocations: 339.8 kB / 1.059 GB, free: 360 kB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004657/0.4077, allocations: 65.7 kB / 1.059 GB, free: 296 kB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002562/0.4103, allocations: 1.921 MB / 1.06 GB, free: 14.33 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006075/0.4109, allocations: 0.9918 MB / 1.061 GB, free: 13.31 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.4111, allocations: 23.42 kB / 1.061 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of SimCode: time 3.91e-07/0.4111, allocations: 0 / 1.061 GB, free: 13.29 MB / 0.8419 GB Notification: Performance of Templates: time 0.4986/0.9097, allocations: 14.48 MB / 1.076 GB, free: 61.49 MB / 0.8419 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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