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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009014/0.0009014, allocations: 176.7 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4748/0.4748, allocations: 90.91 MB / 99.34 MB, free: 2.227 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 221.5 MB / 343.2 MB, free: 1.605 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009961/0.000996, allocations: 95.89 kB / 415.9 MB, free: 11.16 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.494e-05/2.497e-05, allocations: 4 kB / 494.5 MB, free: 52.4 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1477/0.1478, allocations: 72.33 MB / 0.5535 GB, free: 12.28 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4782/0.626, allocations: 102.5 MB / 0.6537 GB, free: 7.73 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.6263, allocations: 74.2 kB / 0.6537 GB, free: 7.691 MB / 458.7 MB [/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 FrontEnd - DAE generated: time 0.01609/0.6424, allocations: 5.8 MB / 0.6594 GB, free: 2.805 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.6424, allocations: 0 / 0.6594 GB, free: 2.805 MB / 458.7 MB Notification: Performance of Transformations before backend: time 8.395e-06/0.6425, allocations: 0 / 0.6594 GB, free: 2.805 MB / 458.7 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.0004006/0.6429, allocations: 435.8 kB / 0.6598 GB, free: 2.344 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6429, allocations: 8.031 kB / 0.6598 GB, free: 2.336 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.748e-05/0.643, allocations: 11.86 kB / 0.6598 GB, free: 2.324 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.6431, allocations: 194.8 kB / 0.66 GB, free: 2.094 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.827e-06/0.6432, allocations: 7.938 kB / 0.66 GB, free: 2.086 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.343e-05/0.6432, allocations: 0 / 0.66 GB, free: 2.086 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.152e-05/0.6433, allocations: 27.91 kB / 0.66 GB, free: 2.059 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.862e-05/0.6433, allocations: 41.67 kB / 0.6601 GB, free: 2.012 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.6434, allocations: 0 / 0.6601 GB, free: 2.012 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.6434, allocations: 3.953 kB / 0.6601 GB, free: 2.008 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.199e-06/0.6434, allocations: 3.984 kB / 0.6601 GB, free: 2.004 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00017/0.6436, allocations: 167.6 kB / 0.6602 GB, free: 1.816 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.467e-05/0.6436, allocations: 34.5 kB / 0.6603 GB, free: 1.773 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.686e-05/0.6436, allocations: 16.91 kB / 0.6603 GB, free: 1.754 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.913e-05/0.6437, allocations: 4 kB / 0.6603 GB, free: 1.75 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.071e-05/0.6437, allocations: 30.56 kB / 0.6603 GB, free: 1.711 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.6437, allocations: 0 / 0.6603 GB, free: 1.711 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001741/0.6439, allocations: 69.5 kB / 0.6604 GB, free: 1.637 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.293e-05/0.6439, allocations: 54.78 kB / 0.6604 GB, free: 1.574 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001397/0.6441, allocations: 182.9 kB / 0.6606 GB, free: 1.406 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.6441, allocations: 25.7 kB / 0.6606 GB, free: 1.375 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.595e-05/0.6442, allocations: 108.9 kB / 0.6608 GB, free: 1.277 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.698e-06/0.6442, allocations: 0 / 0.6608 GB, free: 1.277 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.6442, allocations: 0 / 0.6608 GB, free: 1.277 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.6443, allocations: 329.8 kB / 0.6611 GB, free: 0.9531 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.508e-05/0.6444, allocations: 57.66 kB / 0.6611 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.964e-05/0.6444, allocations: 58.39 kB / 0.6612 GB, free: 0.8555 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.625e-05/0.6445, allocations: 61.28 kB / 0.6612 GB, free: 0.8047 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.6446, allocations: 4.031 kB / 0.6612 GB, free: 0.8008 MB / 458.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002146/0.6448, allocations: 177 kB / 0.6614 GB, free: 0.6406 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.186e-05/0.6448, allocations: 9.031 kB / 0.6614 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.6448, allocations: 4 kB / 0.6614 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.6448, allocations: 0 / 0.6614 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-05/0.6449, allocations: 3.984 kB / 0.6614 GB, free: 0.625 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.945e-06/0.6449, allocations: 0 / 0.6614 GB, free: 0.625 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.859e-05/0.6449, allocations: 15.75 kB / 0.6614 GB, free: 0.6094 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.879e-05/0.6449, allocations: 4 kB / 0.6614 GB, free: 0.6055 MB / 458.7 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.075e-05/0.645, allocations: 118.5 kB / 0.6616 GB, free: 500 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.258e-05/0.645, allocations: 7.906 kB / 0.6616 GB, free: 492 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001565/0.6452, allocations: 82.62 kB / 0.6616 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.6452, allocations: 0 / 0.6616 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.6452, allocations: 0 / 0.6616 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.823e-06/0.6452, allocations: 0 / 0.6616 GB, free: 412 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.301e-05/0.6453, allocations: 163.7 kB / 0.6618 GB, free: 220 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.6453, allocations: 0 / 0.6618 GB, free: 220 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.3e-06/0.6453, allocations: 0 / 0.6618 GB, free: 220 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.6453, allocations: 7.969 kB / 0.6618 GB, free: 212 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.526e-06/0.6453, allocations: 3.984 kB / 0.6618 GB, free: 208 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.6453, allocations: 3.938 kB / 0.6618 GB, free: 204 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.6454, allocations: 0 / 0.6618 GB, free: 204 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001104/0.6455, allocations: 91.91 kB / 0.6619 GB, free: 96 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.316e-05/0.6455, allocations: 89.02 kB / 0.662 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.511e-05/0.6456, allocations: 4 kB / 0.662 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.345e-05/0.6456, allocations: 0 / 0.662 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.032e-05/0.6456, allocations: 4.031 kB / 0.662 GB, free: 15.98 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.6456, allocations: 7.938 kB / 0.662 GB, free: 15.97 MB / 474.7 MB Notification: Performance of sorting global known variables: time 9.417e-05/0.6457, allocations: 136 kB / 0.6621 GB, free: 15.85 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6457, allocations: 3.938 kB / 0.6621 GB, free: 15.85 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.000308/0.646, allocations: 107.2 kB / 0.6622 GB, free: 15.75 MB / 474.7 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004479/0.6465, allocations: 255.9 kB / 0.6625 GB, free: 15.5 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001772/0.6467, allocations: 126.5 kB / 0.6626 GB, free: 15.39 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.6467, allocations: 0 / 0.6626 GB, free: 15.39 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.971e-05/0.6467, allocations: 11.98 kB / 0.6626 GB, free: 15.38 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.571e-05/0.6468, allocations: 4.062 kB / 0.6626 GB, free: 15.38 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.647, allocations: 148.3 kB / 0.6628 GB, free: 15.21 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/0.6473, allocations: 0.708 MB / 0.6635 GB, free: 14.48 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.592e-05/0.6473, allocations: 7.953 kB / 0.6635 GB, free: 14.47 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.017e-05/0.6474, allocations: 15.42 kB / 0.6635 GB, free: 14.46 MB / 474.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6474, allocations: 0 / 0.6635 GB, free: 14.46 MB / 474.7 MB Notification: Performance of Templates: time 0.004585/0.652, allocations: 2.309 MB / 0.6657 GB, free: 12.16 MB / 474.7 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)