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.00134/0.00134, allocations: 177.6 kB / 8.002 MB, free: 1.07 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5387/0.5387, allocations: 90.92 MB / 99.35 MB, free: 2.191 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.665/1.665, allocations: 221.5 MB / 343.2 MB, free: 1.527 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.001036/0.001036, allocations: 90.95 kB / 415.9 MB, free: 11.1 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.071e-05/2.036e-05, allocations: 0 / 494.6 MB, free: 52.3 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1488/0.1488, allocations: 72.31 MB / 0.5536 GB, free: 12.17 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4787/0.6275, allocations: 102.5 MB / 0.6537 GB, free: 7.457 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002261/0.6278, allocations: 75.45 kB / 0.6538 GB, free: 7.418 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.01624/0.6441, allocations: 5.794 MB / 0.6595 GB, free: 2.539 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.694e-06/0.6441, allocations: 0 / 0.6595 GB, free: 2.539 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.6441, allocations: 0 / 0.6595 GB, free: 2.539 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.0005504/0.6447, allocations: 444.8 kB / 0.6599 GB, free: 2.07 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.6447, allocations: 8.031 kB / 0.6599 GB, free: 2.062 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.073e-05/0.6448, allocations: 11.86 kB / 0.6599 GB, free: 2.051 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002109/0.645, allocations: 194.8 kB / 0.6601 GB, free: 1.82 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.105e-05/0.645, allocations: 0 / 0.6601 GB, free: 1.82 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.6451, allocations: 0 / 0.6601 GB, free: 1.82 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.684e-05/0.6451, allocations: 27.95 kB / 0.6601 GB, free: 1.793 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.049e-05/0.6452, allocations: 37.69 kB / 0.6602 GB, free: 1.75 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.283e-06/0.6452, allocations: 0 / 0.6602 GB, free: 1.75 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/0.6452, allocations: 3.953 kB / 0.6602 GB, free: 1.746 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.6453, allocations: 4 kB / 0.6602 GB, free: 1.742 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001799/0.6454, allocations: 172.1 kB / 0.6603 GB, free: 1.551 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.805e-05/0.6455, allocations: 26.56 kB / 0.6604 GB, free: 1.516 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.126e-05/0.6455, allocations: 20.89 kB / 0.6604 GB, free: 1.492 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.501e-05/0.6456, allocations: 7.938 kB / 0.6604 GB, free: 1.484 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.6456, allocations: 30.56 kB / 0.6604 GB, free: 1.445 MB / 458.7 MB Notification: Performance of pre-optimization done (n=1): time 2.825e-06/0.6456, allocations: 8.641 kB / 0.6604 GB, free: 1.438 MB / 458.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001992/0.6458, allocations: 57.58 kB / 0.6605 GB, free: 1.375 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.981e-05/0.6459, allocations: 59.39 kB / 0.6605 GB, free: 1.305 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001624/0.646, allocations: 176.9 kB / 0.6607 GB, free: 1.145 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.557e-05/0.6461, allocations: 25.7 kB / 0.6607 GB, free: 1.113 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.46e-05/0.6461, allocations: 110.3 kB / 0.6608 GB, free: 1.016 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.125e-05/0.6461, allocations: 0 / 0.6608 GB, free: 1.016 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.811e-06/0.6461, allocations: 3.938 kB / 0.6608 GB, free: 1.012 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.6463, allocations: 333.2 kB / 0.6612 GB, free: 0.6836 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.634e-05/0.6464, allocations: 61.27 kB / 0.6612 GB, free: 0.6328 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.076e-05/0.6464, allocations: 55.16 kB / 0.6613 GB, free: 0.5859 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000126/0.6466, allocations: 64.89 kB / 0.6613 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.6466, allocations: 0 / 0.6613 GB, free: 0.5312 MB / 458.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002365/0.6468, allocations: 174.3 kB / 0.6615 GB, free: 384 kB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.6468, allocations: 8 kB / 0.6615 GB, free: 376 kB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.286e-05/0.6469, allocations: 7.984 kB / 0.6615 GB, free: 368 kB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.6469, allocations: 0 / 0.6615 GB, free: 368 kB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.287e-05/0.6469, allocations: 0 / 0.6615 GB, free: 368 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.419e-06/0.6469, allocations: 4.062 kB / 0.6615 GB, free: 364 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.555e-05/0.647, allocations: 15.75 kB / 0.6615 GB, free: 348 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.661e-05/0.647, allocations: 4 kB / 0.6615 GB, free: 344 kB / 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: 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 9.297e-05/0.6471, allocations: 115.3 kB / 0.6616 GB, free: 224 kB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001003/0.6472, allocations: 57.58 kB / 0.6617 GB, free: 160 kB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.298e-05/0.6472, allocations: 15.8 kB / 0.6617 GB, free: 144 kB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000173/0.6474, allocations: 85.14 kB / 0.6618 GB, free: 64 kB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.6474, allocations: 8.062 kB / 0.6618 GB, free: 56 kB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.6474, allocations: 0 / 0.6618 GB, free: 56 kB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.6474, allocations: 0 / 0.6618 GB, free: 56 kB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.6476, allocations: 157.9 kB / 0.662 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.6476, allocations: 0 / 0.662 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.723e-06/0.6476, allocations: 0 / 0.662 GB, free: 15.87 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.6476, allocations: 7.984 kB / 0.662 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.6476, allocations: 0 / 0.662 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.901e-06/0.6476, allocations: 4 kB / 0.662 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6476, allocations: 0 / 0.662 GB, free: 15.86 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001264/0.6478, allocations: 100.8 kB / 0.6621 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.6478, allocations: 84.92 kB / 0.6621 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.799e-05/0.6478, allocations: 4 kB / 0.6621 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.587e-05/0.6479, allocations: 0 / 0.6621 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.401e-05/0.6479, allocations: 3.938 kB / 0.6622 GB, free: 15.64 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.6479, allocations: 7.984 kB / 0.6622 GB, free: 15.63 MB / 474.7 MB Notification: Performance of sorting global known variables: time 9.78e-05/0.648, allocations: 132.9 kB / 0.6623 GB, free: 15.51 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.648, allocations: 4 kB / 0.6623 GB, free: 15.51 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0004333/0.6484, allocations: 115.7 kB / 0.6624 GB, free: 15.4 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.0009359/0.6494, allocations: 0.7719 MB / 0.6632 GB, free: 14.62 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0001725/0.6496, allocations: 128.2 kB / 0.6633 GB, free: 14.51 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.6496, allocations: 0 / 0.6633 GB, free: 14.51 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 2.357e-05/0.6496, allocations: 15.98 kB / 0.6633 GB, free: 14.49 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001109/0.6497, allocations: 3.125 kB / 0.6633 GB, free: 14.49 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004838/0.6502, allocations: 229.7 kB / 0.6635 GB, free: 14.23 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.6505, allocations: 0.7158 MB / 0.6642 GB, free: 13.48 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.972e-05/0.6505, allocations: 11.94 kB / 0.6642 GB, free: 13.47 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.362e-05/0.6506, allocations: 25.05 kB / 0.6642 GB, free: 13.46 MB / 474.7 MB Notification: Performance of SimCode: time 3.21e-07/0.6506, allocations: 0 / 0.6642 GB, free: 13.46 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02393/0.6745, allocations: 3.4 MB / 0.6676 GB, free: 10.08 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002142/0.6748, allocations: 160.5 kB / 0.6677 GB, free: 9.891 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.729/2.404, allocations: 0 / 0.6677 GB, free: 9.891 MB / 474.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)