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.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.0013/0.0013, allocations: 79.83 kB / 19.18 MB, free: 2.512 MB / 14.72 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.001514/0.001514, allocations: 164 kB / 22.45 MB, free: 5.379 MB / 14.72 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.421/1.421, allocations: 177.2 MB / 202.8 MB, free: 9.164 MB / 190.1 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.002463/0.002463, allocations: 243.1 kB / 259.4 MB, free: 460 kB / 238.1 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.075/1.075, allocations: 138.4 MB / 454.3 MB, free: 1.949 MB / 366.1 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_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 1.553e-06/1.553e-06, allocations: 0 / 0.6469 GB, free: 4.902 MB / 0.5606 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.636e-05/2.791e-05, allocations: 2.281 kB / 0.6469 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002422/0.00245, allocations: 1.453 MB / 0.6483 GB, free: 3.434 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.2517/0.2542, allocations: 3.828 MB / 0.652 GB, free: 53.17 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.213e-05/0.2543, allocations: 0 / 0.652 GB, free: 53.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.2544, allocations: 14.62 kB / 0.652 GB, free: 53.17 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.0002202/0.2546, allocations: 36.67 kB / 0.6521 GB, free: 53.17 MB / 0.5606 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'. [/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.003459/0.2581, allocations: 1.594 MB / 0.6536 GB, free: 53.12 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.0001024/0.2582, allocations: 100.2 kB / 0.6537 GB, free: 53.1 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.705e-05/0.2582, allocations: 7.125 kB / 0.6537 GB, free: 53.1 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 8.706e-05/0.2583, allocations: 57.11 kB / 0.6538 GB, free: 53.1 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001783/0.2585, allocations: 142.4 kB / 0.6539 GB, free: 53.09 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.2585, allocations: 14.62 kB / 0.6539 GB, free: 53.09 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002649/0.2612, allocations: 2.375 MB / 0.6563 GB, free: 53.04 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.0001471/0.2613, allocations: 273.9 kB / 0.6565 GB, free: 53.01 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.0001423/0.2614, allocations: 156 kB / 0.6567 GB, free: 52.97 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.002184/0.2636, allocations: 2.442 MB / 0.6591 GB, free: 52.43 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.2636, allocations: 1.781 kB / 0.6591 GB, free: 52.43 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.253e-06/0.2636, allocations: 0 / 0.6591 GB, free: 52.43 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.206e-06/0.2636, allocations: 0 / 0.6591 GB, free: 52.43 MB / 0.5606 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.01041/0.2741, allocations: 1.271 MB / 0.6603 GB, free: 51.57 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.257e-05/0.2741, allocations: 11.72 kB / 0.6603 GB, free: 51.57 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003727/0.2745, allocations: 93.53 kB / 0.6604 GB, free: 51.51 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003247/0.2748, allocations: 310.3 kB / 0.6607 GB, free: 51.3 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.2748, allocations: 4.031 kB / 0.6607 GB, free: 51.3 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.869e-05/0.2748, allocations: 7.531 kB / 0.6607 GB, free: 51.3 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003418/0.2752, allocations: 392.1 kB / 0.6611 GB, free: 51.24 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.2752, allocations: 192 / 0.6611 GB, free: 51.24 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.2752, allocations: 5.047 kB / 0.6611 GB, free: 51.24 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.2752, allocations: 7.312 kB / 0.6611 GB, free: 51.24 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003316/0.2755, allocations: 430.5 kB / 0.6615 GB, free: 51.23 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003924/0.2759, allocations: 0.5651 MB / 0.6621 GB, free: 50.92 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003887/0.2763, allocations: 0.5615 MB / 0.6626 GB, free: 50.86 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002324/0.2766, allocations: 334.6 kB / 0.6629 GB, free: 50.84 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000631/0.2772, allocations: 137.2 kB / 0.6631 GB, free: 50.84 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003194/0.2775, allocations: 404.1 kB / 0.6634 GB, free: 50.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.242e-06/0.2775, allocations: 0 / 0.6634 GB, free: 50.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001142/0.2786, allocations: 1.296 MB / 0.6647 GB, free: 50.65 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.2787, allocations: 85.08 kB / 0.6648 GB, free: 50.55 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009728/0.2797, allocations: 1.216 MB / 0.666 GB, free: 50.06 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 3.641e-05/0.2797, allocations: 35.67 kB / 0.666 GB, free: 50.03 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001517/0.2798, allocations: 269.3 kB / 0.6663 GB, free: 49.84 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 2.929e-05/0.2799, allocations: 19.56 kB / 0.6663 GB, free: 49.83 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002799/0.2802, allocations: 346 kB / 0.6666 GB, free: 49.73 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.841e-05/0.2802, allocations: 307.7 kB / 0.6669 GB, free: 49.43 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009921/0.2812, allocations: 1.37 MB / 0.6682 GB, free: 48.97 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001102/0.2823, allocations: 1.504 MB / 0.6697 GB, free: 48.45 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007116/0.2894, allocations: 3.559 MB / 0.6732 GB, free: 46.61 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.937e-06/0.2894, allocations: 0 / 0.6732 GB, free: 46.61 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.003865/0.2933, allocations: 4.019 MB / 0.6771 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.661e-05/0.2933, allocations: 5.75 kB / 0.6771 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.718e-05/0.2933, allocations: 3.5 kB / 0.6771 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.2933, allocations: 1.438 kB / 0.6771 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001272/0.2934, allocations: 17.72 kB / 0.6771 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.2935, allocations: 5.406 kB / 0.6771 GB, free: 44.62 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004628/0.2939, allocations: 238.6 kB / 0.6774 GB, free: 44.43 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.609e-05/0.294, allocations: 34.56 kB / 0.6774 GB, free: 44.42 MB / 0.5606 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.0002884/0.2943, allocations: 236.2 kB / 0.6776 GB, free: 44.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.225e-05/0.2943, allocations: 69.5 kB / 0.6777 GB, free: 44.25 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009724/0.2953, allocations: 0.9381 MB / 0.6786 GB, free: 44.17 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.2953, allocations: 1.188 kB / 0.6786 GB, free: 44.17 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.741e-06/0.2953, allocations: 8.25 kB / 0.6786 GB, free: 44.16 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.227e-06/0.2953, allocations: 0.9375 kB / 0.6786 GB, free: 44.16 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003619/0.2957, allocations: 444.5 kB / 0.679 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.506e-06/0.2957, allocations: 2.5 kB / 0.6791 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.213e-05/0.2957, allocations: 7.828 kB / 0.6791 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.2957, allocations: 1.859 kB / 0.6791 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.2958, allocations: 7.547 kB / 0.6791 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.2958, allocations: 1.094 kB / 0.6791 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.2958, allocations: 0.7031 kB / 0.6791 GB, free: 43.96 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008866/0.2966, allocations: 1.01 MB / 0.6801 GB, free: 43.8 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.2967, allocations: 82.06 kB / 0.6801 GB, free: 43.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.2968, allocations: 2.484 kB / 0.6801 GB, free: 43.74 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.2969, allocations: 6 kB / 0.6801 GB, free: 43.74 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.297, allocations: 13.42 kB / 0.6802 GB, free: 43.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.523e-05/0.297, allocations: 13.77 kB / 0.6802 GB, free: 43.73 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0006879/0.2977, allocations: 0.671 MB / 0.6808 GB, free: 43.51 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.2977, allocations: 0 / 0.6808 GB, free: 43.51 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.001418/0.2991, allocations: 0.5856 MB / 0.6814 GB, free: 43.4 MB / 0.5606 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.00181/0.3009, allocations: 0.7981 MB / 0.6822 GB, free: 43.19 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.001892/0.3028, allocations: 1.998 MB / 0.6841 GB, free: 42.64 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3028, allocations: 1.219 kB / 0.6841 GB, free: 42.64 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.0003248/0.3031, allocations: 334.4 kB / 0.6844 GB, free: 42.64 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003177/0.3034, allocations: 34.19 kB / 0.6845 GB, free: 42.62 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001834/0.3053, allocations: 1.771 MB / 0.6862 GB, free: 42.03 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003143/0.3056, allocations: 368.6 kB / 0.6866 GB, free: 41.94 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 0.0001225/0.3057, allocations: 38.84 kB / 0.6866 GB, free: 41.93 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001087/0.3058, allocations: 33.12 kB / 0.6866 GB, free: 41.93 MB / 0.5606 GB Notification: Performance of SimCode: time 3.21e-07/0.3058, allocations: 1.125 kB / 0.6866 GB, free: 41.93 MB / 0.5606 GB Notification: Performance of Templates: time 0.02233/0.3282, allocations: 13.97 MB / 0.7003 GB, free: 37.81 MB / 0.5606 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 -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: 6.915315177291632] Failed to read output from testmodel.py, exit status != 0: 0.3357463628053665 0.34527568399999997 0.079498671 Calling exit ...