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.001432/0.001432, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001736/0.001736, allocations: 192.3 kB / 16.53 MB, free: 6.391 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.369/1.369, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.56/2.56, allocations: 437 MB / 0.7103 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 63.91 kB / 0.8692 GB, free: 4.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6085/0.6099, allocations: 151.6 MB / 1.017 GB, free: 2.508 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003128/0.613, allocations: 1.761 MB / 1.019 GB, free: 0.7305 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.007462/0.6205, allocations: 5.392 MB / 1.024 GB, free: 11.32 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001371/0.6207, allocations: 4 kB / 1.024 GB, free: 11.31 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001239/0.622, allocations: 370.4 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.6221, allocations: 59.66 kB / 1.025 GB, free: 10.89 MB / 0.7794 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.00385/0.626, allocations: 1.496 MB / 1.026 GB, free: 9.395 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002559/0.6263, allocations: 167.3 kB / 1.026 GB, free: 9.23 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.385e-05/0.6263, allocations: 9.562 kB / 1.026 GB, free: 9.219 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.523e-05/0.6264, allocations: 59.77 kB / 1.026 GB, free: 9.16 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002195/0.6267, allocations: 163.5 kB / 1.027 GB, free: 9 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.966e-05/0.6267, allocations: 20 kB / 1.027 GB, free: 8.98 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003249/0.63, allocations: 2.153 MB / 1.029 GB, free: 6.824 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002114/0.6302, allocations: 275.8 kB / 1.029 GB, free: 6.555 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0002734/0.6305, allocations: 306.1 kB / 1.029 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.003233/0.6337, allocations: 2.171 MB / 1.031 GB, free: 4.078 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.6337, allocations: 4 kB / 1.031 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.182e-06/0.6337, allocations: 0 / 1.031 GB, free: 4.074 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.628e-05/0.6338, allocations: 0 / 1.031 GB, free: 4.074 MB / 0.7794 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.01058/0.6444, allocations: 1.359 MB / 1.033 GB, free: 2.664 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/0.6444, allocations: 12.03 kB / 1.033 GB, free: 2.652 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004756/0.6449, allocations: 95.5 kB / 1.033 GB, free: 2.559 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.6455, allocations: 418.1 kB / 1.033 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.6455, allocations: 8.375 kB / 1.033 GB, free: 2.094 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.937e-05/0.6456, allocations: 4.375 kB / 1.033 GB, free: 2.09 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004437/0.646, allocations: 391.5 kB / 1.034 GB, free: 1.695 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.646, allocations: 3.938 kB / 1.034 GB, free: 1.691 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.658e-05/0.6461, allocations: 4 kB / 1.034 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.6461, allocations: 0 / 1.034 GB, free: 1.688 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.6465, allocations: 439.7 kB / 1.034 GB, free: 1.258 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007425/0.6473, allocations: 0.6654 MB / 1.035 GB, free: 0.543 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005241/0.6478, allocations: 0.5557 MB / 1.035 GB, free: 15.96 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003157/0.6481, allocations: 349.5 kB / 1.036 GB, free: 15.62 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/0.6492, allocations: 1.028 MB / 1.037 GB, free: 14.37 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003909/0.6496, allocations: 412.7 kB / 1.037 GB, free: 13.95 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.953e-06/0.6497, allocations: 0 / 1.037 GB, free: 13.95 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001341/0.651, allocations: 1.289 MB / 1.038 GB, free: 12.65 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.958e-05/0.6511, allocations: 81.11 kB / 1.038 GB, free: 12.55 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.6524, allocations: 1.29 MB / 1.04 GB, free: 11.25 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.724e-05/0.6525, allocations: 33.69 kB / 1.04 GB, free: 11.21 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002103/0.6527, allocations: 289.5 kB / 1.04 GB, free: 10.93 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.512e-05/0.6528, allocations: 19.72 kB / 1.04 GB, free: 10.91 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003199/0.6531, allocations: 355.6 kB / 1.04 GB, free: 10.55 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.6532, allocations: 318 kB / 1.04 GB, free: 10.24 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.6544, allocations: 1.369 MB / 1.042 GB, free: 8.867 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001251/0.6557, allocations: 1.509 MB / 1.043 GB, free: 7.348 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006964/0.6627, allocations: 3.557 MB / 1.047 GB, free: 3.699 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.6627, allocations: 0 / 1.047 GB, free: 3.699 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004496/0.6672, allocations: 4.018 MB / 1.051 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.279e-05/0.6673, allocations: 4 kB / 1.051 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.252e-05/0.6673, allocations: 4.031 kB / 1.051 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.653e-05/0.6673, allocations: 7.938 kB / 1.051 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.6675, allocations: 15.98 kB / 1.051 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.954e-06/0.6675, allocations: 0 / 1.051 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005689/0.6681, allocations: 232.3 kB / 1.051 GB, free: 15.38 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.202e-05/0.6681, allocations: 19.98 kB / 1.051 GB, free: 15.36 MB / 0.8106 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.0003434/0.6685, allocations: 249.6 kB / 1.051 GB, free: 15.11 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.699e-05/0.6686, allocations: 78.62 kB / 1.051 GB, free: 15.03 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003588/0.6689, allocations: 79.81 kB / 1.051 GB, free: 14.94 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.205e-06/0.669, allocations: 11.98 kB / 1.051 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.332e-06/0.669, allocations: 0 / 1.051 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.669, allocations: 0 / 1.051 GB, free: 14.93 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005034/0.6695, allocations: 0.5178 MB / 1.052 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.6695, allocations: 0 / 1.052 GB, free: 14.37 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.641e-05/0.6696, allocations: 15.89 kB / 1.052 GB, free: 14.35 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.6696, allocations: 8 kB / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.269e-05/0.6696, allocations: 0 / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.415e-06/0.6696, allocations: 3.938 kB / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.6696, allocations: 4 kB / 1.052 GB, free: 14.34 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008763/0.6705, allocations: 1.002 MB / 1.053 GB, free: 13.31 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001426/0.6707, allocations: 163.7 kB / 1.053 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.133e-05/0.6708, allocations: 3.984 kB / 1.053 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001496/0.6709, allocations: 4 kB / 1.053 GB, free: 13.12 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.772e-05/0.671, allocations: 11.98 kB / 1.053 GB, free: 13.11 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.761e-05/0.671, allocations: 15.92 kB / 1.053 GB, free: 13.1 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0007687/0.6718, allocations: 0.7261 MB / 1.054 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6718, allocations: 0 / 1.054 GB, free: 12.37 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.00147/0.6733, allocations: 0.5818 MB / 1.054 GB, free: 11.79 MB / 0.8106 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.002206/0.6755, allocations: 0.6973 MB / 1.055 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002271/0.6778, allocations: 2.556 MB / 1.058 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.6778, allocations: 0 / 1.058 GB, free: 8.531 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003164/0.6781, allocations: 339.7 kB / 1.058 GB, free: 8.199 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004213/0.6785, allocations: 61.95 kB / 1.058 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.6807, allocations: 1.882 MB / 1.06 GB, free: 6.227 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005052/0.6813, allocations: 0.9956 MB / 1.061 GB, free: 5.203 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0002017/0.6815, allocations: 37.42 kB / 1.061 GB, free: 5.168 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001022/0.6816, allocations: 31.36 kB / 1.061 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of SimCode: time 2.8e-07/0.6816, allocations: 0 / 1.061 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of Templates: time 0.02447/0.7061, allocations: 14.19 MB / 1.075 GB, free: 7.012 MB / 0.8262 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/jenkins/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) Reference file matches