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.001712/0.001713, allocations: 182 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.6273/0.6273, 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.851/1.851, allocations: 223.2 MB / 354.3 MB, free: 12.22 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.001256/0.001256, allocations: 102.8 kB / 427.4 MB, free: 3.961 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004186/0.0004186, allocations: 11.98 kB / 0.4982 GB, free: 42.36 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2479/0.2483, allocations: 72.3 MB / 0.5689 GB, free: 1.988 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6695/0.918, allocations: 103.3 MB / 0.6697 GB, free: 1.281 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004031/0.9185, allocations: 75.95 kB / 0.6698 GB, free: 1.207 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.01904/0.9375, allocations: 5.745 MB / 0.6754 GB, free: 11.46 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.474e-06/0.9376, allocations: 0 / 0.6754 GB, free: 11.46 MB / 474.7 MB Notification: Performance of Transformations before backend: time 1.541e-05/0.9376, allocations: 4 kB / 0.6754 GB, free: 11.46 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.0006309/0.9382, allocations: 431.4 kB / 0.6758 GB, free: 10.99 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.675e-05/0.9383, allocations: 8.031 kB / 0.6758 GB, free: 10.98 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.201e-05/0.9384, allocations: 11.86 kB / 0.6758 GB, free: 10.97 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000269/0.9386, allocations: 189.2 kB / 0.676 GB, free: 10.75 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.406e-05/0.9387, allocations: 7.938 kB / 0.676 GB, free: 10.74 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.618e-05/0.9387, allocations: 4 kB / 0.676 GB, free: 10.73 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001423/0.9388, allocations: 41.62 kB / 0.676 GB, free: 10.69 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.9389, allocations: 0 / 0.676 GB, free: 10.69 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.697e-05/0.9389, allocations: 8 kB / 0.6761 GB, free: 10.68 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.348e-06/0.9389, allocations: 3.953 kB / 0.6761 GB, free: 10.68 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.131e-05/0.939, allocations: 19.97 kB / 0.6761 GB, free: 10.66 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000238/0.9392, allocations: 173.6 kB / 0.6762 GB, free: 10.44 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.449e-05/0.9393, allocations: 30.5 kB / 0.6763 GB, free: 10.4 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.652e-05/0.9393, allocations: 0 / 0.6763 GB, free: 10.4 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.241e-05/0.9394, allocations: 38.61 kB / 0.6763 GB, free: 10.35 MB / 474.7 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.9394, allocations: 4 kB / 0.6763 GB, free: 10.35 MB / 474.7 MB Notification: Performance of matching and sorting (n=1): time 0.0002197/0.9396, allocations: 65.56 kB / 0.6764 GB, free: 10.28 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.008e-05/0.9397, allocations: 55.41 kB / 0.6764 GB, free: 10.21 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001539/0.9398, allocations: 152.4 kB / 0.6766 GB, free: 10.06 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.9398, allocations: 25.7 kB / 0.6766 GB, free: 10.03 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.183e-05/0.9399, allocations: 100 kB / 0.6767 GB, free: 9.926 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.565e-05/0.9399, allocations: 0 / 0.6767 GB, free: 9.926 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.59e-06/0.9399, allocations: 0 / 0.6767 GB, free: 9.926 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.9401, allocations: 326.9 kB / 0.677 GB, free: 9.598 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.554e-05/0.9402, allocations: 43.91 kB / 0.677 GB, free: 9.555 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.3e-05/0.9403, allocations: 39.97 kB / 0.6771 GB, free: 9.516 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.341e-05/0.9403, allocations: 51.25 kB / 0.6771 GB, free: 9.469 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.023e-06/0.9403, allocations: 0 / 0.6771 GB, free: 9.469 MB / 474.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001819/0.9405, allocations: 125.5 kB / 0.6773 GB, free: 9.34 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.336e-05/0.9406, allocations: 8 kB / 0.6773 GB, free: 9.332 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.9406, allocations: 0 / 0.6773 GB, free: 9.332 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/0.9406, allocations: 3.984 kB / 0.6773 GB, free: 9.328 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.875e-05/0.9406, allocations: 4 kB / 0.6773 GB, free: 9.324 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.9406, allocations: 4.062 kB / 0.6773 GB, free: 9.32 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.636e-05/0.9407, allocations: 3.906 kB / 0.6773 GB, free: 9.316 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.783e-05/0.9407, allocations: 4 kB / 0.6773 GB, free: 9.312 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: 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 () * 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.000124/0.9408, allocations: 129.8 kB / 0.6774 GB, free: 9.176 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.574e-05/0.9409, allocations: 11.89 kB / 0.6774 GB, free: 9.164 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001709/0.941, allocations: 69.47 kB / 0.6775 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.303e-06/0.9411, allocations: 0 / 0.6775 GB, free: 9.09 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.259e-06/0.9411, allocations: 4.031 kB / 0.6775 GB, free: 9.086 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.9411, allocations: 4 kB / 0.6775 GB, free: 9.082 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000141/0.9412, allocations: 169.6 kB / 0.6776 GB, free: 8.867 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.9412, allocations: 4 kB / 0.6777 GB, free: 8.863 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.36e-06/0.9412, allocations: 0 / 0.6777 GB, free: 8.863 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.326e-06/0.9413, allocations: 0 / 0.6777 GB, free: 8.863 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.416e-06/0.9413, allocations: 3.938 kB / 0.6777 GB, free: 8.859 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.9413, allocations: 3.984 kB / 0.6777 GB, free: 8.855 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.9413, allocations: 3.938 kB / 0.6777 GB, free: 8.852 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001172/0.9414, allocations: 92.91 kB / 0.6778 GB, free: 8.742 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.69e-05/0.9415, allocations: 85.02 kB / 0.6778 GB, free: 8.641 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.639e-05/0.9415, allocations: 0 / 0.6778 GB, free: 8.641 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.227e-05/0.9415, allocations: 0 / 0.6778 GB, free: 8.641 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.289e-05/0.9416, allocations: 3.984 kB / 0.6778 GB, free: 8.637 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.773e-06/0.9416, allocations: 4 kB / 0.6778 GB, free: 8.633 MB / 474.7 MB Notification: Performance of sorting global known variables: time 8.967e-05/0.9417, allocations: 115.2 kB / 0.678 GB, free: 8.52 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9417, allocations: 0 / 0.678 GB, free: 8.52 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004443/0.9421, allocations: 111.9 kB / 0.6781 GB, free: 8.41 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.0006494/0.9428, allocations: 249.3 kB / 0.6783 GB, free: 8.18 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001981/0.943, allocations: 101.6 kB / 0.6784 GB, free: 8.074 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.943, allocations: 8.062 kB / 0.6784 GB, free: 8.066 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.504e-05/0.9431, allocations: 15.91 kB / 0.6784 GB, free: 8.051 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001221/0.9432, allocations: 8.891 kB / 0.6784 GB, free: 8.043 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003612/0.9436, allocations: 163.6 kB / 0.6786 GB, free: 7.855 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003409/0.9439, allocations: 0.6965 MB / 0.6793 GB, free: 7.133 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.019e-05/0.944, allocations: 8.062 kB / 0.6793 GB, free: 7.125 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.906e-05/0.944, allocations: 11.44 kB / 0.6793 GB, free: 7.113 MB / 474.7 MB Notification: Performance of SimCode: time 2.21e-07/0.944, allocations: 0 / 0.6793 GB, free: 7.113 MB / 474.7 MB Notification: Performance of Templates: time 0.005972/0.95, allocations: 2.296 MB / 0.6815 GB, free: 4.82 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)