Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001373/0.001373, allocations: 112.6 kB / 17.08 MB, free: 6.016 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.001445/0.001445, allocations: 191.1 kB / 18.01 MB, free: 5.098 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.393/1.393, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7942/0.7942, allocations: 115.3 MB / 407.2 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001552/0.001552, allocations: 60.67 kB / 0.5583 GB, free: 32.31 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1653/0.1669, allocations: 76.18 MB / 0.6327 GB, free: 4.445 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001957/0.1689, allocations: 0.5069 MB / 0.6332 GB, free: 3.941 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002659/0.1716, allocations: 1.607 MB / 0.6348 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.749e-05/0.1716, allocations: 0 / 0.6348 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001658/0.1718, allocations: 19.91 kB / 0.6348 GB, free: 2.297 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.599e-05/0.1719, allocations: 11.97 kB / 0.6348 GB, free: 2.285 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.001153/0.1731, allocations: 250.7 kB / 0.635 GB, free: 2.043 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 8.187e-05/0.1731, allocations: 19.98 kB / 0.635 GB, free: 2.023 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.419e-05/0.1732, allocations: 0 / 0.635 GB, free: 2.023 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.196e-05/0.1732, allocations: 15.92 kB / 0.6351 GB, free: 2.008 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.96e-05/0.1733, allocations: 23.84 kB / 0.6351 GB, free: 1.984 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.1733, allocations: 0 / 0.6351 GB, free: 1.984 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007116/0.174, allocations: 339.5 kB / 0.6354 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.718e-05/0.1741, allocations: 15.97 kB / 0.6354 GB, free: 1.637 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.369e-05/0.1741, allocations: 19.81 kB / 0.6354 GB, free: 1.617 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005477/0.1747, allocations: 275.4 kB / 0.6357 GB, free: 1.348 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.1747, allocations: 4 kB / 0.6357 GB, free: 1.344 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1747, allocations: 0 / 0.6357 GB, free: 1.344 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.942e-06/0.1747, allocations: 0 / 0.6357 GB, free: 1.344 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.0005604/0.1753, allocations: 407.1 kB / 0.6361 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.478e-05/0.1754, allocations: 12.03 kB / 0.6361 GB, free: 0.8867 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.348e-05/0.1754, allocations: 8.844 kB / 0.6361 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001823/0.1756, allocations: 185.2 kB / 0.6363 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.1756, allocations: 4.375 kB / 0.6363 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.133e-05/0.1756, allocations: 384 / 0.6363 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.1757, allocations: 38.02 kB / 0.6363 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.1758, allocations: 0 / 0.6363 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.124e-05/0.1758, allocations: 4 kB / 0.6363 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.1758, allocations: 0 / 0.6363 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.577e-05/0.1758, allocations: 19.92 kB / 0.6364 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002072/0.176, allocations: 173.7 kB / 0.6365 GB, free: 380 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.948e-05/0.1761, allocations: 22.58 kB / 0.6365 GB, free: 348 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.428e-05/0.1761, allocations: 16.91 kB / 0.6366 GB, free: 328 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.089e-05/0.1762, allocations: 4 kB / 0.6366 GB, free: 324 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.055e-05/0.1762, allocations: 38.5 kB / 0.6366 GB, free: 276 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1762, allocations: 0 / 0.6366 GB, free: 276 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.000183/0.1764, allocations: 69.64 kB / 0.6367 GB, free: 200 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.472e-05/0.1765, allocations: 59.41 kB / 0.6367 GB, free: 128 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.1766, allocations: 173 kB / 0.6369 GB, free: 15.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.396e-05/0.1767, allocations: 25.7 kB / 0.6369 GB, free: 15.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.652e-05/0.1767, allocations: 100.1 kB / 0.637 GB, free: 15.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.1768, allocations: 3.906 kB / 0.637 GB, free: 15.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.525e-05/0.1768, allocations: 25.7 kB / 0.637 GB, free: 15.78 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.1769, allocations: 322.8 kB / 0.6373 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.387e-05/0.177, allocations: 39.98 kB / 0.6374 GB, free: 15.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.833e-05/0.177, allocations: 47.92 kB / 0.6374 GB, free: 15.37 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.965e-05/0.1771, allocations: 68.81 kB / 0.6375 GB, free: 15.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.1772, allocations: 0 / 0.6375 GB, free: 15.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000153/0.1773, allocations: 125.5 kB / 0.6376 GB, free: 15.17 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.882e-05/0.1773, allocations: 7.938 kB / 0.6376 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.582e-05/0.1774, allocations: 4 kB / 0.6376 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.839e-05/0.1774, allocations: 3.984 kB / 0.6376 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.038e-05/0.1774, allocations: 0 / 0.6376 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1774, allocations: 3.938 kB / 0.6376 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.545e-05/0.1775, allocations: 15.91 kB / 0.6376 GB, free: 15.13 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.017e-06/0.1775, allocations: 0 / 0.6376 GB, free: 15.13 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001732/0.1777, allocations: 121.8 kB / 0.6378 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.637e-05/0.1777, allocations: 7.844 kB / 0.6378 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.1778, allocations: 61.5 kB / 0.6378 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.1778, allocations: 0 / 0.6378 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.1778, allocations: 3.984 kB / 0.6378 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.1778, allocations: 7.938 kB / 0.6378 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001321/0.178, allocations: 169.7 kB / 0.638 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.178, allocations: 0 / 0.638 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.567e-06/0.178, allocations: 3.984 kB / 0.638 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.178, allocations: 3.938 kB / 0.638 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.335e-06/0.178, allocations: 3.984 kB / 0.638 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.178, allocations: 0 / 0.638 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.178, allocations: 4 kB / 0.638 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.119e-05/0.1781, allocations: 77.03 kB / 0.6381 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.796e-05/0.1782, allocations: 88.95 kB / 0.6382 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.443e-05/0.1782, allocations: 0 / 0.6382 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.47e-05/0.1782, allocations: 0 / 0.6382 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.508e-05/0.1783, allocations: 7.875 kB / 0.6382 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.1783, allocations: 4 kB / 0.6382 GB, free: 14.47 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.496e-05/0.1784, allocations: 120.9 kB / 0.6383 GB, free: 14.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1784, allocations: 0 / 0.6383 GB, free: 14.36 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004057/0.1788, allocations: 87.98 kB / 0.6384 GB, free: 14.27 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.0005894/0.1794, allocations: 220.3 kB / 0.6386 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001749/0.1796, allocations: 101.7 kB / 0.6387 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1796, allocations: 0 / 0.6387 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.831e-05/0.1796, allocations: 12 kB / 0.6387 GB, free: 13.95 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001513/0.1798, allocations: 8.125 kB / 0.6387 GB, free: 13.94 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003128/0.1801, allocations: 191.2 kB / 0.6389 GB, free: 13.72 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002656/0.1804, allocations: 0.6923 MB / 0.6396 GB, free: 13 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.14e-05/0.1804, allocations: 11.42 kB / 0.6396 GB, free: 12.99 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1804, allocations: 4 kB / 0.6396 GB, free: 12.99 MB / 494.1 MB Notification: Performance of Templates: time 0.004998/0.1854, allocations: 2.251 MB / 0.6418 GB, free: 10.73 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)