Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 119.1 kB / 17.09 MB, free: 5.984 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.001085/0.001085, allocations: 188.7 kB / 18.01 MB, free: 5.074 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.368/1.368, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7564/0.7564, allocations: 115.3 MB / 407.2 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001276/0.001276, allocations: 63.7 kB / 0.5583 GB, free: 32.16 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.178/0.1793, allocations: 76.18 MB / 0.6327 GB, free: 4.312 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.002547/0.1819, allocations: 0.5066 MB / 0.6332 GB, free: 3.809 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.003344/0.1852, allocations: 1.61 MB / 0.6348 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.868e-05/0.1853, allocations: 0 / 0.6348 GB, free: 2.18 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.1856, allocations: 59.84 kB / 0.6348 GB, free: 2.121 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 6.135e-05/0.1857, allocations: 35.94 kB / 0.6349 GB, free: 2.086 MB / 478.1 MB [/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/IBPSA 4.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.001318/0.187, allocations: 247.2 kB / 0.6351 GB, free: 1.844 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001166/0.1872, allocations: 31.95 kB / 0.6351 GB, free: 1.812 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.241e-05/0.1872, allocations: 4 kB / 0.6351 GB, free: 1.809 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.076e-05/0.1873, allocations: 23.91 kB / 0.6351 GB, free: 1.785 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.986e-05/0.1874, allocations: 39.89 kB / 0.6352 GB, free: 1.746 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.804e-05/0.1874, allocations: 3.938 kB / 0.6352 GB, free: 1.742 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007779/0.1882, allocations: 331.5 kB / 0.6355 GB, free: 1.418 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.496e-05/0.1883, allocations: 31.91 kB / 0.6355 GB, free: 1.387 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.526e-05/0.1883, allocations: 23.75 kB / 0.6356 GB, free: 1.363 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005626/0.1889, allocations: 299.3 kB / 0.6358 GB, free: 1.07 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1889, allocations: 0 / 0.6358 GB, free: 1.07 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1889, allocations: 0 / 0.6358 GB, free: 1.07 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.303e-06/0.1889, allocations: 0 / 0.6358 GB, free: 1.07 MB / 478.1 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.0005528/0.1895, allocations: 430.9 kB / 0.6363 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1895, allocations: 8.031 kB / 0.6363 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.204e-05/0.1896, allocations: 8.844 kB / 0.6363 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001846/0.1898, allocations: 192.7 kB / 0.6365 GB, free: 368 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.833e-06/0.1898, allocations: 384 / 0.6365 GB, free: 368 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.186e-05/0.1898, allocations: 384 / 0.6365 GB, free: 368 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001144/0.1899, allocations: 46 kB / 0.6365 GB, free: 316 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1899, allocations: 3.938 kB / 0.6365 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-06/0.19, allocations: 0 / 0.6365 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.19, allocations: 0 / 0.6365 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.751e-05/0.19, allocations: 19.94 kB / 0.6365 GB, free: 292 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002199/0.1902, allocations: 189.6 kB / 0.6367 GB, free: 52 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.768e-05/0.1903, allocations: 22.58 kB / 0.6367 GB, free: 20 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.441e-05/0.1903, allocations: 24.91 kB / 0.6367 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.8e-05/0.1904, allocations: 4 kB / 0.6368 GB, free: 15.99 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.755e-05/0.1904, allocations: 38.5 kB / 0.6368 GB, free: 15.94 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.1904, allocations: 0 / 0.6368 GB, free: 15.94 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001788/0.1906, allocations: 73.42 kB / 0.6369 GB, free: 15.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.908e-05/0.1907, allocations: 51.41 kB / 0.6369 GB, free: 15.8 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002134/0.1909, allocations: 206.8 kB / 0.6371 GB, free: 15.59 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1909, allocations: 25.7 kB / 0.6371 GB, free: 15.55 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.274e-05/0.191, allocations: 108.2 kB / 0.6372 GB, free: 15.45 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.248e-05/0.191, allocations: 0 / 0.6372 GB, free: 15.45 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.241e-05/0.1911, allocations: 33.7 kB / 0.6373 GB, free: 15.41 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001255/0.1912, allocations: 322.8 kB / 0.6376 GB, free: 15.08 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.597e-05/0.1913, allocations: 59.91 kB / 0.6376 GB, free: 15.02 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.684e-05/0.1913, allocations: 51.98 kB / 0.6377 GB, free: 14.97 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001182/0.1915, allocations: 95.58 kB / 0.6378 GB, free: 14.88 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1915, allocations: 3.938 kB / 0.6378 GB, free: 14.88 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001952/0.1917, allocations: 173.4 kB / 0.6379 GB, free: 14.7 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.1917, allocations: 7.938 kB / 0.6379 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.741e-05/0.1917, allocations: 4 kB / 0.638 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.1917, allocations: 3.984 kB / 0.638 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.547e-05/0.1918, allocations: 0 / 0.638 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.1918, allocations: 0 / 0.638 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.306e-05/0.1918, allocations: 7.906 kB / 0.638 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.158e-05/0.1918, allocations: 3.984 kB / 0.638 GB, free: 14.67 MB / 494.1 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],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 0.0001801/0.192, allocations: 129.9 kB / 0.6381 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.862e-05/0.192, allocations: 15.75 kB / 0.6381 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001342/0.1922, allocations: 70.17 kB / 0.6382 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1922, allocations: 0 / 0.6382 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.1922, allocations: 0 / 0.6382 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.85e-06/0.1922, allocations: 0 / 0.6382 GB, free: 14.44 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001452/0.1924, allocations: 185.6 kB / 0.6383 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.276e-06/0.1924, allocations: 4 kB / 0.6384 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.636e-05/0.1924, allocations: 0 / 0.6384 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.75e-06/0.1924, allocations: 7.938 kB / 0.6384 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.562e-06/0.1924, allocations: 4.031 kB / 0.6384 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.256e-06/0.1924, allocations: 3.984 kB / 0.6384 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.313e-06/0.1924, allocations: 0 / 0.6384 GB, free: 14.19 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.664e-05/0.1925, allocations: 77.03 kB / 0.6384 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.05e-05/0.1926, allocations: 88.86 kB / 0.6385 GB, free: 13.99 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.999e-05/0.1926, allocations: 8 kB / 0.6385 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.452e-05/0.1926, allocations: 0 / 0.6385 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.792e-05/0.1927, allocations: 4.031 kB / 0.6385 GB, free: 13.98 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.1927, allocations: 3.938 kB / 0.6385 GB, free: 13.98 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1928, allocations: 148.4 kB / 0.6387 GB, free: 13.83 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1928, allocations: 0 / 0.6387 GB, free: 13.83 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003747/0.1932, allocations: 87.98 kB / 0.6388 GB, free: 13.75 MB / 494.1 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.0005849/0.1938, allocations: 226.2 kB / 0.639 GB, free: 13.54 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001941/0.194, allocations: 129.6 kB / 0.6391 GB, free: 13.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.194, allocations: 0 / 0.6391 GB, free: 13.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.623e-05/0.194, allocations: 8 kB / 0.6391 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001548/0.1942, allocations: 9.875 kB / 0.6391 GB, free: 13.39 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003673/0.1946, allocations: 241.6 kB / 0.6394 GB, free: 13.12 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003123/0.1949, allocations: 0.7081 MB / 0.64 GB, free: 12.38 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.1e-05/0.1949, allocations: 7.438 kB / 0.6401 GB, free: 12.38 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1949, allocations: 7.875 kB / 0.6401 GB, free: 12.37 MB / 494.1 MB Notification: Performance of Templates: time 0.004883/0.1998, allocations: 2.372 MB / 0.6424 GB, free: 9.992 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)