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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001469/0.001469, allocations: 184.5 kB / 7.798 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4532/0.4532, allocations: 90.85 MB / 99.07 MB, free: 14.91 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.184/1.184, allocations: 221.4 MB / 342.8 MB, free: 5.234 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009556/0.0009556, allocations: 88.22 kB / 415.5 MB, free: 6.414 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 4.369e-06/4.389e-06, allocations: 0 / 493.9 MB, free: 8.09 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2899, allocations: 72.3 MB / 0.5529 GB, free: 73.43 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1008/0.3907, allocations: 102.5 MB / 0.6529 GB, free: 7.621 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002041/0.391, allocations: 73.11 kB / 0.653 GB, free: 7.551 MB / 474.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: time 0.01668/0.4076, allocations: 5.44 MB / 0.6583 GB, free: 2.148 MB / 474.7 MB Notification: Performance of Transformations before backend: time 9.047e-06/0.4077, allocations: 0 / 0.6583 GB, free: 2.148 MB / 474.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.0003874/0.4081, allocations: 415.1 kB / 0.6587 GB, free: 1.699 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.4081, allocations: 8.031 kB / 0.6587 GB, free: 1.691 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.532e-05/0.4082, allocations: 10.78 kB / 0.6587 GB, free: 1.684 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001624/0.4083, allocations: 184.2 kB / 0.6589 GB, free: 1.465 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.608e-05/0.4083, allocations: 4.75 kB / 0.6589 GB, free: 1.461 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.406e-05/0.4084, allocations: 8.75 kB / 0.6589 GB, free: 1.453 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.498e-05/0.4084, allocations: 19.97 kB / 0.6589 GB, free: 1.434 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.336e-05/0.4085, allocations: 39.5 kB / 0.659 GB, free: 1.391 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.4085, allocations: 4 kB / 0.659 GB, free: 1.387 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.576e-06/0.4085, allocations: 0 / 0.659 GB, free: 1.387 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.238e-06/0.4085, allocations: 0 / 0.659 GB, free: 1.387 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001435/0.4087, allocations: 154.6 kB / 0.6591 GB, free: 1.199 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.566e-05/0.4087, allocations: 35.12 kB / 0.6592 GB, free: 1.16 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.648e-05/0.4088, allocations: 16.91 kB / 0.6592 GB, free: 1.141 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.543e-05/0.4088, allocations: 8.938 kB / 0.6592 GB, free: 1.133 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.068e-05/0.4089, allocations: 35.64 kB / 0.6592 GB, free: 1.09 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4089, allocations: 0 / 0.6592 GB, free: 1.09 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001773/0.409, allocations: 61.56 kB / 0.6593 GB, free: 1.023 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.066e-05/0.4091, allocations: 52.41 kB / 0.6593 GB, free: 0.9609 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.4092, allocations: 151.5 kB / 0.6595 GB, free: 0.8086 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.4092, allocations: 25.7 kB / 0.6595 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.815e-05/0.4093, allocations: 92.81 kB / 0.6596 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.001e-05/0.4093, allocations: 0 / 0.6596 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.432e-06/0.4093, allocations: 1 kB / 0.6596 GB, free: 0.6836 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.792e-05/0.4094, allocations: 330.7 kB / 0.6599 GB, free: 360 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.282e-05/0.4095, allocations: 47.14 kB / 0.66 GB, free: 316 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.173e-05/0.4095, allocations: 39.97 kB / 0.66 GB, free: 276 kB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.034e-05/0.4096, allocations: 47.97 kB / 0.66 GB, free: 228 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.4096, allocations: 0 / 0.66 GB, free: 228 kB / 474.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001879/0.4098, allocations: 137.5 kB / 0.6602 GB, free: 84 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.4099, allocations: 8 kB / 0.6602 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.428e-05/0.4099, allocations: 0 / 0.6602 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.4099, allocations: 0 / 0.6602 GB, free: 76 kB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.261e-05/0.4099, allocations: 4.688 kB / 0.6602 GB, free: 72 kB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.887e-06/0.4099, allocations: 0 / 0.6602 GB, free: 72 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.726e-05/0.4099, allocations: 9.75 kB / 0.6602 GB, free: 64 kB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.044e-05/0.41, allocations: 9.078 kB / 0.6602 GB, free: 56 kB / 474.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 0.0001076/0.4101, allocations: 105.7 kB / 0.6603 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.528e-05/0.4101, allocations: 15.81 kB / 0.6603 GB, free: 15.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001653/0.4103, allocations: 78.2 kB / 0.6604 GB, free: 15.85 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.4103, allocations: 1.469 kB / 0.6604 GB, free: 15.85 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.4103, allocations: 0 / 0.6604 GB, free: 15.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.4103, allocations: 0 / 0.6604 GB, free: 15.85 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.762e-05/0.4104, allocations: 146.2 kB / 0.6605 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.4104, allocations: 3.5 kB / 0.6605 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.584e-06/0.4104, allocations: 3.984 kB / 0.6605 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-06/0.4104, allocations: 6.062 kB / 0.6605 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.4104, allocations: 0.5 kB / 0.6605 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.22e-07/0.4104, allocations: 0 / 0.6605 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/0.4105, allocations: 4.75 kB / 0.6605 GB, free: 15.66 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001156/0.4106, allocations: 86.03 kB / 0.6606 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.378e-05/0.4106, allocations: 89.55 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.497e-05/0.4106, allocations: 0.7188 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.35e-05/0.4107, allocations: 0 / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.119e-05/0.4107, allocations: 0.75 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.4107, allocations: 4 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.313e-05/0.4108, allocations: 121.7 kB / 0.6608 GB, free: 15.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000348/0.4111, allocations: 112.5 kB / 0.6609 GB, free: 15.22 MB / 490.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.0004653/0.4116, allocations: 247.2 kB / 0.6612 GB, free: 14.99 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001565/0.4118, allocations: 105.7 kB / 0.6613 GB, free: 14.88 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.4118, allocations: 0 / 0.6613 GB, free: 14.88 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.143e-05/0.4118, allocations: 22.7 kB / 0.6613 GB, free: 14.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.009e-05/0.4119, allocations: 2.812 kB / 0.6613 GB, free: 14.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000231/0.4121, allocations: 107.7 kB / 0.6614 GB, free: 14.73 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002508/0.4124, allocations: 0.7114 MB / 0.6621 GB, free: 13.99 MB / 490.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4124, allocations: 0 / 0.6621 GB, free: 13.99 MB / 490.7 MB Notification: Performance of Templates: time 0.004746/0.4172, allocations: 2.406 MB / 0.6645 GB, free: 11.61 MB / 490.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)