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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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=5000,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=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 105 kB / 15.99 MB, free: 6.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001594/0.001594, allocations: 199.1 kB / 16.91 MB, free: 6.191 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 222.9 MB / 240.6 MB, free: 13.73 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002009/0.002009, allocations: 287.8 kB / 291 MB, free: 14.49 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8873/0.8873, allocations: 169.2 MB / 0.4985 GB, free: 4.656 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 90.52 kB / 0.5954 GB, free: 15.52 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1691/0.1707, allocations: 86.97 MB / 0.6803 GB, free: 8.551 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.002424/0.1732, allocations: 1.489 MB / 0.6818 GB, free: 7.043 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.005955/0.1792, allocations: 4.218 MB / 0.6859 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.503e-05/0.1793, allocations: 0 / 0.6859 GB, free: 2.809 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001236/0.1794, allocations: 11.92 kB / 0.6859 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002387/0.1797, allocations: 27.84 kB / 0.6859 GB, free: 2.77 MB / 494.1 MB [/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.003561/0.1833, allocations: 1.352 MB / 0.6872 GB, free: 1.414 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001268/0.1834, allocations: 87.75 kB / 0.6873 GB, free: 1.328 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.776e-05/0.1835, allocations: 4 kB / 0.6873 GB, free: 1.324 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.051e-05/0.1835, allocations: 47.83 kB / 0.6874 GB, free: 1.277 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002397/0.1838, allocations: 160.9 kB / 0.6875 GB, free: 1.121 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.1838, allocations: 12 kB / 0.6875 GB, free: 1.109 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2904/0.4743, allocations: 2.2 MB / 0.6897 GB, free: 12.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002966/0.4746, allocations: 266 kB / 0.6899 GB, free: 12.58 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002364/0.4748, allocations: 276.6 kB / 0.6902 GB, free: 12.44 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002753/0.4776, allocations: 1.464 MB / 0.6916 GB, free: 12.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.4776, allocations: 0 / 0.6916 GB, free: 12.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.4776, allocations: 1 kB / 0.6916 GB, free: 12.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.047e-05/0.4776, allocations: 0.5625 kB / 0.6916 GB, free: 12.34 MB / 494.1 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.009575/0.4872, allocations: 1.301 MB / 0.6929 GB, free: 11.48 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.4873, allocations: 9.281 kB / 0.6929 GB, free: 11.48 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003994/0.4877, allocations: 86.8 kB / 0.693 GB, free: 11.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000365/0.4881, allocations: 363 kB / 0.6933 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.571e-05/0.4881, allocations: 10.78 kB / 0.6934 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.749e-05/0.4882, allocations: 7.875 kB / 0.6934 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004675/0.4886, allocations: 387.9 kB / 0.6937 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.4886, allocations: 6.156 kB / 0.6937 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.456e-05/0.4887, allocations: 1.609 kB / 0.6937 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.4887, allocations: 0.5938 kB / 0.6937 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000512/0.4892, allocations: 436.3 kB / 0.6942 GB, free: 11.11 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.4899, allocations: 0.6373 MB / 0.6948 GB, free: 10.82 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005725/0.4904, allocations: 0.5588 MB / 0.6953 GB, free: 10.77 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003521/0.4908, allocations: 338.6 kB / 0.6957 GB, free: 10.76 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008368/0.4917, allocations: 1.031 MB / 0.6967 GB, free: 9.633 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004522/0.4921, allocations: 410.9 kB / 0.697 GB, free: 9.562 MB / 494.1 MB Notification: Performance of pre-optimization done (n=8): time 2.044e-06/0.4921, allocations: 0 / 0.697 GB, free: 9.562 MB / 494.1 MB Notification: Performance of matching and sorting (n=8): time 0.001546/0.4937, allocations: 1.291 MB / 0.6983 GB, free: 9.477 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.146e-05/0.4937, allocations: 85.2 kB / 0.6984 GB, free: 9.383 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/0.495, allocations: 1.206 MB / 0.6996 GB, free: 9.152 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.169e-05/0.4951, allocations: 31.92 kB / 0.6996 GB, free: 9.121 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000165/0.4952, allocations: 265.5 kB / 0.6999 GB, free: 8.984 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.373e-05/0.4953, allocations: 27 kB / 0.6999 GB, free: 8.969 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003623/0.4957, allocations: 350.1 kB / 0.7002 GB, free: 8.953 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 4.364e-05/0.4957, allocations: 317.5 kB / 0.7005 GB, free: 8.645 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001344/0.4971, allocations: 1.368 MB / 0.7019 GB, free: 8.641 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/0.4985, allocations: 1.503 MB / 0.7033 GB, free: 8.152 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006833/0.5054, allocations: 3.564 MB / 0.7068 GB, free: 6.305 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.128e-06/0.5054, allocations: 0.75 kB / 0.7068 GB, free: 6.305 MB / 494.1 MB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004038/0.5094, allocations: 3.997 MB / 0.7107 GB, free: 4.336 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.192e-05/0.5095, allocations: 9.906 kB / 0.7107 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.862e-05/0.5095, allocations: 1.969 kB / 0.7107 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.5095, allocations: 1.312 kB / 0.7107 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001284/0.5096, allocations: 18.06 kB / 0.7107 GB, free: 4.332 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.333e-06/0.5097, allocations: 5.406 kB / 0.7107 GB, free: 4.328 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000563/0.5102, allocations: 236.2 kB / 0.711 GB, free: 4.141 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-05/0.5103, allocations: 27.09 kB / 0.711 GB, free: 4.141 MB / 494.1 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 (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.0003328/0.5106, allocations: 243.2 kB / 0.7112 GB, free: 4.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.937e-05/0.5107, allocations: 70.11 kB / 0.7113 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.511, allocations: 75.53 kB / 0.7114 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.511, allocations: 4.188 kB / 0.7114 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.511, allocations: 1.125 kB / 0.7114 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.511, allocations: 0.6094 kB / 0.7114 GB, free: 3.902 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000475/0.5115, allocations: 0.491 MB / 0.7118 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.5115, allocations: 3.938 kB / 0.7118 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.902e-05/0.5115, allocations: 7.094 kB / 0.7119 GB, free: 3.629 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.5116, allocations: 6 kB / 0.7119 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.5116, allocations: 8.5 kB / 0.7119 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.5116, allocations: 0 / 0.7119 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5116, allocations: 5.562 kB / 0.7119 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009155/0.5125, allocations: 0.9933 MB / 0.7128 GB, free: 3.477 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.553e-05/0.5126, allocations: 154.4 kB / 0.713 GB, free: 3.328 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.256e-05/0.5127, allocations: 6.609 kB / 0.713 GB, free: 3.324 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000134/0.5128, allocations: 8.25 kB / 0.713 GB, free: 3.32 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.494e-05/0.5128, allocations: 10.66 kB / 0.713 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.5129, allocations: 12.56 kB / 0.713 GB, free: 3.316 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0007501/0.5136, allocations: 0.6711 MB / 0.7137 GB, free: 3.09 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5137, allocations: 0 / 0.7137 GB, free: 3.09 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.002359/0.516, allocations: 0.5734 MB / 0.7142 GB, free: 2.992 MB / 494.1 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.001978/0.518, allocations: 0.6951 MB / 0.7149 GB, free: 2.793 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.002376/0.5204, allocations: 2.557 MB / 0.7174 GB, free: 1.766 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.5204, allocations: 0 / 0.7174 GB, free: 1.766 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003825/0.5208, allocations: 336.4 kB / 0.7177 GB, free: 1.762 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003608/0.5212, allocations: 39.36 kB / 0.7178 GB, free: 1.73 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002339/0.5235, allocations: 1.975 MB / 0.7197 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000461/0.524, allocations: 0.9647 MB / 0.7206 GB, free: 264 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.5241, allocations: 30.09 kB / 0.7207 GB, free: 256 kB / 494.1 MB Notification: Performance of SimCode: time 1.403e-06/0.5241, allocations: 0 / 0.7207 GB, free: 256 kB / 494.1 MB Notification: Performance of Templates: time 0.02066/0.5448, allocations: 13.83 MB / 0.7342 GB, free: 7.211 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (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)