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.001352/0.001352, allocations: 71.75 kB / 20.97 MB, free: 3.578 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.001139/0.001139, allocations: 169 kB / 24.28 MB, free: 280 kB / 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.9484/0.9484, allocations: 177.1 MB / 204.6 MB, free: 5.652 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.857/1.857, allocations: 377.8 MB / 0.6239 GB, free: 8.57 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.513e-06/1.513e-06, allocations: 0 / 0.8116 GB, free: 1.965 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.639e-05/2.79e-05, allocations: 3.188 kB / 0.8116 GB, free: 1.961 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002437/0.002465, allocations: 1.817 MB / 0.8134 GB, free: 160 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.005663/0.008128, allocations: 5.209 MB / 0.8185 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.356e-05/0.008222, allocations: 1 kB / 0.8185 GB, free: 10.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0009555/0.009177, allocations: 344.4 kB / 0.8188 GB, free: 10.61 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 8.244e-05/0.00926, allocations: 68.28 kB / 0.8189 GB, free: 10.54 MB / 0.7761 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.00266/0.01192, allocations: 1.601 MB / 0.8204 GB, free: 8.945 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.000216/0.01214, allocations: 184 kB / 0.8206 GB, free: 8.766 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.422e-05/0.01218, allocations: 5.812 kB / 0.8206 GB, free: 8.762 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001142/0.01229, allocations: 83.22 kB / 0.8207 GB, free: 8.684 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001623/0.01246, allocations: 151.6 kB / 0.8209 GB, free: 8.535 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.471e-05/0.01249, allocations: 16 kB / 0.8209 GB, free: 8.52 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002589/0.01508, allocations: 2.413 MB / 0.8232 GB, free: 6.102 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001827/0.01526, allocations: 291.8 kB / 0.8235 GB, free: 5.812 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.000149/0.01541, allocations: 163.9 kB / 0.8237 GB, free: 5.652 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.002736/0.01815, allocations: 2.508 MB / 0.8261 GB, free: 3.141 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.01815, allocations: 4 kB / 0.8261 GB, free: 3.137 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.383e-06/0.01815, allocations: 0 / 0.8261 GB, free: 3.137 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 9.818e-06/0.01816, allocations: 0.875 kB / 0.8261 GB, free: 3.137 MB / 0.7761 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.004828/0.02299, allocations: 1.471 MB / 0.8275 GB, free: 1.625 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.029e-05/0.02303, allocations: 13.11 kB / 0.8276 GB, free: 1.613 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002972/0.02333, allocations: 96.86 kB / 0.8277 GB, free: 1.52 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003579/0.02369, allocations: 348.5 kB / 0.828 GB, free: 1.145 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.45e-05/0.0237, allocations: 4.375 kB / 0.828 GB, free: 1.141 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.789e-05/0.02373, allocations: 8.375 kB / 0.828 GB, free: 1.133 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003136/0.02404, allocations: 377.4 kB / 0.8284 GB, free: 0.75 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.02405, allocations: 192 / 0.8284 GB, free: 0.75 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.275e-05/0.02406, allocations: 4.359 kB / 0.8284 GB, free: 0.7461 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.877e-06/0.02407, allocations: 3.938 kB / 0.8284 GB, free: 0.7422 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002343/0.0243, allocations: 383.8 kB / 0.8287 GB, free: 376 kB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004846/0.02479, allocations: 0.6757 MB / 0.8294 GB, free: 15.66 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003306/0.02512, allocations: 0.5212 MB / 0.8299 GB, free: 15.11 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001822/0.0253, allocations: 308.3 kB / 0.8302 GB, free: 14.8 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003938/0.0257, allocations: 132.4 kB / 0.8303 GB, free: 14.68 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002587/0.02595, allocations: 380.8 kB / 0.8307 GB, free: 14.28 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=8): time 1.262e-06/0.02596, allocations: 3.438 kB / 0.8307 GB, free: 14.28 MB / 0.7917 GB Notification: Performance of matching and sorting (n=8): time 0.0008737/0.02683, allocations: 1.18 MB / 0.8318 GB, free: 13.09 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.265e-05/0.02687, allocations: 81.05 kB / 0.8319 GB, free: 13 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008962/0.02777, allocations: 1.279 MB / 0.8332 GB, free: 11.71 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.02779, allocations: 29.7 kB / 0.8332 GB, free: 11.67 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001807/0.02798, allocations: 372.7 kB / 0.8335 GB, free: 11.3 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.182e-05/0.02801, allocations: 23.8 kB / 0.8336 GB, free: 11.28 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002607/0.02827, allocations: 407.2 kB / 0.834 GB, free: 10.88 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.000117/0.02838, allocations: 0.5004 MB / 0.8344 GB, free: 10.37 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004309/0.02882, allocations: 0.6719 MB / 0.8351 GB, free: 9.695 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005265/0.02934, allocations: 0.8464 MB / 0.8359 GB, free: 8.84 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001776/0.03112, allocations: 2.626 MB / 0.8385 GB, free: 6.121 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.985e-06/0.03112, allocations: 0.8125 kB / 0.8385 GB, free: 6.121 MB / 0.7917 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.002999/0.03412, allocations: 4.238 MB / 0.8426 GB, free: 1.848 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.03414, allocations: 8.031 kB / 0.8426 GB, free: 1.84 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.681e-05/0.03416, allocations: 4 kB / 0.8426 GB, free: 1.836 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.03418, allocations: 0 / 0.8426 GB, free: 1.836 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.0343, allocations: 27.92 kB / 0.8427 GB, free: 1.809 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.106e-05/0.03431, allocations: 4 kB / 0.8427 GB, free: 1.805 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004695/0.03478, allocations: 237.4 kB / 0.8429 GB, free: 1.57 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.927e-05/0.03482, allocations: 23.98 kB / 0.8429 GB, free: 1.547 MB / 0.7917 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.000149/0.03497, allocations: 176.4 kB / 0.8431 GB, free: 1.363 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.739e-05/0.03502, allocations: 87.25 kB / 0.8432 GB, free: 1.277 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006971/0.03572, allocations: 0.8548 MB / 0.844 GB, free: 424 kB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.03572, allocations: 0 / 0.844 GB, free: 424 kB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.03573, allocations: 7.938 kB / 0.844 GB, free: 416 kB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.03574, allocations: 3.984 kB / 0.844 GB, free: 412 kB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004466/0.03618, allocations: 0.5212 MB / 0.8445 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.03618, allocations: 0 / 0.8445 GB, free: 15.85 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.799e-05/0.03624, allocations: 8 kB / 0.8445 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.03625, allocations: 0 / 0.8445 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.03626, allocations: 3.984 kB / 0.8445 GB, free: 15.84 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.627e-06/0.03626, allocations: 8.031 kB / 0.8446 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.582e-06/0.03626, allocations: 0 / 0.8446 GB, free: 15.83 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006163/0.03688, allocations: 0.9428 MB / 0.8455 GB, free: 14.86 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.69e-05/0.03695, allocations: 83.3 kB / 0.8456 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.353e-05/0.03699, allocations: 4 kB / 0.8456 GB, free: 14.78 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.483e-05/0.03708, allocations: 3.984 kB / 0.8456 GB, free: 14.77 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.747e-05/0.03711, allocations: 11.94 kB / 0.8456 GB, free: 14.76 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.883e-05/0.03714, allocations: 15.97 kB / 0.8456 GB, free: 14.75 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0005308/0.03767, allocations: 0.6012 MB / 0.8462 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of sort global known variables: time 1e-07/0.03767, allocations: 4 kB / 0.8462 GB, free: 14.14 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001345/0.03902, allocations: 0.5923 MB / 0.8468 GB, free: 13.54 MB / 0.8073 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.001605/0.04062, allocations: 0.7972 MB / 0.8475 GB, free: 12.76 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001123/0.04175, allocations: 1.41 MB / 0.8489 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.04175, allocations: 0 / 0.8489 GB, free: 11.33 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.000193/0.04194, allocations: 319.5 kB / 0.8492 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003205/0.04226, allocations: 60.64 kB / 0.8493 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001402/0.04366, allocations: 1.685 MB / 0.8509 GB, free: 9.227 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001138/0.04378, allocations: 199.5 kB / 0.8511 GB, free: 9.012 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 9.74e-05/0.04388, allocations: 41.39 kB / 0.8511 GB, free: 8.973 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.931e-05/0.04395, allocations: 24.48 kB / 0.8512 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of SimCode: time 1.944e-06/0.04396, allocations: 0 / 0.8512 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of Templates: time 0.01876/0.06271, allocations: 15.08 MB / 0.8659 GB, free: 10.02 MB / 0.823 GB " [Timeout remaining time 300] 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=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.553825507173315]