Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.001082/0.001082, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001133/0.001133, allocations: 196.8 kB / 16.53 MB, free: 6.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.332/1.332, allocations: 222.9 MB / 240.2 MB, free: 4.375 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.707/2.707, allocations: 472.6 MB / 0.7451 GB, free: 4.664 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 72.61 kB / 0.912 GB, free: 33.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.276, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002884/0.2789, allocations: 1.755 MB / 1.07 GB, free: 8.645 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.007153/0.2861, allocations: 5.388 MB / 1.075 GB, free: 3.238 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.268e-05/0.2862, allocations: 3.938 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001155/0.2874, allocations: 374.4 kB / 1.076 GB, free: 2.867 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001277/0.2875, allocations: 59.66 kB / 1.076 GB, free: 2.809 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.003551/0.2911, allocations: 1.504 MB / 1.077 GB, free: 1.305 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002275/0.2913, allocations: 163.3 kB / 1.077 GB, free: 1.145 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.442e-05/0.2914, allocations: 9.562 kB / 1.077 GB, free: 1.137 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.587e-05/0.2914, allocations: 63.7 kB / 1.077 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002137/0.2917, allocations: 163.5 kB / 1.077 GB, free: 0.9141 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.2917, allocations: 12 kB / 1.077 GB, free: 0.9023 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.2948, allocations: 2.149 MB / 1.08 GB, free: 14.75 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002204/0.295, allocations: 287.7 kB / 1.08 GB, free: 14.47 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000291/0.2953, allocations: 306.1 kB / 1.08 GB, free: 14.17 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002998/0.2983, allocations: 2.174 MB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.2983, allocations: 0 / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.032e-06/0.2983, allocations: 0 / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 1.738e-05/0.2984, allocations: 0 / 1.082 GB, free: 11.98 MB / 0.8419 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.01081/0.3092, allocations: 1.37 MB / 1.084 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.3092, allocations: 8.031 kB / 1.084 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004551/0.3097, allocations: 103.5 kB / 1.084 GB, free: 10.45 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005592/0.3103, allocations: 406.3 kB / 1.084 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.3103, allocations: 4.375 kB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.3103, allocations: 4.375 kB / 1.084 GB, free: 10 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004793/0.3108, allocations: 399.4 kB / 1.084 GB, free: 9.598 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.218e-06/0.3109, allocations: 4 kB / 1.084 GB, free: 9.594 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.703e-05/0.3109, allocations: 3.984 kB / 1.084 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.258e-06/0.3109, allocations: 4 kB / 1.084 GB, free: 9.586 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004433/0.3113, allocations: 431.7 kB / 1.085 GB, free: 9.164 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006931/0.312, allocations: 0.6615 MB / 1.086 GB, free: 8.453 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005081/0.3126, allocations: 0.5672 MB / 1.086 GB, free: 7.867 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002968/0.3129, allocations: 333.7 kB / 1.086 GB, free: 7.535 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/0.314, allocations: 1.028 MB / 1.087 GB, free: 6.285 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004361/0.3144, allocations: 412.8 kB / 1.088 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.914e-06/0.3144, allocations: 0 / 1.088 GB, free: 5.863 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001349/0.3158, allocations: 1.293 MB / 1.089 GB, free: 4.562 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.647e-05/0.3158, allocations: 93.22 kB / 1.089 GB, free: 4.453 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001252/0.3171, allocations: 1.289 MB / 1.09 GB, free: 3.152 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.3172, allocations: 33.7 kB / 1.09 GB, free: 3.113 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002071/0.3174, allocations: 281.4 kB / 1.091 GB, free: 2.832 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 4.116e-05/0.3174, allocations: 23.72 kB / 1.091 GB, free: 2.809 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003252/0.3178, allocations: 359.6 kB / 1.091 GB, free: 2.453 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3179, allocations: 318 kB / 1.091 GB, free: 2.137 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0012/0.3191, allocations: 1.373 MB / 1.093 GB, free: 0.7617 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001288/0.3204, allocations: 1.501 MB / 1.094 GB, free: 15.25 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007123/0.3275, allocations: 3.56 MB / 1.098 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.3275, allocations: 3.938 kB / 1.098 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004292/0.3318, allocations: 4.024 MB / 1.102 GB, free: 7.535 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3319, allocations: 5.562 kB / 1.102 GB, free: 7.531 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.721e-05/0.3319, allocations: 4 kB / 1.102 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.577e-05/0.3319, allocations: 0 / 1.102 GB, free: 7.527 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001306/0.332, allocations: 15.98 kB / 1.102 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.332e-06/0.3321, allocations: 0 / 1.102 GB, free: 7.512 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004887/0.3326, allocations: 228.3 kB / 1.102 GB, free: 7.285 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.921e-05/0.3326, allocations: 27.98 kB / 1.102 GB, free: 7.258 MB / 0.8575 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 (cluSiz[1],labels[1],gFun2,$PRE.gFun2,gFun1,$PRE.gFun1,t2,$PRE.t2,t1,$PRE.t1,k,$PRE.k,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002989/0.3329, allocations: 249.6 kB / 1.102 GB, free: 7.004 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.972e-05/0.333, allocations: 74.62 kB / 1.102 GB, free: 6.93 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.3333, allocations: 79.81 kB / 1.102 GB, free: 6.844 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.3333, allocations: 0 / 1.102 GB, free: 6.844 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3333, allocations: 0 / 1.102 GB, free: 6.844 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.169e-06/0.3333, allocations: 8.016 kB / 1.102 GB, free: 6.836 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004373/0.3338, allocations: 0.5179 MB / 1.103 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.3338, allocations: 0 / 1.103 GB, free: 6.273 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.382e-05/0.3339, allocations: 11.94 kB / 1.103 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.3339, allocations: 0 / 1.103 GB, free: 6.262 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.3339, allocations: 3.984 kB / 1.103 GB, free: 6.258 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.3339, allocations: 8 kB / 1.103 GB, free: 6.25 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.3339, allocations: 3.938 kB / 1.103 GB, free: 6.246 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008834/0.3348, allocations: 1.002 MB / 1.104 GB, free: 5.223 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001201/0.3349, allocations: 167.6 kB / 1.104 GB, free: 5.039 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.424e-05/0.335, allocations: 4 kB / 1.104 GB, free: 5.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.3352, allocations: 4 kB / 1.104 GB, free: 5.031 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.593e-05/0.3352, allocations: 11.92 kB / 1.104 GB, free: 5.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.38e-05/0.3352, allocations: 11.98 kB / 1.104 GB, free: 5.008 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0008248/0.3361, allocations: 0.73 MB / 1.105 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.5e-07/0.3361, allocations: 0 / 1.105 GB, free: 4.273 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00138/0.3375, allocations: 0.574 MB / 1.105 GB, free: 3.699 MB / 0.8575 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002096/0.3396, allocations: 0.6912 MB / 1.106 GB, free: 3.016 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002683/0.3423, allocations: 2.56 MB / 1.108 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.476e-06/0.3423, allocations: 64 / 1.108 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003425/0.3426, allocations: 339.8 kB / 1.109 GB, free: 112 kB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004032/0.3431, allocations: 58.59 kB / 1.109 GB, free: 56 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00226/0.3453, allocations: 1.888 MB / 1.111 GB, free: 14.13 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006754/0.346, allocations: 0.9879 MB / 1.112 GB, free: 13.12 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001854/0.3462, allocations: 41.36 kB / 1.112 GB, free: 13.08 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.3463, allocations: 31.42 kB / 1.112 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of SimCode: time 3.41e-07/0.3463, allocations: 0 / 1.112 GB, free: 13.05 MB / 0.8731 GB Notification: Performance of Templates: time 0.02411/0.3704, allocations: 14.18 MB / 1.126 GB, free: 14.92 MB / 0.8887 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)