Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_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_3.0.0_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.001101/0.001101, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001115/0.001115, allocations: 195.7 kB / 16.25 MB, free: 6.629 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.322/1.322, allocations: 222.9 MB / 239.9 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.686/2.686, allocations: 472.6 MB / 0.7448 GB, free: 4.891 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001981/0.001981, allocations: 66.75 kB / 0.9116 GB, free: 33.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2933, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.003333/0.2966, allocations: 1.815 MB / 1.07 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.00749/0.3042, allocations: 5.401 MB / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.989e-05/0.3043, allocations: 0 / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.001135/0.3055, allocations: 362.6 kB / 1.075 GB, free: 3.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.3056, allocations: 51.73 kB / 1.075 GB, free: 3.109 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.00352/0.3091, allocations: 1.337 MB / 1.076 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002432/0.3094, allocations: 167.3 kB / 1.077 GB, free: 1.609 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.3e-05/0.3095, allocations: 13.55 kB / 1.077 GB, free: 1.598 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 8.075e-05/0.3095, allocations: 63.77 kB / 1.077 GB, free: 1.535 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002248/0.3098, allocations: 176.8 kB / 1.077 GB, free: 1.363 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.948e-05/0.3098, allocations: 16 kB / 1.077 GB, free: 1.348 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002938/0.3128, allocations: 2.196 MB / 1.079 GB, free: 15.15 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.0002171/0.313, allocations: 279.8 kB / 1.079 GB, free: 14.87 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.0002543/0.3133, allocations: 306 kB / 1.08 GB, free: 14.57 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.002506/0.3158, allocations: 2.198 MB / 1.082 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.3158, allocations: 0 / 1.082 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.253e-06/0.3158, allocations: 0 / 1.082 GB, free: 12.37 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 8.365e-06/0.3158, allocations: 0 / 1.082 GB, free: 12.37 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.009325/0.3251, allocations: 1.367 MB / 1.083 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.331e-05/0.3252, allocations: 8.031 kB / 1.083 GB, free: 10.94 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003941/0.3256, allocations: 99.53 kB / 1.083 GB, free: 10.84 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004552/0.3261, allocations: 406.3 kB / 1.084 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.3261, allocations: 4.375 kB / 1.084 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.181e-05/0.3261, allocations: 8.375 kB / 1.084 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004319/0.3266, allocations: 391.5 kB / 1.084 GB, free: 9.992 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.879e-06/0.3266, allocations: 3.938 kB / 1.084 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.218e-05/0.3266, allocations: 0 / 1.084 GB, free: 9.988 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.003e-06/0.3266, allocations: 4 kB / 1.084 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004316/0.3271, allocations: 439.7 kB / 1.084 GB, free: 9.555 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005999/0.3277, allocations: 0.6615 MB / 1.085 GB, free: 8.844 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005421/0.3282, allocations: 0.5712 MB / 1.086 GB, free: 8.254 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.3285, allocations: 337.6 kB / 1.086 GB, free: 7.918 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001031/0.3296, allocations: 1.021 MB / 1.087 GB, free: 6.676 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004095/0.33, allocations: 412.8 kB / 1.087 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=8): time 1.433e-06/0.33, allocations: 0 / 1.087 GB, free: 6.254 MB / 0.8419 GB Notification: Performance of matching and sorting (n=8): time 0.001306/0.3313, allocations: 1.293 MB / 1.089 GB, free: 4.953 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.3314, allocations: 89.03 kB / 1.089 GB, free: 4.848 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001226/0.3326, allocations: 1.297 MB / 1.09 GB, free: 3.539 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 4.165e-05/0.3327, allocations: 29.7 kB / 1.09 GB, free: 3.504 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002041/0.3329, allocations: 281.4 kB / 1.09 GB, free: 3.223 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 3.495e-05/0.3329, allocations: 19.75 kB / 1.09 GB, free: 3.203 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003254/0.3332, allocations: 355.6 kB / 1.091 GB, free: 2.852 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.3334, allocations: 322 kB / 1.091 GB, free: 2.531 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001224/0.3346, allocations: 1.373 MB / 1.092 GB, free: 1.156 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001365/0.336, allocations: 1.501 MB / 1.094 GB, free: 15.64 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00723/0.3432, allocations: 3.557 MB / 1.097 GB, free: 12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3432, allocations: 3.938 kB / 1.097 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004445/0.3477, allocations: 4.015 MB / 1.101 GB, free: 7.941 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.3477, allocations: 9.562 kB / 1.101 GB, free: 7.934 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.987e-05/0.3477, allocations: 3.984 kB / 1.101 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.564e-05/0.3478, allocations: 0 / 1.101 GB, free: 7.93 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.3479, allocations: 19.94 kB / 1.101 GB, free: 7.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.3479, allocations: 4 kB / 1.101 GB, free: 7.906 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004827/0.3484, allocations: 228.3 kB / 1.101 GB, free: 7.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.3485, allocations: 23.98 kB / 1.101 GB, free: 7.656 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.0003139/0.3488, allocations: 253.6 kB / 1.102 GB, free: 7.398 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.335e-05/0.3489, allocations: 74.62 kB / 1.102 GB, free: 7.324 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002952/0.3492, allocations: 83.75 kB / 1.102 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3492, allocations: 0 / 1.102 GB, free: 7.234 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.3492, allocations: 4 kB / 1.102 GB, free: 7.23 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.277e-06/0.3492, allocations: 0 / 1.102 GB, free: 7.23 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004599/0.3497, allocations: 0.514 MB / 1.102 GB, free: 6.672 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.868e-06/0.3497, allocations: 12.02 kB / 1.102 GB, free: 6.66 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.677e-05/0.3498, allocations: 7.938 kB / 1.102 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3498, allocations: 0 / 1.102 GB, free: 6.652 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.3498, allocations: 7.984 kB / 1.102 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.664e-06/0.3498, allocations: 0 / 1.102 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3498, allocations: 0 / 1.102 GB, free: 6.645 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009827/0.3508, allocations: 1.013 MB / 1.103 GB, free: 5.609 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3509, allocations: 163.6 kB / 1.103 GB, free: 5.43 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.976e-05/0.351, allocations: 3.984 kB / 1.103 GB, free: 5.426 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000159/0.3512, allocations: 4 kB / 1.103 GB, free: 5.422 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.3512, allocations: 19.91 kB / 1.103 GB, free: 5.402 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.702e-05/0.3513, allocations: 11.98 kB / 1.103 GB, free: 5.391 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0007984/0.3521, allocations: 0.7222 MB / 1.104 GB, free: 4.664 MB / 0.8575 GB Notification: Performance of sort global known variables: time 2.2e-07/0.3521, allocations: 4 kB / 1.104 GB, free: 4.66 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.001436/0.3535, allocations: 0.574 MB / 1.105 GB, free: 4.086 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.001746/0.3553, allocations: 0.6944 MB / 1.105 GB, free: 3.402 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.002299/0.3576, allocations: 2.544 MB / 1.108 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3576, allocations: 0 / 1.108 GB, free: 0.8438 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0003263/0.3579, allocations: 347.8 kB / 1.108 GB, free: 0.5039 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004075/0.3584, allocations: 64.64 kB / 1.108 GB, free: 452 kB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002255/0.3606, allocations: 2.06 MB / 1.11 GB, free: 14.35 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000514/0.3611, allocations: 0.9918 MB / 1.111 GB, free: 13.33 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.0001943/0.3613, allocations: 37.42 kB / 1.111 GB, free: 13.29 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.3615, allocations: 23.42 kB / 1.111 GB, free: 13.27 MB / 0.8731 GB Notification: Performance of SimCode: time 4.21e-07/0.3615, allocations: 4 kB / 1.111 GB, free: 13.26 MB / 0.8731 GB Notification: Performance of Templates: time 0.02287/0.3843, allocations: 14.16 MB / 1.125 GB, free: 15.16 MB / 0.8887 GB make -j1 -f Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)