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: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",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.001017/0.001017, allocations: 182.4 kB / 13.19 MB, free: 2.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.446/0.446, allocations: 90.8 MB / 104.5 MB, free: 9.797 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.261/1.261, 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.0008526/0.0008527, allocations: 106.4 kB / 421.2 MB, free: 5.469 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.318e-05/3.32e-05, allocations: 4 kB / 0.4897 GB, free: 5.266 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.35/0.35, allocations: 72.29 MB / 0.5603 GB, free: 40.43 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1203/0.4704, allocations: 103.2 MB / 0.6611 GB, free: 1.09 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001947/0.4706, allocations: 71.97 kB / 0.6612 GB, free: 1.02 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.01565/0.4863, allocations: 5.807 MB / 0.6668 GB, free: 11.21 MB / 490.7 MB Notification: Performance of FrontEnd: time 9.51e-07/0.4863, allocations: 0 / 0.6668 GB, free: 11.21 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.4863, allocations: 1.406 kB / 0.6668 GB, free: 11.21 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.0003415/0.4866, allocations: 439.3 kB / 0.6672 GB, free: 10.74 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.897e-05/0.4867, allocations: 11.98 kB / 0.6673 GB, free: 10.73 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.469e-05/0.4867, allocations: 34.52 kB / 0.6673 GB, free: 10.69 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.529e-05/0.4868, allocations: 8.781 kB / 0.6673 GB, free: 10.68 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001776/0.487, allocations: 198.8 kB / 0.6675 GB, free: 10.45 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.487, allocations: 4 kB / 0.6675 GB, free: 10.44 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.241e-05/0.487, allocations: 0 / 0.6675 GB, free: 10.44 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.428e-05/0.4871, allocations: 41.67 kB / 0.6675 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.4871, allocations: 4 kB / 0.6675 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.296e-06/0.4871, allocations: 0 / 0.6675 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.29e-06/0.4871, allocations: 3.953 kB / 0.6675 GB, free: 10.39 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.82e-05/0.4872, allocations: 27.91 kB / 0.6676 GB, free: 10.36 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.4873, allocations: 185.6 kB / 0.6677 GB, free: 10.13 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.78e-05/0.4874, allocations: 26.56 kB / 0.6678 GB, free: 10.09 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.086e-05/0.4874, allocations: 27.69 kB / 0.6678 GB, free: 10.07 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.655e-05/0.4875, allocations: 4 kB / 0.6678 GB, free: 10.06 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.4875, allocations: 38.55 kB / 0.6678 GB, free: 10.02 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 9.42e-07/0.4875, allocations: 0 / 0.6678 GB, free: 10.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001298/0.4876, allocations: 61.52 kB / 0.6679 GB, free: 9.949 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.969e-05/0.4877, allocations: 55.36 kB / 0.6679 GB, free: 9.883 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.4878, allocations: 189.5 kB / 0.6681 GB, free: 9.691 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.759e-05/0.4879, allocations: 29.7 kB / 0.6682 GB, free: 9.656 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.107e-05/0.4879, allocations: 104 kB / 0.6683 GB, free: 9.551 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.4879, allocations: 8.016 kB / 0.6683 GB, free: 9.543 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-06/0.4879, allocations: 0 / 0.6683 GB, free: 9.543 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.093e-05/0.488, allocations: 326.8 kB / 0.6686 GB, free: 9.215 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.416e-05/0.4881, allocations: 55.97 kB / 0.6686 GB, free: 9.16 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.347e-05/0.4882, allocations: 66.58 kB / 0.6687 GB, free: 9.098 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.54e-05/0.4883, allocations: 57.38 kB / 0.6687 GB, free: 9.043 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.392e-06/0.4883, allocations: 0 / 0.6687 GB, free: 9.043 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001962/0.4885, allocations: 179.7 kB / 0.6689 GB, free: 8.863 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.4885, allocations: 7.938 kB / 0.6689 GB, free: 8.855 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.4885, allocations: 4 kB / 0.6689 GB, free: 8.852 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.4885, allocations: 4.062 kB / 0.6689 GB, free: 8.848 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.05e-05/0.4886, allocations: 0 / 0.6689 GB, free: 8.848 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.4886, allocations: 0 / 0.6689 GB, free: 8.848 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.054e-05/0.4886, allocations: 19.7 kB / 0.669 GB, free: 8.828 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.177e-05/0.4886, allocations: 7.984 kB / 0.669 GB, free: 8.82 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: 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.146e-05/0.4887, allocations: 109 kB / 0.6691 GB, free: 8.707 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.327e-05/0.4887, allocations: 11.89 kB / 0.6691 GB, free: 8.695 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001485/0.4889, allocations: 82.2 kB / 0.6692 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.4889, allocations: 0 / 0.6692 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.4889, allocations: 0 / 0.6692 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.4889, allocations: 0 / 0.6692 GB, free: 8.613 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001129/0.489, allocations: 190.8 kB / 0.6693 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.489, allocations: 0 / 0.6693 GB, free: 8.379 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.285e-06/0.489, allocations: 3.938 kB / 0.6693 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.489, allocations: 0 / 0.6693 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.331e-06/0.4891, allocations: 0 / 0.6693 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.4891, allocations: 0 / 0.6693 GB, free: 8.375 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.4891, allocations: 4 kB / 0.6693 GB, free: 8.371 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.646e-05/0.4892, allocations: 92.89 kB / 0.6694 GB, free: 8.262 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.377e-05/0.4892, allocations: 85.02 kB / 0.6695 GB, free: 8.16 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.547e-05/0.4892, allocations: 7.984 kB / 0.6695 GB, free: 8.152 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.358e-05/0.4893, allocations: 0 / 0.6695 GB, free: 8.152 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.544e-05/0.4893, allocations: 0.8438 kB / 0.6695 GB, free: 8.152 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.612e-06/0.4893, allocations: 8 kB / 0.6695 GB, free: 8.145 MB / 490.7 MB Notification: Performance of sorting global known variables: time 9.457e-05/0.4894, allocations: 148.3 kB / 0.6697 GB, free: 8 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.353e-06/0.4894, allocations: 4.031 kB / 0.6697 GB, free: 7.996 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003134/0.4897, allocations: 119.8 kB / 0.6698 GB, free: 7.879 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.000668/0.4904, allocations: 0.7684 MB / 0.6705 GB, free: 7.109 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.4906, allocations: 129.6 kB / 0.6707 GB, free: 6.977 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.4906, allocations: 0 / 0.6707 GB, free: 6.977 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.836e-05/0.4906, allocations: 15.92 kB / 0.6707 GB, free: 6.961 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.052e-05/0.4907, allocations: 10.05 kB / 0.6707 GB, free: 6.949 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003969/0.4911, allocations: 235.5 kB / 0.6709 GB, free: 6.68 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.4914, allocations: 0.7121 MB / 0.6716 GB, free: 5.941 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.666e-05/0.4914, allocations: 8.938 kB / 0.6716 GB, free: 5.934 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.111e-05/0.4914, allocations: 27.42 kB / 0.6716 GB, free: 5.906 MB / 490.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4914, allocations: 0 / 0.6716 GB, free: 5.906 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01393/0.5054, allocations: 3.705 MB / 0.6753 GB, free: 2.344 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/0.5056, allocations: 187 kB / 0.6754 GB, free: 2.117 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.625/2.13, allocations: 4 kB / 0.6754 GB, free: 2.113 MB / 490.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)