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.001131/0.001131, allocations: 91.84 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.00143/0.00143, 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.388/1.388, allocations: 223.3 MB / 240 MB, free: 5.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.691/2.691, allocations: 462.6 MB / 0.736 GB, free: 15.76 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003036/0.0003036, allocations: 11.91 kB / 0.9022 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.267, allocations: 159.6 MB / 1.058 GB, free: 5.285 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.00183/0.2689, allocations: 1.437 MB / 1.059 GB, free: 3.836 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.007034/0.2759, allocations: 4.994 MB / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.785e-05/0.2761, allocations: 3.938 kB / 1.064 GB, free: 14.82 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0009742/0.277, allocations: 314.7 kB / 1.065 GB, free: 14.51 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001176/0.2772, allocations: 51.8 kB / 1.065 GB, free: 14.46 MB / 0.8262 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.002721/0.2799, allocations: 1.135 MB / 1.066 GB, free: 13.33 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.2801, allocations: 167.4 kB / 1.066 GB, free: 13.16 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.72e-05/0.2802, allocations: 13.56 kB / 1.066 GB, free: 13.15 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 7.31e-05/0.2803, allocations: 59.72 kB / 1.066 GB, free: 13.09 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002323/0.2805, allocations: 195.6 kB / 1.066 GB, free: 12.9 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.2806, allocations: 12 kB / 1.066 GB, free: 12.89 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002665/0.2832, allocations: 1.954 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.0002078/0.2835, allocations: 267.2 kB / 1.068 GB, free: 10.67 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 0.0001013/0.2836, allocations: 121.1 kB / 1.069 GB, free: 10.55 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.001613/0.2852, allocations: 1.454 MB / 1.07 GB, free: 9.09 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.2852, allocations: 3.984 kB / 1.07 GB, free: 9.086 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.252e-06/0.2852, allocations: 4 kB / 1.07 GB, free: 9.082 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.732e-06/0.2852, allocations: 0 / 1.07 GB, free: 9.082 MB / 0.8262 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.007287/0.2925, allocations: 1.308 MB / 1.071 GB, free: 7.723 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2926, allocations: 8.031 kB / 1.071 GB, free: 7.715 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003406/0.2929, allocations: 94.64 kB / 1.071 GB, free: 7.621 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004414/0.2934, allocations: 397 kB / 1.072 GB, free: 7.184 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.2934, allocations: 12 kB / 1.072 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.825e-05/0.2934, allocations: 11.94 kB / 1.072 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004156/0.2938, allocations: 387.1 kB / 1.072 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.667e-06/0.2939, allocations: 0 / 1.072 GB, free: 6.77 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.2939, allocations: 7.922 kB / 1.072 GB, free: 6.762 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.771e-06/0.2939, allocations: 4 kB / 1.072 GB, free: 6.758 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004353/0.2943, allocations: 431.8 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005887/0.2949, allocations: 0.6654 MB / 1.073 GB, free: 5.621 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005018/0.2954, allocations: 0.5594 MB / 1.074 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.2958, allocations: 341.7 kB / 1.074 GB, free: 4.703 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009411/0.2967, allocations: 1.036 MB / 1.075 GB, free: 3.445 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004059/0.2971, allocations: 412.8 kB / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/0.2972, allocations: 0 / 1.075 GB, free: 3.023 MB / 0.8262 GB Notification: Performance of matching and sorting (n=8): time 0.001311/0.2985, allocations: 1.296 MB / 1.077 GB, free: 1.719 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/0.2985, allocations: 81.11 kB / 1.077 GB, free: 1.621 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001207/0.2997, allocations: 1.282 MB / 1.078 GB, free: 336 kB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 3.346e-05/0.2998, allocations: 37.7 kB / 1.078 GB, free: 292 kB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001967/0.3, allocations: 281.4 kB / 1.078 GB, free: 4 kB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.387e-05/0.3, allocations: 27.64 kB / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.365e-05/0.3001, allocations: 0 / 1.078 GB, free: 15.98 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001771/0.3003, allocations: 427.9 kB / 1.079 GB, free: 15.55 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001218/0.3015, allocations: 1.369 MB / 1.08 GB, free: 14.18 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00132/0.3028, allocations: 1.513 MB / 1.082 GB, free: 12.66 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001558/0.3044, allocations: 1.91 MB / 1.083 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.3044, allocations: 4 kB / 1.083 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004105/0.3085, allocations: 3.983 MB / 1.087 GB, free: 6.707 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.926e-05/0.3085, allocations: 11.98 kB / 1.087 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3085, allocations: 0 / 1.087 GB, free: 6.695 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.363e-05/0.3086, allocations: 8.031 kB / 1.087 GB, free: 6.688 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001224/0.3087, allocations: 16 kB / 1.087 GB, free: 6.672 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.696e-06/0.3087, allocations: 3.984 kB / 1.087 GB, free: 6.668 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004339/0.3092, allocations: 236.2 kB / 1.088 GB, free: 6.434 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.3092, allocations: 19.98 kB / 1.088 GB, free: 6.414 MB / 0.8419 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.0003023/0.3095, allocations: 249.7 kB / 1.088 GB, free: 6.16 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.936e-05/0.3096, allocations: 74.64 kB / 1.088 GB, free: 6.086 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002627/0.3099, allocations: 87.75 kB / 1.088 GB, free: 5.988 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.3099, allocations: 4 kB / 1.088 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.3099, allocations: 0 / 1.088 GB, free: 5.984 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.3099, allocations: 3.984 kB / 1.088 GB, free: 5.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004519/0.3103, allocations: 0.5178 MB / 1.089 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.183e-06/0.3104, allocations: 0 / 1.089 GB, free: 5.418 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.595e-05/0.3104, allocations: 4 kB / 1.089 GB, free: 5.414 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.739e-06/0.3104, allocations: 8.031 kB / 1.089 GB, free: 5.406 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.364e-05/0.3105, allocations: 7.938 kB / 1.089 GB, free: 5.398 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.3105, allocations: 0 / 1.089 GB, free: 5.398 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.965e-06/0.3105, allocations: 4 kB / 1.089 GB, free: 5.395 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009016/0.3114, allocations: 1.002 MB / 1.09 GB, free: 4.371 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001134/0.3115, allocations: 167.8 kB / 1.09 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.376e-05/0.3116, allocations: 0 / 1.09 GB, free: 4.188 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001435/0.3117, allocations: 11.89 kB / 1.09 GB, free: 4.176 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.222e-05/0.3118, allocations: 7.984 kB / 1.09 GB, free: 4.168 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.097e-05/0.3118, allocations: 15.98 kB / 1.09 GB, free: 4.152 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.0007846/0.3126, allocations: 0.7105 MB / 1.09 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of sort global known variables: time 4.11e-07/0.3126, allocations: 0 / 1.09 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.001313/0.3139, allocations: 0.574 MB / 1.091 GB, free: 2.863 MB / 0.8419 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.001632/0.3156, allocations: 0.6887 MB / 1.092 GB, free: 2.188 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.002273/0.3178, allocations: 2.54 MB / 1.094 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3179, allocations: 0 / 1.094 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003489/0.3182, allocations: 344.1 kB / 1.094 GB, free: 15.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003428/0.3186, allocations: 58.38 kB / 1.095 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002172/0.3207, allocations: 1.985 MB / 1.096 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005035/0.3213, allocations: 0.9842 MB / 1.097 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001945/0.3215, allocations: 41.36 kB / 1.097 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.932e-05/0.3216, allocations: 35.34 kB / 1.097 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of SimCode: time 3.31e-07/0.3216, allocations: 0 / 1.097 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of Templates: time 0.02114/0.3427, allocations: 13.59 MB / 1.111 GB, free: 14.61 MB / 0.8731 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)