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.001357/0.001357, allocations: 87.58 kB / 20.45 MB, free: 4.117 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.001594/0.001594, allocations: 161 kB / 23.82 MB, free: 0.75 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.9399/0.9399, allocations: 177.1 MB / 204.2 MB, free: 5.258 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.92/1.92, allocations: 377.8 MB / 0.6236 GB, free: 8.551 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.483e-06/1.483e-06, allocations: 0 / 0.8116 GB, free: 1.641 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.47e-05/2.618e-05, allocations: 2.312 kB / 0.8116 GB, free: 1.637 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002572/0.002598, allocations: 1.827 MB / 0.8134 GB, free: 15.82 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.005718/0.008316, allocations: 5.237 MB / 0.8185 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.945e-05/0.008416, allocations: 0.8438 kB / 0.8185 GB, free: 10.58 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.001035/0.009451, allocations: 342 kB / 0.8188 GB, free: 10.25 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 9.54e-05/0.009546, allocations: 63.61 kB / 0.8189 GB, free: 10.18 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.003286/0.01283, allocations: 1.622 MB / 0.8205 GB, free: 8.566 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.01308, allocations: 164.6 kB / 0.8207 GB, free: 8.406 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.25e-05/0.01312, allocations: 6.75 kB / 0.8207 GB, free: 8.402 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 8.953e-05/0.01321, allocations: 87.78 kB / 0.8207 GB, free: 8.316 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.01339, allocations: 143.6 kB / 0.8209 GB, free: 8.176 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 3.236e-05/0.01342, allocations: 17.34 kB / 0.8209 GB, free: 8.16 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002775/0.0162, allocations: 2.422 MB / 0.8233 GB, free: 5.734 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 0.0001803/0.01638, allocations: 283.9 kB / 0.8235 GB, free: 5.453 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 0.0001493/0.01653, allocations: 167.9 kB / 0.8237 GB, free: 5.289 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.003101/0.01963, allocations: 2.509 MB / 0.8261 GB, free: 2.777 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.01963, allocations: 3.984 kB / 0.8261 GB, free: 2.773 MB / 0.7761 GB Notification: Performance of FrontEnd: time 2.044e-06/0.01964, allocations: 0 / 0.8261 GB, free: 2.773 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 9.377e-06/0.01965, allocations: 0 / 0.8261 GB, free: 2.773 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.004973/0.02462, allocations: 1.471 MB / 0.8276 GB, free: 1.262 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 4.473e-05/0.02466, allocations: 16.02 kB / 0.8276 GB, free: 1.246 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002941/0.02496, allocations: 97.14 kB / 0.8277 GB, free: 1.152 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003718/0.02533, allocations: 347.6 kB / 0.828 GB, free: 0.7773 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.255e-05/0.02534, allocations: 4.375 kB / 0.828 GB, free: 0.7734 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.02e-05/0.02537, allocations: 5.5 kB / 0.828 GB, free: 0.7695 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.0257, allocations: 375.2 kB / 0.8284 GB, free: 396 kB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.02571, allocations: 192 / 0.8284 GB, free: 396 kB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.02573, allocations: 8.359 kB / 0.8284 GB, free: 388 kB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.02574, allocations: 7.875 kB / 0.8284 GB, free: 380 kB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002375/0.02597, allocations: 376.7 kB / 0.8288 GB, free: 4 kB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005113/0.02649, allocations: 0.6763 MB / 0.8294 GB, free: 15.29 MB / 0.7917 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003334/0.02682, allocations: 0.5229 MB / 0.8299 GB, free: 14.75 MB / 0.7917 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.027, allocations: 299.2 kB / 0.8302 GB, free: 14.45 MB / 0.7917 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004363/0.02743, allocations: 140.9 kB / 0.8304 GB, free: 14.31 MB / 0.7917 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002906/0.02772, allocations: 380.8 kB / 0.8307 GB, free: 13.92 MB / 0.7917 GB Notification: Performance of pre-optimization done (n=8): time 1.092e-06/0.02773, allocations: 0 / 0.8307 GB, free: 13.92 MB / 0.7917 GB Notification: Performance of matching and sorting (n=8): time 0.0009199/0.02865, allocations: 1.179 MB / 0.8319 GB, free: 12.73 MB / 0.7917 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.493e-05/0.02869, allocations: 85.05 kB / 0.832 GB, free: 12.63 MB / 0.7917 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008243/0.02952, allocations: 1.279 MB / 0.8332 GB, free: 11.34 MB / 0.7917 GB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.02955, allocations: 33.7 kB / 0.8332 GB, free: 11.3 MB / 0.7917 GB Notification: Performance of collectInitialEqns (initialization): time 0.000186/0.02973, allocations: 368.7 kB / 0.8336 GB, free: 10.94 MB / 0.7917 GB Notification: Performance of collectInitialBindings (initialization): time 3.353e-05/0.02977, allocations: 23.83 kB / 0.8336 GB, free: 10.91 MB / 0.7917 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005335/0.0303, allocations: 402.5 kB / 0.834 GB, free: 10.52 MB / 0.7917 GB Notification: Performance of setup shared object (initialization): time 0.0001291/0.03043, allocations: 0.4972 MB / 0.8345 GB, free: 10.01 MB / 0.7917 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004623/0.03089, allocations: 0.6781 MB / 0.8351 GB, free: 9.332 MB / 0.7917 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.03142, allocations: 0.8439 MB / 0.836 GB, free: 8.477 MB / 0.7917 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001765/0.03319, allocations: 2.621 MB / 0.8385 GB, free: 5.762 MB / 0.7917 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.03319, allocations: 4 kB / 0.8385 GB, free: 5.758 MB / 0.7917 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003836/0.03703, allocations: 4.246 MB / 0.8427 GB, free: 1.477 MB / 0.7917 GB Notification: Performance of prepare postOptimizeDAE: time 3.11e-05/0.03706, allocations: 8 kB / 0.8427 GB, free: 1.469 MB / 0.7917 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.46e-05/0.03708, allocations: 0 / 0.8427 GB, free: 1.469 MB / 0.7917 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.98e-05/0.03711, allocations: 4 kB / 0.8427 GB, free: 1.465 MB / 0.7917 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.03728, allocations: 27.95 kB / 0.8427 GB, free: 1.438 MB / 0.7917 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.188e-06/0.03729, allocations: 0 / 0.8427 GB, free: 1.438 MB / 0.7917 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003338/0.03762, allocations: 241.3 kB / 0.8429 GB, free: 1.199 MB / 0.7917 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/0.03766, allocations: 27.98 kB / 0.843 GB, free: 1.172 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.0001732/0.03783, allocations: 168.5 kB / 0.8431 GB, free: 0.9961 MB / 0.7917 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.0379, allocations: 83.23 kB / 0.8432 GB, free: 0.9141 MB / 0.7917 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008342/0.03873, allocations: 0.8586 MB / 0.844 GB, free: 48 kB / 0.7917 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.03874, allocations: 0 / 0.844 GB, free: 48 kB / 0.7917 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/0.03874, allocations: 7.969 kB / 0.8441 GB, free: 40 kB / 0.7917 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.03875, allocations: 0 / 0.8441 GB, free: 40 kB / 0.7917 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000418/0.03916, allocations: 0.5289 MB / 0.8446 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.03917, allocations: 0 / 0.8446 GB, free: 15.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.161e-05/0.03924, allocations: 8 kB / 0.8446 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.847e-06/0.03924, allocations: 0 / 0.8446 GB, free: 15.47 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.03925, allocations: 7.984 kB / 0.8446 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.03926, allocations: 0 / 0.8446 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.03926, allocations: 0 / 0.8446 GB, free: 15.46 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000596/0.03986, allocations: 0.9467 MB / 0.8455 GB, free: 14.49 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 6.992e-05/0.03993, allocations: 91.3 kB / 0.8456 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.698e-05/0.03996, allocations: 0 / 0.8456 GB, free: 14.4 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-05/0.04005, allocations: 7.984 kB / 0.8456 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.04009, allocations: 7.938 kB / 0.8456 GB, free: 14.39 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.504e-05/0.04012, allocations: 11.97 kB / 0.8456 GB, free: 14.38 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 0.0004417/0.04056, allocations: 0.6012 MB / 0.8462 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of sort global known variables: time 6.1e-08/0.04056, allocations: 0 / 0.8462 GB, free: 13.77 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.001313/0.04188, allocations: 0.5962 MB / 0.8468 GB, free: 13.17 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.001472/0.04335, allocations: 0.7934 MB / 0.8476 GB, free: 12.39 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 0.001138/0.04449, allocations: 1.416 MB / 0.8489 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.04449, allocations: 0 / 0.8489 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 0.0001987/0.04469, allocations: 319.4 kB / 0.8493 GB, free: 10.64 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002929/0.04498, allocations: 56.59 kB / 0.8493 GB, free: 10.59 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001399/0.04638, allocations: 1.685 MB / 0.851 GB, free: 8.859 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001112/0.04649, allocations: 199.5 kB / 0.8511 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 8.827e-05/0.04658, allocations: 37.45 kB / 0.8512 GB, free: 8.609 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.679e-05/0.04665, allocations: 28.48 kB / 0.8512 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of SimCode: time 9.32e-07/0.04666, allocations: 0 / 0.8512 GB, free: 8.578 MB / 0.8073 GB Notification: Performance of Templates: time 0.01889/0.06555, allocations: 15.08 MB / 0.8659 GB, free: 9.652 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.716047352645546]