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.001501/0.001501, allocations: 179.7 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4849/0.4849, allocations: 90.8 MB / 104.5 MB, free: 13.92 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.336/1.336, allocations: 221.3 MB / 348.3 MB, free: 12.54 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.0008164/0.0008163, allocations: 101.9 kB / 421.2 MB, free: 5.68 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.227e-05/2.227e-05, allocations: 3.203 kB / 0.4896 GB, free: 46.61 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.1208, allocations: 72.31 MB / 0.5602 GB, free: 6.379 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4069/0.5277, allocations: 103.2 MB / 0.661 GB, free: 4.668 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002097/0.5279, allocations: 77.2 kB / 0.6611 GB, free: 4.625 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.01562/0.5436, allocations: 5.8 MB / 0.6667 GB, free: 15.65 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.122e-06/0.5436, allocations: 0 / 0.6667 GB, free: 15.65 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.035e-05/0.5436, allocations: 4 kB / 0.6667 GB, free: 15.64 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.0003587/0.544, allocations: 425.7 kB / 0.6672 GB, free: 15.19 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.544, allocations: 11.98 kB / 0.6672 GB, free: 15.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.993e-05/0.5441, allocations: 11.86 kB / 0.6672 GB, free: 15.17 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.5443, allocations: 202.5 kB / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.338e-06/0.5443, allocations: 4 kB / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.254e-05/0.5443, allocations: 0 / 0.6674 GB, free: 14.93 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.5444, allocations: 41.67 kB / 0.6674 GB, free: 14.88 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.5444, allocations: 0 / 0.6674 GB, free: 14.88 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.946e-06/0.5444, allocations: 0 / 0.6674 GB, free: 14.88 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.5445, allocations: 7.953 kB / 0.6674 GB, free: 14.88 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.021e-05/0.5445, allocations: 23.97 kB / 0.6674 GB, free: 14.85 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001787/0.5447, allocations: 188.4 kB / 0.6676 GB, free: 14.63 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.137e-05/0.5448, allocations: 33.5 kB / 0.6677 GB, free: 14.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.106e-05/0.5448, allocations: 20.89 kB / 0.6677 GB, free: 14.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.015e-05/0.5448, allocations: 4 kB / 0.6677 GB, free: 14.56 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.5449, allocations: 34.56 kB / 0.6677 GB, free: 14.52 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.212e-06/0.5449, allocations: 0 / 0.6677 GB, free: 14.52 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001522/0.545, allocations: 61.48 kB / 0.6678 GB, free: 14.45 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.5451, allocations: 55.22 kB / 0.6678 GB, free: 14.39 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.5452, allocations: 190.4 kB / 0.668 GB, free: 14.21 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.5453, allocations: 25.7 kB / 0.668 GB, free: 14.18 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.746e-05/0.5453, allocations: 109.1 kB / 0.6681 GB, free: 14.09 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.5453, allocations: 3.938 kB / 0.6681 GB, free: 14.08 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.301e-06/0.5454, allocations: 0 / 0.6681 GB, free: 14.08 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.5455, allocations: 337.9 kB / 0.6685 GB, free: 13.75 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.412e-05/0.5456, allocations: 54.72 kB / 0.6685 GB, free: 13.7 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.548e-05/0.5456, allocations: 62.77 kB / 0.6686 GB, free: 13.65 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.651e-05/0.5457, allocations: 63.25 kB / 0.6686 GB, free: 13.6 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.5457, allocations: 0 / 0.6686 GB, free: 13.6 MB / 474.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002051/0.5459, allocations: 175.8 kB / 0.6688 GB, free: 13.44 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.546, allocations: 4 kB / 0.6688 GB, free: 13.44 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.719e-05/0.546, allocations: 4 kB / 0.6688 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.497e-05/0.546, allocations: 4 kB / 0.6688 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.32e-05/0.546, allocations: 4.062 kB / 0.6688 GB, free: 13.43 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.373e-06/0.546, allocations: 3.984 kB / 0.6688 GB, free: 13.42 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.854e-05/0.5461, allocations: 11.84 kB / 0.6688 GB, free: 13.41 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.708e-05/0.5461, allocations: 11.94 kB / 0.6688 GB, free: 13.4 MB / 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: 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 6.976e-05/0.5462, allocations: 108.1 kB / 0.6689 GB, free: 13.29 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.4e-05/0.5462, allocations: 7.906 kB / 0.669 GB, free: 13.28 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001506/0.5464, allocations: 81.83 kB / 0.669 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.472e-06/0.5464, allocations: 4.031 kB / 0.669 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.5464, allocations: 0 / 0.669 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.694e-06/0.5464, allocations: 0 / 0.669 GB, free: 13.2 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001092/0.5465, allocations: 187.7 kB / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.5465, allocations: 0 / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.61e-06/0.5465, allocations: 0 / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.5465, allocations: 0 / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.5465, allocations: 2.375 kB / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.5465, allocations: 4 kB / 0.6692 GB, free: 12.97 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5465, allocations: 3.984 kB / 0.6692 GB, free: 12.96 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.864e-05/0.5466, allocations: 95.88 kB / 0.6693 GB, free: 12.86 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.077e-05/0.5467, allocations: 89 kB / 0.6694 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.348e-05/0.5467, allocations: 0 / 0.6694 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.6e-05/0.5467, allocations: 0 / 0.6694 GB, free: 12.75 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.309e-05/0.5468, allocations: 7.938 kB / 0.6694 GB, free: 12.74 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.5468, allocations: 0 / 0.6694 GB, free: 12.74 MB / 474.7 MB Notification: Performance of sorting global known variables: time 9.805e-05/0.5469, allocations: 149.1 kB / 0.6695 GB, free: 12.61 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5469, allocations: 4 kB / 0.6696 GB, free: 12.61 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0003327/0.5472, allocations: 110.9 kB / 0.6697 GB, free: 12.5 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.0004704/0.5477, allocations: 249.4 kB / 0.6699 GB, free: 12.27 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.000176/0.5479, allocations: 133 kB / 0.67 GB, free: 12.16 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5479, allocations: 4.062 kB / 0.67 GB, free: 12.16 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.377e-05/0.5479, allocations: 11.98 kB / 0.67 GB, free: 12.14 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.667e-05/0.548, allocations: 11.2 kB / 0.67 GB, free: 12.13 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000266/0.5483, allocations: 145 kB / 0.6702 GB, free: 11.97 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002476/0.5486, allocations: 0.7043 MB / 0.6709 GB, free: 11.24 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.886e-05/0.5486, allocations: 8 kB / 0.6709 GB, free: 11.23 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.148e-05/0.5486, allocations: 11.44 kB / 0.6709 GB, free: 11.22 MB / 474.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5486, allocations: 0 / 0.6709 GB, free: 11.22 MB / 474.7 MB Notification: Performance of Templates: time 0.004351/0.553, allocations: 2.337 MB / 0.6732 GB, free: 8.891 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)