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_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.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_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_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_latest_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.00149/0.00149, allocations: 102.2 kB / 16.35 MB, free: 5.875 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.001732/0.001732, allocations: 194.3 kB / 17.3 MB, free: 5.516 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.443/1.443, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.455/2.455, allocations: 442.6 MB / 0.7165 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 64.59 kB / 0.8774 GB, free: 10.94 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.269/0.2703, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002482/0.2728, allocations: 1.445 MB / 1.028 GB, free: 0.5781 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006005/0.2788, allocations: 4.199 MB / 1.032 GB, free: 12.36 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.999e-05/0.2789, allocations: 3.938 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.000109/0.2791, allocations: 11.86 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.0002203/0.2793, allocations: 31.83 kB / 1.032 GB, free: 12.31 MB / 0.8106 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 11.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.003717/0.283, allocations: 1.5 MB / 1.034 GB, free: 10.81 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.2832, allocations: 95.67 kB / 1.034 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.698e-05/0.2832, allocations: 7.984 kB / 1.034 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 7.195e-05/0.2833, allocations: 43.84 kB / 1.034 GB, free: 10.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000203/0.2835, allocations: 151.6 kB / 1.034 GB, free: 10.52 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 3.62e-05/0.2836, allocations: 15.94 kB / 1.034 GB, free: 10.5 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003136/0.2867, allocations: 2.208 MB / 1.036 GB, free: 8.289 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002137/0.2869, allocations: 267.8 kB / 1.036 GB, free: 8.027 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002293/0.2872, allocations: 278.3 kB / 1.037 GB, free: 7.754 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002972/0.2902, allocations: 2.112 MB / 1.039 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 4.008e-06/0.2902, allocations: 0 / 1.039 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.282e-06/0.2902, allocations: 0 / 1.039 GB, free: 5.637 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 8.786e-06/0.2902, allocations: 0 / 1.039 GB, free: 5.637 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.008405/0.2986, allocations: 1.302 MB / 1.04 GB, free: 4.285 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2987, allocations: 8.031 kB / 1.04 GB, free: 4.277 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003862/0.2991, allocations: 87.69 kB / 1.04 GB, free: 4.191 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004271/0.2995, allocations: 368.9 kB / 1.041 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.257e-06/0.2995, allocations: 4.375 kB / 1.041 GB, free: 3.777 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.124e-05/0.2996, allocations: 4.375 kB / 1.041 GB, free: 3.773 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004116/0.3, allocations: 391.5 kB / 1.041 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3, allocations: 0 / 1.041 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.602e-05/0.3, allocations: 7.984 kB / 1.041 GB, free: 3.371 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.372e-06/0.3, allocations: 4 kB / 1.041 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004099/0.3004, allocations: 431.7 kB / 1.041 GB, free: 2.945 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005498/0.301, allocations: 0.6404 MB / 1.042 GB, free: 2.254 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004991/0.3015, allocations: 0.5594 MB / 1.043 GB, free: 1.676 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002957/0.3018, allocations: 341.7 kB / 1.043 GB, free: 1.336 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009825/0.3028, allocations: 1.036 MB / 1.044 GB, free: 80 kB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003961/0.3032, allocations: 404.8 kB / 1.044 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.443e-06/0.3032, allocations: 0 / 1.044 GB, free: 15.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001267/0.3045, allocations: 1.293 MB / 1.045 GB, free: 14.36 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.658e-05/0.3046, allocations: 81.11 kB / 1.046 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001085/0.3057, allocations: 1.214 MB / 1.047 GB, free: 13.04 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.824e-05/0.3057, allocations: 25.7 kB / 1.047 GB, free: 13 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001724/0.3059, allocations: 257.4 kB / 1.047 GB, free: 12.75 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.869e-05/0.3059, allocations: 27.72 kB / 1.047 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003109/0.3062, allocations: 359.8 kB / 1.047 GB, free: 12.36 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.073e-05/0.3063, allocations: 310 kB / 1.048 GB, free: 12.05 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001167/0.3075, allocations: 1.373 MB / 1.049 GB, free: 10.68 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001243/0.3088, allocations: 1.501 MB / 1.05 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007075/0.3159, allocations: 3.564 MB / 1.054 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.3159, allocations: 0 / 1.054 GB, free: 5.512 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004602/0.3205, allocations: 4.002 MB / 1.058 GB, free: 1.473 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.62e-05/0.3205, allocations: 4 kB / 1.058 GB, free: 1.469 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.569e-05/0.3206, allocations: 7.984 kB / 1.058 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.341e-05/0.3206, allocations: 0 / 1.058 GB, free: 1.461 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.3208, allocations: 19.97 kB / 1.058 GB, free: 1.441 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.257e-05/0.3208, allocations: 4 kB / 1.058 GB, free: 1.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.3213, allocations: 232.3 kB / 1.058 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.114e-05/0.3214, allocations: 23.98 kB / 1.058 GB, free: 1.184 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.0003117/0.3217, allocations: 241.5 kB / 1.058 GB, free: 0.9375 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.664e-05/0.3218, allocations: 70.72 kB / 1.058 GB, free: 0.8672 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002737/0.3221, allocations: 75.06 kB / 1.059 GB, free: 0.7852 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.3221, allocations: 4 kB / 1.059 GB, free: 0.7812 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/0.3221, allocations: 7.938 kB / 1.059 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3221, allocations: 0 / 1.059 GB, free: 0.7734 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004401/0.3226, allocations: 0.493 MB / 1.059 GB, free: 240 kB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3226, allocations: 3.938 kB / 1.059 GB, free: 236 kB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.174e-05/0.3227, allocations: 11.92 kB / 1.059 GB, free: 224 kB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.314e-06/0.3227, allocations: 0 / 1.059 GB, free: 224 kB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.555e-05/0.3227, allocations: 4 kB / 1.059 GB, free: 220 kB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.3227, allocations: 4.031 kB / 1.059 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.3227, allocations: 0 / 1.059 GB, free: 216 kB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009212/0.3236, allocations: 0.9975 MB / 1.06 GB, free: 15.19 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001169/0.3238, allocations: 151.8 kB / 1.06 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.159e-05/0.3238, allocations: 4 kB / 1.06 GB, free: 15.02 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001357/0.324, allocations: 11.98 kB / 1.06 GB, free: 15.01 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.324, allocations: 3.938 kB / 1.06 GB, free: 15 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-05/0.3241, allocations: 15.97 kB / 1.06 GB, free: 14.99 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007176/0.3248, allocations: 0.6689 MB / 1.061 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3248, allocations: 0 / 1.061 GB, free: 14.31 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001941/0.3267, allocations: 0.5818 MB / 1.061 GB, free: 13.73 MB / 0.8419 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.001899/0.3287, allocations: 0.6889 MB / 1.062 GB, free: 13.05 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002404/0.3311, allocations: 2.552 MB / 1.065 GB, free: 10.49 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 5.12e-06/0.3311, allocations: 4 kB / 1.065 GB, free: 10.48 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003136/0.3314, allocations: 339.8 kB / 1.065 GB, free: 10.15 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.3318, allocations: 45.23 kB / 1.065 GB, free: 10.11 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001964/0.3337, allocations: 1.744 MB / 1.067 GB, free: 8.328 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004595/0.3342, allocations: 0.9679 MB / 1.068 GB, free: 7.332 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001354/0.3344, allocations: 32.56 kB / 1.068 GB, free: 7.301 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001048/0.3345, allocations: 27.41 kB / 1.068 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of SimCode: time 7.01e-07/0.3345, allocations: 0 / 1.068 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of Templates: time 0.439/0.7735, allocations: 13.54 MB / 1.081 GB, free: 54.71 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_1borehole_5meters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches