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.001875/0.001875, allocations: 85.48 kB / 19.44 MB, free: 340 kB / 13.93 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.00204/0.00204, allocations: 173.2 kB / 22.76 MB, free: 1.664 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 1.567/1.567, allocations: 177.1 MB / 203.1 MB, free: 5.273 MB / 186.7 MB " [Timeout remaining time 178] 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.003465/0.003465, allocations: 238.2 kB / 259.8 MB, free: 12.73 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 1.189/1.189, allocations: 138.5 MB / 454.7 MB, free: 1.492 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.744e-06/1.744e-06, allocations: 0 / 0.5544 GB, free: 0.7812 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.674e-05/2.848e-05, allocations: 2.312 kB / 0.5544 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003345/0.003373, allocations: 1.784 MB / 0.5562 GB, free: 14.98 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.009538/0.01291, allocations: 5.205 MB / 0.5612 GB, free: 9.75 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001264/0.01304, allocations: 0 / 0.5612 GB, free: 9.75 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001363/0.0144, allocations: 342.3 kB / 0.5616 GB, free: 9.414 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001536/0.01456, allocations: 63.61 kB / 0.5616 GB, free: 9.352 MB / 490.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.004347/0.0189, allocations: 1.582 MB / 0.5632 GB, free: 7.766 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003132/0.01922, allocations: 163.3 kB / 0.5633 GB, free: 7.605 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.84e-05/0.01926, allocations: 17.73 kB / 0.5633 GB, free: 7.59 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001308/0.01939, allocations: 79.78 kB / 0.5634 GB, free: 7.512 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.01966, allocations: 155.6 kB / 0.5636 GB, free: 7.359 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 5.307e-05/0.01972, allocations: 12 kB / 0.5636 GB, free: 7.348 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004335/0.02405, allocations: 2.378 MB / 0.5659 GB, free: 4.965 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003001/0.02435, allocations: 291.9 kB / 0.5662 GB, free: 4.676 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002528/0.0246, allocations: 167.9 kB / 0.5663 GB, free: 4.512 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004436/0.02904, allocations: 2.517 MB / 0.5688 GB, free: 1.988 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.02904, allocations: 0 / 0.5688 GB, free: 1.988 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.02904, allocations: 0 / 0.5688 GB, free: 1.988 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.536e-06/0.02905, allocations: 0 / 0.5688 GB, free: 1.988 MB / 490.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.01186/0.04091, allocations: 1.474 MB / 0.5702 GB, free: 484 kB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.04095, allocations: 12.75 kB / 0.5702 GB, free: 472 kB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004205/0.04137, allocations: 104.2 kB / 0.5703 GB, free: 368 kB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006401/0.04201, allocations: 354.5 kB / 0.5707 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.04203, allocations: 8.312 kB / 0.5707 GB, free: 15.97 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.941e-05/0.04207, allocations: 4.375 kB / 0.5707 GB, free: 15.96 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005/0.04257, allocations: 365.4 kB / 0.571 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.428e-06/0.04258, allocations: 192 / 0.571 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.399e-05/0.04259, allocations: 8.359 kB / 0.5711 GB, free: 15.59 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.0426, allocations: 3.938 kB / 0.5711 GB, free: 15.58 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000474/0.04307, allocations: 395.7 kB / 0.5714 GB, free: 15.2 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008368/0.04391, allocations: 0.6642 MB / 0.5721 GB, free: 14.5 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006256/0.04453, allocations: 0.5252 MB / 0.5726 GB, free: 13.95 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003579/0.04489, allocations: 315.2 kB / 0.5729 GB, free: 13.63 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006633/0.04555, allocations: 143.7 kB / 0.573 GB, free: 13.49 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004729/0.04603, allocations: 380.2 kB / 0.5734 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=8): time 1.793e-06/0.04603, allocations: 4 kB / 0.5734 GB, free: 13.09 MB / 0.4948 GB Notification: Performance of matching and sorting (n=8): time 0.0018/0.04783, allocations: 1.188 MB / 0.5746 GB, free: 11.89 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.428e-05/0.0479, allocations: 85.05 kB / 0.5746 GB, free: 11.79 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/0.04948, allocations: 1.291 MB / 0.5759 GB, free: 10.49 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 5.528e-05/0.04954, allocations: 33.77 kB / 0.5759 GB, free: 10.45 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.000348/0.04989, allocations: 372.6 kB / 0.5763 GB, free: 10.08 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 4.113e-05/0.04993, allocations: 19.89 kB / 0.5763 GB, free: 10.06 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005068/0.05043, allocations: 406.5 kB / 0.5767 GB, free: 9.66 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0002753/0.05071, allocations: 0.5004 MB / 0.5772 GB, free: 9.152 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008434/0.05155, allocations: 0.6508 MB / 0.5778 GB, free: 8.496 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001072/0.05263, allocations: 0.8203 MB / 0.5786 GB, free: 7.664 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008091/0.06072, allocations: 3.915 MB / 0.5824 GB, free: 3.656 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.344e-06/0.06072, allocations: 0 / 0.5824 GB, free: 3.656 MB / 0.4948 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.005395/0.06612, allocations: 4.203 MB / 0.5865 GB, free: 15.42 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 2.496e-05/0.06614, allocations: 7.438 kB / 0.5866 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.192e-05/0.06617, allocations: 4 kB / 0.5866 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.757e-05/0.06618, allocations: 0 / 0.5866 GB, free: 15.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001774/0.06636, allocations: 27.86 kB / 0.5866 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.317e-06/0.06637, allocations: 4 kB / 0.5866 GB, free: 15.38 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005908/0.06696, allocations: 241.4 kB / 0.5868 GB, free: 15.14 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.188e-05/0.06702, allocations: 23.98 kB / 0.5868 GB, free: 15.12 MB / 0.5105 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.0002514/0.06727, allocations: 172.5 kB / 0.587 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.761e-05/0.06737, allocations: 83.27 kB / 0.5871 GB, free: 14.86 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001147/0.06852, allocations: 0.8665 MB / 0.5879 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.06853, allocations: 4 kB / 0.5879 GB, free: 13.98 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.045e-06/0.06853, allocations: 3.938 kB / 0.5879 GB, free: 13.97 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/0.06854, allocations: 7.922 kB / 0.5879 GB, free: 13.96 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008721/0.06941, allocations: 0.5251 MB / 0.5885 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.06942, allocations: 0 / 0.5885 GB, free: 13.41 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.263e-05/0.06949, allocations: 8 kB / 0.5885 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.437e-06/0.06949, allocations: 0 / 0.5885 GB, free: 13.4 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.898e-05/0.06951, allocations: 7.984 kB / 0.5885 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.06951, allocations: 0 / 0.5885 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.06951, allocations: 0 / 0.5885 GB, free: 13.39 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001117/0.07063, allocations: 0.9506 MB / 0.5894 GB, free: 12.42 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000135/0.07077, allocations: 91.25 kB / 0.5895 GB, free: 12.33 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.61e-05/0.07084, allocations: 11.98 kB / 0.5895 GB, free: 12.32 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001454/0.07099, allocations: 4 kB / 0.5895 GB, free: 12.31 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.868e-05/0.07104, allocations: 11.92 kB / 0.5895 GB, free: 12.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.064e-05/0.07109, allocations: 11.98 kB / 0.5895 GB, free: 12.29 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0008052/0.07189, allocations: 0.6129 MB / 0.5901 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8e-08/0.07189, allocations: 0 / 0.5901 GB, free: 11.67 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.001704/0.0736, allocations: 0.5884 MB / 0.5907 GB, free: 11.08 MB / 0.5105 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.002556/0.07615, allocations: 0.8056 MB / 0.5915 GB, free: 10.29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.001966/0.07812, allocations: 1.379 MB / 0.5928 GB, free: 8.895 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.07812, allocations: 0 / 0.5928 GB, free: 8.895 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0003763/0.0785, allocations: 311.5 kB / 0.5931 GB, free: 8.586 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.07895, allocations: 60.69 kB / 0.5932 GB, free: 8.523 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002465/0.08142, allocations: 1.692 MB / 0.5948 GB, free: 6.789 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004367/0.08185, allocations: 377.8 kB / 0.5952 GB, free: 6.395 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.0001872/0.08204, allocations: 37.45 kB / 0.5952 GB, free: 6.355 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001178/0.08216, allocations: 28.48 kB / 0.5953 GB, free: 6.328 MB / 0.5105 GB Notification: Performance of SimCode: time 1.242e-06/0.08216, allocations: 0 / 0.5953 GB, free: 6.328 MB / 0.5105 GB Notification: Performance of Templates: time 0.1946/0.2768, allocations: 14.73 MB / 0.6096 GB, free: 99.64 MB / 0.5105 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=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: 7.0503405559575185]