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.524/2.524, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.002888/0.002888, allocations: 178.8 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.863/1.863, allocations: 223.2 MB / 0.7992 GB, free: 14.62 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.001042/0.001042, allocations: 112.8 kB / 0.9396 GB, free: 1.793 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004292/0.0004292, allocations: 6.875 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3334/0.3338, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1943/0.5282, allocations: 151.8 MB / 1.377 GB, free: 1.688 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.5286, allocations: 75.95 kB / 1.378 GB, free: 1.613 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.01763/0.5462, allocations: 5.749 MB / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.372e-06/0.5462, allocations: 0 / 1.383 GB, free: 11.85 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.308e-05/0.5463, allocations: 0 / 1.383 GB, free: 11.85 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.0005336/0.5468, allocations: 414.9 kB / 1.384 GB, free: 11.39 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.88e-05/0.5469, allocations: 20.55 kB / 1.384 GB, free: 11.38 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.613e-05/0.5469, allocations: 7.859 kB / 1.384 GB, free: 11.37 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.5471, allocations: 196 kB / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.082e-05/0.5472, allocations: 0 / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.292e-05/0.5472, allocations: 0 / 1.384 GB, free: 11.14 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.5473, allocations: 37.69 kB / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.033e-06/0.5473, allocations: 0 / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.5473, allocations: 0 / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.5473, allocations: 0 / 1.384 GB, free: 11.09 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.491e-05/0.5474, allocations: 23.97 kB / 1.384 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001973/0.5476, allocations: 173.6 kB / 1.384 GB, free: 10.85 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 5.816e-05/0.5477, allocations: 34.5 kB / 1.384 GB, free: 10.81 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 3.228e-05/0.5477, allocations: 8 kB / 1.384 GB, free: 10.8 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.23e-05/0.5477, allocations: 30.56 kB / 1.384 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=1): time 1.272e-06/0.5477, allocations: 0 / 1.384 GB, free: 10.76 MB / 0.8855 GB Notification: Performance of matching and sorting (n=1): time 0.0001883/0.5479, allocations: 69.55 kB / 1.384 GB, free: 10.69 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.548, allocations: 55.53 kB / 1.384 GB, free: 10.62 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001577/0.5482, allocations: 155.7 kB / 1.384 GB, free: 10.46 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 1.567e-05/0.5482, allocations: 25.7 kB / 1.384 GB, free: 10.43 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 5.113e-05/0.5482, allocations: 96.11 kB / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.5483, allocations: 0 / 1.384 GB, free: 10.34 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.114e-06/0.5483, allocations: 8 kB / 1.384 GB, free: 10.33 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001723/0.5484, allocations: 318.7 kB / 1.385 GB, free: 10.01 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.729e-05/0.5485, allocations: 47.91 kB / 1.385 GB, free: 9.961 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.4e-05/0.5486, allocations: 43.97 kB / 1.385 GB, free: 9.918 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.387e-05/0.5487, allocations: 40.02 kB / 1.385 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.5487, allocations: 0 / 1.385 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001854/0.5489, allocations: 133.5 kB / 1.385 GB, free: 9.742 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.5489, allocations: 4 kB / 1.385 GB, free: 9.738 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.691e-05/0.5489, allocations: 7.984 kB / 1.385 GB, free: 9.73 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.5489, allocations: 0 / 1.385 GB, free: 9.73 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.478e-05/0.549, allocations: 3.984 kB / 1.385 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.549, allocations: 0 / 1.385 GB, free: 9.727 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.839e-05/0.549, allocations: 7.906 kB / 1.385 GB, free: 9.719 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.249e-05/0.549, allocations: 4 kB / 1.385 GB, free: 9.715 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: 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 () * 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.0001147/0.5492, allocations: 125.8 kB / 1.385 GB, free: 9.582 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.58e-05/0.5492, allocations: 7.906 kB / 1.385 GB, free: 9.574 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.5493, allocations: 81.45 kB / 1.385 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.5493, allocations: 0 / 1.385 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.513e-06/0.5494, allocations: 0 / 1.385 GB, free: 9.492 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.5494, allocations: 3.938 kB / 1.385 GB, free: 9.488 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001422/0.5495, allocations: 169.6 kB / 1.385 GB, free: 9.273 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.737e-06/0.5495, allocations: 4 kB / 1.385 GB, free: 9.27 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.162e-06/0.5495, allocations: 4.031 kB / 1.385 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.315e-06/0.5495, allocations: 0 / 1.385 GB, free: 9.266 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.111e-05/0.5496, allocations: 4 kB / 1.385 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.5496, allocations: 0 / 1.385 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.5496, allocations: 0 / 1.385 GB, free: 9.262 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001216/0.5497, allocations: 88.94 kB / 1.385 GB, free: 9.156 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 5.346e-05/0.5498, allocations: 84.97 kB / 1.386 GB, free: 9.055 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.334e-05/0.5498, allocations: 4.031 kB / 1.386 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.277e-05/0.5498, allocations: 0 / 1.386 GB, free: 9.051 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.724e-05/0.5498, allocations: 7.984 kB / 1.386 GB, free: 9.043 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.672e-06/0.5498, allocations: 0 / 1.386 GB, free: 9.043 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 9.723e-05/0.5499, allocations: 128.9 kB / 1.386 GB, free: 8.918 MB / 0.8855 GB Notification: Performance of sort global known variables: time 4.11e-07/0.5499, allocations: 0 / 1.386 GB, free: 8.918 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004351/0.5504, allocations: 107.9 kB / 1.386 GB, free: 8.812 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.0005886/0.551, allocations: 245.6 kB / 1.386 GB, free: 8.586 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0001911/0.5512, allocations: 105.6 kB / 1.386 GB, free: 8.477 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.5512, allocations: 0 / 1.386 GB, free: 8.477 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 2.539e-05/0.5512, allocations: 15.92 kB / 1.386 GB, free: 8.461 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001055/0.5513, allocations: 4 kB / 1.386 GB, free: 8.457 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003114/0.5517, allocations: 171.3 kB / 1.386 GB, free: 8.262 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000301/0.552, allocations: 0.6965 MB / 1.387 GB, free: 7.539 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 2.85e-05/0.552, allocations: 7.953 kB / 1.387 GB, free: 7.531 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.552, allocations: 15.44 kB / 1.387 GB, free: 7.516 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.552, allocations: 0 / 1.387 GB, free: 7.516 MB / 0.8855 GB Notification: Performance of Templates: time 0.006031/0.5581, allocations: 2.284 MB / 1.389 GB, free: 5.23 MB / 0.8855 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