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/ModelicaServices 4.0.0+maint.om/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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001876/0.001876, allocations: 116.2 kB / 16.42 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002248/0.002248, allocations: 183.9 kB / 17.35 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.663/2.663, allocations: 461.9 MB / 0.7355 GB, free: 11.12 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001536/0.001536, allocations: 64.12 kB / 1.055 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9657/0.9673, allocations: 157.4 MB / 1.208 GB, free: 13.7 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002038/0.9694, allocations: 0.5092 MB / 1.209 GB, free: 13.2 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002645/0.972, allocations: 1.614 MB / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.289e-05/0.9721, allocations: 0 / 1.21 GB, free: 11.56 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0002151/0.9724, allocations: 63.83 kB / 1.211 GB, free: 11.5 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 3.688e-05/0.9724, allocations: 23.97 kB / 1.211 GB, free: 11.48 MB / 0.9356 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Math/Random.mo:1057:5-1146:31:writable] Warning: Pure function 'Modelica.Math.Random.Utilities.initializeImpureRandom' contains a call to impure function 'Modelica.Math.Random.Utilities.initializeImpureRandom.setInternalState'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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 NFTyping.typeClassSections: time 0.001211/0.9736, allocations: 251.2 kB / 1.211 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001099/0.9737, allocations: 27.97 kB / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.439e-05/0.9738, allocations: 0 / 1.211 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 5.772e-05/0.9739, allocations: 31.89 kB / 1.211 GB, free: 11.17 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.46e-05/0.974, allocations: 39.84 kB / 1.211 GB, free: 11.13 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.974, allocations: 7.938 kB / 1.211 GB, free: 11.12 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006919/0.9747, allocations: 327.5 kB / 1.211 GB, free: 10.8 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 6.734e-05/0.9748, allocations: 35.91 kB / 1.211 GB, free: 10.77 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.153e-05/0.9748, allocations: 19.75 kB / 1.211 GB, free: 10.75 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0005663/0.9754, allocations: 299.3 kB / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.9754, allocations: 0 / 1.212 GB, free: 10.46 MB / 0.9356 GB Notification: Performance of FrontEnd: time 3.527e-06/0.9754, allocations: 3.984 kB / 1.212 GB, free: 10.45 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.843e-06/0.9754, allocations: 0 / 1.212 GB, free: 10.45 MB / 0.9356 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.0006528/0.9761, allocations: 428.6 kB / 1.212 GB, free: 9.992 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.891e-05/0.9761, allocations: 12.03 kB / 1.212 GB, free: 9.98 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.161e-05/0.9762, allocations: 8.844 kB / 1.212 GB, free: 9.973 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.9764, allocations: 200 kB / 1.212 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.9764, allocations: 4.375 kB / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.9765, allocations: 384 / 1.212 GB, free: 9.734 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001155/0.9766, allocations: 42.02 kB / 1.212 GB, free: 9.688 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.9766, allocations: 3.984 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.9766, allocations: 0 / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.9766, allocations: 0 / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.987e-05/0.9767, allocations: 23.92 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000235/0.9769, allocations: 181.7 kB / 1.212 GB, free: 9.434 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.974e-05/0.977, allocations: 26.58 kB / 1.212 GB, free: 9.398 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.536e-05/0.977, allocations: 12.92 kB / 1.212 GB, free: 9.383 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 4.079e-05/0.977, allocations: 11.98 kB / 1.212 GB, free: 9.371 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.9771, allocations: 34.5 kB / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.763e-06/0.9771, allocations: 0 / 1.212 GB, free: 9.328 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.00018/0.9773, allocations: 73.44 kB / 1.213 GB, free: 9.25 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.232e-05/0.9773, allocations: 51.41 kB / 1.213 GB, free: 9.188 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.9775, allocations: 219.6 kB / 1.213 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.412e-05/0.9776, allocations: 25.7 kB / 1.213 GB, free: 8.93 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 7.192e-05/0.9776, allocations: 100.1 kB / 1.213 GB, free: 8.828 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.396e-05/0.9777, allocations: 4 kB / 1.213 GB, free: 8.824 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-05/0.9777, allocations: 25.7 kB / 1.213 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001477/0.9779, allocations: 330.8 kB / 1.213 GB, free: 8.461 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.232e-05/0.9779, allocations: 47.98 kB / 1.213 GB, free: 8.414 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.309e-05/0.978, allocations: 55.97 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.9781, allocations: 100.8 kB / 1.213 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.9781, allocations: 0 / 1.213 GB, free: 8.258 MB / 0.9356 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001968/0.9783, allocations: 167.1 kB / 1.214 GB, free: 8.09 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.9784, allocations: 7.938 kB / 1.214 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.905e-05/0.9784, allocations: 0 / 1.214 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.9784, allocations: 0 / 1.214 GB, free: 8.082 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.72e-05/0.9784, allocations: 4 kB / 1.214 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.877e-06/0.9784, allocations: 3.938 kB / 1.214 GB, free: 8.074 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.159e-05/0.9785, allocations: 11.78 kB / 1.214 GB, free: 8.062 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.032e-05/0.9785, allocations: 4 kB / 1.214 GB, free: 8.059 MB / 0.9356 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 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001311/0.9786, allocations: 137.8 kB / 1.214 GB, free: 7.914 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.186e-05/0.9787, allocations: 15.75 kB / 1.214 GB, free: 7.898 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.9788, allocations: 66.17 kB / 1.214 GB, free: 7.828 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.9788, allocations: 4 kB / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.9788, allocations: 0 / 1.214 GB, free: 7.824 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.063e-05/0.9789, allocations: 81.02 kB / 1.214 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.9789, allocations: 4 kB / 1.214 GB, free: 7.723 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.68e-05/0.9789, allocations: 4.031 kB / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.484e-05/0.9789, allocations: 0 / 1.214 GB, free: 7.719 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.832e-05/0.979, allocations: 121 kB / 1.214 GB, free: 7.594 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001381/0.9792, allocations: 242.5 kB / 1.214 GB, free: 7.34 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.397e-05/0.9792, allocations: 8 kB / 1.214 GB, free: 7.332 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.0001211/0.9794, allocations: 160.2 kB / 1.214 GB, free: 7.176 MB / 0.9356 GB Notification: Performance of Backend: time 2.3e-07/0.9794, allocations: 4 kB / 1.214 GB, free: 7.172 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0009681/0.9803, allocations: 319.6 kB / 1.215 GB, free: 6.867 MB / 0.9356 GB Notification: Performance of SimCode: time 0.000524/0.9809, allocations: 0.6393 MB / 1.215 GB, free: 6.184 MB / 0.9356 GB Notification: Performance of Templates: time 0.006022/0.9869, allocations: 2.2 MB / 1.218 GB, free: 3.984 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches