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/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_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/Complex 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 177.6 kB / 8.004 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4746/0.4746, allocations: 90.91 MB / 99.34 MB, free: 2.164 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.431/1.431, allocations: 221.5 MB / 343.2 MB, free: 1.555 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.0011/0.0011, allocations: 97.78 kB / 415.9 MB, free: 11.09 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.823e-05/1.826e-05, allocations: 0 / 494.5 MB, free: 52.39 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1515/0.1515, allocations: 72.31 MB / 0.5535 GB, free: 12.27 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4585/0.6101, allocations: 102.6 MB / 0.6537 GB, free: 7.723 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002173/0.6104, allocations: 78.52 kB / 0.6537 GB, free: 7.68 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.01612/0.6265, allocations: 5.708 MB / 0.6593 GB, free: 2.883 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6266, allocations: 0 / 0.6593 GB, free: 2.883 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.183e-05/0.6266, allocations: 4 kB / 0.6593 GB, free: 2.879 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.0004718/0.6271, allocations: 413.2 kB / 0.6597 GB, free: 2.438 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/0.6271, allocations: 8.031 kB / 0.6597 GB, free: 2.43 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.101e-05/0.6272, allocations: 11.86 kB / 0.6597 GB, free: 2.418 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002104/0.6274, allocations: 190.7 kB / 0.6599 GB, free: 2.191 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.281e-05/0.6274, allocations: 4 kB / 0.6599 GB, free: 2.188 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.561e-05/0.6274, allocations: 4 kB / 0.6599 GB, free: 2.184 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.658e-05/0.6275, allocations: 20.72 kB / 0.6599 GB, free: 2.164 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.322e-05/0.6276, allocations: 41.62 kB / 0.66 GB, free: 2.117 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.418e-06/0.6276, allocations: 0 / 0.66 GB, free: 2.117 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.204e-05/0.6276, allocations: 3.953 kB / 0.66 GB, free: 2.113 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.6276, allocations: 0 / 0.66 GB, free: 2.113 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001725/0.6278, allocations: 155.1 kB / 0.6601 GB, free: 1.934 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.034e-05/0.6279, allocations: 22.56 kB / 0.6601 GB, free: 1.902 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.429e-05/0.6279, allocations: 20.91 kB / 0.6602 GB, free: 1.879 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.628, allocations: 7.938 kB / 0.6602 GB, free: 1.871 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.821e-05/0.628, allocations: 34.06 kB / 0.6602 GB, free: 1.832 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.628, allocations: 0 / 0.6602 GB, free: 1.832 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002092/0.6282, allocations: 61.5 kB / 0.6603 GB, free: 1.766 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.175e-05/0.6283, allocations: 51.41 kB / 0.6603 GB, free: 1.703 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001474/0.6284, allocations: 151.5 kB / 0.6605 GB, free: 1.559 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.6284, allocations: 29.73 kB / 0.6605 GB, free: 1.523 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.901e-05/0.6285, allocations: 95.12 kB / 0.6606 GB, free: 1.434 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.253e-05/0.6285, allocations: 0 / 0.6606 GB, free: 1.434 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/0.6285, allocations: 0 / 0.6606 GB, free: 1.434 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000134/0.6287, allocations: 326 kB / 0.6609 GB, free: 1.109 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.253e-05/0.6288, allocations: 38.55 kB / 0.6609 GB, free: 1.078 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.455e-05/0.6288, allocations: 43.22 kB / 0.661 GB, free: 1.043 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001085/0.6289, allocations: 41.53 kB / 0.661 GB, free: 1.008 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.6289, allocations: 0 / 0.661 GB, free: 1.008 MB / 458.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001895/0.6291, allocations: 131.4 kB / 0.6611 GB, free: 0.8867 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.6291, allocations: 4.938 kB / 0.6611 GB, free: 0.8828 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.6292, allocations: 4 kB / 0.6611 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.6292, allocations: 0 / 0.6611 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.168e-05/0.6292, allocations: 3.938 kB / 0.6611 GB, free: 0.875 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.6292, allocations: 0 / 0.6611 GB, free: 0.875 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.57e-05/0.6292, allocations: 7.906 kB / 0.6612 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.389e-05/0.6293, allocations: 11.92 kB / 0.6612 GB, free: 0.8555 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: 9 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],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.864e-05/0.6294, allocations: 108.9 kB / 0.6613 GB, free: 0.7422 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.085e-05/0.6294, allocations: 7.938 kB / 0.6613 GB, free: 0.7344 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001626/0.6295, allocations: 73.11 kB / 0.6613 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.6296, allocations: 0 / 0.6613 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.6296, allocations: 0 / 0.6613 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.829e-06/0.6296, allocations: 4 kB / 0.6613 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001067/0.6297, allocations: 146.9 kB / 0.6615 GB, free: 496 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.6297, allocations: 0 / 0.6615 GB, free: 496 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.354e-06/0.6297, allocations: 7.984 kB / 0.6615 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.403e-06/0.6297, allocations: 0 / 0.6615 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.673e-06/0.6297, allocations: 0 / 0.6615 GB, free: 488 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.296e-06/0.6297, allocations: 8.031 kB / 0.6615 GB, free: 480 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.6298, allocations: 0 / 0.6615 GB, free: 480 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001142/0.6299, allocations: 88.12 kB / 0.6616 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.809e-05/0.6299, allocations: 88.97 kB / 0.6617 GB, free: 268 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.662e-05/0.6299, allocations: 0 / 0.6617 GB, free: 268 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.222e-05/0.63, allocations: 3.938 kB / 0.6617 GB, free: 264 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.273e-05/0.63, allocations: 0 / 0.6617 GB, free: 264 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.63, allocations: 8.031 kB / 0.6617 GB, free: 256 kB / 458.7 MB Notification: Performance of sorting global known variables: time 7.785e-05/0.6301, allocations: 122 kB / 0.6618 GB, free: 144 kB / 458.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.6301, allocations: 0 / 0.6618 GB, free: 144 kB / 458.7 MB Notification: Performance of remove unused functions: time 0.0003516/0.6304, allocations: 110.8 kB / 0.6619 GB, free: 36 kB / 458.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.0005328/0.631, allocations: 241.6 kB / 0.6621 GB, free: 15.81 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002196/0.6312, allocations: 103.6 kB / 0.6622 GB, free: 15.71 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.6312, allocations: 0 / 0.6622 GB, free: 15.71 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.88e-05/0.6312, allocations: 15.36 kB / 0.6622 GB, free: 15.7 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.665e-05/0.6314, allocations: 4 kB / 0.6623 GB, free: 15.7 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002735/0.6316, allocations: 103.7 kB / 0.6624 GB, free: 15.58 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002767/0.6319, allocations: 0.7003 MB / 0.663 GB, free: 14.85 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.137e-05/0.632, allocations: 15.94 kB / 0.6631 GB, free: 14.84 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.466e-05/0.632, allocations: 7.438 kB / 0.6631 GB, free: 14.83 MB / 474.7 MB Notification: Performance of SimCode: time 2.51e-07/0.632, allocations: 0 / 0.6631 GB, free: 14.83 MB / 474.7 MB Notification: Performance of Templates: time 0.005205/0.6372, allocations: 2.274 MB / 0.6653 GB, free: 12.56 MB / 474.7 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)