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.001038/0.001038, allocations: 179.2 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.4637/0.4637, allocations: 90.82 MB / 104.5 MB, free: 9.789 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.251/1.251, allocations: 221.3 MB / 348.3 MB, free: 440 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008033/0.0008034, allocations: 102.5 kB / 421.2 MB, free: 5.492 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 2.707e-05/2.709e-05, allocations: 0 / 0.4896 GB, free: 5.383 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3157/0.3157, allocations: 72.3 MB / 0.5602 GB, free: 40.47 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.43, allocations: 103.2 MB / 0.661 GB, free: 1.133 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001753/0.4302, allocations: 75.97 kB / 0.6611 GB, free: 1.059 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 - DAE generated: time 0.01551/0.4457, allocations: 5.718 MB / 0.6667 GB, free: 11.34 MB / 490.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.4457, allocations: 0 / 0.6667 GB, free: 11.34 MB / 490.7 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.4457, allocations: 4 kB / 0.6667 GB, free: 11.34 MB / 490.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.0003406/0.4461, allocations: 410.1 kB / 0.667 GB, free: 10.89 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.4461, allocations: 11.98 kB / 0.6671 GB, free: 10.88 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.038e-05/0.4462, allocations: 11.86 kB / 0.6671 GB, free: 10.87 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001584/0.4463, allocations: 186.8 kB / 0.6672 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.4463, allocations: 0 / 0.6672 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.4464, allocations: 8 kB / 0.6673 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.032e-05/0.4465, allocations: 37.69 kB / 0.6673 GB, free: 10.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.745e-06/0.4465, allocations: 0 / 0.6673 GB, free: 10.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.274e-06/0.4465, allocations: 0 / 0.6673 GB, free: 10.59 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.84e-06/0.4465, allocations: 4.609 kB / 0.6673 GB, free: 10.59 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.226e-05/0.4465, allocations: 27.91 kB / 0.6673 GB, free: 10.56 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001486/0.4467, allocations: 173.6 kB / 0.6675 GB, free: 10.34 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.406e-05/0.4468, allocations: 26.56 kB / 0.6675 GB, free: 10.31 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.408e-05/0.4468, allocations: 16.91 kB / 0.6675 GB, free: 10.29 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.4468, allocations: 4 kB / 0.6675 GB, free: 10.29 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.889e-05/0.4468, allocations: 30.56 kB / 0.6676 GB, free: 10.25 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.963e-06/0.4468, allocations: 5.109 kB / 0.6676 GB, free: 10.24 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001308/0.447, allocations: 65.5 kB / 0.6676 GB, free: 10.17 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.447, allocations: 55.41 kB / 0.6677 GB, free: 10.11 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001172/0.4472, allocations: 159.4 kB / 0.6678 GB, free: 9.945 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.267e-05/0.4472, allocations: 29.73 kB / 0.6679 GB, free: 9.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.664e-05/0.4472, allocations: 96.12 kB / 0.668 GB, free: 9.812 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.168e-05/0.4472, allocations: 4 kB / 0.668 GB, free: 9.809 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.418e-06/0.4473, allocations: 0 / 0.668 GB, free: 9.809 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.533e-05/0.4474, allocations: 318.8 kB / 0.6683 GB, free: 9.488 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.089e-05/0.4474, allocations: 35.98 kB / 0.6683 GB, free: 9.453 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.293e-05/0.4475, allocations: 45.94 kB / 0.6683 GB, free: 9.41 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.427e-05/0.4475, allocations: 35.98 kB / 0.6684 GB, free: 9.375 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.4475, allocations: 2.438 kB / 0.6684 GB, free: 9.375 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001523/0.4477, allocations: 137.5 kB / 0.6685 GB, free: 9.234 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.4477, allocations: 7.984 kB / 0.6685 GB, free: 9.227 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.4477, allocations: 7.203 kB / 0.6685 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.688e-06/0.4478, allocations: 0 / 0.6685 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.788e-06/0.4478, allocations: 0 / 0.6685 GB, free: 9.223 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.4478, allocations: 4 kB / 0.6685 GB, free: 9.219 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.225e-05/0.4478, allocations: 7.844 kB / 0.6685 GB, free: 9.211 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.997e-05/0.4478, allocations: 7.953 kB / 0.6685 GB, free: 9.203 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: 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 6.94e-05/0.4479, allocations: 114.6 kB / 0.6687 GB, free: 9.086 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.4479, allocations: 7.906 kB / 0.6687 GB, free: 9.078 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000129/0.4481, allocations: 65.31 kB / 0.6687 GB, free: 9.004 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.616e-06/0.4481, allocations: 4 kB / 0.6687 GB, free: 9 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.4481, allocations: 4 kB / 0.6687 GB, free: 8.996 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4481, allocations: 0 / 0.6687 GB, free: 8.996 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.747e-05/0.4482, allocations: 177.5 kB / 0.6689 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.4482, allocations: 0 / 0.6689 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.4e-06/0.4482, allocations: 0 / 0.6689 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.773e-06/0.4482, allocations: 0 / 0.6689 GB, free: 8.773 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.4482, allocations: 8.016 kB / 0.6689 GB, free: 8.766 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.4482, allocations: 0 / 0.6689 GB, free: 8.766 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.4482, allocations: 0 / 0.6689 GB, free: 8.766 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.073e-05/0.4483, allocations: 84.97 kB / 0.669 GB, free: 8.664 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.193e-05/0.4484, allocations: 85.02 kB / 0.6691 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.226e-05/0.4484, allocations: 0 / 0.6691 GB, free: 8.562 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.358e-05/0.4484, allocations: 3.984 kB / 0.6691 GB, free: 8.559 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.451e-05/0.4484, allocations: 5.156 kB / 0.6691 GB, free: 8.555 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.392e-06/0.4484, allocations: 7.938 kB / 0.6691 GB, free: 8.547 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.683e-05/0.4485, allocations: 121.5 kB / 0.6692 GB, free: 8.43 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4485, allocations: 0 / 0.6692 GB, free: 8.43 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003258/0.4489, allocations: 111.9 kB / 0.6693 GB, free: 8.32 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.000435/0.4493, allocations: 252.5 kB / 0.6695 GB, free: 8.094 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001524/0.4495, allocations: 105.6 kB / 0.6696 GB, free: 7.984 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.4495, allocations: 0 / 0.6696 GB, free: 7.984 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.124e-05/0.4495, allocations: 11.98 kB / 0.6697 GB, free: 7.973 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.537e-05/0.4496, allocations: 14.77 kB / 0.6697 GB, free: 7.961 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002181/0.4498, allocations: 105.1 kB / 0.6698 GB, free: 7.832 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.45, allocations: 0.6967 MB / 0.6705 GB, free: 7.109 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.422e-05/0.4501, allocations: 14.34 kB / 0.6705 GB, free: 7.098 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.824e-05/0.4501, allocations: 7.438 kB / 0.6705 GB, free: 7.094 MB / 490.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4501, allocations: 0 / 0.6705 GB, free: 7.094 MB / 490.7 MB Notification: Performance of Templates: time 0.004327/0.4544, allocations: 2.304 MB / 0.6727 GB, free: 4.809 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)