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: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001429/0.001429, allocations: 177.2 kB / 8.008 MB, free: 1.066 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6609/0.6609, allocations: 90.91 MB / 99.34 MB, free: 2.184 MB / 74.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.499/1.499, allocations: 221.5 MB / 343.2 MB, free: 1.582 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009973/0.0009975, allocations: 91.27 kB / 415.9 MB, free: 11.17 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 1.779e-05/1.772e-05, allocations: 0 / 494.6 MB, free: 52.32 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1399, allocations: 72.3 MB / 0.5536 GB, free: 12.2 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5085/0.6485, allocations: 102.6 MB / 0.6538 GB, free: 7.484 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002347/0.6488, allocations: 70.78 kB / 0.6538 GB, free: 7.449 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.01672/0.6655, allocations: 5.717 MB / 0.6594 GB, free: 2.645 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.6655, allocations: 0 / 0.6594 GB, free: 2.645 MB / 458.7 MB Notification: Performance of Transformations before backend: time 9.397e-06/0.6656, allocations: 0 / 0.6594 GB, free: 2.645 MB / 458.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.000456/0.666, allocations: 416.8 kB / 0.6598 GB, free: 2.199 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.6661, allocations: 8.031 kB / 0.6598 GB, free: 2.191 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.186e-05/0.6661, allocations: 11.86 kB / 0.6598 GB, free: 2.18 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001834/0.6663, allocations: 194.1 kB / 0.66 GB, free: 1.953 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.153e-06/0.6663, allocations: 0 / 0.66 GB, free: 1.953 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.6663, allocations: 0 / 0.66 GB, free: 1.953 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.675e-05/0.6664, allocations: 15.98 kB / 0.66 GB, free: 1.938 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.405e-05/0.6665, allocations: 41.67 kB / 0.6601 GB, free: 1.891 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.578e-06/0.6665, allocations: 3.938 kB / 0.6601 GB, free: 1.887 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.122e-05/0.6665, allocations: 3.953 kB / 0.6601 GB, free: 1.883 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.6665, allocations: 0 / 0.6601 GB, free: 1.883 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001718/0.6667, allocations: 152.2 kB / 0.6602 GB, free: 1.703 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.657e-05/0.6668, allocations: 33.94 kB / 0.6603 GB, free: 1.664 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.815e-05/0.6668, allocations: 12.91 kB / 0.6603 GB, free: 1.648 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.483e-05/0.6669, allocations: 4 kB / 0.6603 GB, free: 1.645 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.6669, allocations: 30.56 kB / 0.6603 GB, free: 1.605 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.6669, allocations: 0 / 0.6603 GB, free: 1.605 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001837/0.6671, allocations: 61.56 kB / 0.6604 GB, free: 1.539 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.657e-05/0.6671, allocations: 55.34 kB / 0.6604 GB, free: 1.473 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001338/0.6673, allocations: 158.2 kB / 0.6606 GB, free: 1.324 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.713e-05/0.6673, allocations: 25.7 kB / 0.6606 GB, free: 1.293 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.552e-05/0.6674, allocations: 94.88 kB / 0.6607 GB, free: 1.203 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.189e-05/0.6674, allocations: 3.906 kB / 0.6607 GB, free: 1.199 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-06/0.6674, allocations: 0 / 0.6607 GB, free: 1.199 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.6675, allocations: 321.2 kB / 0.661 GB, free: 0.8789 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.059e-05/0.6676, allocations: 38.28 kB / 0.661 GB, free: 0.8477 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.665e-05/0.6676, allocations: 42.97 kB / 0.6611 GB, free: 0.8125 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.081e-05/0.6677, allocations: 43.61 kB / 0.6611 GB, free: 0.7773 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.6678, allocations: 8.016 kB / 0.6611 GB, free: 0.7695 MB / 458.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001813/0.6679, allocations: 121.6 kB / 0.6612 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.668, allocations: 9.406 kB / 0.6612 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.746e-05/0.668, allocations: 0.875 kB / 0.6612 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.869e-05/0.668, allocations: 4 kB / 0.6612 GB, free: 0.6445 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.303e-05/0.668, allocations: 11.86 kB / 0.6613 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.668, allocations: 0 / 0.6613 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.128e-05/0.6681, allocations: 0 / 0.6613 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.338e-05/0.6681, allocations: 4 kB / 0.6613 GB, free: 0.6289 MB / 458.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 8.973e-05/0.6682, allocations: 121.8 kB / 0.6614 GB, free: 0.5039 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.165e-05/0.6683, allocations: 64.95 kB / 0.6614 GB, free: 448 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.063e-05/0.6683, allocations: 7.906 kB / 0.6614 GB, free: 440 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001488/0.6685, allocations: 69.05 kB / 0.6615 GB, free: 368 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.6685, allocations: 4 kB / 0.6615 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.6685, allocations: 0 / 0.6615 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.315e-06/0.6685, allocations: 0 / 0.6615 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001001/0.6686, allocations: 153 kB / 0.6617 GB, free: 180 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.6686, allocations: 4.062 kB / 0.6617 GB, free: 176 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.253e-06/0.6686, allocations: 3.938 kB / 0.6617 GB, free: 172 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.6686, allocations: 0 / 0.6617 GB, free: 172 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.913e-06/0.6686, allocations: 0 / 0.6617 GB, free: 172 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.6686, allocations: 0 / 0.6617 GB, free: 172 kB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.6687, allocations: 0 / 0.6617 GB, free: 172 kB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001084/0.6688, allocations: 88.7 kB / 0.6617 GB, free: 68 kB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.776e-05/0.6688, allocations: 85.02 kB / 0.6618 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.6689, allocations: 7.969 kB / 0.6618 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.158e-05/0.6689, allocations: 0 / 0.6618 GB, free: 15.96 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.775e-05/0.6689, allocations: 3.984 kB / 0.6618 GB, free: 15.95 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.332e-06/0.6689, allocations: 4 kB / 0.6618 GB, free: 15.95 MB / 474.7 MB Notification: Performance of sorting global known variables: time 6.828e-05/0.669, allocations: 112.7 kB / 0.662 GB, free: 15.85 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.669, allocations: 0 / 0.662 GB, free: 15.85 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004291/0.6694, allocations: 111.5 kB / 0.6621 GB, free: 15.74 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.0008159/0.6702, allocations: 0.7731 MB / 0.6628 GB, free: 14.97 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001665/0.6704, allocations: 103.4 kB / 0.6629 GB, free: 14.88 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.6704, allocations: 3.938 kB / 0.6629 GB, free: 14.87 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.978e-05/0.6705, allocations: 11.98 kB / 0.6629 GB, free: 14.86 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001052/0.6706, allocations: 7.891 kB / 0.6629 GB, free: 14.85 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004358/0.671, allocations: 195.9 kB / 0.6631 GB, free: 14.63 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.6713, allocations: 0.6963 MB / 0.6638 GB, free: 13.91 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.922e-05/0.6714, allocations: 8 kB / 0.6638 GB, free: 13.9 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.729e-05/0.6714, allocations: 17.86 kB / 0.6638 GB, free: 13.89 MB / 474.7 MB Notification: Performance of SimCode: time 2.565e-06/0.6714, allocations: 4 kB / 0.6638 GB, free: 13.88 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.694, allocations: 3.098 MB / 0.6669 GB, free: 10.8 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/0.6943, allocations: 160.5 kB / 0.667 GB, free: 10.61 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.675/2.37, allocations: 0 / 0.667 GB, free: 10.61 MB / 474.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)