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_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.0009653/0.0009653, allocations: 71.75 kB / 20.97 MB, free: 3.582 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.001893/0.001893, allocations: 169 kB / 24.28 MB, free: 280 kB / 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.9532/0.9532, allocations: 177.1 MB / 204.6 MB, free: 5.59 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.848/1.848, allocations: 359 MB / 0.6055 GB, free: 11.02 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_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_11_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_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 0.7872 GB, free: 12.72 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.497e-05/2.659e-05, allocations: 5.672 kB / 0.7872 GB, free: 12.72 MB / 0.7448 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002346/0.002373, allocations: 1.821 MB / 0.789 GB, free: 10.9 MB / 0.7448 GB Notification: Performance of NFInst.instExpressions: time 0.005907/0.00828, allocations: 5.196 MB / 0.794 GB, free: 5.703 MB / 0.7448 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001224/0.008402, allocations: 4.656 kB / 0.7941 GB, free: 5.699 MB / 0.7448 GB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.009476, allocations: 336.5 kB / 0.7944 GB, free: 5.371 MB / 0.7448 GB Notification: Performance of NFTyping.typeBindings: time 0.0001013/0.009577, allocations: 68.95 kB / 0.7944 GB, free: 5.305 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.003273/0.01285, allocations: 1.591 MB / 0.796 GB, free: 3.719 MB / 0.7448 GB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.01311, allocations: 169.2 kB / 0.7962 GB, free: 3.555 MB / 0.7448 GB Notification: Performance of NFFlatten.resolveConnections: time 4.926e-05/0.01316, allocations: 5.812 kB / 0.7962 GB, free: 3.551 MB / 0.7448 GB Notification: Performance of NFEvalConstants.evaluate: time 9.555e-05/0.01325, allocations: 83.72 kB / 0.7962 GB, free: 3.469 MB / 0.7448 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.01343, allocations: 147.7 kB / 0.7964 GB, free: 3.324 MB / 0.7448 GB Notification: Performance of NFPackage.collectConstants: time 2.979e-05/0.01346, allocations: 16.5 kB / 0.7964 GB, free: 3.309 MB / 0.7448 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003161/0.01663, allocations: 2.395 MB / 0.7987 GB, free: 0.9102 MB / 0.7448 GB Notification: Performance of NFScalarize.scalarize: time 0.0002073/0.01683, allocations: 287.8 kB / 0.799 GB, free: 0.6289 MB / 0.7448 GB Notification: Performance of NFVerifyModel.verify: time 0.0001691/0.017, allocations: 164 kB / 0.7992 GB, free: 476 kB / 0.7448 GB Notification: Performance of NFConvertDAE.convert: time 0.003395/0.0204, allocations: 2.507 MB / 0.8016 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.0204, allocations: 1.094 kB / 0.8016 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of FrontEnd: time 1.442e-06/0.0204, allocations: 0 / 0.8016 GB, free: 13.95 MB / 0.7605 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.02041, allocations: 3.984 kB / 0.8016 GB, free: 13.95 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.004794/0.02521, allocations: 1.467 MB / 0.8031 GB, free: 12.44 MB / 0.7605 GB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.02525, allocations: 8.875 kB / 0.8031 GB, free: 12.43 MB / 0.7605 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003259/0.02558, allocations: 103.8 kB / 0.8032 GB, free: 12.34 MB / 0.7605 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003794/0.02596, allocations: 346.6 kB / 0.8035 GB, free: 11.96 MB / 0.7605 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.368e-05/0.02597, allocations: 4.375 kB / 0.8035 GB, free: 11.96 MB / 0.7605 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.945e-05/0.026, allocations: 12.31 kB / 0.8035 GB, free: 11.95 MB / 0.7605 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.02633, allocations: 370.1 kB / 0.8039 GB, free: 11.57 MB / 0.7605 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.02634, allocations: 192 / 0.8039 GB, free: 11.57 MB / 0.7605 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.371e-05/0.02635, allocations: 4.359 kB / 0.8039 GB, free: 11.56 MB / 0.7605 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.02636, allocations: 5.312 kB / 0.8039 GB, free: 11.56 MB / 0.7605 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002403/0.0266, allocations: 383.8 kB / 0.8042 GB, free: 11.18 MB / 0.7605 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005153/0.02712, allocations: 0.6768 MB / 0.8049 GB, free: 10.47 MB / 0.7605 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003444/0.02746, allocations: 0.5212 MB / 0.8054 GB, free: 9.926 MB / 0.7605 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001882/0.02765, allocations: 308.4 kB / 0.8057 GB, free: 9.617 MB / 0.7605 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000407/0.02806, allocations: 138.2 kB / 0.8058 GB, free: 9.484 MB / 0.7605 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000527/0.02859, allocations: 380.2 kB / 0.8062 GB, free: 9.09 MB / 0.7605 GB Notification: Performance of pre-optimization done (n=8): time 1.623e-06/0.02859, allocations: 0 / 0.8062 GB, free: 9.09 MB / 0.7605 GB Notification: Performance of matching and sorting (n=8): time 0.0008949/0.02948, allocations: 1.184 MB / 0.8073 GB, free: 7.898 MB / 0.7605 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.02953, allocations: 85.05 kB / 0.8074 GB, free: 7.797 MB / 0.7605 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008644/0.03039, allocations: 1.279 MB / 0.8087 GB, free: 6.508 MB / 0.7605 GB Notification: Performance of collectPreVariables (initialization): time 3.055e-05/0.03042, allocations: 25.7 kB / 0.8087 GB, free: 6.477 MB / 0.7605 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002004/0.03062, allocations: 376.6 kB / 0.8091 GB, free: 6.102 MB / 0.7605 GB Notification: Performance of collectInitialBindings (initialization): time 3.944e-05/0.03066, allocations: 19.84 kB / 0.8091 GB, free: 6.082 MB / 0.7605 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002717/0.03093, allocations: 402.5 kB / 0.8095 GB, free: 5.684 MB / 0.7605 GB Notification: Performance of setup shared object (initialization): time 0.0001212/0.03106, allocations: 0.4965 MB / 0.8099 GB, free: 5.18 MB / 0.7605 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004554/0.03151, allocations: 0.6742 MB / 0.8106 GB, free: 4.504 MB / 0.7605 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005501/0.03206, allocations: 0.8476 MB / 0.8114 GB, free: 3.645 MB / 0.7605 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002082/0.03414, allocations: 2.625 MB / 0.814 GB, free: 0.9297 MB / 0.7605 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.03415, allocations: 0 / 0.814 GB, free: 0.9297 MB / 0.7605 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002959/0.03711, allocations: 4.242 MB / 0.8181 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.942e-05/0.03713, allocations: 4 kB / 0.8181 GB, free: 12.65 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.725e-05/0.03714, allocations: 4 kB / 0.8181 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.65e-05/0.03716, allocations: 0 / 0.8181 GB, free: 12.64 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001318/0.03729, allocations: 23.92 kB / 0.8182 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.0373, allocations: 4 kB / 0.8182 GB, free: 12.62 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002982/0.0376, allocations: 241.4 kB / 0.8184 GB, free: 12.38 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.669e-05/0.03763, allocations: 23.98 kB / 0.8184 GB, free: 12.36 MB / 0.7761 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.0001584/0.03779, allocations: 168.5 kB / 0.8186 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.761e-05/0.03785, allocations: 87.23 kB / 0.8187 GB, free: 12.09 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006659/0.03852, allocations: 0.8548 MB / 0.8195 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.858e-06/0.03852, allocations: 0 / 0.8195 GB, free: 11.23 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.073e-05/0.03853, allocations: 11.94 kB / 0.8195 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.03854, allocations: 0 / 0.8195 GB, free: 11.21 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003864/0.03892, allocations: 0.5289 MB / 0.82 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.03892, allocations: 0 / 0.82 GB, free: 10.66 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.708e-05/0.03898, allocations: 8 kB / 0.82 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.03898, allocations: 0 / 0.82 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.13e-05/0.039, allocations: 3.984 kB / 0.82 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.775e-06/0.039, allocations: 4 kB / 0.8201 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.039, allocations: 0 / 0.8201 GB, free: 10.64 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008373/0.03984, allocations: 0.9467 MB / 0.821 GB, free: 9.668 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 7.966e-05/0.03992, allocations: 83.3 kB / 0.8211 GB, free: 9.586 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.341e-05/0.03996, allocations: 4 kB / 0.8211 GB, free: 9.582 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.702e-05/0.04005, allocations: 8 kB / 0.8211 GB, free: 9.574 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.33e-05/0.04009, allocations: 11.92 kB / 0.8211 GB, free: 9.562 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.369e-05/0.04012, allocations: 15.97 kB / 0.8211 GB, free: 9.547 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 0.0004367/0.04056, allocations: 0.6012 MB / 0.8217 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of sort global known variables: time 6e-08/0.04056, allocations: 0 / 0.8217 GB, free: 8.941 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.001332/0.04189, allocations: 0.5884 MB / 0.8223 GB, free: 8.352 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.001605/0.0435, allocations: 0.7974 MB / 0.823 GB, free: 7.57 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.001022/0.04452, allocations: 1.413 MB / 0.8244 GB, free: 6.141 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.04452, allocations: 0 / 0.8244 GB, free: 6.141 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0002014/0.04472, allocations: 311.4 kB / 0.8247 GB, free: 5.832 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003119/0.04504, allocations: 66 kB / 0.8248 GB, free: 5.77 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001485/0.04652, allocations: 1.685 MB / 0.8264 GB, free: 4.039 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.04664, allocations: 191.6 kB / 0.8266 GB, free: 3.832 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 9.75e-05/0.04673, allocations: 37.45 kB / 0.8266 GB, free: 3.797 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.864e-05/0.04681, allocations: 36.47 kB / 0.8267 GB, free: 3.762 MB / 0.7761 GB Notification: Performance of SimCode: time 1.423e-06/0.04681, allocations: 0 / 0.8267 GB, free: 3.762 MB / 0.7761 GB Notification: Performance of Templates: time 0.01964/0.06645, allocations: 14.98 MB / 0.8413 GB, free: 4.93 MB / 0.7917 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.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.502141774864867]