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.001458/0.001458, allocations: 111.7 kB / 16.41 MB, free: 6.484 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.001746/0.001746, allocations: 195.1 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.478/1.478, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7265/0.7265, allocations: 115.3 MB / 406.5 MB, free: 6.148 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 65.31 kB / 0.5576 GB, free: 32.27 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1411/0.1422, 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.001406/0.1436, allocations: 0.497 MB / 0.6325 GB, free: 3.941 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001996/0.1456, allocations: 1.618 MB / 0.6341 GB, free: 2.305 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.596e-05/0.1457, allocations: 0 / 0.6341 GB, free: 2.305 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001606/0.1458, allocations: 59.84 kB / 0.6342 GB, free: 2.246 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 3.558e-05/0.1459, allocations: 35.94 kB / 0.6342 GB, free: 2.211 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.0007625/0.1467, allocations: 241.5 kB / 0.6344 GB, free: 1.977 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.181e-05/0.1467, allocations: 35.89 kB / 0.6345 GB, free: 1.941 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.204e-05/0.1468, allocations: 4 kB / 0.6345 GB, free: 1.938 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.643e-05/0.1468, allocations: 27.91 kB / 0.6345 GB, free: 1.91 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.596e-05/0.1469, allocations: 39.89 kB / 0.6345 GB, free: 1.871 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.091e-05/0.1469, allocations: 0 / 0.6345 GB, free: 1.871 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004728/0.1474, allocations: 335.5 kB / 0.6348 GB, free: 1.543 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 5.367e-05/0.1474, allocations: 27.91 kB / 0.6349 GB, free: 1.516 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.333e-05/0.1475, allocations: 27.75 kB / 0.6349 GB, free: 1.488 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000345/0.1478, allocations: 291.3 kB / 0.6352 GB, free: 1.203 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1478, allocations: 4 kB / 0.6352 GB, free: 1.199 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1478, allocations: 0 / 0.6352 GB, free: 1.199 MB / 478.1 MB Notification: Performance of Transformations before backend: time 7.083e-06/0.1478, allocations: 0 / 0.6352 GB, free: 1.199 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.0003889/0.1482, allocations: 430.9 kB / 0.6356 GB, free: 0.7305 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.941e-05/0.1483, allocations: 8.031 kB / 0.6356 GB, free: 0.7227 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.916e-05/0.1483, allocations: 12.84 kB / 0.6356 GB, free: 0.7109 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.1485, allocations: 192.7 kB / 0.6358 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.462e-06/0.1485, allocations: 384 / 0.6358 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.058e-05/0.1485, allocations: 384 / 0.6358 GB, free: 496 kB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.903e-05/0.1486, allocations: 49.94 kB / 0.6358 GB, free: 440 kB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.634e-06/0.1486, allocations: 0 / 0.6358 GB, free: 440 kB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.492e-06/0.1486, allocations: 7.938 kB / 0.6359 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.781e-06/0.1486, allocations: 0 / 0.6359 GB, free: 432 kB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.457e-05/0.1486, allocations: 12 kB / 0.6359 GB, free: 420 kB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.1488, allocations: 189.6 kB / 0.636 GB, free: 180 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.949e-05/0.1489, allocations: 22.58 kB / 0.6361 GB, free: 148 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.088e-05/0.1489, allocations: 16.91 kB / 0.6361 GB, free: 128 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.938e-05/0.1489, allocations: 16 kB / 0.6361 GB, free: 112 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.21e-05/0.1489, allocations: 34.5 kB / 0.6361 GB, free: 68 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.149, allocations: 0 / 0.6361 GB, free: 68 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001429/0.1491, allocations: 73.42 kB / 0.6362 GB, free: 15.99 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.788e-05/0.1491, allocations: 51.41 kB / 0.6363 GB, free: 15.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001822/0.1493, allocations: 214.7 kB / 0.6365 GB, free: 15.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.234e-05/0.1493, allocations: 25.7 kB / 0.6365 GB, free: 15.67 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.161e-05/0.1494, allocations: 104.2 kB / 0.6366 GB, free: 15.57 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.047e-06/0.1494, allocations: 0 / 0.6366 GB, free: 15.57 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.119e-05/0.1495, allocations: 33.7 kB / 0.6366 GB, free: 15.53 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1496, allocations: 326.8 kB / 0.6369 GB, free: 15.2 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.711e-05/0.1497, allocations: 55.97 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.28e-05/0.1497, allocations: 54.38 kB / 0.637 GB, free: 15.09 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.211e-05/0.1498, allocations: 100.7 kB / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1498, allocations: 0 / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001751/0.15, allocations: 160.1 kB / 0.6373 GB, free: 14.83 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.465e-05/0.1501, allocations: 15.94 kB / 0.6373 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.1501, allocations: 4 kB / 0.6373 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.003e-05/0.1501, allocations: 0 / 0.6373 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.101e-05/0.1501, allocations: 0 / 0.6373 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.767e-06/0.1501, allocations: 0 / 0.6373 GB, free: 14.81 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.314e-05/0.1501, allocations: 7.906 kB / 0.6373 GB, free: 14.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.314e-06/0.1502, allocations: 3.984 kB / 0.6373 GB, free: 14.8 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.0001289/0.1503, allocations: 129.8 kB / 0.6374 GB, free: 14.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.608e-05/0.1503, allocations: 19.75 kB / 0.6375 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001006/0.1504, allocations: 66.17 kB / 0.6375 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.1504, allocations: 3.984 kB / 0.6375 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.1504, allocations: 0 / 0.6375 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.014e-06/0.1504, allocations: 7.938 kB / 0.6375 GB, free: 14.56 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001223/0.1506, allocations: 177.7 kB / 0.6377 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1506, allocations: 0 / 0.6377 GB, free: 14.34 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.068e-06/0.1506, allocations: 4 kB / 0.6377 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.935e-06/0.1506, allocations: 3.938 kB / 0.6377 GB, free: 14.33 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.25e-06/0.1506, allocations: 4.031 kB / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.1506, allocations: 3.984 kB / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.1506, allocations: 4 kB / 0.6377 GB, free: 14.32 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.359e-05/0.1507, allocations: 80.97 kB / 0.6378 GB, free: 14.22 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.348e-05/0.1508, allocations: 92.86 kB / 0.6379 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.168e-05/0.1508, allocations: 0 / 0.6379 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.296e-05/0.1508, allocations: 0 / 0.6379 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-06/0.1508, allocations: 0 / 0.6379 GB, free: 14.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.1508, allocations: 8.031 kB / 0.6379 GB, free: 14.1 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001076/0.1509, allocations: 148.4 kB / 0.638 GB, free: 13.96 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1509, allocations: 0 / 0.638 GB, free: 13.96 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003144/0.1513, allocations: 87.98 kB / 0.6381 GB, free: 13.87 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.0004144/0.1517, allocations: 221.6 kB / 0.6383 GB, free: 13.66 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.1518, allocations: 129.6 kB / 0.6384 GB, free: 13.53 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-06/0.1519, allocations: 0 / 0.6384 GB, free: 13.53 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.522e-05/0.1519, allocations: 12 kB / 0.6385 GB, free: 13.52 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.152, allocations: 4 kB / 0.6385 GB, free: 13.52 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002705/0.1523, allocations: 217.9 kB / 0.6387 GB, free: 13.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000224/0.1525, allocations: 0.7002 MB / 0.6394 GB, free: 12.55 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.814e-05/0.1526, allocations: 12.05 kB / 0.6394 GB, free: 12.54 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.492e-05/0.1526, allocations: 15.42 kB / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1526, allocations: 0 / 0.6394 GB, free: 12.52 MB / 494.1 MB Notification: Performance of Templates: time 0.004503/0.1571, allocations: 2.105 MB / 0.6414 GB, free: 10.42 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)