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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001454/0.001454, allocations: 80.2 kB / 19.18 MB, free: 2.527 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 173.7 kB / 22.46 MB, free: 5.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.529/1.529, allocations: 177.1 MB / 202.8 MB, free: 9.184 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo): time 2.791/2.791, allocations: 359 MB / 0.6037 GB, free: 14.99 MB / 0.5762 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.2-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|gFun_int",fileNamePrefix="Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 0.9511 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.629e-05/3.812e-05, allocations: 4.812 kB / 0.9511 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003692/0.00373, allocations: 1.728 MB / 0.9527 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.009084/0.01281, allocations: 4.903 MB / 0.9575 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.01294, allocations: 0 / 0.9575 GB, free: 4.828 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.001482/0.01442, allocations: 330.4 kB / 0.9579 GB, free: 4.504 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001711/0.0146, allocations: 67.66 kB / 0.9579 GB, free: 4.438 MB / 0.8575 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.2-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.004589/0.01918, allocations: 1.581 MB / 0.9595 GB, free: 2.855 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0003695/0.01955, allocations: 171.3 kB / 0.9596 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.181e-05/0.01962, allocations: 9.797 kB / 0.9596 GB, free: 2.672 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.01977, allocations: 87.72 kB / 0.9597 GB, free: 2.586 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002632/0.02003, allocations: 155.6 kB / 0.9599 GB, free: 2.434 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 5.24e-05/0.02008, allocations: 16 kB / 0.9599 GB, free: 2.418 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004499/0.02458, allocations: 2.374 MB / 0.9622 GB, free: 40 kB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.0003161/0.0249, allocations: 287.8 kB / 0.9625 GB, free: 15.76 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.000251/0.02515, allocations: 167.9 kB / 0.9626 GB, free: 15.59 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.004401/0.02955, allocations: 2.514 MB / 0.9651 GB, free: 13.07 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 1.246e-05/0.02956, allocations: 11.98 kB / 0.9651 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.363e-06/0.02956, allocations: 0 / 0.9651 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 1.05e-05/0.02958, allocations: 0 / 0.9651 GB, free: 13.06 MB / 0.8731 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.01195/0.04153, allocations: 1.327 MB / 0.9664 GB, free: 11.7 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.64e-05/0.04158, allocations: 8.031 kB / 0.9664 GB, free: 11.69 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005072/0.04209, allocations: 104.1 kB / 0.9665 GB, free: 11.59 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007011/0.04279, allocations: 359.7 kB / 0.9668 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.04281, allocations: 4.375 kB / 0.9668 GB, free: 11.2 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.001e-05/0.04285, allocations: 8.375 kB / 0.9669 GB, free: 11.19 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000518/0.04337, allocations: 391.7 kB / 0.9672 GB, free: 10.8 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.04338, allocations: 4.172 kB / 0.9672 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.04339, allocations: 384 / 0.9672 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.0434, allocations: 3.938 kB / 0.9672 GB, free: 10.79 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005115/0.04391, allocations: 443.7 kB / 0.9677 GB, free: 10.36 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000751/0.04466, allocations: 0.5937 MB / 0.9682 GB, free: 9.73 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006381/0.0453, allocations: 0.5555 MB / 0.9688 GB, free: 9.156 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003866/0.04569, allocations: 333.7 kB / 0.9691 GB, free: 8.824 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006713/0.04636, allocations: 135.9 kB / 0.9692 GB, free: 8.691 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004996/0.04686, allocations: 400.9 kB / 0.9696 GB, free: 8.281 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=8): time 1.223e-06/0.04686, allocations: 0 / 0.9696 GB, free: 8.281 MB / 0.8731 GB Notification: Performance of matching and sorting (n=8): time 0.001686/0.04854, allocations: 1.305 MB / 0.9709 GB, free: 6.969 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.523e-05/0.04862, allocations: 89.05 kB / 0.971 GB, free: 6.863 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001486/0.05011, allocations: 1.29 MB / 0.9722 GB, free: 5.562 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 5.29e-05/0.05016, allocations: 29.7 kB / 0.9723 GB, free: 5.527 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002682/0.05043, allocations: 290 kB / 0.9725 GB, free: 5.238 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.308e-05/0.05047, allocations: 23.84 kB / 0.9726 GB, free: 5.215 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004025/0.05087, allocations: 343.6 kB / 0.9729 GB, free: 4.875 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.00019/0.05106, allocations: 318 kB / 0.9732 GB, free: 4.559 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001519/0.05258, allocations: 1.373 MB / 0.9745 GB, free: 3.184 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/0.05421, allocations: 1.513 MB / 0.976 GB, free: 1.66 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008027/0.06223, allocations: 3.557 MB / 0.9795 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.382e-06/0.06224, allocations: 0 / 0.9795 GB, free: 14.02 MB / 0.8887 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005194/0.06744, allocations: 4.023 MB / 0.9834 GB, free: 9.957 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.06747, allocations: 8 kB / 0.9834 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.835e-05/0.06749, allocations: 0 / 0.9834 GB, free: 9.949 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.06751, allocations: 4 kB / 0.9834 GB, free: 9.945 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001475/0.06766, allocations: 19.92 kB / 0.9834 GB, free: 9.926 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/0.06767, allocations: 8.062 kB / 0.9835 GB, free: 9.918 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005952/0.06827, allocations: 237.4 kB / 0.9837 GB, free: 9.684 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.356e-05/0.06833, allocations: 27.98 kB / 0.9837 GB, free: 9.656 MB / 0.8887 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.0003898/0.06872, allocations: 261.5 kB / 0.984 GB, free: 9.391 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.345e-05/0.06881, allocations: 75.3 kB / 0.984 GB, free: 9.316 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00121/0.07002, allocations: 0.9407 MB / 0.9849 GB, free: 8.359 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.533e-06/0.07003, allocations: 4 kB / 0.9849 GB, free: 8.355 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.674e-06/0.07004, allocations: 7.969 kB / 0.985 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.07004, allocations: 0 / 0.985 GB, free: 8.348 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005298/0.07057, allocations: 468.3 kB / 0.9854 GB, free: 7.863 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.07057, allocations: 4 kB / 0.9854 GB, free: 7.859 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.479e-05/0.07065, allocations: 8 kB / 0.9854 GB, free: 7.852 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.07065, allocations: 0 / 0.9854 GB, free: 7.852 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.07067, allocations: 7.984 kB / 0.9854 GB, free: 7.844 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-06/0.07067, allocations: 0 / 0.9854 GB, free: 7.844 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.07068, allocations: 0 / 0.9854 GB, free: 7.844 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00113/0.07181, allocations: 1.014 MB / 0.9864 GB, free: 6.809 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000116/0.07192, allocations: 91.22 kB / 0.9865 GB, free: 6.719 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.721e-05/0.07199, allocations: 0 / 0.9865 GB, free: 6.719 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001561/0.07214, allocations: 8 kB / 0.9865 GB, free: 6.711 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.431e-05/0.07221, allocations: 11.92 kB / 0.9865 GB, free: 6.699 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.706e-05/0.07226, allocations: 11.98 kB / 0.9865 GB, free: 6.688 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 0.0009579/0.07321, allocations: 0.7222 MB / 0.9872 GB, free: 5.961 MB / 0.8887 GB Notification: Performance of sort global known variables: time 8e-08/0.07321, allocations: 0 / 0.9872 GB, free: 5.961 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.00175/0.07496, allocations: 0.5923 MB / 0.9878 GB, free: 5.367 MB / 0.8887 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.002129/0.07709, allocations: 0.7876 MB / 0.9886 GB, free: 4.598 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 0.002492/0.07958, allocations: 2.001 MB / 0.9905 GB, free: 2.582 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.07959, allocations: 0 / 0.9905 GB, free: 2.582 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 0.0003949/0.07998, allocations: 339.7 kB / 0.9909 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.08041, allocations: 53.16 kB / 0.9909 GB, free: 2.199 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002726/0.08314, allocations: 1.889 MB / 0.9928 GB, free: 280 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004518/0.08359, allocations: 389.9 kB / 0.9931 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 0.0001716/0.08376, allocations: 49.39 kB / 0.9932 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000129/0.08389, allocations: 24.48 kB / 0.9932 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of SimCode: time 6.41e-07/0.08389, allocations: 3.938 kB / 0.9932 GB, free: 15.79 MB / 0.9044 GB Notification: Performance of Templates: time 0.02859/0.1125, allocations: 14.65 MB / 1.008 GB, free: 1.297 MB / 0.9044 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (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) [Timeout 400] 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/jenkins/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) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 9.544389713555574]