Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001607/0.001607, allocations: 105.1 kB / 16.27 MB, free: 6.414 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.001566/0.001567, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.426/1.426, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.806/2.806, allocations: 482.4 MB / 0.7553 GB, free: 6.977 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002017/0.002017, allocations: 72.88 kB / 0.9245 GB, free: 15.94 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8675/0.8695, allocations: 162.2 MB / 1.083 GB, free: 1.664 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003054/0.8726, allocations: 1.749 MB / 1.085 GB, free: 452 kB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.008857/0.8815, allocations: 5.38 MB / 1.09 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001899/0.8818, allocations: 1.094 kB / 1.09 GB, free: 12.78 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001524/0.8834, allocations: 376.7 kB / 1.09 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0002015/0.8836, allocations: 62.09 kB / 1.09 GB, free: 12.57 MB / 0.8419 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 12.0.0-master/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.005153/0.8888, allocations: 1.502 MB / 1.092 GB, free: 12 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003716/0.8891, allocations: 164.5 kB / 1.092 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.359e-05/0.8892, allocations: 9.75 kB / 1.092 GB, free: 11.94 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.8893, allocations: 56.17 kB / 1.092 GB, free: 11.92 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000283/0.8896, allocations: 167.4 kB / 1.092 GB, free: 11.87 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 5.147e-05/0.8897, allocations: 18.39 kB / 1.092 GB, free: 11.86 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005157/0.8949, allocations: 2.148 MB / 1.094 GB, free: 11.22 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0003753/0.8953, allocations: 285.4 kB / 1.095 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003663/0.8957, allocations: 302.4 kB / 1.095 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.005758/0.9014, allocations: 2.165 MB / 1.097 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.9015, allocations: 1.031 kB / 1.097 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of FrontEnd: time 2.254e-06/0.9015, allocations: 0 / 1.097 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.658e-05/0.9015, allocations: 0 / 1.097 GB, free: 10.32 MB / 0.8419 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.01203/0.9135, allocations: 1.376 MB / 1.098 GB, free: 9.348 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.73e-05/0.9136, allocations: 12.91 kB / 1.098 GB, free: 9.344 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004779/0.9141, allocations: 93.55 kB / 1.098 GB, free: 9.289 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006133/0.9147, allocations: 411.5 kB / 1.099 GB, free: 8.965 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.828e-05/0.9147, allocations: 7.297 kB / 1.099 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.707e-05/0.9148, allocations: 5.672 kB / 1.099 GB, free: 8.961 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005255/0.9153, allocations: 397.4 kB / 1.099 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.9153, allocations: 1.344 kB / 1.099 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.9154, allocations: 0.8438 kB / 1.099 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.9154, allocations: 1.406 kB / 1.099 GB, free: 8.895 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005378/0.9159, allocations: 441 kB / 1.1 GB, free: 8.883 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009285/0.9169, allocations: 0.6626 MB / 1.1 GB, free: 8.488 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006555/0.9175, allocations: 0.566 MB / 1.101 GB, free: 8.426 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003705/0.9179, allocations: 338.9 kB / 1.101 GB, free: 8.402 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001269/0.9192, allocations: 1.029 MB / 1.102 GB, free: 7.266 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004644/0.9197, allocations: 409.6 kB / 1.103 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.833e-06/0.9197, allocations: 0 / 1.103 GB, free: 7.184 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001587/0.9213, allocations: 1.3 MB / 1.104 GB, free: 7.062 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.02e-05/0.9213, allocations: 81.7 kB / 1.104 GB, free: 6.969 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001741/0.9231, allocations: 1.294 MB / 1.105 GB, free: 6.457 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 7.5e-05/0.9232, allocations: 33.7 kB / 1.105 GB, free: 6.422 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.000267/0.9234, allocations: 284.1 kB / 1.105 GB, free: 6.203 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.968e-05/0.9235, allocations: 20.92 kB / 1.105 GB, free: 6.188 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003997/0.9239, allocations: 351.9 kB / 1.106 GB, free: 6.09 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001767/0.9241, allocations: 326.1 kB / 1.106 GB, free: 5.773 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.9257, allocations: 1.369 MB / 1.107 GB, free: 5.32 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001677/0.9273, allocations: 1.504 MB / 1.109 GB, free: 4.797 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007989/0.9353, allocations: 3.552 MB / 1.112 GB, free: 2.957 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-05/0.9354, allocations: 9.688 kB / 1.112 GB, free: 2.949 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00533/0.9407, allocations: 4.019 MB / 1.116 GB, free: 0.957 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 3.009e-05/0.9408, allocations: 8.375 kB / 1.116 GB, free: 0.957 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.399e-05/0.9408, allocations: 6.812 kB / 1.116 GB, free: 0.9531 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.9408, allocations: 1.875 kB / 1.116 GB, free: 0.9531 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001553/0.941, allocations: 18.78 kB / 1.116 GB, free: 0.9492 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.166e-05/0.941, allocations: 4.781 kB / 1.116 GB, free: 0.9453 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007356/0.9418, allocations: 232.5 kB / 1.117 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.726e-05/0.9418, allocations: 23.75 kB / 1.117 GB, free: 0.7578 MB / 0.8419 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.0004351/0.9423, allocations: 244.8 kB / 1.117 GB, free: 0.6367 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.452e-05/0.9424, allocations: 76.42 kB / 1.117 GB, free: 0.5781 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003287/0.9427, allocations: 84.91 kB / 1.117 GB, free: 0.5117 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.36e-06/0.9427, allocations: 6.172 kB / 1.117 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.9427, allocations: 0 / 1.117 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.62e-06/0.9427, allocations: 1.797 kB / 1.117 GB, free: 0.5078 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006595/0.9434, allocations: 0.5133 MB / 1.118 GB, free: 232 kB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.9434, allocations: 0 / 1.118 GB, free: 232 kB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.608e-05/0.9435, allocations: 11.45 kB / 1.118 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.9435, allocations: 1.031 kB / 1.118 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.369e-05/0.9435, allocations: 3.656 kB / 1.118 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.9435, allocations: 2.016 kB / 1.118 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.9435, allocations: 1.312 kB / 1.118 GB, free: 228 kB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001107/0.9447, allocations: 1.009 MB / 1.119 GB, free: 68 kB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.9448, allocations: 170.1 kB / 1.119 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.97e-05/0.9449, allocations: 1.922 kB / 1.119 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.9451, allocations: 4.688 kB / 1.119 GB, free: 15.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.465e-05/0.9451, allocations: 14.67 kB / 1.119 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.902e-05/0.9452, allocations: 12.02 kB / 1.119 GB, free: 15.9 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.001007/0.9462, allocations: 0.7225 MB / 1.119 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.71e-07/0.9462, allocations: 1.375 kB / 1.119 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.002598/0.9488, allocations: 0.5791 MB / 1.12 GB, free: 15.56 MB / 0.8575 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.002742/0.9516, allocations: 0.6906 MB / 1.121 GB, free: 15.3 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.003707/0.9553, allocations: 2.557 MB / 1.123 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 8.626e-06/0.9553, allocations: 4 kB / 1.123 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0004692/0.9558, allocations: 337.6 kB / 1.123 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006474/0.9564, allocations: 66.16 kB / 1.124 GB, free: 14.22 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003196/0.9596, allocations: 1.931 MB / 1.125 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007872/0.9605, allocations: 0.9874 MB / 1.126 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.9607, allocations: 30.23 kB / 1.126 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of SimCode: time 1.072e-06/0.9607, allocations: 0 / 1.126 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of Templates: time 0.03195/0.9926, allocations: 14.48 MB / 1.141 GB, free: 3.227 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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