Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_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_10_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.001685/0.001685, allocations: 112.9 kB / 16.42 MB, free: 6.445 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.001954/0.001954, allocations: 189.5 kB / 17.35 MB, free: 5.715 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.555/1.555, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.605/2.605, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001821/0.001821, allocations: 59.91 kB / 1.019 GB, free: 9.465 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.102/1.104, allocations: 151.6 MB / 1.167 GB, free: 3.879 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001919/1.106, allocations: 0.5213 MB / 1.168 GB, free: 3.363 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002678/1.108, allocations: 1.612 MB / 1.169 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.093e-05/1.108, allocations: 3.938 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0002293/1.109, allocations: 63.84 kB / 1.169 GB, free: 1.668 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.085e-05/1.109, allocations: 27.95 kB / 1.169 GB, free: 1.641 MB / 0.8887 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 10.1.1-maint.10.0.x/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.001046/1.11, allocations: 256.2 kB / 1.17 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.507e-05/1.11, allocations: 31.91 kB / 1.17 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.297e-05/1.11, allocations: 4 kB / 1.17 GB, free: 1.355 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.298e-05/1.11, allocations: 19.92 kB / 1.17 GB, free: 1.336 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.133e-05/1.11, allocations: 43.88 kB / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.548e-05/1.11, allocations: 0 / 1.17 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007329/1.111, allocations: 335.5 kB / 1.17 GB, free: 0.9648 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 6.81e-05/1.111, allocations: 23.92 kB / 1.17 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.591e-05/1.111, allocations: 23.75 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0006411/1.112, allocations: 291.3 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/1.112, allocations: 4 kB / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.513e-06/1.112, allocations: 0 / 1.17 GB, free: 0.6289 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.781e-06/1.112, allocations: 0 / 1.17 GB, free: 0.6289 MB / 0.8887 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.0006382/1.112, allocations: 436.6 kB / 1.171 GB, free: 164 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/1.112, allocations: 8.922 kB / 1.171 GB, free: 156 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.433e-05/1.112, allocations: 8.844 kB / 1.171 GB, free: 148 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002308/1.113, allocations: 196.6 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.183e-06/1.113, allocations: 4.375 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.455e-05/1.113, allocations: 384 / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/1.113, allocations: 49.94 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/1.113, allocations: 0 / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/1.113, allocations: 0 / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/1.113, allocations: 0 / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.624e-05/1.113, allocations: 19.98 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002258/1.113, allocations: 181.7 kB / 1.171 GB, free: 15.61 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 5.117e-05/1.113, allocations: 26.56 kB / 1.171 GB, free: 15.57 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.409e-05/1.113, allocations: 12.92 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 4.195e-05/1.113, allocations: 11.98 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.688e-05/1.113, allocations: 38.44 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.203e-06/1.113, allocations: 4 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001891/1.113, allocations: 69.5 kB / 1.171 GB, free: 15.42 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/1.114, allocations: 51.41 kB / 1.171 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/1.114, allocations: 219.2 kB / 1.172 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.552e-05/1.114, allocations: 25.7 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.775e-05/1.114, allocations: 112.2 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/1.114, allocations: 0 / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/1.114, allocations: 33.64 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0002383/1.114, allocations: 326.8 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.974e-05/1.114, allocations: 51.98 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.046e-05/1.114, allocations: 55.97 kB / 1.172 GB, free: 14.52 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001152/1.114, allocations: 92.66 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/1.114, allocations: 0 / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000194/1.115, allocations: 168.1 kB / 1.173 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/1.115, allocations: 12 kB / 1.173 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.623e-05/1.115, allocations: 7.984 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.098e-05/1.115, allocations: 0 / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.684e-05/1.115, allocations: 0 / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/1.115, allocations: 0 / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.877e-05/1.115, allocations: 11.84 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/1.115, allocations: 0 / 1.173 GB, free: 14.23 MB / 0.9044 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.0001797/1.115, allocations: 137.8 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.107e-05/1.115, allocations: 19.75 kB / 1.173 GB, free: 14.06 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001556/1.115, allocations: 66.19 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/1.115, allocations: 4 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/1.115, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/1.115, allocations: 89 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.51e-05/1.115, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.25e-05/1.115, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.664e-05/1.115, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001031/1.115, allocations: 132.9 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001417/1.116, allocations: 234.6 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.092e-05/1.116, allocations: 11.98 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001063/1.116, allocations: 144.4 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of Backend: time 3.3e-07/1.116, allocations: 0 / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008901/1.117, allocations: 323.9 kB / 1.174 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0005991/1.117, allocations: 0.6366 MB / 1.174 GB, free: 12.35 MB / 0.9044 GB Notification: Performance of Templates: time 0.006061/1.123, allocations: 2.202 MB / 1.176 GB, free: 10.14 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches