Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001573/0.001573, allocations: 80.41 kB / 20.23 MB, free: 4.18 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00173/0.00173, allocations: 161.3 kB / 23.54 MB, free: 0.8711 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.554/1.554, allocations: 177.1 MB / 203.9 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 2.934/2.934, allocations: 377.8 MB / 0.6232 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_12_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_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.084e-06/2.084e-06, allocations: 0 / 0.8109 GB, free: 2.047 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.671e-05/3.879e-05, allocations: 3.719 kB / 0.8109 GB, free: 2.043 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003467/0.003506, allocations: 1.751 MB / 0.8126 GB, free: 304 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.009724/0.01323, allocations: 4.899 MB / 0.8174 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001454/0.01338, allocations: 0 / 0.8174 GB, free: 11.39 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001429/0.0148, allocations: 341.6 kB / 0.8177 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 0.0001705/0.01497, allocations: 59.72 kB / 0.8178 GB, free: 11 MB / 0.7761 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.004567/0.01954, allocations: 1.608 MB / 0.8193 GB, free: 9.402 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0003231/0.01986, allocations: 174.6 kB / 0.8195 GB, free: 9.234 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 5.581e-05/0.01992, allocations: 5.812 kB / 0.8195 GB, free: 9.23 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001576/0.02008, allocations: 83.72 kB / 0.8196 GB, free: 9.148 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.02036, allocations: 151.7 kB / 0.8197 GB, free: 9 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 5.007e-05/0.02041, allocations: 16 kB / 0.8198 GB, free: 8.984 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004558/0.02497, allocations: 2.402 MB / 0.8221 GB, free: 6.578 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.000327/0.0253, allocations: 292.9 kB / 0.8224 GB, free: 6.289 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.02553, allocations: 164 kB / 0.8225 GB, free: 6.129 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.003928/0.02946, allocations: 2.528 MB / 0.825 GB, free: 3.598 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 7.825e-06/0.02946, allocations: 8.438 kB / 0.825 GB, free: 3.59 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.374e-06/0.02947, allocations: 0 / 0.825 GB, free: 3.59 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 8.957e-06/0.02948, allocations: 0.9062 kB / 0.825 GB, free: 3.59 MB / 0.7761 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.009265/0.03874, allocations: 1.336 MB / 0.8263 GB, free: 2.219 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.84e-05/0.03879, allocations: 12.03 kB / 0.8263 GB, free: 2.207 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004885/0.03928, allocations: 97.39 kB / 0.8264 GB, free: 2.113 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007108/0.03999, allocations: 352.9 kB / 0.8268 GB, free: 1.734 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.6e-05/0.04, allocations: 4.375 kB / 0.8268 GB, free: 1.73 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.25e-05/0.04005, allocations: 8.359 kB / 0.8268 GB, free: 1.723 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005461/0.04059, allocations: 394.6 kB / 0.8271 GB, free: 1.328 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.848e-06/0.0406, allocations: 192 / 0.8271 GB, free: 1.328 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.04062, allocations: 4.312 kB / 0.8272 GB, free: 1.324 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.687e-06/0.04063, allocations: 3.938 kB / 0.8272 GB, free: 1.32 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005747/0.0412, allocations: 438.8 kB / 0.8276 GB, free: 0.8945 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001077/0.04228, allocations: 0.5937 MB / 0.8282 GB, free: 276 kB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007089/0.04299, allocations: 0.5595 MB / 0.8287 GB, free: 15.69 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004121/0.0434, allocations: 333.6 kB / 0.829 GB, free: 15.36 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007025/0.0441, allocations: 139.2 kB / 0.8292 GB, free: 15.23 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005386/0.04464, allocations: 404.8 kB / 0.8295 GB, free: 14.82 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.04464, allocations: 0 / 0.8295 GB, free: 14.82 MB / 0.7917 GB Notification: Performance of matching and sorting (n=8): time 0.001829/0.04647, allocations: 1.302 MB / 0.8308 GB, free: 13.51 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.326e-05/0.04655, allocations: 88.98 kB / 0.8309 GB, free: 13.4 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001626/0.04818, allocations: 1.303 MB / 0.8322 GB, free: 12.09 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 4.385e-05/0.04822, allocations: 29.7 kB / 0.8322 GB, free: 12.05 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003022/0.04852, allocations: 289.9 kB / 0.8325 GB, free: 11.77 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.642e-05/0.04856, allocations: 19.84 kB / 0.8325 GB, free: 11.75 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004174/0.04898, allocations: 343.6 kB / 0.8328 GB, free: 11.41 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001913/0.04917, allocations: 322.1 kB / 0.8331 GB, free: 11.09 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001634/0.0508, allocations: 1.369 MB / 0.8345 GB, free: 9.715 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002139/0.05294, allocations: 1.505 MB / 0.8359 GB, free: 8.199 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008493/0.06144, allocations: 3.56 MB / 0.8394 GB, free: 4.547 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.758e-06/0.06144, allocations: 0 / 0.8394 GB, free: 4.547 MB / 0.7917 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.0058/0.06724, allocations: 4.027 MB / 0.8433 GB, free: 496 kB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.332e-05/0.06726, allocations: 6.656 kB / 0.8433 GB, free: 492 kB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.078e-05/0.06728, allocations: 4 kB / 0.8434 GB, free: 488 kB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.383e-05/0.06731, allocations: 0 / 0.8434 GB, free: 488 kB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001506/0.06746, allocations: 27.86 kB / 0.8434 GB, free: 460 kB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.443e-06/0.06747, allocations: 0 / 0.8434 GB, free: 460 kB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006149/0.06808, allocations: 241.3 kB / 0.8436 GB, free: 216 kB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.296e-05/0.06814, allocations: 23.98 kB / 0.8436 GB, free: 192 kB / 0.7917 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.0004144/0.06856, allocations: 248.8 kB / 0.8439 GB, free: 15.94 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.06867, allocations: 91.19 kB / 0.844 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001287/0.06995, allocations: 0.9408 MB / 0.8449 GB, free: 14.9 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.06996, allocations: 4 kB / 0.8449 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.476e-06/0.06997, allocations: 3.938 kB / 0.8449 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.06997, allocations: 0 / 0.8449 GB, free: 14.89 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005873/0.07056, allocations: 468.3 kB / 0.8453 GB, free: 14.41 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.753e-06/0.07056, allocations: 4.031 kB / 0.8453 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.833e-05/0.07064, allocations: 11.92 kB / 0.8453 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.07064, allocations: 0 / 0.8453 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.237e-05/0.07067, allocations: 8 kB / 0.8453 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.07067, allocations: 0 / 0.8453 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.07067, allocations: 0 / 0.8453 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001274/0.07194, allocations: 1.014 MB / 0.8463 GB, free: 13.35 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/0.07207, allocations: 91.23 kB / 0.8464 GB, free: 13.26 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.442e-05/0.07213, allocations: 12 kB / 0.8464 GB, free: 13.25 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001554/0.07229, allocations: 7.984 kB / 0.8464 GB, free: 13.24 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.454e-05/0.07234, allocations: 11.92 kB / 0.8465 GB, free: 13.23 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.446e-05/0.07238, allocations: 11.92 kB / 0.8465 GB, free: 13.21 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0009887/0.07337, allocations: 0.7261 MB / 0.8472 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of sort global known variables: time 7e-08/0.07337, allocations: 0 / 0.8472 GB, free: 12.48 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0019/0.07527, allocations: 0.5923 MB / 0.8478 GB, free: 11.89 MB / 0.8073 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.002134/0.07741, allocations: 0.7908 MB / 0.8485 GB, free: 11.11 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.002836/0.08024, allocations: 2.001 MB / 0.8505 GB, free: 9.098 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.08024, allocations: 0 / 0.8505 GB, free: 9.098 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000432/0.08068, allocations: 331.8 kB / 0.8508 GB, free: 8.773 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.08111, allocations: 63.47 kB / 0.8509 GB, free: 8.715 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003015/0.08413, allocations: 1.903 MB / 0.8527 GB, free: 6.77 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004871/0.08462, allocations: 397.8 kB / 0.8531 GB, free: 6.359 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 0.0001696/0.08478, allocations: 45.45 kB / 0.8531 GB, free: 6.316 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001172/0.0849, allocations: 24.48 kB / 0.8532 GB, free: 6.289 MB / 0.8073 GB Notification: Performance of SimCode: time 1.513e-06/0.0849, allocations: 0 / 0.8532 GB, free: 6.289 MB / 0.8073 GB Notification: Performance of Templates: time 0.02991/0.1148, allocations: 14.78 MB / 0.8676 GB, free: 7.664 MB / 0.823 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.297442379058339]