Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_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_10_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.007647/0.007647, allocations: 98.27 kB / 15.73 MB, free: 5.98 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.001641/0.001642, allocations: 193.6 kB / 16.67 MB, free: 5.91 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.449/1.449, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.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.604/2.604, allocations: 437 MB / 0.7105 GB, free: 4.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001158/0.001158, allocations: 63.89 kB / 1.018 GB, free: 14.58 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2995/0.3007, allocations: 151.6 MB / 1.167 GB, free: 6.84 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001599/0.3023, allocations: 0.5204 MB / 1.167 GB, free: 6.316 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.002082/0.3044, allocations: 1.606 MB / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.1e-05/0.3044, allocations: 0 / 1.169 GB, free: 4.691 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.0001357/0.3046, allocations: 19.91 kB / 1.169 GB, free: 4.672 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 2.448e-05/0.3046, allocations: 15.92 kB / 1.169 GB, free: 4.656 MB / 0.92 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.0008119/0.3054, allocations: 239.3 kB / 1.169 GB, free: 4.422 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.879e-05/0.3055, allocations: 27.91 kB / 1.169 GB, free: 4.395 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.457e-05/0.3056, allocations: 3.938 kB / 1.169 GB, free: 4.391 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.048e-05/0.3056, allocations: 15.92 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.475e-05/0.3057, allocations: 23.91 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.3057, allocations: 0 / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005311/0.3062, allocations: 335.5 kB / 1.169 GB, free: 4.023 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 4.563e-05/0.3063, allocations: 15.98 kB / 1.169 GB, free: 4.008 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.714e-05/0.3063, allocations: 19.8 kB / 1.169 GB, free: 3.988 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.000374/0.3067, allocations: 279.2 kB / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3067, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.633e-06/0.3067, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.839e-06/0.3067, allocations: 0 / 1.17 GB, free: 3.715 MB / 0.92 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.0004115/0.3071, allocations: 414.6 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.304e-05/0.3072, allocations: 16.03 kB / 1.17 GB, free: 3.246 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.316e-05/0.3072, allocations: 4.891 kB / 1.17 GB, free: 3.242 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001482/0.3074, allocations: 181.9 kB / 1.17 GB, free: 3.027 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.3074, allocations: 4.312 kB / 1.17 GB, free: 3.023 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.337e-06/0.3074, allocations: 4.359 kB / 1.17 GB, free: 3.02 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.504e-05/0.3075, allocations: 42 kB / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.3075, allocations: 0 / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.3075, allocations: 0 / 1.17 GB, free: 2.973 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.237e-06/0.3075, allocations: 4 kB / 1.17 GB, free: 2.969 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.991e-05/0.3075, allocations: 23.98 kB / 1.17 GB, free: 2.945 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.3077, allocations: 165.7 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 4.139e-05/0.3078, allocations: 30.5 kB / 1.17 GB, free: 2.695 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.217e-05/0.3078, allocations: 12.92 kB / 1.17 GB, free: 2.68 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 3.104e-05/0.3078, allocations: 4 kB / 1.17 GB, free: 2.676 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.3079, allocations: 38.48 kB / 1.171 GB, free: 2.629 MB / 0.92 GB Notification: Performance of pre-optimization done (n=1): time 8.71e-07/0.3079, allocations: 0 / 1.171 GB, free: 2.629 MB / 0.92 GB Notification: Performance of matching and sorting (n=1): time 0.0001385/0.308, allocations: 65.64 kB / 1.171 GB, free: 2.559 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.342e-05/0.308, allocations: 51.41 kB / 1.171 GB, free: 2.496 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.3082, allocations: 171.6 kB / 1.171 GB, free: 2.316 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.233e-05/0.3082, allocations: 29.64 kB / 1.171 GB, free: 2.281 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 4.703e-05/0.3083, allocations: 96.12 kB / 1.171 GB, free: 2.184 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 1.936e-05/0.3083, allocations: 7.891 kB / 1.171 GB, free: 2.176 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-05/0.3084, allocations: 25.7 kB / 1.171 GB, free: 2.145 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001036/0.3085, allocations: 330.9 kB / 1.171 GB, free: 1.812 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.174e-05/0.3085, allocations: 35.98 kB / 1.171 GB, free: 1.777 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.093e-05/0.3086, allocations: 43.98 kB / 1.171 GB, free: 1.734 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.636e-05/0.3087, allocations: 64.83 kB / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3087, allocations: 0 / 1.171 GB, free: 1.668 MB / 0.92 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001362/0.3088, allocations: 121.6 kB / 1.172 GB, free: 1.543 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.3088, allocations: 7.938 kB / 1.172 GB, free: 1.535 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.3089, allocations: 7.938 kB / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.3089, allocations: 0 / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.213e-05/0.3089, allocations: 0 / 1.172 GB, free: 1.527 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.3089, allocations: 4.062 kB / 1.172 GB, free: 1.523 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.325e-05/0.3089, allocations: 19.83 kB / 1.172 GB, free: 1.504 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.309, allocations: 0 / 1.172 GB, free: 1.504 MB / 0.92 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.000116/0.3091, allocations: 121.8 kB / 1.172 GB, free: 1.375 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.251e-05/0.3091, allocations: 7.891 kB / 1.172 GB, free: 1.367 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.993e-05/0.3092, allocations: 61.55 kB / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.492e-06/0.3092, allocations: 0 / 1.172 GB, free: 1.297 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.577e-06/0.3092, allocations: 4.031 kB / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.994e-06/0.3092, allocations: 0 / 1.172 GB, free: 1.293 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001084/0.3093, allocations: 173.7 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.3094, allocations: 0 / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-06/0.3094, allocations: 0 / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.486e-06/0.3094, allocations: 3.938 kB / 1.172 GB, free: 1.07 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.553e-06/0.3094, allocations: 4 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3094, allocations: 0 / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3094, allocations: 0 / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.265e-05/0.3095, allocations: 81.02 kB / 1.172 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 3.725e-05/0.3095, allocations: 89 kB / 1.172 GB, free: 0.8633 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.3095, allocations: 3.984 kB / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.171e-05/0.3096, allocations: 0 / 1.172 GB, free: 0.8594 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.236e-05/0.3096, allocations: 4 kB / 1.172 GB, free: 0.8555 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.3096, allocations: 4 kB / 1.172 GB, free: 0.8516 MB / 0.92 GB Notification: Performance of sorting global known variables: time 8.566e-05/0.3097, allocations: 121.2 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3097, allocations: 0 / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0003049/0.31, allocations: 87.8 kB / 1.172 GB, free: 0.6484 MB / 0.92 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.0004491/0.3105, allocations: 231.8 kB / 1.172 GB, free: 444 kB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000155/0.3106, allocations: 101.6 kB / 1.173 GB, free: 336 kB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3106, allocations: 4 kB / 1.173 GB, free: 332 kB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 1.502e-05/0.3107, allocations: 12.06 kB / 1.173 GB, free: 320 kB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001364/0.3108, allocations: 4 kB / 1.173 GB, free: 316 kB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002444/0.311, allocations: 169.2 kB / 1.173 GB, free: 120 kB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002493/0.3113, allocations: 0.6885 MB / 1.173 GB, free: 15.4 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 2.042e-05/0.3113, allocations: 7.984 kB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.477e-05/0.3113, allocations: 7.438 kB / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3114, allocations: 0 / 1.173 GB, free: 15.39 MB / 0.9356 GB Notification: Performance of Templates: time 0.004659/0.316, allocations: 2.091 MB / 1.175 GB, free: 13.3 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Clustering_Validation_KMeans_1d.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches