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.001247/0.001248, allocations: 112 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.001302/0.001302, allocations: 194.7 kB / 18.02 MB, free: 5.07 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.23/1.23, allocations: 222.9 MB / 241.7 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.6664/0.6664, allocations: 115.3 MB / 407.2 MB, free: 6.188 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 63.38 kB / 0.5583 GB, free: 32.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.1087, allocations: 76.19 MB / 0.6327 GB, free: 4.555 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001396/0.1101, allocations: 497 kB / 0.6332 GB, free: 4.07 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001853/0.112, allocations: 1.618 MB / 0.6348 GB, free: 2.434 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.445e-05/0.112, allocations: 0 / 0.6348 GB, free: 2.434 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001688/0.1122, allocations: 59.86 kB / 0.6348 GB, free: 2.375 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.354e-05/0.1122, allocations: 31.95 kB / 0.6349 GB, free: 2.344 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.0007293/0.113, allocations: 247.3 kB / 0.6351 GB, free: 2.102 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.522e-05/0.1131, allocations: 27.91 kB / 0.6351 GB, free: 2.074 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.29e-05/0.1131, allocations: 7.984 kB / 0.6351 GB, free: 2.066 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.267e-05/0.1131, allocations: 23.91 kB / 0.6352 GB, free: 2.043 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.788e-05/0.1132, allocations: 43.89 kB / 0.6352 GB, free: 2 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1132, allocations: 0 / 0.6352 GB, free: 2 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004818/0.1137, allocations: 331.5 kB / 0.6355 GB, free: 1.676 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.417e-05/0.1138, allocations: 23.92 kB / 0.6355 GB, free: 1.652 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.706e-05/0.1138, allocations: 23.75 kB / 0.6356 GB, free: 1.629 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003407/0.1141, allocations: 303.3 kB / 0.6358 GB, free: 1.332 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.1142, allocations: 0 / 0.6358 GB, free: 1.332 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1142, allocations: 0 / 0.6358 GB, free: 1.332 MB / 478.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1142, allocations: 0 / 0.6358 GB, free: 1.332 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.0003896/0.1146, allocations: 430.9 kB / 0.6363 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.093e-05/0.1146, allocations: 8.031 kB / 0.6363 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.945e-05/0.1146, allocations: 12.83 kB / 0.6363 GB, free: 0.8438 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.1148, allocations: 188.7 kB / 0.6365 GB, free: 0.6211 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.43e-05/0.1148, allocations: 12.31 kB / 0.6365 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.038e-05/0.1148, allocations: 384 / 0.6365 GB, free: 0.6094 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.131e-05/0.1149, allocations: 46 kB / 0.6365 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.386e-05/0.1149, allocations: 0 / 0.6365 GB, free: 0.5586 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.232e-06/0.1149, allocations: 3.938 kB / 0.6365 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.406e-06/0.1149, allocations: 0 / 0.6365 GB, free: 0.5547 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.957e-05/0.115, allocations: 19.98 kB / 0.6365 GB, free: 0.5352 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001559/0.1151, allocations: 189.6 kB / 0.6367 GB, free: 308 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.596e-05/0.1152, allocations: 26.56 kB / 0.6367 GB, free: 272 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.824e-05/0.1152, allocations: 16.92 kB / 0.6368 GB, free: 252 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.522e-05/0.1152, allocations: 4 kB / 0.6368 GB, free: 248 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.849e-05/0.1153, allocations: 42.42 kB / 0.6368 GB, free: 196 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1153, allocations: 0 / 0.6368 GB, free: 196 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001303/0.1154, allocations: 77.44 kB / 0.6369 GB, free: 112 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.1154, allocations: 51.41 kB / 0.6369 GB, free: 48 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001783/0.1156, allocations: 210.8 kB / 0.6371 GB, free: 15.83 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.188e-05/0.1156, allocations: 25.83 kB / 0.6371 GB, free: 15.8 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.1157, allocations: 108.1 kB / 0.6373 GB, free: 15.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.596e-06/0.1157, allocations: 3.938 kB / 0.6373 GB, free: 15.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.822e-05/0.1158, allocations: 29.7 kB / 0.6373 GB, free: 15.65 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001005/0.1159, allocations: 322.8 kB / 0.6376 GB, free: 15.32 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.936e-05/0.1159, allocations: 55.98 kB / 0.6376 GB, free: 15.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.791e-05/0.116, allocations: 55.97 kB / 0.6377 GB, free: 15.21 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.913e-05/0.1161, allocations: 91.25 kB / 0.6378 GB, free: 15.12 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1161, allocations: 0 / 0.6378 GB, free: 15.12 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000157/0.1163, allocations: 169.4 kB / 0.6379 GB, free: 14.95 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.154e-05/0.1163, allocations: 7.938 kB / 0.638 GB, free: 14.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.755e-05/0.1163, allocations: 7.984 kB / 0.638 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.1163, allocations: 0 / 0.638 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.016e-05/0.1163, allocations: 0 / 0.638 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.528e-06/0.1163, allocations: 0 / 0.638 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.065e-05/0.1164, allocations: 7.906 kB / 0.638 GB, free: 14.93 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.812e-06/0.1164, allocations: 0 / 0.638 GB, free: 14.93 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.0001097/0.1165, allocations: 133.9 kB / 0.6381 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.619e-05/0.1165, allocations: 19.73 kB / 0.6381 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1166, allocations: 66.19 kB / 0.6382 GB, free: 14.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1166, allocations: 3.938 kB / 0.6382 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.1166, allocations: 0 / 0.6382 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.409e-05/0.1167, allocations: 85.02 kB / 0.6383 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.345e-05/0.1167, allocations: 3.984 kB / 0.6383 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.355e-05/0.1167, allocations: 0 / 0.6383 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.227e-05/0.1167, allocations: 0 / 0.6383 GB, free: 14.59 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.793e-05/0.1168, allocations: 129 kB / 0.6384 GB, free: 14.45 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001162/0.1169, allocations: 238.5 kB / 0.6386 GB, free: 14.2 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.993e-05/0.117, allocations: 11.98 kB / 0.6386 GB, free: 14.19 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.367e-05/0.1171, allocations: 140.4 kB / 0.6388 GB, free: 14.05 MB / 494.1 MB Notification: Performance of Backend: time 2.01e-07/0.1171, allocations: 0 / 0.6388 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007239/0.1178, allocations: 340.6 kB / 0.6391 GB, free: 13.73 MB / 494.1 MB Notification: Performance of SimCode: time 0.0003851/0.1182, allocations: 0.6392 MB / 0.6397 GB, free: 13.04 MB / 494.1 MB Notification: Performance of Templates: time 0.004503/0.1227, allocations: 2.191 MB / 0.6419 GB, free: 10.85 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)