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/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/Buildings 10.0.0-master/package.mo): time 2.277/2.277, allocations: 390.3 MB / 402.8 MB, free: 6.68 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001085/0.001085, allocations: 187 kB / 496.1 MB, free: 12.88 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 221.3 MB / 0.7915 GB, free: 5.383 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008655/0.0008659, allocations: 99.88 kB / 0.9318 GB, free: 5.688 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 3.013e-05/3.044e-05, allocations: 8 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3119, allocations: 143 MB / 1.219 GB, free: 13.47 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.014/1.326, allocations: 178 MB / 1.393 GB, free: 8.363 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003087/1.327, allocations: 120.9 kB / 1.393 GB, free: 8.289 MB / 0.8542 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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 FrontEnd - DAE generated: time 0.1371/1.464, allocations: 38.42 MB / 1.43 GB, free: 6.93 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.643e-06/1.464, allocations: 0 / 1.43 GB, free: 6.93 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 3.426e-05/1.464, allocations: 16 kB / 1.43 GB, free: 6.914 MB / 0.8855 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.002815/1.467, allocations: 1.15 MB / 1.431 GB, free: 5.773 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.078e-05/1.467, allocations: 12.03 kB / 1.431 GB, free: 5.762 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000396/1.467, allocations: 113.2 kB / 1.432 GB, free: 5.652 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007599/1.468, allocations: 470.4 kB / 1.432 GB, free: 5.152 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.703e-05/1.468, allocations: 22.38 kB / 1.432 GB, free: 5.141 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.965e-05/1.468, allocations: 41.55 kB / 1.432 GB, free: 5.113 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/1.469, allocations: 382.1 kB / 1.432 GB, free: 4.734 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/1.469, allocations: 0 / 1.432 GB, free: 4.734 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.348e-05/1.469, allocations: 0 / 1.432 GB, free: 4.734 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.628e-06/1.469, allocations: 0 / 1.432 GB, free: 4.734 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000347/1.469, allocations: 435 kB / 1.433 GB, free: 4.312 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007475/1.47, allocations: 0.7762 MB / 1.434 GB, free: 3.633 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004514/1.47, allocations: 0.5546 MB / 1.434 GB, free: 3.066 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002619/1.471, allocations: 333.4 kB / 1.434 GB, free: 2.738 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009702/1.471, allocations: 1.04 MB / 1.435 GB, free: 1.48 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000364/1.472, allocations: 407.1 kB / 1.436 GB, free: 1.074 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=8): time 1.413e-06/1.472, allocations: 0 / 1.436 GB, free: 1.074 MB / 0.8855 GB Notification: Performance of matching and sorting (n=8): time 0.0009647/1.473, allocations: 0.9686 MB / 1.437 GB, free: 116 kB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.043e-05/1.473, allocations: 89.12 kB / 1.437 GB, free: 8 kB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001113/1.474, allocations: 1.129 MB / 1.438 GB, free: 15.1 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 6.178e-05/1.474, allocations: 46.77 kB / 1.438 GB, free: 15.06 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002092/1.474, allocations: 295 kB / 1.438 GB, free: 14.83 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 3.62e-05/1.474, allocations: 23.61 kB / 1.438 GB, free: 14.81 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/1.474, allocations: 12.31 kB / 1.438 GB, free: 14.81 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0001829/1.475, allocations: 428.2 kB / 1.439 GB, free: 14.43 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001156/1.476, allocations: 1.211 MB / 1.44 GB, free: 13.64 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001283/1.477, allocations: 1.357 MB / 1.441 GB, free: 12.75 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/1.479, allocations: 1.617 MB / 1.443 GB, free: 11.53 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/1.479, allocations: 0 / 1.443 GB, free: 11.53 MB / 0.9011 GB Notification: Performance of matching and sorting (n=319) (initialization): time 0.004035/1.483, allocations: 3.473 MB / 1.446 GB, free: 8.895 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 2.373e-05/1.483, allocations: 7.938 kB / 1.446 GB, free: 8.887 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/1.483, allocations: 8 kB / 1.446 GB, free: 8.879 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.357e-05/1.483, allocations: 4 kB / 1.446 GB, free: 8.875 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006561/1.483, allocations: 151 kB / 1.446 GB, free: 8.734 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.156e-05/1.484, allocations: 0 / 1.446 GB, free: 8.734 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006391/1.484, allocations: 247 kB / 1.447 GB, free: 8.5 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001003/1.484, allocations: 63 kB / 1.447 GB, free: 8.445 MB / 0.9011 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (92): * Single equations (assignments): 89 * Array equations: 1 * 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.0001563/1.484, allocations: 128 kB / 1.447 GB, free: 8.324 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/1.485, allocations: 74.69 kB / 1.447 GB, free: 8.25 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009912/1.486, allocations: 0.9308 MB / 1.448 GB, free: 7.328 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/1.486, allocations: 15.95 kB / 1.448 GB, free: 7.312 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.581e-06/1.486, allocations: 0 / 1.448 GB, free: 7.312 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/1.486, allocations: 0 / 1.448 GB, free: 7.312 MB / 0.9011 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004815/1.486, allocations: 0.5226 MB / 1.448 GB, free: 6.836 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/1.486, allocations: 0 / 1.448 GB, free: 6.836 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.969e-05/1.486, allocations: 7.984 kB / 1.448 GB, free: 6.828 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.2e-06/1.486, allocations: 4 kB / 1.448 GB, free: 6.824 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.367e-05/1.486, allocations: 0 / 1.448 GB, free: 6.824 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/1.486, allocations: 0 / 1.448 GB, free: 6.824 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.349e-06/1.486, allocations: 4 kB / 1.448 GB, free: 6.82 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009026/1.487, allocations: 1.018 MB / 1.449 GB, free: 5.797 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001245/1.487, allocations: 155.8 kB / 1.449 GB, free: 5.625 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.012e-05/1.487, allocations: 4 kB / 1.449 GB, free: 5.621 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001446/1.487, allocations: 7.922 kB / 1.449 GB, free: 5.617 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.951e-05/1.488, allocations: 7.938 kB / 1.449 GB, free: 5.609 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.482e-05/1.488, allocations: 19.97 kB / 1.449 GB, free: 5.59 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0008002/1.488, allocations: 0.6993 MB / 1.45 GB, free: 5.016 MB / 0.9011 GB Notification: Performance of sort global known variables: time 1.3e-07/1.488, allocations: 0 / 1.45 GB, free: 5.016 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.00274/1.491, allocations: 0.7146 MB / 1.451 GB, free: 4.336 MB / 0.9011 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) * 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.002873/1.494, allocations: 0.8856 MB / 1.452 GB, free: 3.484 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.00273/1.497, allocations: 2.396 MB / 1.454 GB, free: 1.191 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/1.497, allocations: 0 / 1.454 GB, free: 1.191 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.0002946/1.497, allocations: 339.8 kB / 1.454 GB, free: 0.8594 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/1.498, allocations: 48.66 kB / 1.454 GB, free: 0.8125 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002084/1.5, allocations: 1.494 MB / 1.456 GB, free: 15.28 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006073/1.5, allocations: 1.013 MB / 1.457 GB, free: 14.25 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 0.0002566/1.5, allocations: 62.91 kB / 1.457 GB, free: 14.19 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000121/1.501, allocations: 43.41 kB / 1.457 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of SimCode: time 7.41e-07/1.501, allocations: 0 / 1.457 GB, free: 14.14 MB / 0.9167 GB Notification: Performance of Templates: time 0.02496/1.526, allocations: 15.16 MB / 1.472 GB, free: 15.04 MB / 0.9323 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)