Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0008156/0.0008156, allocations: 76.5 kB / 19.93 MB, free: 4.633 MB / 18.57 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.0007904/0.0007904, allocations: 173.9 kB / 23.21 MB, free: 1.352 MB / 18.57 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 0.8958/0.8958, allocations: 177.1 MB / 203.5 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.722/1.722, allocations: 377.8 MB / 0.6228 GB, free: 8.664 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.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_12_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_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 0.9823 GB, free: 0.8438 MB / 0.8855 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.418e-05/2.6e-05, allocations: 5.375 kB / 0.9823 GB, free: 0.8398 MB / 0.8855 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002118/0.002144, allocations: 1.74 MB / 0.984 GB, free: 15.09 MB / 0.9011 GB Notification: Performance of NFInst.instExpressions: time 0.005242/0.007386, allocations: 4.899 MB / 0.9888 GB, free: 10.17 MB / 0.9011 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.961e-05/0.007466, allocations: 7.938 kB / 0.9888 GB, free: 10.16 MB / 0.9011 GB Notification: Performance of NFTyping.typeComponents: time 0.0008981/0.008364, allocations: 334.4 kB / 0.9891 GB, free: 9.832 MB / 0.9011 GB Notification: Performance of NFTyping.typeBindings: time 6.967e-05/0.008434, allocations: 71.59 kB / 0.9892 GB, free: 9.762 MB / 0.9011 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'. Notification: Performance of NFTyping.typeClassSections: time 0.002182/0.01062, allocations: 1.588 MB / 0.9907 GB, free: 8.168 MB / 0.9011 GB Notification: Performance of NFFlatten.flatten: time 0.0001831/0.0108, allocations: 169.1 kB / 0.9909 GB, free: 8.004 MB / 0.9011 GB Notification: Performance of NFFlatten.resolveConnections: time 4.149e-05/0.01084, allocations: 5.812 kB / 0.9909 GB, free: 8 MB / 0.9011 GB Notification: Performance of NFEvalConstants.evaluate: time 8.317e-05/0.01092, allocations: 87.78 kB / 0.991 GB, free: 7.914 MB / 0.9011 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001589/0.01108, allocations: 151.6 kB / 0.9911 GB, free: 7.766 MB / 0.9011 GB Notification: Performance of NFPackage.collectConstants: time 2.918e-05/0.01111, allocations: 16 kB / 0.9911 GB, free: 7.75 MB / 0.9011 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002156/0.01327, allocations: 2.405 MB / 0.9935 GB, free: 5.34 MB / 0.9011 GB Notification: Performance of NFScalarize.scalarize: time 0.0001623/0.01343, allocations: 283.9 kB / 0.9937 GB, free: 5.062 MB / 0.9011 GB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.01356, allocations: 167.9 kB / 0.9939 GB, free: 4.898 MB / 0.9011 GB Notification: Performance of NFConvertDAE.convert: time 0.001981/0.01554, allocations: 2.525 MB / 0.9964 GB, free: 2.363 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 3.005e-06/0.01554, allocations: 0 / 0.9964 GB, free: 2.363 MB / 0.9011 GB Notification: Performance of FrontEnd: time 1.082e-06/0.01554, allocations: 0 / 0.9964 GB, free: 2.363 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 6.012e-06/0.01555, allocations: 0 / 0.9964 GB, free: 2.363 MB / 0.9011 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.004172/0.01972, allocations: 1.338 MB / 0.9977 GB, free: 0.9883 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.01976, allocations: 12.03 kB / 0.9977 GB, free: 0.9766 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002575/0.02002, allocations: 104.2 kB / 0.9978 GB, free: 0.875 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000389/0.02041, allocations: 351.7 kB / 0.9981 GB, free: 0.4961 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.152e-05/0.02042, allocations: 4.375 kB / 0.9981 GB, free: 0.4922 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.02045, allocations: 4.375 kB / 0.9981 GB, free: 500 kB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003052/0.02075, allocations: 391.7 kB / 0.9985 GB, free: 96 kB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.02076, allocations: 192 / 0.9985 GB, free: 96 kB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.02077, allocations: 8.359 kB / 0.9985 GB, free: 88 kB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.02078, allocations: 3.938 kB / 0.9985 GB, free: 84 kB / 0.9011 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.02106, allocations: 443.7 kB / 0.9989 GB, free: 15.65 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003944/0.02146, allocations: 0.5859 MB / 0.9995 GB, free: 15.03 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004163/0.02187, allocations: 0.5632 MB / 1 GB, free: 14.45 MB / 0.9167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001938/0.02207, allocations: 333.7 kB / 1 GB, free: 14.12 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003642/0.02243, allocations: 143.7 kB / 1.001 GB, free: 13.98 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002635/0.02269, allocations: 396.9 kB / 1.001 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=8): time 9.21e-07/0.0227, allocations: 0 / 1.001 GB, free: 13.57 MB / 0.9167 GB Notification: Performance of matching and sorting (n=8): time 0.0009005/0.0236, allocations: 1.305 MB / 1.002 GB, free: 12.26 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.056e-05/0.02364, allocations: 85.05 kB / 1.002 GB, free: 12.16 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008184/0.02446, allocations: 1.294 MB / 1.004 GB, free: 10.85 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.02448, allocations: 37.69 kB / 1.004 GB, free: 10.81 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.02463, allocations: 293.9 kB / 1.004 GB, free: 10.52 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 3.191e-05/0.02466, allocations: 23.83 kB / 1.004 GB, free: 10.49 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002108/0.02487, allocations: 339.6 kB / 1.004 GB, free: 10.16 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.672e-05/0.02495, allocations: 318 kB / 1.004 GB, free: 9.84 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007705/0.02572, allocations: 1.369 MB / 1.006 GB, free: 8.469 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009014/0.02662, allocations: 1.509 MB / 1.007 GB, free: 6.949 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004454/0.03107, allocations: 3.56 MB / 1.011 GB, free: 3.293 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.03108, allocations: 0 / 1.011 GB, free: 3.293 MB / 0.9167 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00285/0.03393, allocations: 4.015 MB / 1.015 GB, free: 15.24 MB / 0.9323 GB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.03394, allocations: 4 kB / 1.015 GB, free: 15.24 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.03396, allocations: 4 kB / 1.015 GB, free: 15.23 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.03398, allocations: 0 / 1.015 GB, free: 15.23 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.62e-05/0.03406, allocations: 23.95 kB / 1.015 GB, free: 15.21 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/0.03407, allocations: 0 / 1.015 GB, free: 15.21 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002647/0.03433, allocations: 241.4 kB / 1.015 GB, free: 14.97 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.368e-05/0.03437, allocations: 27.98 kB / 1.015 GB, free: 14.95 MB / 0.9323 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.0002173/0.03458, allocations: 249.6 kB / 1.015 GB, free: 14.69 MB / 0.9323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.021e-05/0.03462, allocations: 79.3 kB / 1.015 GB, free: 14.61 MB / 0.9323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006477/0.03527, allocations: 0.9485 MB / 1.016 GB, free: 13.66 MB / 0.9323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.03528, allocations: 0 / 1.016 GB, free: 13.66 MB / 0.9323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.03528, allocations: 3.938 kB / 1.016 GB, free: 13.65 MB / 0.9323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.658e-06/0.03529, allocations: 4 kB / 1.016 GB, free: 13.65 MB / 0.9323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002842/0.03557, allocations: 476.2 kB / 1.017 GB, free: 13.16 MB / 0.9323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.03557, allocations: 0 / 1.017 GB, free: 13.16 MB / 0.9323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.642e-05/0.03561, allocations: 8 kB / 1.017 GB, free: 13.15 MB / 0.9323 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.03561, allocations: 0 / 1.017 GB, free: 13.15 MB / 0.9323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.729e-06/0.03562, allocations: 3.984 kB / 1.017 GB, free: 13.14 MB / 0.9323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.03562, allocations: 4 kB / 1.017 GB, free: 13.14 MB / 0.9323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.03562, allocations: 3.938 kB / 1.017 GB, free: 13.14 MB / 0.9323 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005802/0.0362, allocations: 1.014 MB / 1.018 GB, free: 12.1 MB / 0.9323 GB Notification: Performance of postOpt removeConstants (simulation): time 5.925e-05/0.03626, allocations: 91.25 kB / 1.018 GB, free: 12.01 MB / 0.9323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.907e-05/0.0363, allocations: 7.984 kB / 1.018 GB, free: 12 MB / 0.9323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.804e-05/0.03638, allocations: 4 kB / 1.018 GB, free: 12 MB / 0.9323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.414e-05/0.03641, allocations: 7.922 kB / 1.018 GB, free: 11.99 MB / 0.9323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.03644, allocations: 11.98 kB / 1.018 GB, free: 11.98 MB / 0.9323 GB Notification: Performance of sorting global known variables: time 0.0005058/0.03694, allocations: 0.7261 MB / 1.019 GB, free: 11.25 MB / 0.9323 GB Notification: Performance of sort global known variables: time 1.5e-07/0.03694, allocations: 4 kB / 1.019 GB, free: 11.25 MB / 0.9323 GB Notification: Performance of remove unused functions: time 0.001071/0.03801, allocations: 0.5923 MB / 1.019 GB, free: 10.65 MB / 0.9323 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.001308/0.03932, allocations: 0.7995 MB / 1.02 GB, free: 9.867 MB / 0.9323 GB Notification: Performance of simCode: created initialization part: time 0.001305/0.04063, allocations: 1.993 MB / 1.022 GB, free: 7.859 MB / 0.9323 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.04063, allocations: 0 / 1.022 GB, free: 7.859 MB / 0.9323 GB Notification: Performance of simCode: created simulation system equations: time 0.0002082/0.04084, allocations: 344.3 kB / 1.022 GB, free: 7.523 MB / 0.9323 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002653/0.0411, allocations: 57.38 kB / 1.022 GB, free: 7.469 MB / 0.9323 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001472/0.04257, allocations: 1.93 MB / 1.024 GB, free: 5.496 MB / 0.9323 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.0428, allocations: 393.8 kB / 1.024 GB, free: 5.086 MB / 0.9323 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.428e-05/0.04287, allocations: 28.48 kB / 1.024 GB, free: 5.059 MB / 0.9323 GB Notification: Performance of SimCode: time 1.022e-06/0.04287, allocations: 0 / 1.024 GB, free: 5.059 MB / 0.9323 GB Notification: Performance of Templates: time 0.4844/0.5272, allocations: 15.09 MB / 1.039 GB, free: 56.83 MB / 0.9323 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_Geothermal_Borefields_BaseClasses_HeatTransfer_ThermalResponseFactors_Validation_GFunction_SmallScaleValidation.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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] "" Variables in the reference:time,gFun_int Variables in the result:gFun_int,time [Calling sys.exit(0), Time elapsed: 10.082325303927064]