Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.0009796/0.0009796, allocations: 80.3 kB / 21.47 MB, free: 3.031 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.001031/0.001031, allocations: 166.5 kB / 24.87 MB, free: 8.875 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 0.9988/0.9988, allocations: 177.1 MB / 205.3 MB, free: 5.523 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 1.745/1.745, allocations: 359 MB / 0.6063 GB, free: 10.91 MB / 0.573 GB " [Timeout remaining time 178] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0.7656 kB / 0.7884 GB, free: 12.13 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.72e-05/1.88e-05, allocations: 2.312 kB / 0.7884 GB, free: 12.12 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002709/0.002728, allocations: 1.477 MB / 0.7898 GB, free: 10.66 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.006006/0.008734, allocations: 3.971 MB / 0.7937 GB, free: 6.68 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.84e-05/0.008782, allocations: 4 kB / 0.7937 GB, free: 6.676 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.008888, allocations: 11.86 kB / 0.7937 GB, free: 6.664 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.009086, allocations: 32.5 kB / 0.7938 GB, free: 6.633 MB / 0.7448 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.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.002539/0.01163, allocations: 1.607 MB / 0.7953 GB, free: 5.031 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0001105/0.01174, allocations: 92.2 kB / 0.7954 GB, free: 4.941 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 3.575e-05/0.01177, allocations: 17.34 kB / 0.7954 GB, free: 4.926 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 6.882e-05/0.01184, allocations: 55.83 kB / 0.7955 GB, free: 4.871 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001003/0.01194, allocations: 53.17 kB / 0.7955 GB, free: 4.82 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 1.547e-05/0.01196, allocations: 5.156 kB / 0.7955 GB, free: 4.816 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002349/0.01431, allocations: 2.398 MB / 0.7979 GB, free: 2.434 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0001443/0.01445, allocations: 251.3 kB / 0.7981 GB, free: 2.188 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 9.328e-05/0.01454, allocations: 119.4 kB / 0.7982 GB, free: 2.07 MB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.002067/0.01661, allocations: 2.341 MB / 0.8005 GB, free: 15.72 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 2.384e-06/0.01661, allocations: 0 / 0.8005 GB, free: 15.72 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.002e-06/0.01661, allocations: 3.438 kB / 0.8005 GB, free: 15.72 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 5.962e-06/0.01662, allocations: 0 / 0.8005 GB, free: 15.72 MB / 0.7605 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.001249/0.01787, allocations: 1.38 MB / 0.8019 GB, free: 14.3 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 3.06e-05/0.0179, allocations: 8.031 kB / 0.8019 GB, free: 14.29 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002355/0.01813, allocations: 92.25 kB / 0.802 GB, free: 14.2 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002396/0.01837, allocations: 297.2 kB / 0.8023 GB, free: 13.88 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.087e-05/0.01838, allocations: 9 kB / 0.8023 GB, free: 13.87 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.01841, allocations: 4.375 kB / 0.8023 GB, free: 13.86 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000201/0.01861, allocations: 240.3 kB / 0.8025 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.01862, allocations: 192 / 0.8025 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.804e-06/0.01862, allocations: 384 / 0.8025 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.01863, allocations: 7.875 kB / 0.8025 GB, free: 13.61 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001249/0.01876, allocations: 204.6 kB / 0.8027 GB, free: 13.41 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003209/0.01908, allocations: 489.2 kB / 0.8032 GB, free: 12.9 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001954/0.01927, allocations: 302.8 kB / 0.8035 GB, free: 12.58 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.609e-05/0.01937, allocations: 160 kB / 0.8036 GB, free: 12.41 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002865/0.01965, allocations: 133.3 kB / 0.8037 GB, free: 12.29 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001812/0.01984, allocations: 241.2 kB / 0.804 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=8): time 8.92e-07/0.01984, allocations: 0 / 0.804 GB, free: 12.03 MB / 0.7605 GB Notification: Performance of matching and sorting (n=8): time 0.0005739/0.02041, allocations: 0.7555 MB / 0.8047 GB, free: 11.27 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.407e-05/0.02045, allocations: 93.03 kB / 0.8048 GB, free: 11.16 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006443/0.0211, allocations: 1.192 MB / 0.806 GB, free: 9.953 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 2.853e-05/0.02113, allocations: 33.69 kB / 0.806 GB, free: 9.914 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.000151/0.02128, allocations: 352.5 kB / 0.8063 GB, free: 9.562 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 2.882e-05/0.02131, allocations: 24.88 kB / 0.8064 GB, free: 9.539 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002535/0.02156, allocations: 422.2 kB / 0.8068 GB, free: 9.121 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.02166, allocations: 496.4 kB / 0.8072 GB, free: 8.629 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000312/0.02198, allocations: 495.1 kB / 0.8077 GB, free: 8.145 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004/0.02238, allocations: 0.6573 MB / 0.8083 GB, free: 7.477 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001507/0.02388, allocations: 2.255 MB / 0.8105 GB, free: 5.133 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.675e-06/0.02389, allocations: 0 / 0.8105 GB, free: 5.133 MB / 0.7605 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002597/0.02648, allocations: 3.841 MB / 0.8143 GB, free: 1.258 MB / 0.7605 GB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.0265, allocations: 9.344 kB / 0.8143 GB, free: 1.25 MB / 0.7605 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.585e-05/0.02652, allocations: 0 / 0.8143 GB, free: 1.25 MB / 0.7605 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.999e-06/0.02653, allocations: 4 kB / 0.8143 GB, free: 1.246 MB / 0.7605 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.05e-05/0.02662, allocations: 27.92 kB / 0.8143 GB, free: 1.219 MB / 0.7605 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.417e-06/0.02662, allocations: 4.438 kB / 0.8143 GB, free: 1.215 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002593/0.02688, allocations: 245.8 kB / 0.8146 GB, free: 0.9727 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.02691, allocations: 20.64 kB / 0.8146 GB, free: 0.9531 MB / 0.7605 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 (labels[1],cluSiz[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.0001307/0.02704, allocations: 167 kB / 0.8148 GB, free: 0.7812 MB / 0.7605 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.549e-05/0.02709, allocations: 75.33 kB / 0.8148 GB, free: 0.707 MB / 0.7605 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004244/0.02751, allocations: 0.5811 MB / 0.8154 GB, free: 116 kB / 0.7605 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.02751, allocations: 0 / 0.8154 GB, free: 116 kB / 0.7605 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.605e-06/0.02751, allocations: 3.984 kB / 0.8154 GB, free: 112 kB / 0.7605 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.02752, allocations: 3.938 kB / 0.8154 GB, free: 108 kB / 0.7605 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002427/0.02776, allocations: 358.8 kB / 0.8157 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.02776, allocations: 0 / 0.8157 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.58e-05/0.0278, allocations: 4 kB / 0.8157 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.0278, allocations: 4.031 kB / 0.8157 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.02781, allocations: 11.98 kB / 0.8158 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.02781, allocations: 0 / 0.8158 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.02782, allocations: 3.938 kB / 0.8158 GB, free: 15.71 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003948/0.02821, allocations: 0.6571 MB / 0.8164 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.008e-05/0.02826, allocations: 83.28 kB / 0.8165 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.34e-05/0.02829, allocations: 4 kB / 0.8165 GB, free: 14.94 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.567e-05/0.02836, allocations: 8 kB / 0.8165 GB, free: 14.93 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.355e-05/0.02838, allocations: 7.984 kB / 0.8165 GB, free: 14.92 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.753e-05/0.02841, allocations: 11.98 kB / 0.8165 GB, free: 14.91 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0003066/0.02872, allocations: 0.5282 MB / 0.817 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.02872, allocations: 0 / 0.817 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001072/0.02979, allocations: 0.5884 MB / 0.8176 GB, free: 13.79 MB / 0.7761 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.001309/0.0311, allocations: 0.7892 MB / 0.8184 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0007751/0.03187, allocations: 1.09 MB / 0.8194 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.03187, allocations: 0 / 0.8194 GB, free: 11.9 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001122/0.03199, allocations: 167.6 kB / 0.8196 GB, free: 11.73 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.0322, allocations: 45.23 kB / 0.8196 GB, free: 11.69 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.03331, allocations: 1.447 MB / 0.8211 GB, free: 10.2 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001059/0.03342, allocations: 191.1 kB / 0.8212 GB, free: 9.992 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 7.717e-05/0.03349, allocations: 36.39 kB / 0.8213 GB, free: 9.957 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001153/0.03361, allocations: 98.17 kB / 0.8214 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of SimCode: time 6.52e-07/0.03361, allocations: 0 / 0.8214 GB, free: 9.859 MB / 0.7761 GB Notification: Performance of Templates: time 0.01743/0.05104, allocations: 15.76 MB / 0.8368 GB, free: 10.21 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.403114984743297]