Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.0009319/0.0009319, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.0009589/0.0009589, allocations: 181 kB / 23.36 MB, free: 1.133 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.9283/0.9283, allocations: 177.1 MB / 203.8 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001601/0.001601, allocations: 249.4 kB / 260.5 MB, free: 12.68 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.6668/0.6668, allocations: 138.4 MB / 402.2 MB, free: 0.4922 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 462.4 MB, free: 0.8555 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.03e-05/2.213e-05, allocations: 3.078 kB / 462.4 MB, free: 0.8516 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002213/0.002236, allocations: 1.806 MB / 464.2 MB, free: 15.7 MB / 426.7 MB Notification: Performance of NFInst.instExpressions: time 0.005656/0.007892, allocations: 5.19 MB / 469.4 MB, free: 11.52 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.008006, allocations: 9.594 kB / 469.4 MB, free: 11.51 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009637/0.00897, allocations: 351.9 kB / 469.8 MB, free: 11.16 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.009072, allocations: 60.2 kB / 469.8 MB, free: 11.11 MB / 426.7 MB [/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/BuildingSystems master/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.00297/0.01204, allocations: 1.612 MB / 471.4 MB, free: 9.5 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002209/0.01226, allocations: 157.2 kB / 471.6 MB, free: 9.348 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.039e-05/0.0123, allocations: 11.38 kB / 471.6 MB, free: 9.34 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.844e-05/0.01239, allocations: 87.72 kB / 471.7 MB, free: 9.254 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.546e-05/0.01249, allocations: 53.19 kB / 471.7 MB, free: 9.203 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.475e-05/0.0125, allocations: 5.656 kB / 471.7 MB, free: 9.199 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002801/0.0153, allocations: 2.385 MB / 474.1 MB, free: 6.828 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000167/0.01547, allocations: 263.2 kB / 474.4 MB, free: 6.57 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001161/0.01559, allocations: 132.4 kB / 474.5 MB, free: 6.441 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002819/0.01841, allocations: 2.362 MB / 476.9 MB, free: 4.074 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.01841, allocations: 0 / 476.9 MB, free: 4.074 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.01841, allocations: 4 kB / 476.9 MB, free: 4.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 7.975e-06/0.01842, allocations: 0 / 476.9 MB, free: 4.07 MB / 426.7 MB 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.001432/0.01985, allocations: 1.269 MB / 478.1 MB, free: 2.773 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.01988, allocations: 8.75 kB / 478.1 MB, free: 2.766 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.02009, allocations: 42.28 kB / 478.2 MB, free: 2.727 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000293/0.02038, allocations: 328.3 kB / 478.5 MB, free: 2.371 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.197e-06/0.02039, allocations: 384 / 478.5 MB, free: 2.371 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.02041, allocations: 13.09 kB / 478.5 MB, free: 2.359 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001994/0.02061, allocations: 227.2 kB / 478.7 MB, free: 2.125 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.02062, allocations: 0.8906 kB / 478.7 MB, free: 2.125 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.02063, allocations: 4.375 kB / 478.7 MB, free: 2.121 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.02063, allocations: 3.938 kB / 478.7 MB, free: 2.117 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001257/0.02076, allocations: 198.1 kB / 478.9 MB, free: 1.926 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002099/0.02097, allocations: 252.5 kB / 479.2 MB, free: 1.66 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001933/0.02116, allocations: 290.4 kB / 479.5 MB, free: 1.359 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.356e-05/0.02126, allocations: 153.7 kB / 479.6 MB, free: 1.203 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002925/0.02155, allocations: 128.5 kB / 479.7 MB, free: 1.086 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001876/0.02174, allocations: 237.9 kB / 480 MB, free: 0.8359 MB / 426.7 MB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.02174, allocations: 0 / 480 MB, free: 0.8359 MB / 426.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004341/0.02217, allocations: 486.4 kB / 480.5 MB, free: 364 kB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.639e-05/0.02221, allocations: 85.03 kB / 480.5 MB, free: 260 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005737/0.02278, allocations: 1.065 MB / 481.6 MB, free: 15.18 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.96e-05/0.02281, allocations: 33.7 kB / 481.6 MB, free: 15.14 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001095/0.02292, allocations: 270.5 kB / 481.9 MB, free: 14.87 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.977e-05/0.02295, allocations: 27.77 kB / 481.9 MB, free: 14.84 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001952/0.02315, allocations: 336.8 kB / 482.3 MB, free: 14.51 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.993e-05/0.02322, allocations: 318 kB / 482.6 MB, free: 14.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003253/0.02354, allocations: 0.5102 MB / 483.1 MB, free: 13.68 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003493/0.02389, allocations: 0.6037 MB / 483.7 MB, free: 13.07 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001425/0.02532, allocations: 2.241 MB / 485.9 MB, free: 10.74 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.02532, allocations: 0 / 485.9 MB, free: 10.74 MB / 442.7 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00254/0.02786, allocations: 3.718 MB / 489.6 MB, free: 6.992 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.02788, allocations: 5.938 kB / 489.6 MB, free: 6.988 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.445e-05/0.02789, allocations: 4 kB / 489.7 MB, free: 6.984 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.253e-05/0.0279, allocations: 7.922 kB / 489.7 MB, free: 6.977 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.749e-05/0.028, allocations: 16 kB / 489.7 MB, free: 6.961 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.02801, allocations: 5.438 kB / 489.7 MB, free: 6.957 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.02825, allocations: 253.1 kB / 489.9 MB, free: 6.711 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.052e-05/0.02829, allocations: 19.98 kB / 489.9 MB, free: 6.691 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 13 (labels[1],cluSiz[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.0001318/0.02842, allocations: 118.7 kB / 490.1 MB, free: 6.566 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.387e-05/0.02844, allocations: 15.92 kB / 490.1 MB, free: 6.551 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003021/0.02874, allocations: 373.5 kB / 490.4 MB, free: 6.184 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.02875, allocations: 0 / 490.4 MB, free: 6.184 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.355e-06/0.02875, allocations: 4.969 kB / 490.4 MB, free: 6.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.488e-06/0.02875, allocations: 3.938 kB / 490.5 MB, free: 6.176 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000213/0.02897, allocations: 299.9 kB / 490.7 MB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.02897, allocations: 0 / 490.7 MB, free: 5.867 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.096e-05/0.02901, allocations: 12.91 kB / 490.8 MB, free: 5.855 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.245e-06/0.02901, allocations: 0 / 490.8 MB, free: 5.855 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.02902, allocations: 6.422 kB / 490.8 MB, free: 5.852 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.02902, allocations: 4 kB / 490.8 MB, free: 5.848 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.02902, allocations: 3.938 kB / 490.8 MB, free: 5.844 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002335/0.02926, allocations: 380.8 kB / 491.1 MB, free: 5.453 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.885e-05/0.02931, allocations: 91.19 kB / 491.2 MB, free: 5.363 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.02935, allocations: 4 kB / 491.2 MB, free: 5.359 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.137e-05/0.02942, allocations: 5.734 kB / 491.2 MB, free: 5.355 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.415e-05/0.02945, allocations: 8 kB / 491.2 MB, free: 5.348 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.819e-05/0.02947, allocations: 19.91 kB / 491.3 MB, free: 5.328 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002595/0.02973, allocations: 426.8 kB / 491.7 MB, free: 4.906 MB / 442.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02973, allocations: 0.5625 kB / 491.7 MB, free: 4.906 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001074/0.03081, allocations: 0.5884 MB / 492.3 MB, free: 4.316 MB / 442.7 MB 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.001288/0.0321, allocations: 0.8105 MB / 493.1 MB, free: 3.57 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006784/0.03277, allocations: 0.973 MB / 494.1 MB, free: 2.578 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.021e-05/0.03278, allocations: 10.22 kB / 494.1 MB, free: 2.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001032/0.03289, allocations: 164.8 kB / 494.2 MB, free: 2.406 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.03311, allocations: 57.58 kB / 494.3 MB, free: 2.355 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001242/0.03435, allocations: 1.535 MB / 495.8 MB, free: 0.793 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001084/0.03446, allocations: 199.5 kB / 496 MB, free: 0.5781 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 8.877e-05/0.03455, allocations: 36.89 kB / 496.1 MB, free: 0.5547 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.03468, allocations: 87.78 kB / 496.1 MB, free: 484 kB / 442.7 MB Notification: Performance of SimCode: time 1.152e-06/0.03469, allocations: 0.5 kB / 496.1 MB, free: 484 kB / 442.7 MB Notification: Performance of Templates: time 0.02235/0.05704, allocations: 16.21 MB / 0.5003 GB, free: 0.7461 MB / 458.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.040442246943712]