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") [: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.001222/0.001222, allocations: 184.4 kB / 7.8 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.5013/0.5013, 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.281/1.281, allocations: 221.4 MB / 342.8 MB, free: 5.105 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.0008828/0.0008828, allocations: 95.64 kB / 415.5 MB, free: 6.395 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 5.831e-06/5.861e-06, allocations: 0 / 493.9 MB, free: 8.043 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3164/0.3165, allocations: 72.29 MB / 0.5529 GB, free: 73.33 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.4251, allocations: 102.5 MB / 0.6529 GB, free: 7.523 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/0.4254, allocations: 67.97 kB / 0.653 GB, free: 7.457 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.01712/0.4425, allocations: 5.522 MB / 0.6584 GB, free: 1.973 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.4426, allocations: 0 / 0.6584 GB, free: 1.973 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.0004525/0.443, allocations: 437.5 kB / 0.6588 GB, free: 1.504 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.4431, allocations: 8.781 kB / 0.6588 GB, free: 1.496 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.198e-05/0.4431, allocations: 11.81 kB / 0.6588 GB, free: 1.484 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000204/0.4433, allocations: 195.9 kB / 0.659 GB, free: 1.254 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.478e-06/0.4434, allocations: 4 kB / 0.659 GB, free: 1.25 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.144e-05/0.4434, allocations: 0 / 0.659 GB, free: 1.25 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.949e-05/0.4435, allocations: 24.53 kB / 0.6591 GB, free: 1.227 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.97e-05/0.4435, allocations: 46.17 kB / 0.6591 GB, free: 1.176 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.4435, allocations: 4.562 kB / 0.6591 GB, free: 1.172 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.897e-06/0.4436, allocations: 0 / 0.6591 GB, free: 1.172 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.4436, allocations: 4.891 kB / 0.6591 GB, free: 1.168 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002078/0.4438, allocations: 164.2 kB / 0.6593 GB, free: 0.9727 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.721e-05/0.4438, allocations: 35.25 kB / 0.6593 GB, free: 0.9297 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.133e-05/0.4439, allocations: 17.5 kB / 0.6593 GB, free: 0.9102 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.4439, allocations: 7.984 kB / 0.6593 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.4439, allocations: 38.78 kB / 0.6594 GB, free: 0.8594 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.232e-06/0.444, allocations: 4.531 kB / 0.6594 GB, free: 0.8555 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001965/0.4442, allocations: 62.2 kB / 0.6594 GB, free: 0.7891 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.4442, allocations: 51.91 kB / 0.6595 GB, free: 0.7266 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.4444, allocations: 185.9 kB / 0.6596 GB, free: 0.5391 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.508e-05/0.4444, allocations: 25.7 kB / 0.6597 GB, free: 0.5078 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.4444, allocations: 100.7 kB / 0.6598 GB, free: 416 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.4445, allocations: 5.438 kB / 0.6598 GB, free: 412 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.571e-06/0.4445, allocations: 0 / 0.6598 GB, free: 412 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.4446, allocations: 322.8 kB / 0.6601 GB, free: 80 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.84e-05/0.4447, allocations: 61.53 kB / 0.6601 GB, free: 20 kB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.621e-05/0.4448, allocations: 63.95 kB / 0.6602 GB, free: 15.96 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001123/0.4449, allocations: 67.95 kB / 0.6603 GB, free: 15.89 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-06/0.4449, allocations: 0 / 0.6603 GB, free: 15.89 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002536/0.4451, allocations: 197.6 kB / 0.6605 GB, free: 15.7 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.237e-05/0.4452, allocations: 6.406 kB / 0.6605 GB, free: 15.69 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.999e-05/0.4452, allocations: 7.984 kB / 0.6605 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.4452, allocations: 0.5938 kB / 0.6605 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.228e-05/0.4452, allocations: 5.469 kB / 0.6605 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.018e-06/0.4452, allocations: 0 / 0.6605 GB, free: 15.68 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.033e-05/0.4453, allocations: 7.844 kB / 0.6605 GB, free: 15.67 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.165e-05/0.4453, allocations: 8 kB / 0.6605 GB, free: 15.66 MB / 490.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 8.064e-05/0.4454, allocations: 110.1 kB / 0.6606 GB, free: 15.55 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.283e-05/0.4454, allocations: 8.594 kB / 0.6606 GB, free: 15.54 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000186/0.4456, allocations: 94.75 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.114e-06/0.4456, allocations: 0.5 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.4456, allocations: 6.25 kB / 0.6607 GB, free: 15.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.4456, allocations: 4 kB / 0.6607 GB, free: 15.44 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001041/0.4457, allocations: 154.9 kB / 0.6609 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.4457, allocations: 0 / 0.6609 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.302e-06/0.4458, allocations: 0.5312 kB / 0.6609 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.433e-06/0.4458, allocations: 4.125 kB / 0.6609 GB, free: 15.25 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-06/0.4458, allocations: 7.984 kB / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.4458, allocations: 0 / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.4458, allocations: 3 kB / 0.6609 GB, free: 15.24 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000126/0.4459, allocations: 92.91 kB / 0.661 GB, free: 15.13 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.067e-05/0.446, allocations: 88.92 kB / 0.661 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.68e-05/0.446, allocations: 0 / 0.661 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.813e-05/0.446, allocations: 0 / 0.661 GB, free: 15.03 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.632e-05/0.446, allocations: 9.719 kB / 0.661 GB, free: 15.02 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.154e-06/0.4461, allocations: 7.984 kB / 0.6611 GB, free: 15.01 MB / 490.7 MB Notification: Performance of sort global known variables: time 9.976e-05/0.4462, allocations: 135.2 kB / 0.6612 GB, free: 14.88 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003787/0.4465, allocations: 107.9 kB / 0.6613 GB, free: 14.77 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.0004875/0.447, allocations: 252.6 kB / 0.6615 GB, free: 14.54 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001958/0.4472, allocations: 133.6 kB / 0.6617 GB, free: 14.4 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.4473, allocations: 0 / 0.6617 GB, free: 14.4 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.273e-05/0.4473, allocations: 11.98 kB / 0.6617 GB, free: 14.39 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001015/0.4474, allocations: 9.688 kB / 0.6617 GB, free: 14.38 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003134/0.4477, allocations: 147.5 kB / 0.6618 GB, free: 14.21 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002797/0.448, allocations: 0.7193 MB / 0.6625 GB, free: 13.46 MB / 490.7 MB Notification: Performance of SimCode: time 2.8e-07/0.448, allocations: 4 kB / 0.6625 GB, free: 13.46 MB / 490.7 MB Notification: Performance of Templates: time 0.004864/0.4529, allocations: 2.468 MB / 0.6649 GB, free: 11.02 MB / 490.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)