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_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 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_SmallScaleValidation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|gFun_int",fileNamePrefix="Buildings_10_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_10_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.001005/0.001005, allocations: 86.17 kB / 15.06 MB, free: 1.09 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.001117/0.001117, allocations: 168.7 kB / 15.95 MB, free: 204 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.423/1.423, allocations: 223.3 MB / 240 MB, free: 5.414 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.57/2.57, allocations: 437.7 MB / 0.7117 GB, free: 7.148 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004143/0.0004145, allocations: 15.94 kB / 0.8723 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6735/0.6739, allocations: 153.8 MB / 1.022 GB, free: 88 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.001744/0.6757, allocations: 1.437 MB / 1.024 GB, free: 14.64 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.006605/0.6823, allocations: 4.993 MB / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001067/0.6824, allocations: 0 / 1.029 GB, free: 9.629 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009396/0.6834, allocations: 326.6 kB / 1.029 GB, free: 9.309 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0001119/0.6835, allocations: 55.69 kB / 1.029 GB, free: 9.254 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.002831/0.6864, allocations: 1.126 MB / 1.03 GB, free: 8.129 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0002252/0.6866, allocations: 163.4 kB / 1.03 GB, free: 7.969 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.351e-05/0.6866, allocations: 21.55 kB / 1.03 GB, free: 7.945 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 7.17e-05/0.6867, allocations: 55.78 kB / 1.03 GB, free: 7.891 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002178/0.6869, allocations: 195.6 kB / 1.031 GB, free: 7.699 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.42e-05/0.687, allocations: 12 kB / 1.031 GB, free: 7.688 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00278/0.6898, allocations: 1.954 MB / 1.033 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0002022/0.69, allocations: 267.2 kB / 1.033 GB, free: 5.469 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001068/0.6901, allocations: 121.2 kB / 1.033 GB, free: 5.344 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.001823/0.6919, allocations: 1.454 MB / 1.034 GB, free: 3.887 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.197e-06/0.692, allocations: 0 / 1.034 GB, free: 3.887 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.084e-06/0.692, allocations: 0 / 1.034 GB, free: 3.887 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 1.524e-05/0.692, allocations: 0 / 1.034 GB, free: 3.887 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.007761/0.6997, allocations: 1.312 MB / 1.036 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.303e-05/0.6998, allocations: 8.562 kB / 1.036 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003997/0.7002, allocations: 98.58 kB / 1.036 GB, free: 2.418 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005588/0.7008, allocations: 408.9 kB / 1.036 GB, free: 1.969 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.719e-05/0.7008, allocations: 8 kB / 1.036 GB, free: 1.961 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.7008, allocations: 4 kB / 1.036 GB, free: 1.957 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004332/0.7013, allocations: 391.1 kB / 1.036 GB, free: 1.562 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.7013, allocations: 3.984 kB / 1.036 GB, free: 1.559 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.7013, allocations: 3.984 kB / 1.036 GB, free: 1.555 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.031e-06/0.7013, allocations: 4 kB / 1.036 GB, free: 1.551 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000443/0.7018, allocations: 431.7 kB / 1.037 GB, free: 1.129 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007394/0.7025, allocations: 0.6732 MB / 1.038 GB, free: 416 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005591/0.7031, allocations: 0.5517 MB / 1.038 GB, free: 15.84 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/0.7034, allocations: 345.5 kB / 1.038 GB, free: 15.49 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001013/0.7045, allocations: 1.032 MB / 1.039 GB, free: 14.24 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004361/0.7049, allocations: 404.9 kB / 1.04 GB, free: 13.82 MB / 0.795 GB Notification: Performance of pre-optimization done (n=8): time 1.944e-06/0.7049, allocations: 0 / 1.04 GB, free: 13.82 MB / 0.795 GB Notification: Performance of matching and sorting (n=8): time 0.001395/0.7063, allocations: 1.296 MB / 1.041 GB, free: 12.52 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.935e-05/0.7064, allocations: 85.09 kB / 1.041 GB, free: 12.42 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.7077, allocations: 1.282 MB / 1.042 GB, free: 11.12 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 4.048e-05/0.7077, allocations: 33.7 kB / 1.042 GB, free: 11.09 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001972/0.7079, allocations: 281.4 kB / 1.043 GB, free: 10.8 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 3.367e-05/0.708, allocations: 23.92 kB / 1.043 GB, free: 10.78 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.471e-05/0.708, allocations: 4 kB / 1.043 GB, free: 10.78 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001744/0.7082, allocations: 419.9 kB / 1.043 GB, free: 10.36 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001197/0.7094, allocations: 1.377 MB / 1.044 GB, free: 8.98 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00134/0.7107, allocations: 1.503 MB / 1.046 GB, free: 7.469 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001617/0.7124, allocations: 1.914 MB / 1.048 GB, free: 5.539 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.7124, allocations: 0 / 1.048 GB, free: 5.539 MB / 0.795 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.00413/0.7165, allocations: 3.995 MB / 1.052 GB, free: 1.508 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 2.054e-05/0.7166, allocations: 15.89 kB / 1.052 GB, free: 1.492 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/0.7166, allocations: 320 / 1.052 GB, free: 1.492 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.7166, allocations: 0 / 1.052 GB, free: 1.492 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001231/0.7167, allocations: 19.98 kB / 1.052 GB, free: 1.473 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.292e-06/0.7167, allocations: 4 kB / 1.052 GB, free: 1.469 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004549/0.7172, allocations: 228.3 kB / 1.052 GB, free: 1.242 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.38e-05/0.7173, allocations: 27.97 kB / 1.052 GB, free: 1.215 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.0003215/0.7176, allocations: 249.6 kB / 1.052 GB, free: 0.9609 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.725e-05/0.7177, allocations: 74.67 kB / 1.052 GB, free: 0.8867 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002749/0.718, allocations: 83.78 kB / 1.052 GB, free: 0.793 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.275e-06/0.718, allocations: 4 kB / 1.052 GB, free: 0.7891 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.191e-06/0.718, allocations: 3.984 kB / 1.052 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.718, allocations: 0 / 1.052 GB, free: 0.7852 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004561/0.7185, allocations: 0.5179 MB / 1.053 GB, free: 228 kB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.7185, allocations: 0 / 1.053 GB, free: 228 kB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.041e-05/0.7186, allocations: 4 kB / 1.053 GB, free: 224 kB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.156e-06/0.7186, allocations: 0 / 1.053 GB, free: 224 kB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.119e-05/0.7186, allocations: 7.984 kB / 1.053 GB, free: 216 kB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.396e-06/0.7186, allocations: 3.953 kB / 1.053 GB, free: 212 kB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.7186, allocations: 0 / 1.053 GB, free: 212 kB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009136/0.7195, allocations: 1.017 MB / 1.054 GB, free: 15.17 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001198/0.7197, allocations: 159.8 kB / 1.054 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.7197, allocations: 0 / 1.054 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.7199, allocations: 4 kB / 1.054 GB, free: 14.99 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.83e-05/0.7199, allocations: 19.94 kB / 1.054 GB, free: 14.97 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.267e-05/0.72, allocations: 11.98 kB / 1.054 GB, free: 14.96 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.0008074/0.7208, allocations: 0.7144 MB / 1.055 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.5e-07/0.7208, allocations: 0 / 1.055 GB, free: 14.24 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001402/0.7222, allocations: 0.574 MB / 1.055 GB, free: 13.66 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.001684/0.7239, allocations: 0.6996 MB / 1.056 GB, free: 12.97 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.002232/0.7261, allocations: 2.55 MB / 1.059 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.7262, allocations: 3.938 kB / 1.059 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0003114/0.7265, allocations: 335.8 kB / 1.059 GB, free: 10.08 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.7269, allocations: 56.7 kB / 1.059 GB, free: 10.02 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002159/0.729, allocations: 1.978 MB / 1.061 GB, free: 8.016 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005887/0.7296, allocations: 0.9842 MB / 1.062 GB, free: 7.008 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.0001917/0.7298, allocations: 37.44 kB / 1.062 GB, free: 6.973 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001027/0.7299, allocations: 31.41 kB / 1.062 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of SimCode: time 7.62e-07/0.7299, allocations: 0 / 1.062 GB, free: 6.941 MB / 0.8106 GB Notification: Performance of Templates: time 0.02268/0.7526, allocations: 13.58 MB / 1.075 GB, free: 9.418 MB / 0.8262 GB make -j1 -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)