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.001261/0.001261, allocations: 108.7 kB / 16.41 MB, free: 6.469 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.001215/0.001215, allocations: 189.4 kB / 17.35 MB, free: 5.711 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.429/1.429, allocations: 222.9 MB / 241.1 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.615/2.615, allocations: 437 MB / 0.7112 GB, free: 4.398 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002656, allocations: 68.11 kB / 1.019 GB, free: 9.457 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.044/1.047, allocations: 151.6 MB / 1.167 GB, free: 3.883 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001634/1.048, allocations: 0.5149 MB / 1.168 GB, free: 3.371 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.002107/1.051, allocations: 1.624 MB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.131e-05/1.051, allocations: 0 / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.0001804/1.051, allocations: 59.86 kB / 1.169 GB, free: 1.672 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.446e-05/1.051, allocations: 27.95 kB / 1.169 GB, free: 1.645 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.0008117/1.052, allocations: 253 kB / 1.17 GB, free: 1.398 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.098e-05/1.052, allocations: 23.97 kB / 1.17 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.931e-05/1.052, allocations: 11.98 kB / 1.17 GB, free: 1.363 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.387e-05/1.052, allocations: 23.91 kB / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 8.337e-05/1.052, allocations: 39.84 kB / 1.17 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.132e-05/1.052, allocations: 0 / 1.17 GB, free: 1.301 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004908/1.052, allocations: 335.5 kB / 1.17 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 5.702e-05/1.052, allocations: 27.92 kB / 1.17 GB, free: 0.9453 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 3.299e-05/1.052, allocations: 27.75 kB / 1.17 GB, free: 0.918 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003841/1.053, allocations: 295.6 kB / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/1.053, allocations: 0 / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.062e-06/1.053, allocations: 0 / 1.17 GB, free: 0.6328 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.217e-06/1.053, allocations: 0 / 1.17 GB, free: 0.6328 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.0004502/1.053, allocations: 438.4 kB / 1.171 GB, free: 160 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.151e-05/1.053, allocations: 8.922 kB / 1.171 GB, free: 152 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.5e-05/1.053, allocations: 12.84 kB / 1.171 GB, free: 140 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001843/1.054, allocations: 196.7 kB / 1.171 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.155e-06/1.054, allocations: 4.375 kB / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/1.054, allocations: 384 / 1.171 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/1.054, allocations: 42 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/1.054, allocations: 0 / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.747e-06/1.054, allocations: 3.984 kB / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/1.054, allocations: 0 / 1.171 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.214e-05/1.054, allocations: 23.92 kB / 1.171 GB, free: 15.83 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001752/1.054, allocations: 181.7 kB / 1.171 GB, free: 15.6 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 4.174e-05/1.054, allocations: 30.56 kB / 1.171 GB, free: 15.56 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.376e-05/1.054, allocations: 16.92 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/1.054, allocations: 4 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/1.054, allocations: 38.5 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/1.054, allocations: 0 / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of matching and sorting (n=1): time 0.0001553/1.054, allocations: 73.52 kB / 1.171 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/1.054, allocations: 51.53 kB / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001997/1.055, allocations: 223.2 kB / 1.172 GB, free: 15.12 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/1.055, allocations: 29.64 kB / 1.172 GB, free: 15.09 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 8.621e-05/1.055, allocations: 100.1 kB / 1.172 GB, free: 14.99 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 1.945e-05/1.055, allocations: 7.938 kB / 1.172 GB, free: 14.98 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.453e-05/1.055, allocations: 29.72 kB / 1.172 GB, free: 14.95 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001702/1.055, allocations: 322.8 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.339e-05/1.055, allocations: 55.97 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.263e-05/1.055, allocations: 61.73 kB / 1.172 GB, free: 14.51 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001047/1.055, allocations: 92.81 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/1.055, allocations: 0 / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001982/1.056, allocations: 164.5 kB / 1.173 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.341e-05/1.056, allocations: 7.938 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/1.056, allocations: 4 kB / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/1.056, allocations: 0 / 1.173 GB, free: 14.24 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.539e-05/1.056, allocations: 3.984 kB / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/1.056, allocations: 0 / 1.173 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.949e-05/1.056, allocations: 19.78 kB / 1.173 GB, free: 14.21 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/1.056, allocations: 0 / 1.173 GB, free: 14.21 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.0001484/1.056, allocations: 129.9 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.573e-05/1.056, allocations: 11.89 kB / 1.173 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001206/1.056, allocations: 70.17 kB / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/1.056, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/1.056, allocations: 0 / 1.173 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.622e-05/1.056, allocations: 89.02 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.203e-05/1.056, allocations: 0 / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.355e-05/1.056, allocations: 4.031 kB / 1.173 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.412e-05/1.056, allocations: 3.984 kB / 1.173 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001015/1.056, allocations: 129 kB / 1.173 GB, free: 13.74 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001657/1.056, allocations: 234.6 kB / 1.173 GB, free: 13.49 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.151e-05/1.056, allocations: 15.98 kB / 1.173 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 0.0001173/1.057, allocations: 144.5 kB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of Backend: time 3.91e-07/1.057, allocations: 4 kB / 1.173 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0008596/1.057, allocations: 323 kB / 1.174 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0004964/1.058, allocations: 0.6508 MB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of Templates: time 0.005263/1.063, allocations: 2.186 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