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.001739/0.001739, allocations: 103.2 kB / 16.27 MB, free: 6.402 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.001992/0.001992, allocations: 188 kB / 17.2 MB, free: 5.938 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.43/1.43, allocations: 222.9 MB / 240.9 MB, free: 15.29 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.522/2.522, allocations: 437 MB / 0.711 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 61.38 kB / 0.8699 GB, free: 2.152 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3351/0.3368, allocations: 151.6 MB / 1.018 GB, free: 10.57 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.003179/0.34, allocations: 1.427 MB / 1.019 GB, free: 9.133 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.007085/0.3471, allocations: 4.214 MB / 1.024 GB, free: 4.902 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.597e-05/0.3472, allocations: 0 / 1.024 GB, free: 4.902 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001298/0.3474, allocations: 15.86 kB / 1.024 GB, free: 4.887 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.0002816/0.3477, allocations: 27.84 kB / 1.024 GB, free: 4.859 MB / 0.795 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.004537/0.3523, allocations: 1.509 MB / 1.025 GB, free: 3.355 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0001694/0.3525, allocations: 99.66 kB / 1.025 GB, free: 3.258 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.955e-05/0.3525, allocations: 7.984 kB / 1.025 GB, free: 3.25 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 9.316e-05/0.3526, allocations: 43.89 kB / 1.025 GB, free: 3.207 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002434/0.3529, allocations: 151.5 kB / 1.025 GB, free: 3.059 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 5.736e-05/0.3529, allocations: 16 kB / 1.025 GB, free: 3.043 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00372/0.3567, allocations: 2.153 MB / 1.027 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.000247/0.3569, allocations: 271.8 kB / 1.028 GB, free: 0.6211 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.0002864/0.3572, allocations: 274.3 kB / 1.028 GB, free: 360 kB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.003855/0.3611, allocations: 2.1 MB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.591e-06/0.3611, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3611, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 2.003e-05/0.3611, allocations: 0 / 1.03 GB, free: 14.25 MB / 0.8106 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.01077/0.3719, allocations: 1.304 MB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.917e-05/0.372, allocations: 8.922 kB / 1.031 GB, free: 12.88 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004556/0.3724, allocations: 91.69 kB / 1.031 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005181/0.373, allocations: 365 kB / 1.032 GB, free: 12.39 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.373, allocations: 4.375 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.3731, allocations: 4.375 kB / 1.032 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004941/0.3736, allocations: 399.5 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.045e-05/0.3736, allocations: 0 / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.3736, allocations: 0 / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.295e-06/0.3736, allocations: 4 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004461/0.3741, allocations: 435.7 kB / 1.033 GB, free: 11.55 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006937/0.3748, allocations: 0.6443 MB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005468/0.3753, allocations: 0.5595 MB / 1.034 GB, free: 10.27 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.3757, allocations: 337.5 kB / 1.034 GB, free: 9.938 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00113/0.3768, allocations: 1.028 MB / 1.035 GB, free: 8.688 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000434/0.3772, allocations: 404.8 kB / 1.035 GB, free: 8.273 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 3.517e-06/0.3773, allocations: 3.984 kB / 1.035 GB, free: 8.27 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.001433/0.3787, allocations: 1.289 MB / 1.037 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.218e-05/0.3788, allocations: 85.09 kB / 1.037 GB, free: 6.871 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00133/0.3801, allocations: 1.214 MB / 1.038 GB, free: 5.641 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.898e-05/0.3802, allocations: 25.7 kB / 1.038 GB, free: 5.609 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.3804, allocations: 265.3 kB / 1.038 GB, free: 5.344 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 4.614e-05/0.3804, allocations: 27.72 kB / 1.038 GB, free: 5.316 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003443/0.3808, allocations: 351.6 kB / 1.039 GB, free: 4.969 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.3809, allocations: 310.1 kB / 1.039 GB, free: 4.66 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001419/0.3823, allocations: 1.373 MB / 1.04 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001413/0.3838, allocations: 1.505 MB / 1.042 GB, free: 1.77 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007266/0.391, allocations: 3.56 MB / 1.045 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.318e-06/0.3911, allocations: 0 / 1.045 GB, free: 14.12 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004941/0.396, allocations: 4.01 MB / 1.049 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.3961, allocations: 4 kB / 1.049 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.948e-05/0.3961, allocations: 4 kB / 1.049 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.856e-05/0.3961, allocations: 0 / 1.049 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.3963, allocations: 15.98 kB / 1.049 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.548e-06/0.3963, allocations: 4.031 kB / 1.049 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005252/0.3968, allocations: 232.4 kB / 1.049 GB, free: 9.812 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.826e-05/0.3969, allocations: 23.98 kB / 1.049 GB, free: 9.789 MB / 0.8262 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.0003662/0.3973, allocations: 237.6 kB / 1.05 GB, free: 9.547 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.3974, allocations: 74.62 kB / 1.05 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003088/0.3977, allocations: 75.06 kB / 1.05 GB, free: 9.391 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.3977, allocations: 4 kB / 1.05 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.3977, allocations: 3.938 kB / 1.05 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.3977, allocations: 0 / 1.05 GB, free: 9.383 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.3982, allocations: 0.493 MB / 1.05 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.3982, allocations: 0 / 1.05 GB, free: 8.844 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.557e-05/0.3983, allocations: 11.92 kB / 1.05 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.995e-06/0.3983, allocations: 0 / 1.05 GB, free: 8.832 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3983, allocations: 8 kB / 1.05 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.3983, allocations: 3.938 kB / 1.05 GB, free: 8.82 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.3983, allocations: 4.031 kB / 1.05 GB, free: 8.816 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009551/0.3993, allocations: 1.002 MB / 1.051 GB, free: 7.793 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001427/0.3995, allocations: 151.8 kB / 1.051 GB, free: 7.625 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-05/0.3995, allocations: 4 kB / 1.051 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001402/0.3997, allocations: 3.984 kB / 1.051 GB, free: 7.617 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.989e-05/0.3997, allocations: 15.94 kB / 1.051 GB, free: 7.602 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.281e-05/0.3998, allocations: 15.97 kB / 1.051 GB, free: 7.586 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.00077/0.4006, allocations: 0.6689 MB / 1.052 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of sort global known variables: time 3.31e-07/0.4006, allocations: 0 / 1.052 GB, free: 6.91 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001755/0.4023, allocations: 0.574 MB / 1.053 GB, free: 6.336 MB / 0.8262 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.002573/0.4049, allocations: 0.6847 MB / 1.053 GB, free: 5.664 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002663/0.4076, allocations: 2.563 MB / 1.056 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.4076, allocations: 0 / 1.056 GB, free: 3.086 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0003606/0.408, allocations: 335.8 kB / 1.056 GB, free: 2.758 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003504/0.4083, allocations: 44.52 kB / 1.056 GB, free: 2.715 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002404/0.4107, allocations: 1.797 MB / 1.058 GB, free: 0.875 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006221/0.4114, allocations: 0.9678 MB / 1.059 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.4115, allocations: 35.41 kB / 1.059 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of SimCode: time 5.41e-07/0.4115, allocations: 0 / 1.059 GB, free: 15.84 MB / 0.8419 GB Notification: Performance of Templates: time 0.02476/0.4363, allocations: 13.83 MB / 1.072 GB, free: 2.016 MB / 0.8419 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/jenkins1/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