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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.0011/0.0011, allocations: 111.3 kB / 16.37 MB, free: 6.012 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.001078/0.001078, allocations: 189.5 kB / 17.31 MB, free: 5.613 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.339/1.339, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.429/2.429, allocations: 437.1 MB / 0.7112 GB, free: 4.32 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 65.66 kB / 0.8707 GB, free: 1.355 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2834/0.2847, allocations: 151.6 MB / 1.019 GB, free: 9.766 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00284/0.2875, allocations: 1.773 MB / 1.021 GB, free: 7.977 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.006971/0.2945, allocations: 5.378 MB / 1.026 GB, free: 2.57 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.2e-05/0.2947, allocations: 0 / 1.026 GB, free: 2.57 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.001111/0.2958, allocations: 370.9 kB / 1.026 GB, free: 2.207 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 0.000114/0.2959, allocations: 67.67 kB / 1.026 GB, free: 2.141 MB / 0.795 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.0-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.003431/0.2994, allocations: 1.498 MB / 1.028 GB, free: 0.6406 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 0.0002455/0.2996, allocations: 167.3 kB / 1.028 GB, free: 488 kB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.337e-05/0.2997, allocations: 13.55 kB / 1.028 GB, free: 472 kB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 7.2e-05/0.2998, allocations: 55.78 kB / 1.028 GB, free: 416 kB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002079/0.3, allocations: 171.4 kB / 1.028 GB, free: 244 kB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 3.652e-05/0.3, allocations: 16 kB / 1.028 GB, free: 228 kB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002762/0.3028, allocations: 2.208 MB / 1.03 GB, free: 14.01 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.0002015/0.303, allocations: 271.8 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.0002447/0.3033, allocations: 310.1 kB / 1.031 GB, free: 13.44 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.002317/0.3056, allocations: 2.186 MB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.3056, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.393e-06/0.3056, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.3056, allocations: 0 / 1.033 GB, free: 11.25 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.008207/0.3138, allocations: 1.366 MB / 1.034 GB, free: 9.832 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.3139, allocations: 8.922 kB / 1.034 GB, free: 9.824 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003803/0.3143, allocations: 95.59 kB / 1.034 GB, free: 9.73 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004961/0.3148, allocations: 414.2 kB / 1.035 GB, free: 9.277 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.999e-06/0.3148, allocations: 384 / 1.035 GB, free: 9.277 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.165e-05/0.3149, allocations: 12.38 kB / 1.035 GB, free: 9.266 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000391/0.3152, allocations: 391.5 kB / 1.035 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.442e-06/0.3153, allocations: 0 / 1.035 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.3153, allocations: 0 / 1.035 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.3153, allocations: 0 / 1.035 GB, free: 8.871 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003966/0.3157, allocations: 443.7 kB / 1.036 GB, free: 8.438 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000539/0.3162, allocations: 0.6615 MB / 1.036 GB, free: 7.727 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004655/0.3167, allocations: 0.5633 MB / 1.037 GB, free: 7.145 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002916/0.317, allocations: 337.7 kB / 1.037 GB, free: 6.809 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008826/0.3179, allocations: 1.028 MB / 1.038 GB, free: 5.559 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003751/0.3183, allocations: 412.8 kB / 1.038 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=8): time 1.372e-06/0.3183, allocations: 0 / 1.038 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of matching and sorting (n=8): time 0.001224/0.3195, allocations: 1.296 MB / 1.04 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.906e-05/0.3196, allocations: 89.03 kB / 1.04 GB, free: 3.727 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001104/0.3207, allocations: 1.286 MB / 1.041 GB, free: 2.43 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.3208, allocations: 33.69 kB / 1.041 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001879/0.3209, allocations: 293.2 kB / 1.041 GB, free: 2.098 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.003e-05/0.321, allocations: 19.75 kB / 1.041 GB, free: 2.078 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002969/0.3213, allocations: 351.6 kB / 1.042 GB, free: 1.73 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.843e-05/0.3214, allocations: 318 kB / 1.042 GB, free: 1.414 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001105/0.3225, allocations: 1.373 MB / 1.043 GB, free: 40 kB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.3237, allocations: 1.505 MB / 1.045 GB, free: 14.52 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006908/0.3306, allocations: 3.557 MB / 1.048 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.3307, allocations: 0 / 1.048 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004114/0.3348, allocations: 4.01 MB / 1.052 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 2.412e-05/0.3348, allocations: 12.03 kB / 1.052 GB, free: 6.816 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.093e-05/0.3349, allocations: 7.984 kB / 1.052 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.125e-05/0.3349, allocations: 4 kB / 1.052 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001399/0.335, allocations: 15.98 kB / 1.052 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.832e-06/0.335, allocations: 0 / 1.052 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004976/0.3355, allocations: 236.2 kB / 1.053 GB, free: 6.555 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.452e-05/0.3356, allocations: 23.98 kB / 1.053 GB, free: 6.531 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.0003428/0.336, allocations: 253.6 kB / 1.053 GB, free: 6.273 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.799e-05/0.3361, allocations: 78.53 kB / 1.053 GB, free: 6.195 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002808/0.3363, allocations: 75.81 kB / 1.053 GB, free: 6.113 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.051e-06/0.3364, allocations: 4 kB / 1.053 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.3364, allocations: 0 / 1.053 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.3364, allocations: 0 / 1.053 GB, free: 6.109 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004807/0.3369, allocations: 0.514 MB / 1.053 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.814e-06/0.3369, allocations: 3.938 kB / 1.053 GB, free: 5.547 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.422e-05/0.337, allocations: 19.95 kB / 1.053 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.047e-05/0.337, allocations: 0 / 1.053 GB, free: 5.527 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.289e-05/0.337, allocations: 7.938 kB / 1.053 GB, free: 5.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.337, allocations: 3.984 kB / 1.053 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.337, allocations: 0 / 1.053 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009037/0.3379, allocations: 1.006 MB / 1.054 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001229/0.338, allocations: 159.7 kB / 1.055 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.696e-05/0.3381, allocations: 7.984 kB / 1.055 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.3383, allocations: 4 kB / 1.055 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.075e-05/0.3383, allocations: 11.92 kB / 1.055 GB, free: 4.289 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.611e-05/0.3384, allocations: 11.98 kB / 1.055 GB, free: 4.277 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0007857/0.3392, allocations: 0.7222 MB / 1.055 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3392, allocations: 0 / 1.055 GB, free: 3.551 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.001717/0.3409, allocations: 0.5857 MB / 1.056 GB, free: 2.965 MB / 0.8262 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.001712/0.3426, allocations: 0.686 MB / 1.057 GB, free: 2.293 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.002053/0.3447, allocations: 2.549 MB / 1.059 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3447, allocations: 0 / 1.059 GB, free: 15.73 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.000296/0.345, allocations: 343.9 kB / 1.059 GB, free: 15.39 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003592/0.3454, allocations: 63.39 kB / 1.059 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001921/0.3473, allocations: 1.873 MB / 1.061 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004468/0.3478, allocations: 0.9839 MB / 1.062 GB, free: 12.42 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.0001278/0.3479, allocations: 45.42 kB / 1.062 GB, free: 12.38 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.839e-05/0.348, allocations: 27.42 kB / 1.062 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of SimCode: time 2.3e-07/0.348, allocations: 0 / 1.062 GB, free: 12.35 MB / 0.8419 GB Notification: Performance of Templates: time 1.109/1.457, allocations: 14.17 MB / 1.076 GB, free: 60.39 MB / 0.8419 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 -s cvode -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/jenkins1/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