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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001441/0.001441, allocations: 109.8 kB / 19.58 MB, free: 2.336 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001531/0.001531, allocations: 186.8 kB / 22.85 MB, free: 5.641 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 225.6 MB / 251.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002345/0.002345, allocations: 288.9 kB / 307 MB, free: 8.348 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.101/1.101, allocations: 180.8 MB / 0.5304 GB, free: 14.62 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(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 0.002658/0.002658, allocations: 103 kB / 0.7311 GB, free: 38.94 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.126/0.1287, allocations: 94.2 MB / 0.8231 GB, free: 1.977 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002842/0.1315, allocations: 1.77 MB / 0.8249 GB, free: 196 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.007409/0.1389, allocations: 5.449 MB / 0.8302 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.433e-05/0.139, allocations: 3.938 kB / 0.8302 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001034/0.14, allocations: 373.1 kB / 0.8305 GB, free: 10.35 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0001184/0.1401, allocations: 67.66 kB / 0.8306 GB, free: 10.28 MB / 0.5762 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-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.003406/0.1435, allocations: 1.589 MB / 0.8322 GB, free: 8.691 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0002345/0.1438, allocations: 155.4 kB / 0.8323 GB, free: 8.539 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.231e-05/0.1438, allocations: 9.75 kB / 0.8323 GB, free: 8.527 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 7.845e-05/0.1439, allocations: 67.7 kB / 0.8324 GB, free: 8.461 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002288/0.1441, allocations: 175.4 kB / 0.8326 GB, free: 8.289 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 3.591e-05/0.1442, allocations: 16 kB / 0.8326 GB, free: 8.273 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003313/0.1475, allocations: 2.5 MB / 0.835 GB, free: 5.77 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002328/0.1477, allocations: 287.7 kB / 0.8353 GB, free: 5.488 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002498/0.1479, allocations: 302.2 kB / 0.8356 GB, free: 5.191 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.002392/0.1503, allocations: 2.185 MB / 0.8377 GB, free: 3 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1503, allocations: 0 / 0.8377 GB, free: 3 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.82e-07/0.1503, allocations: 0 / 0.8377 GB, free: 3 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.063e-05/0.1504, allocations: 0 / 0.8377 GB, free: 3 MB / 0.5762 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.007258/0.1576, allocations: 1.348 MB / 0.839 GB, free: 1.617 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.1576, allocations: 8.031 kB / 0.839 GB, free: 1.609 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003601/0.158, allocations: 100.2 kB / 0.8391 GB, free: 1.512 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005079/0.1585, allocations: 364.4 kB / 0.8395 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.061e-05/0.1585, allocations: 384 / 0.8395 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.635e-05/0.1586, allocations: 12.38 kB / 0.8395 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.159, allocations: 399.4 kB / 0.8399 GB, free: 0.707 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.159, allocations: 3.984 kB / 0.8399 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.159, allocations: 0 / 0.8399 GB, free: 0.7031 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.159, allocations: 4 kB / 0.8399 GB, free: 0.6992 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000425/0.1594, allocations: 431.8 kB / 0.8403 GB, free: 284 kB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006214/0.1601, allocations: 0.6416 MB / 0.8409 GB, free: 15.59 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005254/0.1606, allocations: 0.5595 MB / 0.8415 GB, free: 15.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003063/0.1609, allocations: 337.6 kB / 0.8418 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005386/0.1614, allocations: 127.9 kB / 0.8419 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004011/0.1618, allocations: 412.8 kB / 0.8423 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=8): time 1.132e-06/0.1618, allocations: 0 / 0.8423 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of matching and sorting (n=8): time 0.001309/0.1631, allocations: 1.301 MB / 0.8436 GB, free: 12.82 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.661e-05/0.1632, allocations: 89.08 kB / 0.8437 GB, free: 12.72 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001256/0.1645, allocations: 1.298 MB / 0.8449 GB, free: 11.41 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 3.298e-05/0.1645, allocations: 25.7 kB / 0.8449 GB, free: 11.38 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002162/0.1647, allocations: 293.9 kB / 0.8452 GB, free: 11.09 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.196e-05/0.1647, allocations: 19.89 kB / 0.8452 GB, free: 11.07 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003287/0.1651, allocations: 351.6 kB / 0.8456 GB, free: 10.72 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001277/0.1652, allocations: 318 kB / 0.8459 GB, free: 10.4 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001274/0.1665, allocations: 1.369 MB / 0.8472 GB, free: 9.031 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00139/0.1679, allocations: 1.501 MB / 0.8487 GB, free: 7.52 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006897/0.1748, allocations: 3.564 MB / 0.8522 GB, free: 3.863 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1748, allocations: 7.875 kB / 0.8522 GB, free: 3.855 MB / 0.5919 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004259/0.179, allocations: 4.023 MB / 0.8561 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.45e-05/0.179, allocations: 8 kB / 0.8561 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.159e-05/0.179, allocations: 0 / 0.8561 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/0.1791, allocations: 4 kB / 0.8561 GB, free: 15.79 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001144/0.1792, allocations: 15.98 kB / 0.8561 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.1792, allocations: 0 / 0.8561 GB, free: 15.77 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000432/0.1796, allocations: 245.3 kB / 0.8564 GB, free: 15.53 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.514e-05/0.1797, allocations: 23.98 kB / 0.8564 GB, free: 15.5 MB / 0.6075 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.0002934/0.1799, allocations: 255 kB / 0.8566 GB, free: 15.25 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.43e-05/0.18, allocations: 79.23 kB / 0.8567 GB, free: 15.17 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009822/0.181, allocations: 0.9446 MB / 0.8576 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.504e-06/0.181, allocations: 0 / 0.8576 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.181, allocations: 4 kB / 0.8576 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/0.181, allocations: 0 / 0.8576 GB, free: 14.21 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004388/0.1814, allocations: 0.4897 MB / 0.8581 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1814, allocations: 4 kB / 0.8581 GB, free: 13.68 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.845e-05/0.1815, allocations: 11.92 kB / 0.8581 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1815, allocations: 0 / 0.8581 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.162e-05/0.1815, allocations: 4 kB / 0.8581 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1815, allocations: 0 / 0.8581 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.1815, allocations: 4 kB / 0.8581 GB, free: 13.66 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009179/0.1825, allocations: 1.014 MB / 0.8591 GB, free: 12.62 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 9.562e-05/0.1825, allocations: 91.19 kB / 0.8592 GB, free: 12.53 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.612e-05/0.1826, allocations: 7.938 kB / 0.8592 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000143/0.1827, allocations: 7.984 kB / 0.8592 GB, free: 12.52 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.637e-05/0.1828, allocations: 4 kB / 0.8592 GB, free: 12.51 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.726e-05/0.1828, allocations: 11.97 kB / 0.8592 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0007878/0.1836, allocations: 0.7261 MB / 0.8599 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of sort global known variables: time 8e-08/0.1836, allocations: 0 / 0.8599 GB, free: 11.77 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001306/0.1849, allocations: 0.5962 MB / 0.8605 GB, free: 11.17 MB / 0.6075 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.001546/0.1864, allocations: 0.6917 MB / 0.8612 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.001986/0.1884, allocations: 2 MB / 0.8632 GB, free: 8.477 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.634e-06/0.1884, allocations: 4.062 kB / 0.8632 GB, free: 8.473 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003213/0.1888, allocations: 335.7 kB / 0.8635 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003338/0.1891, allocations: 69.28 kB / 0.8635 GB, free: 8.078 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002139/0.1912, allocations: 1.89 MB / 0.8654 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005968/0.1918, allocations: 0.9917 MB / 0.8664 GB, free: 5.133 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001326/0.192, allocations: 45.34 kB / 0.8664 GB, free: 5.09 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.981e-05/0.1921, allocations: 31.41 kB / 0.8664 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of SimCode: time 3.3e-07/0.1921, allocations: 0 / 0.8664 GB, free: 5.059 MB / 0.6075 GB Notification: Performance of Templates: time 0.02205/0.2141, allocations: 14.36 MB / 0.8805 GB, free: 6.754 MB / 0.6231 GB " [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=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.49783490000118] Failed to read output from testmodel.py, exit status != 0: 0.22127204800199252 0.23539936500000003 0.082250813 Calling exit ...