Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation") translateModel(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001697/0.001697, allocations: 108.1 kB / 16.41 MB, free: 6.457 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.002262/0.002262, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.327/1.327, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002167/0.002167, allocations: 301.9 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9418/0.9418, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 100.1 kB / 0.6822 GB, free: 6.902 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.364/0.3658, allocations: 86.99 MB / 0.7671 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation): time 0.002838/0.3687, allocations: 1.742 MB / 0.7688 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.007428/0.3761, allocations: 5.386 MB / 0.7741 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3763, allocations: 0 / 0.7741 GB, free: 12.73 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00116/0.3774, allocations: 373 kB / 0.7744 GB, free: 12.36 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.0001395/0.3776, allocations: 63.67 kB / 0.7745 GB, free: 12.3 MB / 0.545 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/BuildingSystems 2.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.003661/0.3813, allocations: 1.497 MB / 0.776 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.000263/0.3815, allocations: 155.4 kB / 0.7761 GB, free: 10.65 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.633e-05/0.3816, allocations: 17.55 kB / 0.7761 GB, free: 10.63 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 8.185e-05/0.3817, allocations: 55.72 kB / 0.7762 GB, free: 10.58 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.3819, allocations: 175.4 kB / 0.7764 GB, free: 10.41 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 5.032e-05/0.382, allocations: 16 kB / 0.7764 GB, free: 10.39 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003198/0.3852, allocations: 2.2 MB / 0.7785 GB, free: 8.188 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.0002169/0.3854, allocations: 283.8 kB / 0.7788 GB, free: 7.91 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.0002433/0.3857, allocations: 306.1 kB / 0.7791 GB, free: 7.609 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.002909/0.3886, allocations: 2.186 MB / 0.7812 GB, free: 5.418 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3886, allocations: 0 / 0.7812 GB, free: 5.418 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.714e-06/0.3886, allocations: 0 / 0.7812 GB, free: 5.418 MB / 0.545 GB Notification: Performance of Transformations before backend: time 1.151e-05/0.3886, allocations: 0 / 0.7812 GB, free: 5.418 MB / 0.545 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.0112/0.3998, allocations: 1.374 MB / 0.7826 GB, free: 3.992 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.3999, allocations: 8.031 kB / 0.7826 GB, free: 3.984 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004124/0.4003, allocations: 91.59 kB / 0.7827 GB, free: 3.895 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005644/0.4009, allocations: 414.2 kB / 0.783 GB, free: 3.441 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.248e-05/0.4009, allocations: 4.375 kB / 0.7831 GB, free: 3.438 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.329e-05/0.4009, allocations: 12.38 kB / 0.7831 GB, free: 3.426 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000423/0.4014, allocations: 391.5 kB / 0.7834 GB, free: 3.031 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.4014, allocations: 3.938 kB / 0.7834 GB, free: 3.027 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.244e-05/0.4014, allocations: 0 / 0.7834 GB, free: 3.027 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.679e-06/0.4014, allocations: 0 / 0.7834 GB, free: 3.027 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004272/0.4019, allocations: 443.7 kB / 0.7839 GB, free: 2.594 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006346/0.4025, allocations: 0.6615 MB / 0.7845 GB, free: 1.883 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005074/0.403, allocations: 0.5711 MB / 0.7851 GB, free: 1.293 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002966/0.4033, allocations: 337.6 kB / 0.7854 GB, free: 0.957 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009887/0.4043, allocations: 1.025 MB / 0.7864 GB, free: 15.71 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000404/0.4047, allocations: 412.8 kB / 0.7868 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=8): time 1.693e-06/0.4048, allocations: 0 / 0.7868 GB, free: 15.29 MB / 0.5606 GB Notification: Performance of matching and sorting (n=8): time 0.001287/0.406, allocations: 1.289 MB / 0.788 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.4061, allocations: 85.05 kB / 0.7881 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001219/0.4073, allocations: 1.293 MB / 0.7894 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 4.423e-05/0.4074, allocations: 33.7 kB / 0.7894 GB, free: 12.54 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.4076, allocations: 289.4 kB / 0.7897 GB, free: 12.25 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 3.525e-05/0.4076, allocations: 19.75 kB / 0.7897 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003148/0.408, allocations: 351.6 kB / 0.7901 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.4081, allocations: 318 kB / 0.7904 GB, free: 11.57 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001212/0.4093, allocations: 1.373 MB / 0.7917 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001292/0.4106, allocations: 1.508 MB / 0.7932 GB, free: 8.68 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007168/0.4178, allocations: 3.553 MB / 0.7966 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.627e-06/0.4178, allocations: 0 / 0.7966 GB, free: 5.035 MB / 0.5606 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004283/0.4221, allocations: 4.01 MB / 0.8006 GB, free: 0.9883 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.4221, allocations: 11.97 kB / 0.8006 GB, free: 0.9766 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.597e-05/0.4222, allocations: 4 kB / 0.8006 GB, free: 0.9727 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.4222, allocations: 3.984 kB / 0.8006 GB, free: 0.9688 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001339/0.4223, allocations: 27.86 kB / 0.8006 GB, free: 0.9414 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.4223, allocations: 4 kB / 0.8006 GB, free: 0.9375 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005011/0.4228, allocations: 228.3 kB / 0.8008 GB, free: 0.7109 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.058e-05/0.4229, allocations: 23.98 kB / 0.8008 GB, free: 0.6875 MB / 0.5606 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.0003148/0.4232, allocations: 249.7 kB / 0.8011 GB, free: 444 kB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.277e-05/0.4233, allocations: 74.62 kB / 0.8012 GB, free: 368 kB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002994/0.4236, allocations: 83.75 kB / 0.8012 GB, free: 272 kB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.4236, allocations: 0 / 0.8012 GB, free: 272 kB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.4236, allocations: 3.938 kB / 0.8012 GB, free: 268 kB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001263/0.4238, allocations: 159.8 kB / 0.8014 GB, free: 88 kB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.49e-05/0.4239, allocations: 4 kB / 0.8014 GB, free: 84 kB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.424, allocations: 12.03 kB / 0.8014 GB, free: 72 kB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.802e-05/0.4241, allocations: 3.984 kB / 0.8014 GB, free: 68 kB / 0.5606 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0009436/0.425, allocations: 1.07 MB / 0.8025 GB, free: 14.99 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0009532/0.426, allocations: 1.217 MB / 0.8036 GB, free: 13.75 MB / 0.5762 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0003093/0.4263, allocations: 335.8 kB / 0.804 GB, free: 13.43 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0007857/0.4271, allocations: 0.7299 MB / 0.8047 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of Backend: time 2.3e-07/0.4271, allocations: 0 / 0.8047 GB, free: 12.69 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.004478/0.4316, allocations: 2.902 MB / 0.8075 GB, free: 9.789 MB / 0.5762 GB Notification: Performance of SimCode: time 0.00219/0.4338, allocations: 1.863 MB / 0.8093 GB, free: 7.867 MB / 0.5762 GB Notification: Performance of Templates: time 0.02314/0.457, allocations: 14.55 MB / 0.8235 GB, free: 9.387 MB / 0.5919 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.sim & ./BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Geothermal.Borefields.BaseClasses.HeatTransfer.ThermalResponseFactors.Validation.GFunction_SmallScaleValidation.pipe 2>&1)