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.001673/0.001673, allocations: 112.6 kB / 16.37 MB, free: 6 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.001951/0.001952, allocations: 196 kB / 17.31 MB, free: 5.613 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.375/1.375, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.63/2.63, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 63.38 kB / 0.8774 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.317, allocations: 153 MB / 1.027 GB, free: 2.039 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003294/0.3203, allocations: 1.772 MB / 1.028 GB, free: 264 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007645/0.328, allocations: 5.382 MB / 1.034 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000143/0.3282, allocations: 3.938 kB / 1.034 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.001293/0.3295, allocations: 370.4 kB / 1.034 GB, free: 10.48 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.3297, allocations: 59.66 kB / 1.034 GB, free: 10.42 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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.003611/0.3333, allocations: 1.504 MB / 1.036 GB, free: 8.918 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.000274/0.3336, allocations: 163.4 kB / 1.036 GB, free: 8.758 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.472e-05/0.3336, allocations: 13.55 kB / 1.036 GB, free: 8.742 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 8.048e-05/0.3337, allocations: 63.7 kB / 1.036 GB, free: 8.68 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002117/0.334, allocations: 163.5 kB / 1.036 GB, free: 8.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 4.165e-05/0.334, allocations: 16 kB / 1.036 GB, free: 8.504 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003085/0.3371, allocations: 2.208 MB / 1.038 GB, free: 6.293 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002157/0.3373, allocations: 279.7 kB / 1.038 GB, free: 6.02 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002844/0.3376, allocations: 306.1 kB / 1.039 GB, free: 5.719 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00285/0.3405, allocations: 2.182 MB / 1.041 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.077e-06/0.3405, allocations: 0 / 1.041 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3405, allocations: 0 / 1.041 GB, free: 3.531 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.3405, allocations: 0 / 1.041 GB, free: 3.531 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.008003/0.3485, allocations: 1.374 MB / 1.042 GB, free: 2.105 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.3486, allocations: 8.031 kB / 1.042 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003834/0.349, allocations: 95.59 kB / 1.042 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006872/0.3497, allocations: 402.3 kB / 1.043 GB, free: 1.562 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.48e-05/0.3497, allocations: 4.375 kB / 1.043 GB, free: 1.559 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.287e-05/0.3497, allocations: 12.36 kB / 1.043 GB, free: 1.547 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.3502, allocations: 395.4 kB / 1.043 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.3502, allocations: 4 kB / 1.043 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.149e-05/0.3502, allocations: 0 / 1.043 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.3503, allocations: 0 / 1.043 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004315/0.3507, allocations: 435.7 kB / 1.044 GB, free: 0.7188 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005882/0.3513, allocations: 0.6615 MB / 1.044 GB, free: 8 kB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004989/0.3518, allocations: 0.5672 MB / 1.045 GB, free: 15.42 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003005/0.3521, allocations: 341.7 kB / 1.045 GB, free: 15.08 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001083/0.3532, allocations: 1.025 MB / 1.046 GB, free: 13.84 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004102/0.3536, allocations: 416.8 kB / 1.046 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.583e-06/0.3536, allocations: 0 / 1.046 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001497/0.3551, allocations: 1.297 MB / 1.048 GB, free: 12.11 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.495e-05/0.3552, allocations: 85.12 kB / 1.048 GB, free: 12 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00128/0.3565, allocations: 1.293 MB / 1.049 GB, free: 10.7 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.645e-05/0.3566, allocations: 29.7 kB / 1.049 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002939/0.3569, allocations: 285.3 kB / 1.049 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.185e-05/0.3569, allocations: 19.75 kB / 1.049 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003506/0.3572, allocations: 355.6 kB / 1.05 GB, free: 10.01 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001006/0.3574, allocations: 322 kB / 1.05 GB, free: 9.688 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001234/0.3586, allocations: 1.381 MB / 1.051 GB, free: 8.305 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001263/0.3599, allocations: 1.497 MB / 1.053 GB, free: 6.797 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007315/0.3672, allocations: 3.56 MB / 1.056 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.3672, allocations: 0 / 1.056 GB, free: 3.145 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004291/0.3715, allocations: 4.014 MB / 1.06 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.182e-05/0.3716, allocations: 7.984 kB / 1.06 GB, free: 15.09 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.3716, allocations: 4 kB / 1.06 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.566e-05/0.3716, allocations: 0 / 1.06 GB, free: 15.08 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001337/0.3718, allocations: 16 kB / 1.06 GB, free: 15.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.848e-06/0.3718, allocations: 7.984 kB / 1.06 GB, free: 15.06 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004718/0.3722, allocations: 220.4 kB / 1.06 GB, free: 14.84 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.08e-05/0.3723, allocations: 28.02 kB / 1.06 GB, free: 14.81 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.0003811/0.3727, allocations: 249.5 kB / 1.061 GB, free: 14.56 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.768e-05/0.3728, allocations: 82.53 kB / 1.061 GB, free: 14.48 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003279/0.3731, allocations: 79.81 kB / 1.061 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3731, allocations: 3.984 kB / 1.061 GB, free: 14.39 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.3731, allocations: 8.031 kB / 1.061 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3731, allocations: 3.984 kB / 1.061 GB, free: 14.38 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004304/0.3736, allocations: 0.5179 MB / 1.061 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.3736, allocations: 0 / 1.061 GB, free: 13.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.342e-05/0.3737, allocations: 7.938 kB / 1.061 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.3737, allocations: 0 / 1.061 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.502e-05/0.3737, allocations: 7.984 kB / 1.061 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.965e-06/0.3737, allocations: 3.938 kB / 1.061 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3737, allocations: 0 / 1.061 GB, free: 13.79 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008707/0.3746, allocations: 1.01 MB / 1.062 GB, free: 12.76 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001153/0.3747, allocations: 163.7 kB / 1.063 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.242e-05/0.3748, allocations: 0 / 1.063 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001534/0.3749, allocations: 4 kB / 1.063 GB, free: 12.58 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.637e-05/0.375, allocations: 11.92 kB / 1.063 GB, free: 12.57 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.603e-05/0.375, allocations: 19.98 kB / 1.063 GB, free: 12.55 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008739/0.3759, allocations: 0.7183 MB / 1.063 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.6e-07/0.3759, allocations: 0 / 1.063 GB, free: 11.82 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001493/0.3774, allocations: 0.5779 MB / 1.064 GB, free: 11.25 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.001653/0.3791, allocations: 0.6949 MB / 1.065 GB, free: 10.57 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.00243/0.3815, allocations: 2.548 MB / 1.067 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3816, allocations: 0 / 1.067 GB, free: 8.004 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003079/0.3819, allocations: 340.2 kB / 1.067 GB, free: 7.672 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004109/0.3823, allocations: 63.66 kB / 1.067 GB, free: 7.613 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002114/0.3844, allocations: 1.877 MB / 1.069 GB, free: 5.703 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.3849, allocations: 0.9879 MB / 1.07 GB, free: 4.688 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001502/0.3851, allocations: 41.42 kB / 1.07 GB, free: 4.641 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.786e-05/0.3852, allocations: 23.42 kB / 1.07 GB, free: 4.621 MB / 0.8419 GB Notification: Performance of SimCode: time 4.51e-07/0.3852, allocations: 0 / 1.07 GB, free: 4.621 MB / 0.8419 GB Notification: Performance of Templates: time 0.4401/0.8253, allocations: 14.17 MB / 1.084 GB, free: 53.93 MB / 0.8419 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 -s cvode -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) Reference file matches