Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001502/0.001502, allocations: 105.6 kB / 15.98 MB, free: 6.336 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.001465/0.001465, allocations: 193.1 kB / 16.91 MB, free: 6.188 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.35/1.35, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.573/2.573, allocations: 469.8 MB / 0.7427 GB, free: 3.676 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001842/0.001842, allocations: 67.95 kB / 0.9088 GB, free: 14.25 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3292, allocations: 159.1 MB / 1.064 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003421/0.3327, allocations: 1.821 MB / 1.066 GB, free: 13.3 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.008224/0.3409, allocations: 5.4 MB / 1.071 GB, free: 7.887 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001427/0.3411, allocations: 0 / 1.071 GB, free: 7.887 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.001375/0.3426, allocations: 350.6 kB / 1.072 GB, free: 7.543 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0001956/0.3428, allocations: 55.72 kB / 1.072 GB, free: 7.488 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 11.1.0-maint.11.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.004212/0.347, allocations: 1.343 MB / 1.073 GB, free: 6.145 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0003197/0.3473, allocations: 155.3 kB / 1.073 GB, free: 5.992 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 6.015e-05/0.3474, allocations: 9.562 kB / 1.073 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.3475, allocations: 67.7 kB / 1.073 GB, free: 5.914 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002802/0.3478, allocations: 176.8 kB / 1.073 GB, free: 5.742 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.3479, allocations: 16 kB / 1.073 GB, free: 5.727 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003497/0.3514, allocations: 2.196 MB / 1.075 GB, free: 3.527 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002553/0.3516, allocations: 271.8 kB / 1.076 GB, free: 3.258 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0003013/0.3519, allocations: 318.1 kB / 1.076 GB, free: 2.945 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002326/0.3543, allocations: 1.512 MB / 1.078 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.3543, allocations: 0 / 1.078 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.784e-06/0.3543, allocations: 0 / 1.078 GB, free: 1.43 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 9.167e-06/0.3543, allocations: 0 / 1.078 GB, free: 1.43 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.008901/0.3632, allocations: 1.366 MB / 1.079 GB, free: 12 kB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.283e-05/0.3633, allocations: 8.031 kB / 1.079 GB, free: 4 kB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.5165/0.8798, allocations: 91.5 kB / 1.079 GB, free: 21.71 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005276/0.8804, allocations: 410.7 kB / 1.079 GB, free: 21.43 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.34e-05/0.8804, allocations: 7 kB / 1.079 GB, free: 21.43 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.784e-05/0.8805, allocations: 7.219 kB / 1.079 GB, free: 21.43 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005482/0.881, allocations: 393.1 kB / 1.08 GB, free: 21.39 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.8811, allocations: 0.6875 kB / 1.08 GB, free: 21.39 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.8811, allocations: 5.734 kB / 1.08 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.8811, allocations: 1.562 kB / 1.08 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000567/0.8817, allocations: 437 kB / 1.08 GB, free: 21.38 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006903/0.8824, allocations: 0.6618 MB / 1.081 GB, free: 21.1 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005778/0.8829, allocations: 0.5673 MB / 1.081 GB, free: 21.05 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003554/0.8833, allocations: 336.6 kB / 1.082 GB, free: 21.04 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008379/0.8842, allocations: 1.027 MB / 1.083 GB, free: 19.91 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004409/0.8846, allocations: 403.4 kB / 1.083 GB, free: 19.85 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 2.094e-06/0.8846, allocations: 0 / 1.083 GB, free: 19.85 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001517/0.8861, allocations: 1.309 MB / 1.084 GB, free: 19.75 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.379e-05/0.8862, allocations: 81.91 kB / 1.084 GB, free: 19.66 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001395/0.8876, allocations: 1.294 MB / 1.086 GB, free: 19.35 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.168e-05/0.8876, allocations: 30.98 kB / 1.086 GB, free: 19.31 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001798/0.8878, allocations: 287.8 kB / 1.086 GB, free: 19.12 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.51e-05/0.8879, allocations: 21.36 kB / 1.086 GB, free: 19.11 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003501/0.8882, allocations: 351.3 kB / 1.086 GB, free: 19.01 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 5.246e-05/0.8883, allocations: 320.4 kB / 1.087 GB, free: 18.7 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.8896, allocations: 1.372 MB / 1.088 GB, free: 18.24 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001553/0.8912, allocations: 1.506 MB / 1.089 GB, free: 17.72 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006947/0.8982, allocations: 3.558 MB / 1.093 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.362e-06/0.8982, allocations: 2.531 kB / 1.093 GB, free: 15.88 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004315/0.9025, allocations: 4.003 MB / 1.097 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.9026, allocations: 11.97 kB / 1.097 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.191e-05/0.9026, allocations: 3.141 kB / 1.097 GB, free: 13.9 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.9026, allocations: 9 kB / 1.097 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.9028, allocations: 18.73 kB / 1.097 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.896e-06/0.9028, allocations: 1.891 kB / 1.097 GB, free: 13.89 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005579/0.9033, allocations: 236.6 kB / 1.097 GB, free: 13.7 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-05/0.9034, allocations: 22.78 kB / 1.097 GB, free: 13.7 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.0003789/0.9038, allocations: 245 kB / 1.097 GB, free: 13.58 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.851e-05/0.9039, allocations: 80.3 kB / 1.097 GB, free: 13.52 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002868/0.9042, allocations: 87.38 kB / 1.098 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.9042, allocations: 2.062 kB / 1.098 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.931e-06/0.9042, allocations: 1.219 kB / 1.098 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.217e-06/0.9042, allocations: 0.6562 kB / 1.098 GB, free: 13.46 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005861/0.9048, allocations: 0.516 MB / 1.098 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.9048, allocations: 1.422 kB / 1.098 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.322e-05/0.9049, allocations: 8.922 kB / 1.098 GB, free: 13.18 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.9049, allocations: 4.438 kB / 1.098 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.6e-05/0.9049, allocations: 7.547 kB / 1.098 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.9049, allocations: 1.562 kB / 1.098 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.9049, allocations: 0.6562 kB / 1.098 GB, free: 13.17 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009893/0.9059, allocations: 1.009 MB / 1.099 GB, free: 13.02 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 9.141e-05/0.906, allocations: 160 kB / 1.099 GB, free: 12.87 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.019e-05/0.9061, allocations: 11.28 kB / 1.099 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.9062, allocations: 4.141 kB / 1.099 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.012e-05/0.9063, allocations: 11.44 kB / 1.099 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.929e-05/0.9063, allocations: 14.38 kB / 1.099 GB, free: 12.86 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0008649/0.9072, allocations: 0.7233 MB / 1.1 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9072, allocations: 3.938 kB / 1.1 GB, free: 12.61 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001605/0.9088, allocations: 0.5828 MB / 1.101 GB, free: 12.57 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.001771/0.9106, allocations: 0.6914 MB / 1.101 GB, free: 12.44 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002366/0.913, allocations: 2.548 MB / 1.104 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.913, allocations: 0 / 1.104 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.0003645/0.9134, allocations: 337.2 kB / 1.104 GB, free: 11.41 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004685/0.9138, allocations: 72.36 kB / 1.104 GB, free: 11.36 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002397/0.9162, allocations: 2.101 MB / 1.106 GB, free: 10.53 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004766/0.9167, allocations: 0.9891 MB / 1.107 GB, free: 9.832 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001211/0.9169, allocations: 27.38 kB / 1.107 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of SimCode: time 5.81e-07/0.9169, allocations: 1.062 kB / 1.107 GB, free: 9.824 MB / 0.8419 GB Notification: Performance of Templates: time 0.02823/0.9451, allocations: 14.48 MB / 1.121 GB, free: 7.98 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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