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.001581/0.001581, allocations: 104 kB / 15.6 MB, free: 148 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.001891/0.001891, allocations: 196.1 kB / 16.53 MB, free: 6.617 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.389/1.389, allocations: 222.9 MB / 240.2 MB, free: 4.227 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.764/2.764, allocations: 472.6 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 70.83 kB / 0.9121 GB, free: 33.43 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2709/0.2721, allocations: 159.9 MB / 1.068 GB, free: 10.39 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002852/0.275, allocations: 1.763 MB / 1.07 GB, free: 8.609 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00739/0.2824, allocations: 5.386 MB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.698e-05/0.2825, allocations: 3.938 kB / 1.075 GB, free: 3.199 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.2837, allocations: 374.4 kB / 1.076 GB, free: 2.832 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001164/0.2839, allocations: 55.72 kB / 1.076 GB, free: 2.777 MB / 0.8262 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.003499/0.2874, allocations: 1.5 MB / 1.077 GB, free: 1.277 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002295/0.2876, allocations: 167.3 kB / 1.077 GB, free: 1.113 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.556e-05/0.2877, allocations: 13.55 kB / 1.077 GB, free: 1.102 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.074e-05/0.2877, allocations: 63.7 kB / 1.077 GB, free: 1.039 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.288, allocations: 159.5 kB / 1.078 GB, free: 0.8828 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 4.28e-05/0.288, allocations: 16 kB / 1.078 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002878/0.2909, allocations: 2.153 MB / 1.08 GB, free: 14.71 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002118/0.2911, allocations: 275.8 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002546/0.2914, allocations: 314 kB / 1.08 GB, free: 14.13 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002561/0.2939, allocations: 2.174 MB / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.294, allocations: 4 kB / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.323e-06/0.294, allocations: 0 / 1.082 GB, free: 11.95 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 7.023e-06/0.294, allocations: 0 / 1.082 GB, free: 11.95 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.01032/0.3043, allocations: 1.359 MB / 1.084 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3044, allocations: 15.97 kB / 1.084 GB, free: 10.52 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.3048, allocations: 99.58 kB / 1.084 GB, free: 10.42 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004524/0.3052, allocations: 406.3 kB / 1.084 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.3053, allocations: 4.375 kB / 1.084 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.3053, allocations: 4.375 kB / 1.084 GB, free: 9.969 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004032/0.3057, allocations: 395.4 kB / 1.085 GB, free: 9.57 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.883e-06/0.3057, allocations: 4 kB / 1.085 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.3057, allocations: 3.984 kB / 1.085 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.087e-06/0.3058, allocations: 0 / 1.085 GB, free: 9.562 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004139/0.3062, allocations: 431.8 kB / 1.085 GB, free: 9.141 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005796/0.3068, allocations: 0.6731 MB / 1.086 GB, free: 8.418 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005146/0.3073, allocations: 0.5633 MB / 1.086 GB, free: 7.836 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003159/0.3076, allocations: 337.7 kB / 1.086 GB, free: 7.5 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001043/0.3087, allocations: 1.025 MB / 1.087 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003808/0.3091, allocations: 412.8 kB / 1.088 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.323e-06/0.3091, allocations: 0 / 1.088 GB, free: 5.832 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001281/0.3104, allocations: 1.289 MB / 1.089 GB, free: 4.535 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.653e-05/0.3104, allocations: 93.22 kB / 1.089 GB, free: 4.426 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001183/0.3116, allocations: 1.289 MB / 1.09 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 3.715e-05/0.3117, allocations: 33.7 kB / 1.091 GB, free: 3.086 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.3119, allocations: 281.4 kB / 1.091 GB, free: 2.805 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.637e-05/0.3119, allocations: 27.67 kB / 1.091 GB, free: 2.777 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003032/0.3122, allocations: 351.6 kB / 1.091 GB, free: 2.43 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3123, allocations: 318 kB / 1.091 GB, free: 2.113 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.3135, allocations: 1.373 MB / 1.093 GB, free: 0.7383 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001269/0.3148, allocations: 1.505 MB / 1.094 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00698/0.3218, allocations: 3.556 MB / 1.098 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.3218, allocations: 0 / 1.098 GB, free: 11.57 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004288/0.3261, allocations: 4.018 MB / 1.102 GB, free: 7.52 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.3261, allocations: 4 kB / 1.102 GB, free: 7.516 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.693e-05/0.3262, allocations: 4 kB / 1.102 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.3262, allocations: 0 / 1.102 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.3263, allocations: 19.92 kB / 1.102 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.3263, allocations: 0 / 1.102 GB, free: 7.492 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004905/0.3268, allocations: 232.3 kB / 1.102 GB, free: 7.262 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.3269, allocations: 27.97 kB / 1.102 GB, free: 7.234 MB / 0.8575 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.0003003/0.3272, allocations: 253.1 kB / 1.102 GB, free: 6.98 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.332e-05/0.3273, allocations: 78.62 kB / 1.102 GB, free: 6.902 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002882/0.3276, allocations: 83.75 kB / 1.102 GB, free: 6.812 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.3276, allocations: 0 / 1.102 GB, free: 6.812 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.3276, allocations: 0 / 1.102 GB, free: 6.812 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.3276, allocations: 4.031 kB / 1.102 GB, free: 6.809 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004264/0.328, allocations: 0.514 MB / 1.103 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.328, allocations: 0 / 1.103 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.28e-05/0.3281, allocations: 19.91 kB / 1.103 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.3281, allocations: 0 / 1.103 GB, free: 6.23 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.3282, allocations: 4 kB / 1.103 GB, free: 6.227 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.088e-06/0.3282, allocations: 4 kB / 1.103 GB, free: 6.223 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3282, allocations: 0 / 1.103 GB, free: 6.223 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000882/0.3291, allocations: 1.014 MB / 1.104 GB, free: 5.188 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001089/0.3292, allocations: 163.6 kB / 1.104 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.663e-05/0.3292, allocations: 7.938 kB / 1.104 GB, free: 5 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/0.3294, allocations: 11.92 kB / 1.104 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.531e-05/0.3294, allocations: 4 kB / 1.104 GB, free: 4.984 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.3295, allocations: 15.97 kB / 1.104 GB, free: 4.969 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007685/0.3303, allocations: 0.7261 MB / 1.105 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3303, allocations: 0 / 1.105 GB, free: 4.238 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001397/0.3317, allocations: 0.5779 MB / 1.105 GB, free: 3.66 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.001662/0.3333, allocations: 0.691 MB / 1.106 GB, free: 2.977 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002217/0.3356, allocations: 2.548 MB / 1.108 GB, free: 424 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.3356, allocations: 4 kB / 1.108 GB, free: 420 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.000303/0.3359, allocations: 347.8 kB / 1.109 GB, free: 72 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003649/0.3363, allocations: 48.66 kB / 1.109 GB, free: 24 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002086/0.3384, allocations: 1.893 MB / 1.111 GB, free: 14.1 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005083/0.3389, allocations: 0.9879 MB / 1.112 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.000175/0.3391, allocations: 33.44 kB / 1.112 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.945e-05/0.3392, allocations: 35.41 kB / 1.112 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of SimCode: time 4.11e-07/0.3392, allocations: 0 / 1.112 GB, free: 13.01 MB / 0.8731 GB Notification: Performance of Templates: time 0.02223/0.3614, allocations: 14.19 MB / 1.126 GB, free: 14.88 MB / 0.8887 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=480 -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/jenkins/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) Reference file matches