Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/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_10_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_10_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.0008196/0.0008199, allocations: 90.75 kB / 15.06 MB, free: 1.098 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.0008325/0.0008325, allocations: 172.7 kB / 15.95 MB, free: 208 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.39/1.39, allocations: 223.3 MB / 240 MB, free: 5.289 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.615/2.615, allocations: 437.7 MB / 0.7117 GB, free: 7.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000542/0.000542, allocations: 8 kB / 0.8722 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6905/0.6911, allocations: 153.8 MB / 1.022 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters): time 0.001361/0.6925, allocations: 1.133 MB / 1.024 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.005618/0.6981, allocations: 3.923 MB / 1.027 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.148e-05/0.6982, allocations: 3.938 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.318e-05/0.6983, allocations: 7.922 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001806/0.6985, allocations: 27.84 kB / 1.027 GB, free: 10.92 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.003126/0.7016, allocations: 1.131 MB / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001425/0.7018, allocations: 99.66 kB / 1.029 GB, free: 9.691 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.551e-05/0.7018, allocations: 11.98 kB / 1.029 GB, free: 9.68 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.14e-05/0.7019, allocations: 51.83 kB / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.7022, allocations: 167.7 kB / 1.029 GB, free: 9.465 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 4.012e-05/0.7022, allocations: 19.94 kB / 1.029 GB, free: 9.445 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003063/0.7053, allocations: 1.95 MB / 1.031 GB, free: 7.492 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002106/0.7055, allocations: 263.2 kB / 1.031 GB, free: 7.234 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001035/0.7056, allocations: 105.3 kB / 1.031 GB, free: 7.125 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.00196/0.7076, allocations: 1.394 MB / 1.032 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.775e-06/0.7076, allocations: 0 / 1.032 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.473e-06/0.7076, allocations: 3.938 kB / 1.032 GB, free: 5.727 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.38e-05/0.7077, allocations: 0 / 1.032 GB, free: 5.727 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.007535/0.7152, allocations: 1.257 MB / 1.034 GB, free: 4.418 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.7153, allocations: 12.5 kB / 1.034 GB, free: 4.406 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004123/0.7157, allocations: 86.73 kB / 1.034 GB, free: 4.32 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004749/0.7162, allocations: 363.7 kB / 1.034 GB, free: 3.914 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.926e-05/0.7162, allocations: 4 kB / 1.034 GB, free: 3.91 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.955e-05/0.7162, allocations: 4 kB / 1.034 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004573/0.7167, allocations: 399.1 kB / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.7167, allocations: 0 / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.251e-05/0.7167, allocations: 0 / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.7168, allocations: 0 / 1.035 GB, free: 3.504 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004423/0.7172, allocations: 435.7 kB / 1.035 GB, free: 3.078 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006586/0.7179, allocations: 0.6366 MB / 1.036 GB, free: 2.391 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005424/0.7184, allocations: 0.5595 MB / 1.036 GB, free: 1.812 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.7187, allocations: 337.6 kB / 1.036 GB, free: 1.477 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009928/0.7197, allocations: 1.04 MB / 1.037 GB, free: 220 kB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.7202, allocations: 408.8 kB / 1.038 GB, free: 15.8 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 4.678e-06/0.7202, allocations: 7.984 kB / 1.038 GB, free: 15.79 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001398/0.7216, allocations: 1.289 MB / 1.039 GB, free: 14.49 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.7217, allocations: 77.11 kB / 1.039 GB, free: 14.4 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001259/0.7229, allocations: 1.206 MB / 1.04 GB, free: 13.18 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.247e-05/0.723, allocations: 25.7 kB / 1.04 GB, free: 13.14 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001902/0.7232, allocations: 273.3 kB / 1.041 GB, free: 12.87 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.7232, allocations: 23.84 kB / 1.041 GB, free: 12.85 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.263e-05/0.7233, allocations: 0 / 1.041 GB, free: 12.85 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001831/0.7235, allocations: 419.9 kB / 1.041 GB, free: 12.43 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.7247, allocations: 1.369 MB / 1.042 GB, free: 11.06 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.726, allocations: 1.505 MB / 1.044 GB, free: 9.543 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/0.7278, allocations: 1.91 MB / 1.046 GB, free: 7.617 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.048e-06/0.7278, allocations: 0 / 1.046 GB, free: 7.617 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004358/0.7321, allocations: 3.979 MB / 1.05 GB, free: 3.602 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.7322, allocations: 11.95 kB / 1.05 GB, free: 3.59 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.7322, allocations: 0 / 1.05 GB, free: 3.59 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.7322, allocations: 3.984 kB / 1.05 GB, free: 3.586 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.7324, allocations: 12 kB / 1.05 GB, free: 3.574 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.488e-06/0.7324, allocations: 8.031 kB / 1.05 GB, free: 3.566 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004698/0.7328, allocations: 236.2 kB / 1.05 GB, free: 3.332 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.187e-05/0.7329, allocations: 23.98 kB / 1.05 GB, free: 3.309 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.0003084/0.7332, allocations: 241.6 kB / 1.05 GB, free: 3.062 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.7333, allocations: 62.78 kB / 1.05 GB, free: 3 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002787/0.7336, allocations: 86.95 kB / 1.05 GB, free: 2.906 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.7336, allocations: 0 / 1.05 GB, free: 2.906 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.7336, allocations: 0 / 1.05 GB, free: 2.906 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.951e-06/0.7336, allocations: 4 kB / 1.05 GB, free: 2.902 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004433/0.7341, allocations: 0.4929 MB / 1.051 GB, free: 2.363 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.354e-06/0.7341, allocations: 0 / 1.051 GB, free: 2.363 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.128e-05/0.7342, allocations: 7.984 kB / 1.051 GB, free: 2.355 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.7342, allocations: 4 kB / 1.051 GB, free: 2.352 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.585e-05/0.7342, allocations: 4 kB / 1.051 GB, free: 2.348 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.362e-06/0.7342, allocations: 15.89 kB / 1.051 GB, free: 2.332 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.7342, allocations: 4.031 kB / 1.051 GB, free: 2.328 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009101/0.7351, allocations: 0.9897 MB / 1.052 GB, free: 1.316 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001453/0.7353, allocations: 151.9 kB / 1.052 GB, free: 1.148 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.352e-05/0.7354, allocations: 0 / 1.052 GB, free: 1.148 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.7355, allocations: 11.98 kB / 1.052 GB, free: 1.137 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.927e-05/0.7356, allocations: 11.95 kB / 1.052 GB, free: 1.125 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.079e-05/0.7356, allocations: 15.97 kB / 1.052 GB, free: 1.109 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0007299/0.7363, allocations: 0.6572 MB / 1.053 GB, free: 456 kB / 0.795 GB Notification: Performance of sort global known variables: time 1.513e-06/0.7363, allocations: 0 / 1.053 GB, free: 456 kB / 0.795 GB Notification: Performance of remove unused functions: time 0.001429/0.7378, allocations: 0.5778 MB / 1.053 GB, free: 15.87 MB / 0.8106 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.002117/0.7399, allocations: 0.6867 MB / 1.054 GB, free: 15.19 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002279/0.7422, allocations: 2.556 MB / 1.056 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.7422, allocations: 0 / 1.056 GB, free: 12.62 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003132/0.7425, allocations: 331.8 kB / 1.057 GB, free: 12.3 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002594/0.7428, allocations: 36.59 kB / 1.057 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.7449, allocations: 1.833 MB / 1.058 GB, free: 10.4 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.7454, allocations: 0.972 MB / 1.059 GB, free: 9.402 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001768/0.7456, allocations: 36.55 kB / 1.059 GB, free: 9.363 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.948e-05/0.7457, allocations: 27.42 kB / 1.059 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of SimCode: time 4.21e-07/0.7457, allocations: 0 / 1.059 GB, free: 9.336 MB / 0.8106 GB Notification: Performance of Templates: time 0.02324/0.769, allocations: 13.01 MB / 1.072 GB, free: 12.37 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_1borehole_5meters.pipe 2>&1)