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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001604/0.001604, allocations: 113.8 kB / 17.61 MB, free: 4.703 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 186 kB / 20.78 MB, free: 1.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 225.6 MB / 249.4 MB, free: 3.16 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.847/2.847, allocations: 496.2 MB / 0.7819 GB, free: 12.29 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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=2500,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=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.002001/0.002001, allocations: 67.89 kB / 1.136 GB, free: 12.35 MB / 0.92 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8805/0.8825, allocations: 173.6 MB / 1.306 GB, free: 33.41 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002541/0.885, allocations: 1.78 MB / 1.307 GB, free: 32.18 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.006277/0.8913, allocations: 5.464 MB / 1.313 GB, free: 28.48 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000112/0.8914, allocations: 2.625 kB / 1.313 GB, free: 28.48 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.001129/0.8925, allocations: 366.2 kB / 1.313 GB, free: 28.32 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.8926, allocations: 68.08 kB / 1.313 GB, free: 28.29 MB / 1.061 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 12.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.003444/0.8961, allocations: 1.5 MB / 1.314 GB, free: 27.72 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.000219/0.8963, allocations: 161.7 kB / 1.315 GB, free: 27.66 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 4.681e-05/0.8963, allocations: 4.062 kB / 1.315 GB, free: 27.66 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 6.386e-05/0.8964, allocations: 64.09 kB / 1.315 GB, free: 27.64 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.8966, allocations: 166.7 kB / 1.315 GB, free: 27.59 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.834e-05/0.8966, allocations: 16.31 kB / 1.315 GB, free: 27.59 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002676/0.8993, allocations: 2.313 MB / 1.317 GB, free: 26.9 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001651/0.8995, allocations: 282 kB / 1.317 GB, free: 26.82 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.0001852/0.8997, allocations: 308.8 kB / 1.318 GB, free: 26.62 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.002342/0.902, allocations: 2.182 MB / 1.32 GB, free: 25.98 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.902, allocations: 2.766 kB / 1.32 GB, free: 25.98 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.573e-06/0.902, allocations: 0 / 1.32 GB, free: 25.98 MB / 1.061 GB Notification: Performance of Transformations before backend: time 2.324e-05/0.902, allocations: 7.938 kB / 1.32 GB, free: 25.97 MB / 1.061 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.008589/0.9106, allocations: 1.411 MB / 1.321 GB, free: 24.96 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.9107, allocations: 8.25 kB / 1.321 GB, free: 24.96 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003861/0.911, allocations: 98.45 kB / 1.321 GB, free: 24.9 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004526/0.9115, allocations: 413.6 kB / 1.322 GB, free: 24.58 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.9115, allocations: 11.16 kB / 1.322 GB, free: 24.57 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.78e-05/0.9116, allocations: 9.547 kB / 1.322 GB, free: 24.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003555/0.9119, allocations: 400.3 kB / 1.322 GB, free: 24.5 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.024e-05/0.9119, allocations: 0 / 1.322 GB, free: 24.5 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.9119, allocations: 0 / 1.322 GB, free: 24.5 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.539e-06/0.9119, allocations: 3.984 kB / 1.322 GB, free: 24.5 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003349/0.9123, allocations: 437.1 kB / 1.323 GB, free: 24.49 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004738/0.9127, allocations: 0.6671 MB / 1.323 GB, free: 24.09 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006791/0.9134, allocations: 0.5558 MB / 1.324 GB, free: 24.04 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004401/0.9139, allocations: 332.7 kB / 1.324 GB, free: 24.02 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007867/0.9147, allocations: 1.03 MB / 1.325 GB, free: 22.88 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004358/0.9151, allocations: 406.8 kB / 1.325 GB, free: 22.8 MB / 1.061 GB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.9151, allocations: 4 kB / 1.325 GB, free: 22.79 MB / 1.061 GB Notification: Performance of matching and sorting (n=8): time 0.001587/0.9167, allocations: 1.305 MB / 1.327 GB, free: 22.67 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.886e-05/0.9167, allocations: 83.16 kB / 1.327 GB, free: 22.57 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001744/0.9185, allocations: 1.293 MB / 1.328 GB, free: 22.06 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 4.022e-05/0.9185, allocations: 28.09 kB / 1.328 GB, free: 22.03 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001702/0.9187, allocations: 293.7 kB / 1.328 GB, free: 21.8 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 3.073e-05/0.9187, allocations: 22.08 kB / 1.328 GB, free: 21.79 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003721/0.9191, allocations: 358.1 kB / 1.329 GB, free: 21.68 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 5.977e-05/0.9191, allocations: 321.4 kB / 1.329 GB, free: 21.37 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001306/0.9204, allocations: 1.371 MB / 1.33 GB, free: 20.92 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001509/0.9219, allocations: 1.508 MB / 1.332 GB, free: 20.39 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007417/0.9294, allocations: 3.569 MB / 1.335 GB, free: 18.54 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.9294, allocations: 1.344 kB / 1.335 GB, free: 18.54 MB / 1.061 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004449/0.9338, allocations: 4.02 MB / 1.339 GB, free: 16.54 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.9338, allocations: 5.359 kB / 1.339 GB, free: 16.54 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.143e-05/0.9339, allocations: 3.797 kB / 1.339 GB, free: 16.54 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.833e-05/0.9339, allocations: 5.281 kB / 1.339 GB, free: 16.54 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000138/0.934, allocations: 18.42 kB / 1.339 GB, free: 16.54 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.667e-06/0.934, allocations: 1.156 kB / 1.339 GB, free: 16.54 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000574/0.9346, allocations: 240.9 kB / 1.339 GB, free: 16.34 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.316e-05/0.9347, allocations: 27.38 kB / 1.34 GB, free: 16.34 MB / 1.061 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.0003434/0.935, allocations: 249.2 kB / 1.34 GB, free: 16.21 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.265e-05/0.9351, allocations: 80.3 kB / 1.34 GB, free: 16.15 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.9362, allocations: 0.9527 MB / 1.341 GB, free: 16.06 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.288e-06/0.9362, allocations: 0.9062 kB / 1.341 GB, free: 16.06 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.9362, allocations: 1.156 kB / 1.341 GB, free: 16.06 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.9362, allocations: 0.75 kB / 1.341 GB, free: 16.06 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005357/0.9368, allocations: 0.5133 MB / 1.341 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.9368, allocations: 1.156 kB / 1.341 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.619e-05/0.9369, allocations: 10.92 kB / 1.341 GB, free: 15.78 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.9369, allocations: 6.359 kB / 1.341 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.466e-05/0.9369, allocations: 2.5 kB / 1.341 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.9369, allocations: 1.406 kB / 1.341 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.9369, allocations: 1.766 kB / 1.341 GB, free: 15.77 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.9379, allocations: 1.006 MB / 1.342 GB, free: 15.62 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001072/0.938, allocations: 174.1 kB / 1.342 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.9381, allocations: 2.641 kB / 1.342 GB, free: 15.46 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.9382, allocations: 8.984 kB / 1.342 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.799e-05/0.9383, allocations: 10.12 kB / 1.342 GB, free: 15.45 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.268e-05/0.9383, allocations: 12.62 kB / 1.342 GB, free: 15.45 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0008739/0.9392, allocations: 0.7239 MB / 1.343 GB, free: 15.21 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.31e-07/0.9392, allocations: 0 / 1.343 GB, free: 15.21 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.001698/0.9409, allocations: 0.5898 MB / 1.344 GB, free: 15.1 MB / 1.061 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.001824/0.9427, allocations: 0.7062 MB / 1.344 GB, free: 14.83 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.002157/0.9449, allocations: 1.998 MB / 1.346 GB, free: 14.28 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.9449, allocations: 0 / 1.346 GB, free: 14.28 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.00037/0.9452, allocations: 338.7 kB / 1.347 GB, free: 14.27 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004402/0.9457, allocations: 65.42 kB / 1.347 GB, free: 14.23 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002238/0.9479, allocations: 1.903 MB / 1.349 GB, free: 13.58 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004627/0.9484, allocations: 0.9935 MB / 1.35 GB, free: 12.88 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0001595/0.9485, allocations: 49.98 kB / 1.35 GB, free: 12.85 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001039/0.9486, allocations: 30.25 kB / 1.35 GB, free: 12.84 MB / 1.061 GB Notification: Performance of SimCode: time 6.51e-07/0.9486, allocations: 1.125 kB / 1.35 GB, free: 12.84 MB / 1.061 GB Notification: Performance of Templates: time 0.02852/0.9772, allocations: 14.33 MB / 1.364 GB, free: 11.92 MB / 1.061 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (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=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 400] 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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 10.09259689040482]