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.001324/0.001324, allocations: 107.2 kB / 16.4 MB, free: 6.445 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.001302/0.001302, allocations: 193.2 kB / 17.34 MB, free: 5.707 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.304/1.304, allocations: 222.9 MB / 241 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.6671/0.6671, allocations: 115.3 MB / 406.5 MB, free: 6.117 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 66.3 kB / 0.5576 GB, free: 32.33 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1239/0.125, allocations: 76.18 MB / 0.632 GB, free: 4.438 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00151/0.1266, allocations: 0.5165 MB / 0.6325 GB, free: 3.922 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001992/0.1286, allocations: 1.603 MB / 0.6341 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.818e-05/0.1286, allocations: 0 / 0.6341 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.1288, allocations: 63.83 kB / 0.6342 GB, free: 2.238 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.928e-05/0.1289, allocations: 35.89 kB / 0.6342 GB, free: 2.203 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.0007582/0.1296, allocations: 235.3 kB / 0.6344 GB, free: 1.973 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.828e-05/0.1297, allocations: 35.91 kB / 0.6345 GB, free: 1.938 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.272e-05/0.1298, allocations: 4 kB / 0.6345 GB, free: 1.934 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.702e-05/0.1298, allocations: 27.89 kB / 0.6345 GB, free: 1.906 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.399e-05/0.1299, allocations: 35.91 kB / 0.6345 GB, free: 1.871 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.1299, allocations: 4 kB / 0.6345 GB, free: 1.867 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004853/0.1304, allocations: 339.4 kB / 0.6348 GB, free: 1.535 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.903e-05/0.1304, allocations: 27.92 kB / 0.6349 GB, free: 1.508 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.178e-05/0.1305, allocations: 23.75 kB / 0.6349 GB, free: 1.484 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003689/0.1308, allocations: 291.3 kB / 0.6352 GB, free: 1.199 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1309, allocations: 4 kB / 0.6352 GB, free: 1.195 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.1309, allocations: 4 kB / 0.6352 GB, free: 1.191 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.1309, allocations: 0 / 0.6352 GB, free: 1.191 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.0004199/0.1313, allocations: 430.8 kB / 0.6356 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.1313, allocations: 12.03 kB / 0.6356 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.186e-05/0.1314, allocations: 8.844 kB / 0.6356 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001501/0.1315, allocations: 184.7 kB / 0.6358 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.1316, allocations: 4.312 kB / 0.6358 GB, free: 492 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.447e-06/0.1316, allocations: 384 / 0.6358 GB, free: 492 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.032e-05/0.1317, allocations: 53.94 kB / 0.6358 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.1317, allocations: 0 / 0.6358 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.678e-06/0.1317, allocations: 3.984 kB / 0.6359 GB, free: 428 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.197e-06/0.1317, allocations: 0 / 0.6359 GB, free: 428 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.881e-05/0.1317, allocations: 16 kB / 0.6359 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001721/0.1319, allocations: 189.6 kB / 0.636 GB, free: 172 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.615e-05/0.132, allocations: 30.52 kB / 0.6361 GB, free: 132 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.349e-05/0.132, allocations: 20.91 kB / 0.6361 GB, free: 108 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.246e-05/0.132, allocations: 8 kB / 0.6361 GB, free: 100 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.046e-05/0.1321, allocations: 34.5 kB / 0.6361 GB, free: 56 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1321, allocations: 0 / 0.6361 GB, free: 56 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001583/0.1322, allocations: 69.48 kB / 0.6362 GB, free: 15.98 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.1323, allocations: 55.41 kB / 0.6363 GB, free: 15.91 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001682/0.1324, allocations: 206.8 kB / 0.6365 GB, free: 15.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.112e-05/0.1325, allocations: 25.7 kB / 0.6365 GB, free: 15.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.739e-05/0.1325, allocations: 104.2 kB / 0.6366 GB, free: 15.56 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.999e-06/0.1325, allocations: 4 kB / 0.6366 GB, free: 15.56 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.111e-05/0.1326, allocations: 33.7 kB / 0.6366 GB, free: 15.52 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001012/0.1327, allocations: 330.7 kB / 0.6369 GB, free: 15.19 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.62e-05/0.1327, allocations: 51.97 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.358e-05/0.1328, allocations: 51.98 kB / 0.637 GB, free: 15.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.833e-05/0.1329, allocations: 98.73 kB / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.1329, allocations: 0 / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001686/0.1331, allocations: 169.4 kB / 0.6373 GB, free: 14.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.198e-05/0.1331, allocations: 12 kB / 0.6373 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.1331, allocations: 0 / 0.6373 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.1331, allocations: 0 / 0.6373 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-05/0.1332, allocations: 4 kB / 0.6373 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.981e-06/0.1332, allocations: 0 / 0.6373 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.334e-05/0.1332, allocations: 7.844 kB / 0.6373 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.1332, allocations: 7.984 kB / 0.6373 GB, free: 14.79 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.0001098/0.1333, allocations: 127.8 kB / 0.6374 GB, free: 14.65 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.1333, allocations: 19.75 kB / 0.6375 GB, free: 14.63 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001119/0.1335, allocations: 66.23 kB / 0.6375 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-06/0.1335, allocations: 0 / 0.6375 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.1335, allocations: 0 / 0.6375 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-06/0.1335, allocations: 7.875 kB / 0.6375 GB, free: 14.55 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.1336, allocations: 181.7 kB / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1336, allocations: 0 / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.058e-06/0.1336, allocations: 0 / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.1336, allocations: 3.938 kB / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.079e-06/0.1336, allocations: 0 / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.1336, allocations: 8.016 kB / 0.6377 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.1337, allocations: 0 / 0.6377 GB, free: 14.31 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.351e-05/0.1337, allocations: 80.97 kB / 0.6378 GB, free: 14.21 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.838e-05/0.1338, allocations: 96.86 kB / 0.6379 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.311e-05/0.1338, allocations: 0 / 0.6379 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.282e-05/0.1338, allocations: 0 / 0.6379 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.849e-06/0.1338, allocations: 0 / 0.6379 GB, free: 14.1 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.747e-06/0.1339, allocations: 4.031 kB / 0.6379 GB, free: 14.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.723e-05/0.134, allocations: 148.4 kB / 0.638 GB, free: 13.95 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.134, allocations: 0 / 0.638 GB, free: 13.95 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002966/0.1343, allocations: 91.98 kB / 0.6381 GB, free: 13.86 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.0004491/0.1347, allocations: 230.2 kB / 0.6383 GB, free: 13.65 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001675/0.1349, allocations: 129.6 kB / 0.6385 GB, free: 13.52 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.1349, allocations: 4 kB / 0.6385 GB, free: 13.51 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.454e-05/0.1349, allocations: 8 kB / 0.6385 GB, free: 13.5 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.1351, allocations: 4 kB / 0.6385 GB, free: 13.5 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002844/0.1354, allocations: 213.9 kB / 0.6387 GB, free: 13.26 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002596/0.1356, allocations: 0.7002 MB / 0.6394 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.927e-05/0.1357, allocations: 12.06 kB / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.366e-05/0.1357, allocations: 11.42 kB / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1357, allocations: 0 / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of Templates: time 0.004409/0.1401, allocations: 2.101 MB / 0.6414 GB, free: 10.41 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)