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.003136/0.003136, allocations: 183.5 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5807/0.5807, allocations: 92 MB / 108.5 MB, free: 13.07 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.829/1.829, allocations: 223.2 MB / 354.3 MB, free: 12.18 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.001433/0.001433, allocations: 102.9 kB / 427.4 MB, free: 3.871 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004908/0.0004905, allocations: 8 kB / 0.4982 GB, free: 42.3 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2433, allocations: 72.31 MB / 0.5689 GB, free: 1.93 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6656/0.909, allocations: 103.3 MB / 0.6697 GB, free: 1.219 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003135/0.9094, allocations: 75.95 kB / 0.6698 GB, free: 1.145 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.01863/0.928, allocations: 5.828 MB / 0.6755 GB, free: 11.32 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.9281, allocations: 0 / 0.6755 GB, free: 11.32 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.842e-05/0.9281, allocations: 4 kB / 0.6755 GB, free: 11.32 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.0006433/0.9287, allocations: 463.1 kB / 0.6759 GB, free: 10.82 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.9288, allocations: 8.031 kB / 0.6759 GB, free: 10.81 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.98e-05/0.9288, allocations: 15.77 kB / 0.6759 GB, free: 10.79 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002313/0.9291, allocations: 191 kB / 0.6761 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.335e-05/0.9291, allocations: 0 / 0.6761 GB, free: 10.57 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.998e-05/0.9291, allocations: 4 kB / 0.6761 GB, free: 10.56 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001796/0.9293, allocations: 41.67 kB / 0.6762 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.9293, allocations: 0 / 0.6762 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.438e-05/0.9294, allocations: 0 / 0.6762 GB, free: 10.52 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.9294, allocations: 11.83 kB / 0.6762 GB, free: 10.5 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.373e-05/0.9295, allocations: 19.97 kB / 0.6762 GB, free: 10.48 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002766/0.9297, allocations: 189.6 kB / 0.6764 GB, free: 10.25 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.754e-05/0.9298, allocations: 30.56 kB / 0.6764 GB, free: 10.21 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.137e-05/0.9299, allocations: 0 / 0.6764 GB, free: 10.21 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.892e-05/0.9299, allocations: 38.62 kB / 0.6764 GB, free: 10.16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 1.352e-06/0.9299, allocations: 0 / 0.6764 GB, free: 10.16 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002386/0.9302, allocations: 81.39 kB / 0.6765 GB, free: 10.08 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.063e-05/0.9302, allocations: 51.41 kB / 0.6766 GB, free: 10.02 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002107/0.9305, allocations: 189.5 kB / 0.6767 GB, free: 9.82 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.9305, allocations: 29.7 kB / 0.6768 GB, free: 9.785 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.699e-05/0.9306, allocations: 112 kB / 0.6769 GB, free: 9.672 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.56e-05/0.9306, allocations: 0 / 0.6769 GB, free: 9.672 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.021e-06/0.9306, allocations: 0 / 0.6769 GB, free: 9.672 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001677/0.9308, allocations: 326.8 kB / 0.6772 GB, free: 9.344 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001119/0.9309, allocations: 63.95 kB / 0.6772 GB, free: 9.281 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.888e-05/0.931, allocations: 55.97 kB / 0.6773 GB, free: 9.227 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001045/0.9311, allocations: 64.66 kB / 0.6774 GB, free: 9.164 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.9311, allocations: 0 / 0.6774 GB, free: 9.164 MB / 474.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000274/0.9314, allocations: 179.9 kB / 0.6775 GB, free: 8.984 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.9314, allocations: 4 kB / 0.6775 GB, free: 8.98 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.9315, allocations: 7.938 kB / 0.6775 GB, free: 8.973 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.9315, allocations: 0 / 0.6775 GB, free: 8.973 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.82e-05/0.9315, allocations: 3.984 kB / 0.6776 GB, free: 8.969 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.9315, allocations: 4 kB / 0.6776 GB, free: 8.965 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.695e-05/0.9316, allocations: 7.844 kB / 0.6776 GB, free: 8.957 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.602e-05/0.9316, allocations: 8 kB / 0.6776 GB, free: 8.949 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 () * Number of clocked 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.0001508/0.9318, allocations: 141.8 kB / 0.6777 GB, free: 8.801 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.5e-05/0.9318, allocations: 15.89 kB / 0.6777 GB, free: 8.785 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001856/0.932, allocations: 82.14 kB / 0.6778 GB, free: 8.695 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.932, allocations: 0 / 0.6778 GB, free: 8.695 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.932, allocations: 0 / 0.6778 GB, free: 8.695 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.125e-06/0.932, allocations: 0 / 0.6778 GB, free: 8.695 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.9322, allocations: 181.6 kB / 0.678 GB, free: 8.469 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.9322, allocations: 0 / 0.678 GB, free: 8.469 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.202e-05/0.9322, allocations: 7.984 kB / 0.678 GB, free: 8.461 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.246e-06/0.9322, allocations: 32 / 0.678 GB, free: 8.461 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.936e-06/0.9322, allocations: 4 kB / 0.678 GB, free: 8.457 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.9323, allocations: 0 / 0.678 GB, free: 8.457 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.9323, allocations: 3.938 kB / 0.678 GB, free: 8.453 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001481/0.9324, allocations: 96.86 kB / 0.6781 GB, free: 8.34 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.531e-05/0.9325, allocations: 81.02 kB / 0.6782 GB, free: 8.242 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.732e-05/0.9325, allocations: 7.938 kB / 0.6782 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.469e-05/0.9325, allocations: 0 / 0.6782 GB, free: 8.234 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.64e-05/0.9326, allocations: 4.031 kB / 0.6782 GB, free: 8.23 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.299e-05/0.9326, allocations: 7.984 kB / 0.6782 GB, free: 8.223 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001432/0.9327, allocations: 144.4 kB / 0.6783 GB, free: 8.082 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.9327, allocations: 3.938 kB / 0.6783 GB, free: 8.078 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0005033/0.9332, allocations: 107.9 kB / 0.6784 GB, free: 7.973 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 () * Number of clocked 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.0007542/0.934, allocations: 252.1 kB / 0.6787 GB, free: 7.738 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.9343, allocations: 133.6 kB / 0.6788 GB, free: 7.602 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.9343, allocations: 0 / 0.6788 GB, free: 7.602 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.834e-05/0.9343, allocations: 11.98 kB / 0.6788 GB, free: 7.59 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001342/0.9345, allocations: 8.078 kB / 0.6788 GB, free: 7.578 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/0.9349, allocations: 220.3 kB / 0.679 GB, free: 7.336 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003864/0.9353, allocations: 0.7082 MB / 0.6797 GB, free: 6.602 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.404e-05/0.9354, allocations: 8 kB / 0.6797 GB, free: 6.594 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.748e-05/0.9354, allocations: 7.438 kB / 0.6797 GB, free: 6.586 MB / 474.7 MB Notification: Performance of SimCode: time 5.01e-07/0.9354, allocations: 0 / 0.6797 GB, free: 6.586 MB / 474.7 MB Notification: Performance of Templates: time 0.006975/0.9424, allocations: 2.339 MB / 0.682 GB, free: 4.25 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)