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_1borehole_5meters.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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_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=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007673/0.007673, allocations: 102.8 kB / 15.74 MB, free: 6.039 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.001769/0.001769, allocations: 201.2 kB / 16.68 MB, free: 5.965 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.377/1.377, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.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.696/2.696, allocations: 437 MB / 0.7105 GB, free: 5.059 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 63.89 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.272/0.2734, allocations: 151.6 MB / 1.167 GB, free: 6.805 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002383/0.2758, allocations: 1.442 MB / 1.168 GB, free: 5.352 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.006079/0.2819, allocations: 4.198 MB / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.785e-05/0.282, allocations: 0 / 1.172 GB, free: 1.133 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001027/0.2821, allocations: 11.86 kB / 1.172 GB, free: 1.121 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.0002162/0.2824, allocations: 39.77 kB / 1.172 GB, free: 1.082 MB / 0.92 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.003738/0.2861, allocations: 1.493 MB / 1.174 GB, free: 15.58 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001468/0.2863, allocations: 95.72 kB / 1.174 GB, free: 15.49 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 3.897e-05/0.2863, allocations: 4 kB / 1.174 GB, free: 15.48 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 7.361e-05/0.2864, allocations: 47.83 kB / 1.174 GB, free: 15.44 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002284/0.2866, allocations: 147.6 kB / 1.174 GB, free: 15.29 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 4.34e-05/0.2867, allocations: 12 kB / 1.174 GB, free: 15.28 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003242/0.2899, allocations: 2.207 MB / 1.176 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.0002091/0.2902, allocations: 263.8 kB / 1.176 GB, free: 12.81 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.0002564/0.2904, allocations: 282.3 kB / 1.177 GB, free: 12.54 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.002973/0.2934, allocations: 2.122 MB / 1.179 GB, free: 10.41 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.2934, allocations: 4 kB / 1.179 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.582e-06/0.2934, allocations: 0 / 1.179 GB, free: 10.4 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 1.822e-05/0.2934, allocations: 0 / 1.179 GB, free: 10.4 MB / 0.9356 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.01013/0.3036, allocations: 1.344 MB / 1.18 GB, free: 9.004 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.3036, allocations: 8.031 kB / 1.18 GB, free: 8.996 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000398/0.304, allocations: 96.25 kB / 1.18 GB, free: 8.902 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003946/0.3045, allocations: 365 kB / 1.18 GB, free: 8.496 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.686e-05/0.3045, allocations: 12.36 kB / 1.181 GB, free: 8.484 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.854e-05/0.3045, allocations: 8.312 kB / 1.181 GB, free: 8.477 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004296/0.305, allocations: 387.5 kB / 1.181 GB, free: 8.086 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.839e-06/0.305, allocations: 3.938 kB / 1.181 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.596e-05/0.305, allocations: 3.984 kB / 1.181 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.305, allocations: 4 kB / 1.181 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000424/0.3055, allocations: 431.8 kB / 1.181 GB, free: 7.652 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000586/0.3061, allocations: 0.6448 MB / 1.182 GB, free: 6.957 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005268/0.3066, allocations: 0.5672 MB / 1.182 GB, free: 6.371 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003058/0.3069, allocations: 337.7 kB / 1.183 GB, free: 6.035 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001052/0.308, allocations: 1.028 MB / 1.184 GB, free: 4.785 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004269/0.3084, allocations: 408.8 kB / 1.184 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=8): time 1.733e-06/0.3084, allocations: 0 / 1.184 GB, free: 4.367 MB / 0.9356 GB Notification: Performance of matching and sorting (n=8): time 0.001382/0.3098, allocations: 1.301 MB / 1.185 GB, free: 3.059 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.633e-05/0.3099, allocations: 81.11 kB / 1.186 GB, free: 2.961 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001215/0.3111, allocations: 1.219 MB / 1.187 GB, free: 1.727 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 4.21e-05/0.3112, allocations: 37.77 kB / 1.187 GB, free: 1.684 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002026/0.3114, allocations: 261.9 kB / 1.187 GB, free: 1.422 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.344e-05/0.3114, allocations: 23.84 kB / 1.187 GB, free: 1.398 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003565/0.3118, allocations: 355.6 kB / 1.187 GB, free: 1.047 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.3119, allocations: 314 kB / 1.188 GB, free: 0.7344 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001248/0.3132, allocations: 1.369 MB / 1.189 GB, free: 15.36 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001323/0.3145, allocations: 1.505 MB / 1.191 GB, free: 13.85 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007124/0.3216, allocations: 3.56 MB / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.002e-06/0.3217, allocations: 0 / 1.194 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004372/0.3261, allocations: 4.007 MB / 1.198 GB, free: 6.152 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.3261, allocations: 8.031 kB / 1.198 GB, free: 6.145 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.99e-05/0.3261, allocations: 7.984 kB / 1.198 GB, free: 6.137 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.509e-05/0.3261, allocations: 0 / 1.198 GB, free: 6.137 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001322/0.3263, allocations: 12 kB / 1.198 GB, free: 6.125 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.3263, allocations: 4 kB / 1.198 GB, free: 6.121 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005125/0.3268, allocations: 245.2 kB / 1.198 GB, free: 5.879 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.897e-05/0.3269, allocations: 27.98 kB / 1.198 GB, free: 5.852 MB / 0.9512 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.0003158/0.3272, allocations: 237.6 kB / 1.198 GB, free: 5.609 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.947e-05/0.3273, allocations: 83.23 kB / 1.198 GB, free: 5.527 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002999/0.3276, allocations: 75.06 kB / 1.199 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.3276, allocations: 0 / 1.199 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3276, allocations: 0 / 1.199 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.3276, allocations: 0 / 1.199 GB, free: 5.441 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004472/0.3281, allocations: 0.4892 MB / 1.199 GB, free: 4.906 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3281, allocations: 0 / 1.199 GB, free: 4.906 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.674e-05/0.3282, allocations: 15.95 kB / 1.199 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3282, allocations: 0 / 1.199 GB, free: 4.891 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.702e-05/0.3282, allocations: 11.94 kB / 1.199 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.3282, allocations: 0 / 1.199 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3282, allocations: 0 / 1.199 GB, free: 4.879 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009475/0.3292, allocations: 1.006 MB / 1.2 GB, free: 3.852 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001348/0.3293, allocations: 156.4 kB / 1.2 GB, free: 3.68 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.3294, allocations: 4 kB / 1.2 GB, free: 3.676 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001498/0.3296, allocations: 7.984 kB / 1.2 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.74e-05/0.3296, allocations: 0 / 1.2 GB, free: 3.668 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.978e-05/0.3297, allocations: 15.97 kB / 1.2 GB, free: 3.652 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.000728/0.3304, allocations: 0.6689 MB / 1.201 GB, free: 2.977 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.41e-07/0.3304, allocations: 3.938 kB / 1.201 GB, free: 2.973 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.00146/0.3319, allocations: 0.5884 MB / 1.201 GB, free: 2.383 MB / 0.9512 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.002209/0.3341, allocations: 0.7005 MB / 1.202 GB, free: 1.695 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.002371/0.3365, allocations: 2.552 MB / 1.205 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.3365, allocations: 0 / 1.205 GB, free: 15.12 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0003384/0.3368, allocations: 343.8 kB / 1.205 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003274/0.3372, allocations: 43.14 kB / 1.205 GB, free: 14.75 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002014/0.3392, allocations: 1.778 MB / 1.207 GB, free: 12.93 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005135/0.3397, allocations: 0.964 MB / 1.208 GB, free: 11.95 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001347/0.3399, allocations: 36.5 kB / 1.208 GB, free: 11.91 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001038/0.34, allocations: 27.41 kB / 1.208 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of SimCode: time 3.51e-07/0.34, allocations: 0 / 1.208 GB, free: 11.88 MB / 0.9669 GB Notification: Performance of Templates: time 0.02311/0.3631, allocations: 13.56 MB / 1.221 GB, free: 14.36 MB / 0.9825 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches