Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.496/2.496, allocations: 393.5 MB / 408.4 MB, free: 11.01 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001635/0.001635, allocations: 176 kB / 0.4902 GB, free: 2.254 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.81/1.81, allocations: 223.1 MB / 0.7992 GB, free: 14.79 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 104.2 kB / 0.9396 GB, free: 1.945 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004083/0.0004083, allocations: 7.875 kB / 1.09 GB, free: 216.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2913/0.2917, allocations: 143 MB / 1.229 GB, free: 105.9 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2287/0.5205, allocations: 151.8 MB / 1.377 GB, free: 1.891 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003175/0.5208, allocations: 75.95 kB / 1.377 GB, free: 1.816 MB / 0.8698 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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.01923/0.5401, allocations: 5.839 MB / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.152e-06/0.5401, allocations: 0 / 1.383 GB, free: 11.96 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.551e-05/0.5402, allocations: 4 kB / 1.383 GB, free: 11.96 MB / 0.8855 GB 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.0004886/0.5407, allocations: 455.9 kB / 1.384 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 3.542e-05/0.5407, allocations: 8.562 kB / 1.384 GB, free: 11.46 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.431e-05/0.5407, allocations: 11.86 kB / 1.384 GB, free: 11.45 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001835/0.5409, allocations: 186.8 kB / 1.384 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.504e-06/0.5409, allocations: 0 / 1.384 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.514e-05/0.541, allocations: 4 kB / 1.384 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.463e-05/0.5411, allocations: 45.61 kB / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.503e-06/0.5411, allocations: 0 / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.135e-06/0.5411, allocations: 0 / 1.384 GB, free: 11.17 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.196e-06/0.5411, allocations: 4 kB / 1.384 GB, free: 11.16 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.563e-05/0.5412, allocations: 27.91 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001806/0.5413, allocations: 197.5 kB / 1.384 GB, free: 10.89 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 4.552e-05/0.5414, allocations: 26.56 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 2.794e-05/0.5414, allocations: 3.984 kB / 1.384 GB, free: 10.86 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.13e-05/0.5415, allocations: 34.62 kB / 1.384 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.5415, allocations: 4 kB / 1.384 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.5416, allocations: 73.5 kB / 1.384 GB, free: 10.73 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.447e-05/0.5417, allocations: 51.41 kB / 1.384 GB, free: 10.67 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001627/0.5418, allocations: 193.3 kB / 1.384 GB, free: 10.47 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.318e-05/0.5419, allocations: 25.7 kB / 1.384 GB, free: 10.44 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.404e-05/0.5419, allocations: 104.1 kB / 1.385 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.164e-05/0.542, allocations: 3.906 kB / 1.385 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.102e-06/0.542, allocations: 4 kB / 1.385 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001148/0.5421, allocations: 330.9 kB / 1.385 GB, free: 9.996 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.754e-05/0.5422, allocations: 63.89 kB / 1.385 GB, free: 9.934 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.618e-05/0.5423, allocations: 55.97 kB / 1.385 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.321e-05/0.5423, allocations: 71.19 kB / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.5423, allocations: 0 / 1.385 GB, free: 9.812 MB / 0.8855 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002199/0.5426, allocations: 169.5 kB / 1.385 GB, free: 9.641 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.32e-05/0.5426, allocations: 4 kB / 1.385 GB, free: 9.637 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.869e-05/0.5426, allocations: 7.984 kB / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.568e-06/0.5426, allocations: 0 / 1.385 GB, free: 9.629 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.1e-05/0.5427, allocations: 3.938 kB / 1.385 GB, free: 9.625 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.5427, allocations: 8.062 kB / 1.385 GB, free: 9.617 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.126e-05/0.5427, allocations: 7.844 kB / 1.385 GB, free: 9.609 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.5427, allocations: 4 kB / 1.385 GB, free: 9.605 MB / 0.8855 GB 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 () * 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.0001379/0.5429, allocations: 137.8 kB / 1.385 GB, free: 9.461 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.802e-05/0.5429, allocations: 11.81 kB / 1.385 GB, free: 9.449 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.5431, allocations: 82.2 kB / 1.386 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.5431, allocations: 0 / 1.386 GB, free: 9.363 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.5431, allocations: 4.031 kB / 1.386 GB, free: 9.359 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.5431, allocations: 3.984 kB / 1.386 GB, free: 9.355 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.5432, allocations: 189.5 kB / 1.386 GB, free: 9.121 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.5432, allocations: 0 / 1.386 GB, free: 9.121 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.555e-06/0.5433, allocations: 7.938 kB / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.5433, allocations: 0 / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.5433, allocations: 0 / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.5433, allocations: 0 / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5433, allocations: 0 / 1.386 GB, free: 9.113 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001139/0.5434, allocations: 93 kB / 1.386 GB, free: 9.004 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.563e-05/0.5435, allocations: 88.88 kB / 1.386 GB, free: 8.898 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/0.5435, allocations: 4 kB / 1.386 GB, free: 8.895 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.449e-05/0.5435, allocations: 0 / 1.386 GB, free: 8.895 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.226e-05/0.5435, allocations: 3.984 kB / 1.386 GB, free: 8.891 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.785e-06/0.5435, allocations: 4 kB / 1.386 GB, free: 8.887 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001203/0.5436, allocations: 152.3 kB / 1.386 GB, free: 8.738 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5437, allocations: 0 / 1.386 GB, free: 8.738 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0003969/0.5441, allocations: 111.9 kB / 1.386 GB, free: 8.629 MB / 0.8855 GB 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.0005296/0.5446, allocations: 252.9 kB / 1.386 GB, free: 8.395 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001866/0.5448, allocations: 129.6 kB / 1.387 GB, free: 8.262 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.5448, allocations: 3.938 kB / 1.387 GB, free: 8.258 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.515e-05/0.5448, allocations: 16.05 kB / 1.387 GB, free: 8.242 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.656e-05/0.5449, allocations: 4.188 kB / 1.387 GB, free: 8.234 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000305/0.5452, allocations: 211.8 kB / 1.387 GB, free: 8 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002658/0.5455, allocations: 0.7122 MB / 1.387 GB, free: 7.262 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 3.05e-05/0.5456, allocations: 11.95 kB / 1.387 GB, free: 7.25 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.346e-05/0.5456, allocations: 7.438 kB / 1.387 GB, free: 7.242 MB / 0.8855 GB Notification: Performance of SimCode: time 2.2e-07/0.5456, allocations: 0 / 1.387 GB, free: 7.242 MB / 0.8855 GB Notification: Performance of Templates: time 0.005077/0.5507, allocations: 2.327 MB / 1.39 GB, free: 4.914 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches