Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.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.001706/0.001706, allocations: 101.7 kB / 19.59 MB, free: 2.324 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.001968/0.001968, allocations: 194.5 kB / 22.85 MB, free: 5.652 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.416/1.416, allocations: 225.6 MB / 251.5 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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.002572/0.002572, allocations: 292.5 kB / 307 MB, free: 8.355 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.183/1.183, allocations: 180.8 MB / 0.5304 GB, free: 14.4 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_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002838/0.002838, allocations: 99.81 kB / 0.7311 GB, free: 38.67 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1503/0.1531, allocations: 94.2 MB / 0.8231 GB, free: 1.824 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.003008/0.1561, allocations: 1.438 MB / 0.8245 GB, free: 380 kB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.00748/0.1636, allocations: 4.274 MB / 0.8287 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.036e-05/0.1637, allocations: 0 / 0.8287 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.1638, allocations: 15.86 kB / 0.8287 GB, free: 12.06 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002231/0.164, allocations: 27.84 kB / 0.8288 GB, free: 12.04 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.004412/0.1684, allocations: 1.596 MB / 0.8303 GB, free: 10.44 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001811/0.1686, allocations: 95.73 kB / 0.8304 GB, free: 10.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 5.715e-05/0.1687, allocations: 11.92 kB / 0.8304 GB, free: 10.33 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 8.806e-05/0.1688, allocations: 43.83 kB / 0.8305 GB, free: 10.29 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/0.169, allocations: 159.6 kB / 0.8306 GB, free: 10.13 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 4.035e-05/0.1691, allocations: 12 kB / 0.8306 GB, free: 10.12 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004336/0.1734, allocations: 2.507 MB / 0.8331 GB, free: 7.609 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0002572/0.1737, allocations: 271.8 kB / 0.8333 GB, free: 7.34 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0002705/0.1739, allocations: 278.3 kB / 0.8336 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003836/0.1778, allocations: 2.112 MB / 0.8357 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.649e-06/0.1778, allocations: 0 / 0.8357 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.984e-06/0.1778, allocations: 0 / 0.8357 GB, free: 4.949 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.684e-05/0.1778, allocations: 0 / 0.8357 GB, free: 4.949 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.01061/0.1884, allocations: 1.268 MB / 0.8369 GB, free: 3.645 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1885, allocations: 8.031 kB / 0.8369 GB, free: 3.637 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000469/0.1889, allocations: 104.2 kB / 0.837 GB, free: 3.535 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004511/0.1894, allocations: 295.2 kB / 0.8373 GB, free: 3.211 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.1894, allocations: 12.36 kB / 0.8373 GB, free: 3.199 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.289e-05/0.1894, allocations: 8.312 kB / 0.8373 GB, free: 3.191 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005157/0.1899, allocations: 391.5 kB / 0.8377 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.19, allocations: 0 / 0.8377 GB, free: 2.797 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.19, allocations: 8 kB / 0.8377 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.19, allocations: 3.984 kB / 0.8377 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004853/0.1905, allocations: 431.8 kB / 0.8381 GB, free: 2.363 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006721/0.1911, allocations: 0.6244 MB / 0.8387 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005771/0.1917, allocations: 0.5555 MB / 0.8393 GB, free: 1.121 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003426/0.1921, allocations: 333.7 kB / 0.8396 GB, free: 0.7891 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006972/0.1928, allocations: 135.9 kB / 0.8397 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005308/0.1933, allocations: 416.8 kB / 0.8401 GB, free: 236 kB / 0.5762 GB Notification: Performance of pre-optimization done (n=8): time 3.466e-06/0.1933, allocations: 0 / 0.8401 GB, free: 236 kB / 0.5762 GB Notification: Performance of matching and sorting (n=8): time 0.001811/0.1951, allocations: 1.289 MB / 0.8414 GB, free: 14.93 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.088e-05/0.1952, allocations: 81.11 kB / 0.8414 GB, free: 14.84 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/0.1968, allocations: 1.226 MB / 0.8426 GB, free: 13.59 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 5.253e-05/0.1969, allocations: 29.83 kB / 0.8427 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002655/0.1971, allocations: 265.9 kB / 0.8429 GB, free: 13.29 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 5.155e-05/0.1972, allocations: 23.84 kB / 0.8429 GB, free: 13.27 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004408/0.1976, allocations: 355.6 kB / 0.8433 GB, free: 12.92 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001752/0.1978, allocations: 306 kB / 0.8436 GB, free: 12.61 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001445/0.1992, allocations: 1.369 MB / 0.8449 GB, free: 11.24 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.2007, allocations: 1.509 MB / 0.8464 GB, free: 9.723 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007615/0.2084, allocations: 3.56 MB / 0.8499 GB, free: 6.07 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.7e-06/0.2084, allocations: 3.938 kB / 0.8499 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004962/0.2133, allocations: 4.015 MB / 0.8538 GB, free: 2.016 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 2.091e-05/0.2133, allocations: 8.031 kB / 0.8538 GB, free: 2.008 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.026e-05/0.2134, allocations: 4 kB / 0.8538 GB, free: 2.004 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.682e-05/0.2134, allocations: 0 / 0.8538 GB, free: 2.004 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.2135, allocations: 15.98 kB / 0.8538 GB, free: 1.988 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.679e-06/0.2135, allocations: 4 kB / 0.8538 GB, free: 1.984 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005353/0.2141, allocations: 237.4 kB / 0.854 GB, free: 1.75 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.805e-05/0.2141, allocations: 23.98 kB / 0.8541 GB, free: 1.727 MB / 0.5919 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.0003441/0.2145, allocations: 250.2 kB / 0.8543 GB, free: 1.473 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.046e-05/0.2145, allocations: 75.23 kB / 0.8544 GB, free: 1.398 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001112/0.2157, allocations: 0.9399 MB / 0.8553 GB, free: 460 kB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.2157, allocations: 0 / 0.8553 GB, free: 460 kB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.599e-06/0.2157, allocations: 0 / 0.8553 GB, free: 460 kB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.577e-06/0.2157, allocations: 0 / 0.8553 GB, free: 460 kB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005003/0.2162, allocations: 472 kB / 0.8557 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2162, allocations: 0 / 0.8557 GB, free: 15.95 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.382e-05/0.2162, allocations: 15.95 kB / 0.8558 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.809e-06/0.2162, allocations: 4 kB / 0.8558 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.2163, allocations: 0 / 0.8558 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.2163, allocations: 0 / 0.8558 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.2163, allocations: 0 / 0.8558 GB, free: 15.93 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.2173, allocations: 1.018 MB / 0.8568 GB, free: 14.89 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001053/0.2174, allocations: 79.28 kB / 0.8568 GB, free: 14.81 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.893e-05/0.2175, allocations: 8 kB / 0.8568 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.2176, allocations: 7.984 kB / 0.8568 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.981e-05/0.2177, allocations: 0 / 0.8568 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.773e-05/0.2177, allocations: 15.97 kB / 0.8569 GB, free: 14.78 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0008147/0.2185, allocations: 0.6728 MB / 0.8575 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of sort global known variables: time 9e-08/0.2185, allocations: 0 / 0.8575 GB, free: 14.1 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001511/0.22, allocations: 0.5884 MB / 0.8581 GB, free: 13.51 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.002282/0.2223, allocations: 0.6916 MB / 0.8588 GB, free: 12.83 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002287/0.2246, allocations: 1.996 MB / 0.8607 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.2246, allocations: 0 / 0.8607 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0003751/0.225, allocations: 347.8 kB / 0.861 GB, free: 10.48 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003165/0.2253, allocations: 37.03 kB / 0.8611 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002319/0.2276, allocations: 1.766 MB / 0.8628 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006295/0.2282, allocations: 0.9685 MB / 0.8638 GB, free: 7.645 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001311/0.2284, allocations: 28.5 kB / 0.8638 GB, free: 7.617 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001111/0.2285, allocations: 27.41 kB / 0.8638 GB, free: 7.59 MB / 0.6075 GB Notification: Performance of SimCode: time 6.01e-07/0.2285, allocations: 3.938 kB / 0.8638 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of Templates: time 0.02578/0.2543, allocations: 13.73 MB / 0.8772 GB, free: 9.898 MB / 0.6231 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.079566380998585] Failed to read output from testmodel.py, exit status != 0: 0.2626135000027716 0.278204269 0.097297887 Calling exit ...