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/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001751/0.001751, allocations: 116.1 kB / 16.42 MB, free: 6.496 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.001956/0.001956, 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.362/1.362, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.638/2.638, allocations: 461.9 MB / 0.7355 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001586/0.001586, allocations: 59.91 kB / 1.055 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9426/0.9442, allocations: 157.4 MB / 1.208 GB, free: 13.8 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001811/0.9461, allocations: 0.5169 MB / 1.209 GB, free: 13.3 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.002626/0.9487, allocations: 1.602 MB / 1.21 GB, free: 11.68 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.335e-05/0.9488, allocations: 4 kB / 1.21 GB, free: 11.67 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.949, allocations: 19.92 kB / 1.21 GB, free: 11.65 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 2.332e-05/0.949, allocations: 7.984 kB / 1.21 GB, free: 11.64 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.0008959/0.9499, allocations: 243.3 kB / 1.211 GB, free: 11.41 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 7.82e-05/0.95, allocations: 27.89 kB / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 4.428e-05/0.9501, allocations: 0 / 1.211 GB, free: 11.38 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 3.63e-05/0.9501, allocations: 19.92 kB / 1.211 GB, free: 11.36 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 4.077e-05/0.9501, allocations: 15.92 kB / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.9502, allocations: 0 / 1.211 GB, free: 11.34 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005289/0.9507, allocations: 331.5 kB / 1.211 GB, free: 11.02 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 5.181e-05/0.9508, allocations: 23.92 kB / 1.211 GB, free: 11 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 2.401e-05/0.9508, allocations: 15.88 kB / 1.211 GB, free: 10.98 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0003559/0.9511, allocations: 283.3 kB / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.9512, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.844e-06/0.9512, allocations: 0 / 1.211 GB, free: 10.7 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 4.959e-06/0.9512, allocations: 0 / 1.211 GB, free: 10.7 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.0004668/0.9517, allocations: 408.9 kB / 1.212 GB, free: 10.26 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.9517, allocations: 8.031 kB / 1.212 GB, free: 10.25 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.071e-05/0.9517, allocations: 16.83 kB / 1.212 GB, free: 10.23 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001765/0.9519, allocations: 186.6 kB / 1.212 GB, free: 10.02 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.347e-06/0.9519, allocations: 4.375 kB / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.952, allocations: 384 / 1.212 GB, free: 10.01 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001171/0.9521, allocations: 45.94 kB / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/0.9521, allocations: 0 / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.9521, allocations: 0 / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.438e-06/0.9521, allocations: 0 / 1.212 GB, free: 9.961 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.05e-05/0.9522, allocations: 15.98 kB / 1.212 GB, free: 9.945 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001753/0.9523, allocations: 177.6 kB / 1.212 GB, free: 9.723 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 4.698e-05/0.9524, allocations: 30.58 kB / 1.212 GB, free: 9.684 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.358e-05/0.9524, allocations: 8.922 kB / 1.212 GB, free: 9.672 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.923e-05/0.9525, allocations: 11.98 kB / 1.212 GB, free: 9.66 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.9525, allocations: 34.5 kB / 1.212 GB, free: 9.617 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.9525, allocations: 3.938 kB / 1.212 GB, free: 9.613 MB / 0.9356 GB Notification: Performance of matching and sorting (n=1): time 0.0001618/0.9527, allocations: 57.59 kB / 1.212 GB, free: 9.551 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.347e-05/0.9527, allocations: 51.41 kB / 1.212 GB, free: 9.488 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/0.9529, allocations: 178.2 kB / 1.213 GB, free: 9.305 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 1.489e-05/0.9529, allocations: 29.7 kB / 1.213 GB, free: 9.27 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.187e-05/0.953, allocations: 92.12 kB / 1.213 GB, free: 9.176 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 1.321e-05/0.953, allocations: 3.906 kB / 1.213 GB, free: 9.172 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.76e-05/0.953, allocations: 21.72 kB / 1.213 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.000122/0.9532, allocations: 322.8 kB / 1.213 GB, free: 8.82 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.181e-05/0.9532, allocations: 39.98 kB / 1.213 GB, free: 8.781 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.059e-05/0.9533, allocations: 35.98 kB / 1.213 GB, free: 8.746 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.632e-05/0.9534, allocations: 80.78 kB / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.9534, allocations: 0 / 1.213 GB, free: 8.664 MB / 0.9356 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001463/0.9535, allocations: 129.5 kB / 1.213 GB, free: 8.531 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.9536, allocations: 9.812 kB / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.76e-05/0.9536, allocations: 0 / 1.213 GB, free: 8.523 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.9536, allocations: 4 kB / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.483e-05/0.9536, allocations: 0 / 1.213 GB, free: 8.52 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.9536, allocations: 3.984 kB / 1.213 GB, free: 8.516 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.261e-05/0.9537, allocations: 3.906 kB / 1.213 GB, free: 8.512 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.9537, allocations: 4 kB / 1.213 GB, free: 8.508 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001164/0.9538, allocations: 125.9 kB / 1.213 GB, free: 8.375 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.058e-05/0.9538, allocations: 15.83 kB / 1.213 GB, free: 8.359 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.9539, allocations: 61.5 kB / 1.214 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.954, allocations: 0 / 1.214 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.72e-07/0.954, allocations: 0 / 1.214 GB, free: 8.289 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 4.318e-05/0.954, allocations: 84.95 kB / 1.214 GB, free: 8.188 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.214e-05/0.954, allocations: 4 kB / 1.214 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.145e-05/0.954, allocations: 0 / 1.214 GB, free: 8.184 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.873e-05/0.9541, allocations: 8.016 kB / 1.214 GB, free: 8.176 MB / 0.9356 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 9.268e-05/0.9542, allocations: 121 kB / 1.214 GB, free: 8.051 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001364/0.9543, allocations: 230.6 kB / 1.214 GB, free: 7.809 MB / 0.9356 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.966e-05/0.9543, allocations: 8 kB / 1.214 GB, free: 7.801 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 8.11e-05/0.9544, allocations: 125 kB / 1.214 GB, free: 7.68 MB / 0.9356 GB Notification: Performance of Backend: time 5.81e-07/0.9545, allocations: 4.062 kB / 1.214 GB, free: 7.676 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0008745/0.9553, allocations: 291.2 kB / 1.214 GB, free: 7.402 MB / 0.9356 GB Notification: Performance of SimCode: time 0.0005291/0.9559, allocations: 0.6115 MB / 1.215 GB, free: 6.742 MB / 0.9356 GB Notification: Performance of Templates: time 0.00542/0.9613, allocations: 2.165 MB / 1.217 GB, free: 4.574 MB / 0.9356 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches