Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.428/2.428, allocations: 390.5 MB / 398 MB, free: 11.02 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.001063/0.001063, allocations: 183.5 kB / 491.2 MB, free: 1.625 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.709/1.709, allocations: 221.5 MB / 0.7868 GB, free: 13.3 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.001136/0.001136, allocations: 93.77 kB / 0.9269 GB, free: 13.8 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.428e-05/2.459e-05, allocations: 4 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.336/0.336, allocations: 143 MB / 1.212 GB, free: 39.56 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.084/1.42, allocations: 151.1 MB / 1.36 GB, free: 17.45 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003258/1.42, allocations: 71.02 kB / 1.36 GB, free: 17.45 MB / 0.823 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.01718/1.438, allocations: 5.722 MB / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.704e-06/1.438, allocations: 0 / 1.365 GB, free: 32.84 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.625e-05/1.438, allocations: 0 / 1.365 GB, free: 32.84 MB / 0.8386 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.000519/1.438, allocations: 409.3 kB / 1.366 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/1.438, allocations: 14.48 kB / 1.366 GB, free: 32.44 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.758e-05/1.438, allocations: 11.86 kB / 1.366 GB, free: 32.43 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/1.438, allocations: 178.9 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.366e-05/1.438, allocations: 0 / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.587e-05/1.439, allocations: 3.812 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001023/1.439, allocations: 16.94 kB / 1.366 GB, free: 32.23 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.602e-05/1.439, allocations: 49.36 kB / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/1.439, allocations: 0 / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/1.439, allocations: 0 / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/1.439, allocations: 0 / 1.366 GB, free: 32.19 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001694/1.439, allocations: 163.9 kB / 1.366 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.665e-05/1.439, allocations: 24.97 kB / 1.366 GB, free: 32 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.714e-05/1.439, allocations: 11.48 kB / 1.366 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 4.134e-05/1.439, allocations: 7.625 kB / 1.366 GB, free: 31.99 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/1.439, allocations: 36.22 kB / 1.366 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=1): time 1.093e-06/1.439, allocations: 0 / 1.366 GB, free: 31.95 MB / 0.8386 GB Notification: Performance of matching and sorting (n=1): time 0.0002093/1.439, allocations: 65.03 kB / 1.366 GB, free: 31.91 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.129e-05/1.439, allocations: 59.38 kB / 1.366 GB, free: 31.84 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001214/1.439, allocations: 146.4 kB / 1.367 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/1.439, allocations: 29.64 kB / 1.367 GB, free: 31.71 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.396e-05/1.44, allocations: 98.11 kB / 1.367 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.233e-05/1.44, allocations: 0 / 1.367 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/1.44, allocations: 0 / 1.367 GB, free: 31.62 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 9.163e-05/1.44, allocations: 323.8 kB / 1.367 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.785e-05/1.44, allocations: 35.89 kB / 1.367 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.724e-05/1.44, allocations: 43.22 kB / 1.367 GB, free: 31.31 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001005/1.44, allocations: 50.62 kB / 1.367 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.953e-06/1.44, allocations: 0 / 1.367 GB, free: 31.3 MB / 0.8386 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001545/1.44, allocations: 127.8 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.378e-05/1.44, allocations: 3.969 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.847e-05/1.44, allocations: 3.844 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/1.44, allocations: 2.391 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.284e-05/1.44, allocations: 3.938 kB / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/1.44, allocations: 0 / 1.367 GB, free: 31.27 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.637e-05/1.44, allocations: 11.66 kB / 1.367 GB, free: 31.26 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.41e-05/1.44, allocations: 7.938 kB / 1.367 GB, free: 31.25 MB / 0.8386 GB 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 7.359e-05/1.44, allocations: 108.3 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.107e-05/1.44, allocations: 7.75 kB / 1.367 GB, free: 31.14 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001482/1.44, allocations: 70.73 kB / 1.368 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/1.44, allocations: 0 / 1.368 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/1.44, allocations: 0 / 1.368 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/1.44, allocations: 3.812 kB / 1.368 GB, free: 31.11 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.617e-05/1.441, allocations: 145.3 kB / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/1.441, allocations: 7.219 kB / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.25e-06/1.441, allocations: 0 / 1.368 GB, free: 30.95 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.507e-06/1.441, allocations: 7.953 kB / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.882e-06/1.441, allocations: 0 / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/1.441, allocations: 0 / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/1.441, allocations: 3.938 kB / 1.368 GB, free: 30.94 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.436e-05/1.441, allocations: 88.16 kB / 1.368 GB, free: 30.87 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.574e-05/1.441, allocations: 81.02 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.501e-05/1.441, allocations: 7.984 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.185e-05/1.441, allocations: 0 / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.195e-05/1.441, allocations: 3.844 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/1.441, allocations: 2.812 kB / 1.368 GB, free: 30.77 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 6.526e-05/1.441, allocations: 128 kB / 1.368 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.4e-07/1.441, allocations: 0 / 1.368 GB, free: 30.68 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0004212/1.441, allocations: 102.9 kB / 1.368 GB, free: 30.66 MB / 0.8386 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 () * 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.0005114/1.442, allocations: 249 kB / 1.368 GB, free: 30.52 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0001512/1.442, allocations: 108.6 kB / 1.368 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/1.442, allocations: 0 / 1.368 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 1.629e-05/1.442, allocations: 10.77 kB / 1.368 GB, free: 30.49 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001036/1.442, allocations: 7.078 kB / 1.368 GB, free: 30.48 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002383/1.442, allocations: 106.4 kB / 1.369 GB, free: 30.41 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002856/1.443, allocations: 0.6941 MB / 1.369 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 2.717e-05/1.443, allocations: 6.953 kB / 1.369 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.465e-05/1.443, allocations: 11.25 kB / 1.369 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of SimCode: time 2.81e-07/1.443, allocations: 0 / 1.369 GB, free: 29.71 MB / 0.8386 GB Notification: Performance of Templates: time 0.005021/1.448, allocations: 2.289 MB / 1.371 GB, free: 29.5 MB / 0.8386 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","../files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches