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_SmallScaleValidation.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_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009435/0.0009436, allocations: 103 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.00093/0.0009299, allocations: 173.3 kB / 15.95 MB, free: 212 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.371/1.371, 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.549/2.549, allocations: 436.5 MB / 0.7104 GB, free: 7.879 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004285/0.0004286, allocations: 8 kB / 0.8708 GB, free: 4.723 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6306/0.631, allocations: 153.7 MB / 1.021 GB, free: 1.074 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001785/0.6329, allocations: 1.39 MB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006739/0.6396, allocations: 4.877 MB / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001364/0.6398, allocations: 0 / 1.027 GB, free: 10.78 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001112/0.6409, allocations: 342.8 kB / 1.027 GB, free: 10.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001001/0.641, allocations: 47.91 kB / 1.027 GB, free: 10.39 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.00323/0.6443, allocations: 1.079 MB / 1.028 GB, free: 9.316 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002102/0.6445, allocations: 107.8 kB / 1.029 GB, free: 9.211 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.696e-05/0.6445, allocations: 17.48 kB / 1.029 GB, free: 9.191 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.461e-05/0.6446, allocations: 59.77 kB / 1.029 GB, free: 9.133 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.6448, allocations: 163.6 kB / 1.029 GB, free: 8.973 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.823e-05/0.6449, allocations: 16 kB / 1.029 GB, free: 8.957 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003013/0.6479, allocations: 1.868 MB / 1.031 GB, free: 7.086 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002029/0.6481, allocations: 255.3 kB / 1.031 GB, free: 6.836 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001226/0.6483, allocations: 125.1 kB / 1.031 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.002078/0.6503, allocations: 1.458 MB / 1.032 GB, free: 5.246 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.6504, allocations: 4 kB / 1.032 GB, free: 5.242 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.924e-06/0.6504, allocations: 3.938 kB / 1.032 GB, free: 5.238 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.074e-06/0.6504, allocations: 0 / 1.032 GB, free: 5.238 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.01034/0.6607, allocations: 1.304 MB / 1.034 GB, free: 3.883 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.6608, allocations: 15.98 kB / 1.034 GB, free: 3.867 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003847/0.6612, allocations: 90.66 kB / 1.034 GB, free: 3.777 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000499/0.6617, allocations: 405 kB / 1.034 GB, free: 3.332 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.6617, allocations: 8 kB / 1.034 GB, free: 3.324 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.746e-05/0.6618, allocations: 4 kB / 1.034 GB, free: 3.32 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004218/0.6622, allocations: 395.1 kB / 1.035 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.493e-06/0.6622, allocations: 0 / 1.035 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.265e-05/0.6622, allocations: 0 / 1.035 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.6622, allocations: 0 / 1.035 GB, free: 2.922 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004685/0.6627, allocations: 439.7 kB / 1.035 GB, free: 2.492 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006504/0.6634, allocations: 0.6693 MB / 1.036 GB, free: 1.773 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005108/0.6639, allocations: 0.5594 MB / 1.036 GB, free: 1.195 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001059/0.665, allocations: 1.036 MB / 1.037 GB, free: 15.94 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003994/0.6654, allocations: 412.8 kB / 1.038 GB, free: 15.52 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.313e-06/0.6654, allocations: 4 kB / 1.038 GB, free: 15.51 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.00129/0.6667, allocations: 1.293 MB / 1.039 GB, free: 14.21 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.63e-05/0.6667, allocations: 81.11 kB / 1.039 GB, free: 14.11 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00122/0.668, allocations: 1.282 MB / 1.04 GB, free: 12.82 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 3.941e-05/0.668, allocations: 29.7 kB / 1.04 GB, free: 12.79 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.6682, allocations: 297.5 kB / 1.04 GB, free: 12.49 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.001e-05/0.6683, allocations: 11.81 kB / 1.04 GB, free: 12.48 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.309e-05/0.6683, allocations: 4 kB / 1.04 GB, free: 12.47 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001873/0.6685, allocations: 427.9 kB / 1.041 GB, free: 12.05 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001228/0.6697, allocations: 1.369 MB / 1.042 GB, free: 10.68 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001325/0.6711, allocations: 1.501 MB / 1.044 GB, free: 9.164 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001555/0.6726, allocations: 1.918 MB / 1.046 GB, free: 7.23 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.6726, allocations: 0 / 1.046 GB, free: 7.23 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004135/0.6768, allocations: 3.991 MB / 1.049 GB, free: 3.203 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.088e-05/0.6768, allocations: 4 kB / 1.049 GB, free: 3.199 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.886e-05/0.6768, allocations: 7.953 kB / 1.049 GB, free: 3.191 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.6769, allocations: 3.938 kB / 1.049 GB, free: 3.188 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001346/0.677, allocations: 20.02 kB / 1.049 GB, free: 3.168 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.677, allocations: 0 / 1.049 GB, free: 3.168 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005109/0.6775, allocations: 236.2 kB / 1.05 GB, free: 2.934 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.075e-05/0.6776, allocations: 23.98 kB / 1.05 GB, free: 2.91 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.0003305/0.6779, allocations: 249.6 kB / 1.05 GB, free: 2.656 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.672e-05/0.678, allocations: 70.69 kB / 1.05 GB, free: 2.586 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002889/0.6783, allocations: 87.8 kB / 1.05 GB, free: 2.492 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.471e-06/0.6783, allocations: 3.953 kB / 1.05 GB, free: 2.488 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.6783, allocations: 0 / 1.05 GB, free: 2.488 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.6783, allocations: 7.938 kB / 1.05 GB, free: 2.48 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004699/0.6788, allocations: 0.5141 MB / 1.051 GB, free: 1.922 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.066e-06/0.6788, allocations: 4 kB / 1.051 GB, free: 1.918 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.228e-05/0.6789, allocations: 7.984 kB / 1.051 GB, free: 1.91 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.6789, allocations: 0 / 1.051 GB, free: 1.91 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.6789, allocations: 4 kB / 1.051 GB, free: 1.906 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.6789, allocations: 4.031 kB / 1.051 GB, free: 1.902 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.6789, allocations: 3.953 kB / 1.051 GB, free: 1.898 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000899/0.6798, allocations: 1.009 MB / 1.052 GB, free: 0.8633 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001209/0.68, allocations: 163.7 kB / 1.052 GB, free: 0.6836 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.605e-05/0.6801, allocations: 8 kB / 1.052 GB, free: 0.6758 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001518/0.6802, allocations: 11.94 kB / 1.052 GB, free: 0.6641 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.608e-05/0.6803, allocations: 7.938 kB / 1.052 GB, free: 0.6562 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.95e-05/0.6803, allocations: 15.97 kB / 1.052 GB, free: 0.6406 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0007887/0.6811, allocations: 0.7066 MB / 1.053 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.804e-06/0.6811, allocations: 0 / 1.053 GB, free: 15.93 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001463/0.6826, allocations: 0.5895 MB / 1.053 GB, free: 15.34 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.001662/0.6842, allocations: 0.6835 MB / 1.054 GB, free: 14.66 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00229/0.6865, allocations: 2.553 MB / 1.056 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.6866, allocations: 0 / 1.056 GB, free: 12.1 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003404/0.6869, allocations: 335.8 kB / 1.057 GB, free: 11.77 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000288/0.6872, allocations: 64.75 kB / 1.057 GB, free: 11.71 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0022/0.6894, allocations: 1.969 MB / 1.059 GB, free: 9.707 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005457/0.69, allocations: 1.012 MB / 1.06 GB, free: 8.668 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.000183/0.6902, allocations: 37.42 kB / 1.06 GB, free: 8.629 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.888e-05/0.6903, allocations: 27.42 kB / 1.06 GB, free: 8.602 MB / 0.8106 GB Notification: Performance of SimCode: time 3.91e-07/0.6903, allocations: 3.938 kB / 1.06 GB, free: 8.598 MB / 0.8106 GB Notification: Performance of Templates: time 0.0213/0.7116, allocations: 13.59 MB / 1.073 GB, free: 11.06 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)