Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001256/0.001256, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001296/0.001296, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.507/2.507, allocations: 437 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 67.89 kB / 1.019 GB, free: 9.344 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.042/1.044, allocations: 151.6 MB / 1.167 GB, free: 3.844 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003574/1.047, allocations: 1.759 MB / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.008931/1.056, allocations: 5.395 MB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001621/1.057, allocations: 3.938 kB / 1.174 GB, free: 12.66 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.001893/1.059, allocations: 372.4 kB / 1.175 GB, free: 12.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.0002593/1.059, allocations: 63.66 kB / 1.175 GB, free: 12.23 MB / 0.9044 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 10.1.1-maint.10.0.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.006389/1.065, allocations: 1.487 MB / 1.176 GB, free: 10.74 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.000453/1.066, allocations: 169 kB / 1.176 GB, free: 10.57 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 8.018e-05/1.066, allocations: 13.55 kB / 1.176 GB, free: 10.56 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/1.066, allocations: 63.7 kB / 1.176 GB, free: 10.5 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003323/1.066, allocations: 163.5 kB / 1.177 GB, free: 10.34 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 6.357e-05/1.066, allocations: 12 kB / 1.177 GB, free: 10.32 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004817/1.071, allocations: 2.204 MB / 1.179 GB, free: 8.117 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0002585/1.072, allocations: 283.8 kB / 1.179 GB, free: 7.84 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003084/1.072, allocations: 306.1 kB / 1.179 GB, free: 7.539 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.003992/1.076, allocations: 2.188 MB / 1.181 GB, free: 5.348 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/1.076, allocations: 0 / 1.181 GB, free: 5.348 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.934e-06/1.076, allocations: 0 / 1.181 GB, free: 5.348 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 3.13e-05/1.076, allocations: 0 / 1.181 GB, free: 5.348 MB / 0.9044 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.008636/1.085, allocations: 1.366 MB / 1.183 GB, free: 3.93 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/1.085, allocations: 12.92 kB / 1.183 GB, free: 3.918 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004941/1.085, allocations: 95.59 kB / 1.183 GB, free: 3.824 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007349/1.086, allocations: 406.2 kB / 1.183 GB, free: 3.379 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/1.086, allocations: 8.375 kB / 1.183 GB, free: 3.371 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.691e-05/1.086, allocations: 8.375 kB / 1.183 GB, free: 3.363 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000474/1.086, allocations: 399.5 kB / 1.184 GB, free: 2.961 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/1.086, allocations: 3.938 kB / 1.184 GB, free: 2.957 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.481e-05/1.087, allocations: 3.938 kB / 1.184 GB, free: 2.953 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.164e-05/1.087, allocations: 4 kB / 1.184 GB, free: 2.949 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/1.087, allocations: 439.7 kB / 1.184 GB, free: 2.52 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007754/1.088, allocations: 0.6693 MB / 1.185 GB, free: 1.801 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/1.088, allocations: 0.5673 MB / 1.185 GB, free: 1.215 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003276/1.089, allocations: 333.6 kB / 1.186 GB, free: 0.8828 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001136/1.09, allocations: 1.025 MB / 1.187 GB, free: 15.63 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004707/1.09, allocations: 412.8 kB / 1.187 GB, free: 15.21 MB / 0.92 GB Notification: Performance of pre-optimization done (n=8): time 2.395e-06/1.09, allocations: 0 / 1.187 GB, free: 15.21 MB / 0.92 GB Notification: Performance of matching and sorting (n=8): time 0.001831/1.092, allocations: 1.293 MB / 1.188 GB, free: 13.91 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.703e-05/1.092, allocations: 85.05 kB / 1.188 GB, free: 13.81 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001906/1.094, allocations: 1.293 MB / 1.19 GB, free: 12.5 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/1.094, allocations: 37.69 kB / 1.19 GB, free: 12.46 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002857/1.094, allocations: 277.4 kB / 1.19 GB, free: 12.18 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.336e-05/1.095, allocations: 15.81 kB / 1.19 GB, free: 12.17 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004423/1.095, allocations: 355.6 kB / 1.19 GB, free: 11.82 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001491/1.095, allocations: 322 kB / 1.191 GB, free: 11.5 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/1.097, allocations: 1.377 MB / 1.192 GB, free: 10.12 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002022/1.099, allocations: 1.501 MB / 1.193 GB, free: 8.605 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009999/1.109, allocations: 3.553 MB / 1.197 GB, free: 4.961 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.223e-05/1.109, allocations: 4 kB / 1.197 GB, free: 4.957 MB / 0.92 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.006011/1.115, allocations: 4.022 MB / 1.201 GB, free: 0.8984 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.638e-05/1.115, allocations: 4 kB / 1.201 GB, free: 0.8945 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/1.115, allocations: 4 kB / 1.201 GB, free: 0.8906 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/1.115, allocations: 3.984 kB / 1.201 GB, free: 0.8867 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001703/1.116, allocations: 19.94 kB / 1.201 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.016e-05/1.116, allocations: 0 / 1.201 GB, free: 0.8672 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008987/1.116, allocations: 240.2 kB / 1.201 GB, free: 0.6289 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.815e-05/1.117, allocations: 23.98 kB / 1.201 GB, free: 0.6055 MB / 0.92 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.0004566/1.117, allocations: 241.7 kB / 1.201 GB, free: 368 kB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.847e-05/1.117, allocations: 74.62 kB / 1.201 GB, free: 292 kB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003611/1.117, allocations: 87.75 kB / 1.202 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/1.117, allocations: 0 / 1.202 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.713e-06/1.117, allocations: 4.031 kB / 1.202 GB, free: 188 kB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/1.118, allocations: 0 / 1.202 GB, free: 188 kB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006311/1.118, allocations: 0.5102 MB / 1.202 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/1.118, allocations: 0 / 1.202 GB, free: 15.63 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.171e-05/1.118, allocations: 15.92 kB / 1.202 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/1.118, allocations: 0 / 1.202 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.642e-05/1.118, allocations: 0 / 1.202 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.044e-06/1.118, allocations: 7.984 kB / 1.202 GB, free: 15.61 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.498e-06/1.118, allocations: 4 kB / 1.202 GB, free: 15.6 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/1.12, allocations: 1.01 MB / 1.203 GB, free: 14.57 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001815/1.12, allocations: 163.6 kB / 1.203 GB, free: 14.39 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.151e-05/1.12, allocations: 7.984 kB / 1.203 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/1.12, allocations: 0 / 1.203 GB, free: 14.38 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.741e-05/1.12, allocations: 11.98 kB / 1.203 GB, free: 14.37 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.566e-05/1.12, allocations: 15.98 kB / 1.203 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001173/1.121, allocations: 0.7261 MB / 1.204 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.61e-07/1.121, allocations: 0 / 1.204 GB, free: 13.62 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.002457/1.124, allocations: 0.5779 MB / 1.204 GB, free: 13.05 MB / 0.9356 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.002221/1.126, allocations: 0.6844 MB / 1.205 GB, free: 12.37 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.00337/1.129, allocations: 2.552 MB / 1.208 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/1.13, allocations: 0 / 1.208 GB, free: 9.805 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0005383/1.13, allocations: 347.7 kB / 1.208 GB, free: 9.465 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007001/1.131, allocations: 69.27 kB / 1.208 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003362/1.134, allocations: 1.914 MB / 1.21 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007709/1.135, allocations: 0.9917 MB / 1.211 GB, free: 6.43 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001607/1.135, allocations: 27.42 kB / 1.211 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of SimCode: time 8.11e-07/1.135, allocations: 0 / 1.211 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of Templates: time 0.03264/1.168, allocations: 14.48 MB / 1.225 GB, free: 7.938 MB / 0.9512 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time