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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.00153/0.001531, allocations: 111.8 kB / 16.41 MB, free: 6.016 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.001515/0.001515, allocations: 191.5 kB / 17.34 MB, free: 5.629 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.413/1.413, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.812/2.812, allocations: 474.5 MB / 0.7477 GB, free: 14.05 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.002064/0.002064, allocations: 71.78 kB / 1.073 GB, free: 7.23 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7941/0.7962, allocations: 160.3 MB / 1.229 GB, free: 10.97 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001644/0.7979, allocations: 0.5161 MB / 1.23 GB, free: 10.45 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.002329/0.8002, allocations: 1.608 MB / 1.231 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.786e-05/0.8002, allocations: 0 / 1.231 GB, free: 8.828 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001785/0.8004, allocations: 63.83 kB / 1.231 GB, free: 8.766 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.659e-05/0.8005, allocations: 27.95 kB / 1.231 GB, free: 8.738 MB / 0.9512 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 12.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 NFTyping.typeClassSections: time 0.0008787/0.8014, allocations: 254.5 kB / 1.232 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 8.057e-05/0.8015, allocations: 31.91 kB / 1.232 GB, free: 8.461 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.394e-05/0.8015, allocations: 4 kB / 1.232 GB, free: 8.457 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 3.759e-05/0.8016, allocations: 23.95 kB / 1.232 GB, free: 8.434 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 6.536e-05/0.8016, allocations: 35.91 kB / 1.232 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.09e-05/0.8016, allocations: 0 / 1.232 GB, free: 8.398 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005577/0.8022, allocations: 347.4 kB / 1.232 GB, free: 8.059 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 5.135e-05/0.8023, allocations: 23.92 kB / 1.232 GB, free: 8.035 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.094e-05/0.8023, allocations: 23.75 kB / 1.232 GB, free: 8.012 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0004108/0.8027, allocations: 295.7 kB / 1.232 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.8027, allocations: 0 / 1.232 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.833e-06/0.8027, allocations: 0 / 1.232 GB, free: 7.727 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.8028, allocations: 3.938 kB / 1.232 GB, free: 7.723 MB / 0.9512 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.0004989/0.8033, allocations: 442.4 kB / 1.233 GB, free: 7.242 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.977e-05/0.8033, allocations: 8.031 kB / 1.233 GB, free: 7.234 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.8033, allocations: 12.84 kB / 1.233 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001849/0.8035, allocations: 200.2 kB / 1.233 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-06/0.8036, allocations: 384 / 1.233 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.8036, allocations: 384 / 1.233 GB, free: 6.988 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.715e-05/0.8037, allocations: 42 kB / 1.233 GB, free: 6.941 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.042e-05/0.8037, allocations: 0 / 1.233 GB, free: 6.941 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.8037, allocations: 4 kB / 1.233 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.818e-06/0.8037, allocations: 0 / 1.233 GB, free: 6.938 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.991e-05/0.8038, allocations: 19.98 kB / 1.233 GB, free: 6.918 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002526/0.804, allocations: 185.6 kB / 1.233 GB, free: 6.688 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 5.913e-05/0.8041, allocations: 26.58 kB / 1.233 GB, free: 6.652 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.378e-05/0.8041, allocations: 16.91 kB / 1.233 GB, free: 6.633 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 4.06e-05/0.8042, allocations: 8 kB / 1.233 GB, free: 6.625 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.526e-05/0.8042, allocations: 34.5 kB / 1.233 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.8042, allocations: 0 / 1.233 GB, free: 6.582 MB / 0.9512 GB Notification: Performance of matching and sorting (n=1): time 0.0002005/0.8045, allocations: 73.56 kB / 1.233 GB, free: 6.504 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.587e-05/0.8045, allocations: 59.47 kB / 1.233 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002445/0.8048, allocations: 212.3 kB / 1.234 GB, free: 6.215 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.8048, allocations: 29.69 kB / 1.234 GB, free: 6.18 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 7.864e-05/0.8049, allocations: 104.1 kB / 1.234 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 1.02e-05/0.8049, allocations: 0 / 1.234 GB, free: 6.074 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.323e-05/0.8049, allocations: 29.7 kB / 1.234 GB, free: 6.039 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001474/0.8051, allocations: 326.8 kB / 1.234 GB, free: 5.711 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.089e-05/0.8052, allocations: 55.97 kB / 1.234 GB, free: 5.656 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.221e-05/0.8052, allocations: 59.92 kB / 1.234 GB, free: 5.598 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.8054, allocations: 89.8 kB / 1.234 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.8054, allocations: 0 / 1.234 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002018/0.8056, allocations: 159.7 kB / 1.234 GB, free: 5.348 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.653e-05/0.8056, allocations: 11.94 kB / 1.234 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.8056, allocations: 0 / 1.234 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.8056, allocations: 0 / 1.234 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.116e-05/0.8057, allocations: 0 / 1.234 GB, free: 5.336 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.135e-06/0.8057, allocations: 7.984 kB / 1.234 GB, free: 5.328 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.925e-05/0.8057, allocations: 19.78 kB / 1.234 GB, free: 5.309 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.087e-06/0.8057, allocations: 8.047 kB / 1.234 GB, free: 5.301 MB / 0.9512 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.0001343/0.8059, allocations: 133.8 kB / 1.235 GB, free: 5.16 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.776e-05/0.8059, allocations: 11.89 kB / 1.235 GB, free: 5.148 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.806, allocations: 62.23 kB / 1.235 GB, free: 5.078 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.806, allocations: 3.938 kB / 1.235 GB, free: 5.074 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.806, allocations: 3.938 kB / 1.235 GB, free: 5.07 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.806, allocations: 4 kB / 1.235 GB, free: 5.066 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001461/0.8062, allocations: 173.7 kB / 1.235 GB, free: 4.848 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.8062, allocations: 4 kB / 1.235 GB, free: 4.844 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.093e-06/0.8062, allocations: 7.984 kB / 1.235 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.8062, allocations: 3.938 kB / 1.235 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.15e-06/0.8062, allocations: 0 / 1.235 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.8062, allocations: 0 / 1.235 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.8062, allocations: 0 / 1.235 GB, free: 4.832 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.504e-05/0.8063, allocations: 85.03 kB / 1.235 GB, free: 4.73 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 6.101e-05/0.8064, allocations: 96.98 kB / 1.235 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.19e-05/0.8064, allocations: 0 / 1.235 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.339e-05/0.8064, allocations: 0 / 1.235 GB, free: 4.617 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.64e-05/0.8065, allocations: 3.984 kB / 1.235 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.8065, allocations: 0 / 1.235 GB, free: 4.613 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 0.0001315/0.8066, allocations: 152.9 kB / 1.235 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.964e-06/0.8066, allocations: 0 / 1.235 GB, free: 4.465 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0003233/0.8069, allocations: 87.73 kB / 1.235 GB, free: 4.379 MB / 0.9512 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005327/0.8075, allocations: 243.2 kB / 1.235 GB, free: 4.152 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001979/0.8077, allocations: 129.7 kB / 1.236 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.8077, allocations: 0 / 1.236 GB, free: 4.02 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 1.835e-05/0.8077, allocations: 12 kB / 1.236 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001405/0.8079, allocations: 0 / 1.236 GB, free: 4.008 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003426/0.8082, allocations: 214 kB / 1.236 GB, free: 3.77 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003574/0.8086, allocations: 0.7078 MB / 1.236 GB, free: 3.035 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 2.171e-05/0.8086, allocations: 7.984 kB / 1.236 GB, free: 3.027 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.418e-05/0.8086, allocations: 7.438 kB / 1.236 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of SimCode: time 4.11e-07/0.8086, allocations: 0 / 1.236 GB, free: 3.023 MB / 0.9512 GB Notification: Performance of Templates: time 0.005651/0.8143, allocations: 2.115 MB / 1.239 GB, free: 0.9062 MB / 0.9512 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 -s gbode -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