Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0006527/0.0006527, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009629/0.001616, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0006846/0.0006846, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009297/0.001614, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8825/0.8825, allocations: 177.2 MB / 189.7 MB, free: 5.238 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0748/0.9573, allocations: 53.67 MB / 243.4 MB, free: 15.49 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001606/0.001606, allocations: 234.8 kB / 244.4 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001011/0.002618, allocations: 471.6 kB / 244.8 MB, free: 14.07 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.706/0.706, allocations: 138.7 MB / 384.3 MB, free: 360 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07009/0.7761, allocations: 42.4 MB / 426.7 MB, free: 5.824 MB / 410.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.222e-06/1.222e-06, allocations: 0 / 428 MB, free: 4.516 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.917e-06/1.014e-05, allocations: 2.312 kB / 428 MB, free: 4.512 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.0009436/0.0009537, allocations: 0.5869 MB / 428.6 MB, free: 3.922 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.00174/0.002694, allocations: 1.657 MB / 430.3 MB, free: 2.246 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.145e-05/0.002726, allocations: 4 kB / 430.3 MB, free: 2.242 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.002837, allocations: 67.84 kB / 430.3 MB, free: 2.176 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.727e-05/0.002864, allocations: 35.94 kB / 430.4 MB, free: 2.141 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.000518/0.003382, allocations: 250.9 kB / 430.6 MB, free: 1.895 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 6.327e-05/0.003445, allocations: 23.92 kB / 430.6 MB, free: 1.871 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.261e-05/0.003478, allocations: 7.984 kB / 430.7 MB, free: 1.863 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.229e-05/0.00354, allocations: 27.97 kB / 430.7 MB, free: 1.836 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.006e-05/0.00359, allocations: 35.89 kB / 430.7 MB, free: 1.801 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.433e-05/0.003604, allocations: 4 kB / 430.7 MB, free: 1.797 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: 'inertia' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.0004896/0.004094, allocations: 431.2 kB / 431.1 MB, free: 1.375 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.458e-05/0.004139, allocations: 23.94 kB / 431.2 MB, free: 1.352 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.558e-05/0.004154, allocations: 15.88 kB / 431.2 MB, free: 1.336 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.004438, allocations: 287.2 kB / 431.5 MB, free: 1.055 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.184e-06/0.004445, allocations: 4 kB / 431.5 MB, free: 1.051 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.004446, allocations: 4 kB / 431.5 MB, free: 1.047 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.004455, allocations: 0 / 431.5 MB, free: 1.047 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0003114/0.004766, allocations: 371.5 kB / 431.8 MB, free: 0.6602 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.825e-05/0.004794, allocations: 11.98 kB / 431.8 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.275e-05/0.004817, allocations: 4.938 kB / 431.9 MB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001032/0.00492, allocations: 137.5 kB / 432 MB, free: 496 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.723e-06/0.004927, allocations: 4.375 kB / 432 MB, free: 492 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.255e-06/0.004935, allocations: 4.375 kB / 432 MB, free: 488 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.664e-05/0.004992, allocations: 33.03 kB / 432 MB, free: 448 kB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.579e-06/0.004996, allocations: 4.188 kB / 432 MB, free: 444 kB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.748e-06/0.005001, allocations: 384 / 432 MB, free: 444 kB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.12e-06/0.005006, allocations: 3.938 kB / 432 MB, free: 440 kB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.494e-06/0.005014, allocations: 4 kB / 432 MB, free: 436 kB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.621e-05/0.00509, allocations: 74.64 kB / 432.1 MB, free: 344 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.71e-05/0.005117, allocations: 14.58 kB / 432.1 MB, free: 320 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.23e-05/0.005129, allocations: 8.844 kB / 432.1 MB, free: 308 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.005167, allocations: 8.094 kB / 432.1 MB, free: 300 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.896e-05/0.005186, allocations: 38.5 kB / 432.2 MB, free: 252 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 8.82e-07/0.005187, allocations: 0 / 432.2 MB, free: 252 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 7.231e-05/0.005259, allocations: 41.69 kB / 432.2 MB, free: 204 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.3e-05/0.005282, allocations: 51.41 kB / 432.3 MB, free: 140 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1832/0.1885, allocations: 176.5 kB / 432.4 MB, free: 1.984 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.039e-05/0.1885, allocations: 25.7 kB / 432.5 MB, free: 1.953 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.939e-05/0.1886, allocations: 102.4 kB / 432.6 MB, free: 1.871 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.41e-05/0.1886, allocations: 0 / 432.6 MB, free: 1.871 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.1886, allocations: 28.34 kB / 432.6 MB, free: 1.855 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.34e-05/0.1886, allocations: 326.5 kB / 432.9 MB, free: 1.543 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.614e-05/0.1887, allocations: 14.92 kB / 432.9 MB, free: 1.539 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.551e-05/0.1887, allocations: 9.312 kB / 432.9 MB, free: 1.539 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.725e-05/0.1887, allocations: 43.22 kB / 433 MB, free: 1.527 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1887, allocations: 0 / 433 MB, free: 1.527 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 8.323e-05/0.1888, allocations: 68.66 kB / 433 MB, free: 1.496 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.1888, allocations: 5.031 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.709e-05/0.1889, allocations: 8.031 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.191e-05/0.1889, allocations: 2.406 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.522e-05/0.1889, allocations: 3.562 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.995e-06/0.1889, allocations: 0.7188 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.907e-05/0.1889, allocations: 8.734 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.1889, allocations: 3.688 kB / 433.1 MB, free: 1.496 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 6.445e-05/0.189, allocations: 118.2 kB / 433.2 MB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-06/0.189, allocations: 3.219 kB / 433.2 MB, free: 1.379 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.391e-05/0.1891, allocations: 46.7 kB / 433.2 MB, free: 1.344 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.314e-06/0.1891, allocations: 5.344 kB / 433.2 MB, free: 1.34 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.1891, allocations: 0 / 433.2 MB, free: 1.34 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1891, allocations: 0.5625 kB / 433.2 MB, free: 1.34 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.524e-05/0.1892, allocations: 81.39 kB / 433.3 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1892, allocations: 2.344 kB / 433.3 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.528e-06/0.1892, allocations: 6.672 kB / 433.3 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.302e-05/0.1892, allocations: 11.56 kB / 433.3 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.1892, allocations: 0 / 433.3 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-06/0.1892, allocations: 4.156 kB / 433.4 MB, free: 1.266 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1892, allocations: 5.25 kB / 433.4 MB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1892, allocations: 0 / 433.4 MB, free: 1.262 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.259e-05/0.1892, allocations: 66.62 kB / 433.4 MB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.869e-06/0.1892, allocations: 3 kB / 433.4 MB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.114e-05/0.1892, allocations: 0 / 433.4 MB, free: 1.191 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.027e-05/0.1893, allocations: 6.828 kB / 433.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.1893, allocations: 1.031 kB / 433.4 MB, free: 1.188 MB / 410.7 MB Notification: Performance of sorting global known variables: time 4.794e-05/0.1893, allocations: 51.56 kB / 433.5 MB, free: 1.18 MB / 410.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1893, allocations: 0 / 433.5 MB, free: 1.18 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003063/0.1896, allocations: 87.3 kB / 433.6 MB, free: 1.18 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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.0005085/0.1901, allocations: 268.1 kB / 433.8 MB, free: 1.113 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.1902, allocations: 67.25 kB / 433.9 MB, free: 1.074 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1902, allocations: 3.453 kB / 433.9 MB, free: 1.074 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 7.103e-06/0.1902, allocations: 7.062 kB / 433.9 MB, free: 1.066 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.93e-05/0.1903, allocations: 12.44 kB / 433.9 MB, free: 1.066 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002423/0.1906, allocations: 197.1 kB / 434.1 MB, free: 16.92 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.065e-05/0.1906, allocations: 65.56 kB / 434.2 MB, free: 16.85 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 2.112e-05/0.1906, allocations: 5.359 kB / 434.2 MB, free: 16.85 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.186e-05/0.1906, allocations: 52.78 kB / 434.2 MB, free: 16.8 MB / 426.7 MB Notification: Performance of SimCode: time 4.61e-07/0.1906, allocations: 0.625 kB / 434.2 MB, free: 16.8 MB / 426.7 MB Notification: Performance of Templates: time 0.004936/0.1956, allocations: 2.509 MB / 436.7 MB, free: 16.77 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.2496418552473187]