Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.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.001251/0.001251, allocations: 100.1 kB / 15.05 MB, free: 1.105 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.001491/0.001491, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 239.9 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.612/2.612, allocations: 436.5 MB / 0.7104 GB, free: 7.891 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003155/0.0003155, allocations: 12 kB / 0.8708 GB, free: 4.758 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6363/0.6366, allocations: 153.7 MB / 1.021 GB, free: 1.094 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001471/0.6381, allocations: 1.124 MB / 1.022 GB, free: 15.96 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005742/0.6439, allocations: 3.849 MB / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.334e-05/0.644, allocations: 0 / 1.026 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001312/0.6441, allocations: 11.92 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001899/0.6443, allocations: 31.83 kB / 1.026 GB, free: 12.05 MB / 0.7794 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.003184/0.6475, allocations: 1.075 MB / 1.027 GB, free: 10.98 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001336/0.6477, allocations: 59.92 kB / 1.027 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.687e-05/0.6477, allocations: 11.97 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.495e-05/0.6478, allocations: 35.84 kB / 1.027 GB, free: 10.87 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002273/0.648, allocations: 151.7 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.966e-05/0.6481, allocations: 16 kB / 1.027 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00332/0.6514, allocations: 1.864 MB / 1.029 GB, free: 8.84 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0001917/0.6516, allocations: 247.3 kB / 1.029 GB, free: 8.598 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001081/0.6517, allocations: 109.3 kB / 1.029 GB, free: 8.484 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00215/0.6539, allocations: 1.401 MB / 1.031 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.125e-06/0.6539, allocations: 0 / 1.031 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.574e-06/0.6539, allocations: 0 / 1.031 GB, free: 7.082 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.452e-05/0.6539, allocations: 0 / 1.031 GB, free: 7.082 MB / 0.7794 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.01078/0.6647, allocations: 1.246 MB / 1.032 GB, free: 5.785 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.6648, allocations: 15.92 kB / 1.032 GB, free: 5.77 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004026/0.6652, allocations: 90.73 kB / 1.032 GB, free: 5.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004281/0.6656, allocations: 363.6 kB / 1.032 GB, free: 5.273 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.602e-05/0.6657, allocations: 11.94 kB / 1.032 GB, free: 5.262 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.789e-05/0.6657, allocations: 4 kB / 1.032 GB, free: 5.258 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004178/0.6661, allocations: 395.1 kB / 1.033 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.6661, allocations: 0 / 1.033 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.41e-05/0.6662, allocations: 0 / 1.033 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.6662, allocations: 4 kB / 1.033 GB, free: 4.855 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004093/0.6666, allocations: 431.7 kB / 1.033 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005832/0.6672, allocations: 0.6366 MB / 1.034 GB, free: 3.746 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005137/0.6677, allocations: 0.5633 MB / 1.034 GB, free: 3.164 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/0.6687, allocations: 1.044 MB / 1.035 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003947/0.6691, allocations: 396.9 kB / 1.036 GB, free: 1.492 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=8): time 1.603e-06/0.6692, allocations: 3.938 kB / 1.036 GB, free: 1.488 MB / 0.7794 GB Notification: Performance of matching and sorting (n=8): time 0.001261/0.6704, allocations: 1.296 MB / 1.037 GB, free: 188 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/0.6705, allocations: 85.11 kB / 1.037 GB, free: 84 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001142/0.6716, allocations: 1.199 MB / 1.038 GB, free: 14.86 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.398e-05/0.6717, allocations: 33.7 kB / 1.038 GB, free: 14.82 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001795/0.6719, allocations: 257.3 kB / 1.038 GB, free: 14.57 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.417e-05/0.6719, allocations: 23.7 kB / 1.038 GB, free: 14.55 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.549e-05/0.6719, allocations: 4 kB / 1.038 GB, free: 14.54 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001554/0.6721, allocations: 420 kB / 1.039 GB, free: 14.12 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.6733, allocations: 1.373 MB / 1.04 GB, free: 12.75 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.6746, allocations: 1.505 MB / 1.042 GB, free: 11.23 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001525/0.6761, allocations: 1.906 MB / 1.044 GB, free: 9.312 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.6761, allocations: 4 kB / 1.044 GB, free: 9.309 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004132/0.6803, allocations: 3.979 MB / 1.047 GB, free: 5.293 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.6803, allocations: 8 kB / 1.047 GB, free: 5.285 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.825e-05/0.6803, allocations: 3.953 kB / 1.047 GB, free: 5.281 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.576e-05/0.6804, allocations: 4 kB / 1.047 GB, free: 5.277 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.6805, allocations: 19.98 kB / 1.047 GB, free: 5.258 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.6805, allocations: 3.938 kB / 1.047 GB, free: 5.254 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004789/0.681, allocations: 236.2 kB / 1.048 GB, free: 5.02 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.728e-05/0.6811, allocations: 23.97 kB / 1.048 GB, free: 4.996 MB / 0.795 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 ($whenCondition1,$PRE.k,k,$PRE.t1,t1,$PRE.t2,t2,$PRE.gFun1,gFun1,$PRE.gFun2,gFun2,labels[1],cluSiz[1]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003031/0.6814, allocations: 245.6 kB / 1.048 GB, free: 4.746 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.95e-05/0.6814, allocations: 62.78 kB / 1.048 GB, free: 4.684 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002821/0.6817, allocations: 75.06 kB / 1.048 GB, free: 4.598 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.6818, allocations: 7.938 kB / 1.048 GB, free: 4.59 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.129e-06/0.6818, allocations: 8.031 kB / 1.048 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.6818, allocations: 0 / 1.048 GB, free: 4.582 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004282/0.6822, allocations: 0.4892 MB / 1.049 GB, free: 4.047 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.6822, allocations: 0 / 1.049 GB, free: 4.047 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.249e-05/0.6823, allocations: 8 kB / 1.049 GB, free: 4.039 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.6823, allocations: 0 / 1.049 GB, free: 4.039 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.921e-05/0.6823, allocations: 11.98 kB / 1.049 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.6823, allocations: 0 / 1.049 GB, free: 4.027 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/0.6824, allocations: 7.891 kB / 1.049 GB, free: 4.02 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008801/0.6832, allocations: 1.004 MB / 1.05 GB, free: 2.988 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001136/0.6834, allocations: 155.9 kB / 1.05 GB, free: 2.816 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.367e-05/0.6834, allocations: 4 kB / 1.05 GB, free: 2.812 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001445/0.6836, allocations: 7.953 kB / 1.05 GB, free: 2.805 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.355e-05/0.6836, allocations: 11.98 kB / 1.05 GB, free: 2.793 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.73e-05/0.6837, allocations: 11.98 kB / 1.05 GB, free: 2.781 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0007042/0.6844, allocations: 0.6611 MB / 1.05 GB, free: 2.113 MB / 0.795 GB Notification: Performance of sort global known variables: time 2.9e-07/0.6844, allocations: 3.938 kB / 1.05 GB, free: 2.109 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.001452/0.6858, allocations: 0.5779 MB / 1.051 GB, free: 1.531 MB / 0.795 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002085/0.6879, allocations: 0.681 MB / 1.052 GB, free: 0.8594 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.002211/0.6902, allocations: 2.556 MB / 1.054 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.6902, allocations: 3.938 kB / 1.054 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003178/0.6905, allocations: 335.8 kB / 1.054 GB, free: 13.96 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.6907, allocations: 32.59 kB / 1.055 GB, free: 13.93 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.6928, allocations: 1.84 MB / 1.056 GB, free: 12.05 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004821/0.6933, allocations: 0.9838 MB / 1.057 GB, free: 11.04 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001711/0.6934, allocations: 36.5 kB / 1.057 GB, free: 11.01 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.486e-05/0.6936, allocations: 27.41 kB / 1.057 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of SimCode: time 5.61e-07/0.6936, allocations: 0 / 1.057 GB, free: 10.98 MB / 0.8106 GB Notification: Performance of Templates: time 0.02195/0.7155, allocations: 13.03 MB / 1.07 GB, free: 13.99 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)