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.001214/0.001214, allocations: 107.4 kB / 16.4 MB, free: 6.488 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.001205/0.001205, allocations: 193.2 kB / 17.34 MB, free: 5.762 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.359/1.359, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7628/0.7628, allocations: 115.3 MB / 406.5 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001208/0.001208, allocations: 63.39 kB / 0.5576 GB, free: 32.2 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1596/0.1608, allocations: 76.18 MB / 0.632 GB, free: 4.441 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001498/0.1623, allocations: 0.4971 MB / 0.6325 GB, free: 3.945 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.1644, allocations: 1.61 MB / 0.6341 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.05e-05/0.1644, allocations: 0 / 0.6341 GB, free: 2.316 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001387/0.1646, allocations: 19.91 kB / 0.6341 GB, free: 2.297 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 2.398e-05/0.1646, allocations: 11.98 kB / 0.6341 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.0008072/0.1654, allocations: 252 kB / 0.6344 GB, free: 2.043 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.612e-05/0.1655, allocations: 23.97 kB / 0.6344 GB, free: 2.02 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.1655, allocations: 7.984 kB / 0.6344 GB, free: 2.012 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.763e-05/0.1656, allocations: 15.86 kB / 0.6344 GB, free: 1.996 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.649e-05/0.1656, allocations: 11.94 kB / 0.6344 GB, free: 1.984 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.017e-05/0.1656, allocations: 0 / 0.6344 GB, free: 1.984 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004658/0.1661, allocations: 335.5 kB / 0.6347 GB, free: 1.656 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.87e-05/0.1661, allocations: 19.98 kB / 0.6348 GB, free: 1.637 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.462e-05/0.1662, allocations: 19.81 kB / 0.6348 GB, free: 1.617 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003417/0.1665, allocations: 275.4 kB / 0.635 GB, free: 1.348 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.129e-06/0.1665, allocations: 4 kB / 0.6351 GB, free: 1.344 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1665, allocations: 0 / 0.6351 GB, free: 1.344 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.859e-06/0.1666, allocations: 0 / 0.6351 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.0004206/0.167, allocations: 407.1 kB / 0.6354 GB, free: 0.8984 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.665e-05/0.167, allocations: 8.031 kB / 0.6354 GB, free: 0.8906 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.176e-05/0.1671, allocations: 12.84 kB / 0.6355 GB, free: 0.8789 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.1672, allocations: 185.6 kB / 0.6356 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.165e-06/0.1672, allocations: 384 / 0.6356 GB, free: 0.6602 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.436e-06/0.1673, allocations: 8.375 kB / 0.6356 GB, free: 0.6523 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001002/0.1674, allocations: 46 kB / 0.6357 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.312e-06/0.1674, allocations: 0 / 0.6357 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.1674, allocations: 0 / 0.6357 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.1674, allocations: 0 / 0.6357 GB, free: 0.6016 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.012e-05/0.1674, allocations: 15.94 kB / 0.6357 GB, free: 0.5859 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.1676, allocations: 169.7 kB / 0.6359 GB, free: 380 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.016e-05/0.1676, allocations: 26.56 kB / 0.6359 GB, free: 344 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.215e-05/0.1677, allocations: 16.92 kB / 0.6359 GB, free: 324 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.102e-05/0.1677, allocations: 4 kB / 0.6359 GB, free: 320 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.174e-05/0.1677, allocations: 38.44 kB / 0.6359 GB, free: 272 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 1.242e-06/0.1677, allocations: 4 kB / 0.636 GB, free: 268 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001413/0.1679, allocations: 69.52 kB / 0.636 GB, free: 192 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.622e-05/0.1679, allocations: 51.41 kB / 0.6361 GB, free: 128 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.1681, allocations: 174 kB / 0.6362 GB, free: 15.95 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1681, allocations: 33.64 kB / 0.6363 GB, free: 15.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.893e-05/0.1682, allocations: 92.14 kB / 0.6364 GB, free: 15.81 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.112e-05/0.1682, allocations: 3.906 kB / 0.6364 GB, free: 15.81 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.76e-05/0.1682, allocations: 29.7 kB / 0.6364 GB, free: 15.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1683, allocations: 322.8 kB / 0.6367 GB, free: 15.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.908e-05/0.1684, allocations: 35.98 kB / 0.6367 GB, free: 15.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.923e-05/0.1684, allocations: 39.98 kB / 0.6368 GB, free: 15.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.503e-05/0.1685, allocations: 68.81 kB / 0.6368 GB, free: 15.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1685, allocations: 4.031 kB / 0.6368 GB, free: 15.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001367/0.1687, allocations: 125.5 kB / 0.637 GB, free: 15.17 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1687, allocations: 15.92 kB / 0.637 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.1687, allocations: 0 / 0.637 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.037e-05/0.1687, allocations: 0 / 0.637 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.283e-05/0.1687, allocations: 0 / 0.637 GB, free: 15.16 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.1687, allocations: 4 kB / 0.637 GB, free: 15.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.427e-05/0.1688, allocations: 11.78 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.1688, allocations: 0 / 0.637 GB, free: 15.14 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.0001197/0.1689, allocations: 126.5 kB / 0.6371 GB, free: 15.01 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.1689, allocations: 11.84 kB / 0.6371 GB, free: 15 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001015/0.169, allocations: 61.48 kB / 0.6372 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.169, allocations: 4 kB / 0.6372 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.1691, allocations: 0 / 0.6372 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.1691, allocations: 0 / 0.6372 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001036/0.1692, allocations: 165.7 kB / 0.6373 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.1692, allocations: 3.984 kB / 0.6373 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.268e-06/0.1692, allocations: 0 / 0.6373 GB, free: 14.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.126e-06/0.1692, allocations: 7.969 kB / 0.6373 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-06/0.1692, allocations: 4 kB / 0.6374 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1692, allocations: 0 / 0.6374 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1692, allocations: 0 / 0.6374 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.157e-05/0.1693, allocations: 77.03 kB / 0.6374 GB, free: 14.6 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.057e-05/0.1693, allocations: 88.95 kB / 0.6375 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.1694, allocations: 0 / 0.6375 GB, free: 14.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.335e-05/0.1694, allocations: 11.97 kB / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.339e-05/0.1694, allocations: 3.984 kB / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-06/0.1694, allocations: 0 / 0.6375 GB, free: 14.48 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.55e-05/0.1695, allocations: 123.2 kB / 0.6376 GB, free: 14.36 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1695, allocations: 3.938 kB / 0.6376 GB, free: 14.36 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003001/0.1698, allocations: 87.98 kB / 0.6377 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.0004521/0.1703, allocations: 220.8 kB / 0.6379 GB, free: 14.07 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001545/0.1704, allocations: 101.7 kB / 0.638 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1704, allocations: 0 / 0.638 GB, free: 13.96 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.438e-05/0.1705, allocations: 8 kB / 0.638 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.0001396/0.1706, allocations: 7.938 kB / 0.6381 GB, free: 13.95 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002542/0.1709, allocations: 169.6 kB / 0.6382 GB, free: 13.75 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.1711, allocations: 0.6924 MB / 0.6389 GB, free: 13.04 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.805e-05/0.1711, allocations: 4 kB / 0.6389 GB, free: 13.03 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.438e-05/0.1711, allocations: 11.38 kB / 0.6389 GB, free: 13.02 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1712, allocations: 0 / 0.6389 GB, free: 13.02 MB / 494.1 MB Notification: Performance of Templates: time 0.004636/0.1758, allocations: 2.086 MB / 0.6409 GB, free: 10.93 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)