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.001104/0.001104, allocations: 92.16 kB / 16.02 MB, free: 80 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.001637/0.001637, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.432/1.432, allocations: 223.3 MB / 241 MB, free: 5.336 MB / 190.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.674/2.674, allocations: 437.8 MB / 0.7128 GB, free: 6.953 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003832/0.0003833, allocations: 8 kB / 0.8735 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7953/0.7957, allocations: 153.8 MB / 1.024 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002343/0.7981, allocations: 1.464 MB / 1.025 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.008831/0.8069, allocations: 5.562 MB / 1.031 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000157/0.8071, allocations: 0 / 1.031 GB, free: 8.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001343/0.8085, allocations: 358.6 kB / 1.031 GB, free: 8.418 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001998/0.8087, allocations: 59.72 kB / 1.031 GB, free: 8.359 MB / 0.7794 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003652/0.8124, allocations: 1.169 MB / 1.032 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003292/0.8127, allocations: 203.3 kB / 1.032 GB, free: 6.992 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 7.409e-05/0.8128, allocations: 21.53 kB / 1.032 GB, free: 6.969 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.8129, allocations: 59.72 kB / 1.032 GB, free: 6.91 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002629/0.8132, allocations: 172.8 kB / 1.033 GB, free: 6.742 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.686e-05/0.8132, allocations: 19.94 kB / 1.033 GB, free: 6.723 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003717/0.8169, allocations: 2.184 MB / 1.035 GB, free: 4.535 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002744/0.8172, allocations: 275.8 kB / 1.035 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0003492/0.8176, allocations: 343.8 kB / 1.035 GB, free: 3.922 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00284/0.8204, allocations: 1.555 MB / 1.037 GB, free: 2.363 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.8205, allocations: 0 / 1.037 GB, free: 2.363 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.034e-06/0.8205, allocations: 0 / 1.037 GB, free: 2.363 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.804e-05/0.8205, allocations: 0 / 1.037 GB, free: 2.363 MB / 0.7794 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.01136/0.8319, allocations: 1.296 MB / 1.038 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 6.192e-05/0.8319, allocations: 11.98 kB / 1.038 GB, free: 1.004 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005211/0.8325, allocations: 99.58 kB / 1.038 GB, free: 0.9062 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006111/0.8331, allocations: 410.3 kB / 1.039 GB, free: 468 kB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.8331, allocations: 384 / 1.039 GB, free: 468 kB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.664e-05/0.8332, allocations: 8.375 kB / 1.039 GB, free: 460 kB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004815/0.8337, allocations: 399.5 kB / 1.039 GB, free: 48 kB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.546e-06/0.8337, allocations: 3.938 kB / 1.039 GB, free: 44 kB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.485e-05/0.8337, allocations: 0 / 1.039 GB, free: 44 kB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.8337, allocations: 0 / 1.039 GB, free: 44 kB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004861/0.8342, allocations: 435.8 kB / 1.039 GB, free: 15.62 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/0.8351, allocations: 0.6653 MB / 1.04 GB, free: 14.9 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005828/0.8357, allocations: 0.5633 MB / 1.041 GB, free: 14.32 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000347/0.836, allocations: 341.7 kB / 1.041 GB, free: 13.98 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001246/0.8373, allocations: 1.036 MB / 1.042 GB, free: 12.72 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004592/0.8378, allocations: 408.8 kB / 1.042 GB, free: 12.3 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.733e-06/0.8378, allocations: 0 / 1.042 GB, free: 12.3 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001521/0.8393, allocations: 1.297 MB / 1.044 GB, free: 11 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.8394, allocations: 89.05 kB / 1.044 GB, free: 10.89 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.8408, allocations: 1.286 MB / 1.045 GB, free: 9.598 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.462e-05/0.8409, allocations: 33.7 kB / 1.045 GB, free: 9.559 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003107/0.8412, allocations: 281.3 kB / 1.045 GB, free: 9.277 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 4.377e-05/0.8412, allocations: 23.73 kB / 1.045 GB, free: 9.254 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003626/0.8416, allocations: 295.7 kB / 1.046 GB, free: 8.961 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001337/0.8417, allocations: 318 kB / 1.046 GB, free: 8.645 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001348/0.8431, allocations: 1.369 MB / 1.047 GB, free: 7.273 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001468/0.8446, allocations: 1.511 MB / 1.049 GB, free: 5.754 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007374/0.852, allocations: 3.556 MB / 1.052 GB, free: 2.105 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.464e-06/0.852, allocations: 0 / 1.052 GB, free: 2.105 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004871/0.8569, allocations: 4.01 MB / 1.056 GB, free: 14.06 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.857, allocations: 8 kB / 1.056 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.124e-05/0.857, allocations: 4 kB / 1.056 GB, free: 14.05 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.857, allocations: 4 kB / 1.056 GB, free: 14.04 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.8572, allocations: 19.92 kB / 1.056 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.025e-06/0.8572, allocations: 3.938 kB / 1.056 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005944/0.8578, allocations: 232.3 kB / 1.056 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.504e-05/0.8578, allocations: 23.98 kB / 1.056 GB, free: 13.77 MB / 0.8106 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.0003728/0.8582, allocations: 258.1 kB / 1.057 GB, free: 13.51 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.183e-05/0.8583, allocations: 78.53 kB / 1.057 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003206/0.8586, allocations: 83.75 kB / 1.057 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.887e-06/0.8586, allocations: 0 / 1.057 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.8587, allocations: 0 / 1.057 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.8587, allocations: 0 / 1.057 GB, free: 13.33 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004971/0.8592, allocations: 0.5179 MB / 1.057 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.8592, allocations: 4.031 kB / 1.057 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.734e-05/0.8593, allocations: 7.938 kB / 1.057 GB, free: 12.76 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.8593, allocations: 4 kB / 1.057 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.403e-05/0.8593, allocations: 3.984 kB / 1.057 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.228e-06/0.8593, allocations: 4 kB / 1.057 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.8593, allocations: 0 / 1.057 GB, free: 12.75 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009272/0.8602, allocations: 1.01 MB / 1.058 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001262/0.8604, allocations: 163.7 kB / 1.058 GB, free: 11.54 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.357e-05/0.8604, allocations: 4 kB / 1.058 GB, free: 11.53 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.8606, allocations: 7.984 kB / 1.058 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.8606, allocations: 4 kB / 1.058 GB, free: 11.52 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.073e-05/0.8607, allocations: 19.95 kB / 1.058 GB, free: 11.5 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008016/0.8615, allocations: 0.7261 MB / 1.059 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8615, allocations: 0 / 1.059 GB, free: 10.77 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001588/0.8631, allocations: 0.5896 MB / 1.06 GB, free: 10.18 MB / 0.8106 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.001852/0.865, allocations: 0.6821 MB / 1.06 GB, free: 9.508 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002416/0.8674, allocations: 2.552 MB / 1.063 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.8674, allocations: 0 / 1.063 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003305/0.8677, allocations: 343.8 kB / 1.063 GB, free: 6.605 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004794/0.8682, allocations: 70.33 kB / 1.063 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002501/0.8707, allocations: 2.125 MB / 1.065 GB, free: 4.383 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000601/0.8713, allocations: 0.9959 MB / 1.066 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.8715, allocations: 27.41 kB / 1.066 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of SimCode: time 7.01e-07/0.8715, allocations: 0 / 1.066 GB, free: 3.336 MB / 0.8106 GB Notification: Performance of Templates: time 0.02457/0.8961, allocations: 14.43 MB / 1.08 GB, free: 4.922 MB / 0.8262 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 -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) "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time