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.001705/0.001705, allocations: 101.6 kB / 16.27 MB, free: 5.961 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.001847/0.001847, allocations: 190 kB / 17.2 MB, free: 5.59 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.482/1.482, allocations: 222.9 MB / 240.9 MB, free: 15.21 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.596/2.596, allocations: 437.1 MB / 0.7111 GB, free: 4.453 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001905/0.001905, allocations: 64.16 kB / 0.8699 GB, free: 2.176 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.294/0.2959, allocations: 151.6 MB / 1.018 GB, free: 10.63 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001816/0.2978, allocations: 0.5252 MB / 1.018 GB, free: 10.11 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.002356/0.3002, allocations: 1.608 MB / 1.02 GB, free: 8.484 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.068e-05/0.3002, allocations: 4 kB / 1.02 GB, free: 8.48 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.3004, allocations: 63.84 kB / 1.02 GB, free: 8.418 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.262e-05/0.3005, allocations: 35.88 kB / 1.02 GB, free: 8.383 MB / 0.795 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.000873/0.3014, allocations: 235.8 kB / 1.02 GB, free: 8.152 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.788e-05/0.3015, allocations: 47.83 kB / 1.02 GB, free: 8.105 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.3015, allocations: 4 kB / 1.02 GB, free: 8.102 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.632e-05/0.3016, allocations: 23.91 kB / 1.02 GB, free: 8.078 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.339e-05/0.3016, allocations: 39.89 kB / 1.02 GB, free: 8.039 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.3016, allocations: 0 / 1.02 GB, free: 8.039 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004736/0.3021, allocations: 287.6 kB / 1.021 GB, free: 7.758 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 5.33e-05/0.3022, allocations: 19.92 kB / 1.021 GB, free: 7.738 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.525e-05/0.3022, allocations: 31.69 kB / 1.021 GB, free: 7.707 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0004015/0.3026, allocations: 291.3 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3026, allocations: 0 / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3027, allocations: 4 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of Transformations before backend: time 4.708e-06/0.3027, allocations: 0 / 1.021 GB, free: 7.418 MB / 0.795 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.0004859/0.3032, allocations: 427.3 kB / 1.021 GB, free: 6.953 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.367e-05/0.3032, allocations: 11.97 kB / 1.022 GB, free: 6.941 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.888e-05/0.3032, allocations: 12.75 kB / 1.022 GB, free: 6.93 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.3034, allocations: 185.4 kB / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.33e-06/0.3034, allocations: 384 / 1.022 GB, free: 6.711 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.567e-05/0.3035, allocations: 4.375 kB / 1.022 GB, free: 6.707 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.679e-05/0.3036, allocations: 45.94 kB / 1.022 GB, free: 6.656 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.3036, allocations: 4 kB / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.3036, allocations: 0 / 1.022 GB, free: 6.652 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.3036, allocations: 4 kB / 1.022 GB, free: 6.648 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.947e-05/0.3036, allocations: 15.98 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002045/0.3039, allocations: 185.6 kB / 1.022 GB, free: 6.402 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 5.016e-05/0.3039, allocations: 22.58 kB / 1.022 GB, free: 6.371 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.533e-05/0.3039, allocations: 20.84 kB / 1.022 GB, free: 6.348 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 3.373e-05/0.304, allocations: 11.98 kB / 1.022 GB, free: 6.336 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.581e-05/0.304, allocations: 38.5 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of pre-optimization done (n=1): time 8.92e-07/0.304, allocations: 3.938 kB / 1.022 GB, free: 6.285 MB / 0.795 GB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.3042, allocations: 73.48 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.787e-05/0.3042, allocations: 51.41 kB / 1.022 GB, free: 6.145 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002037/0.3044, allocations: 211.4 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.3045, allocations: 29.7 kB / 1.022 GB, free: 5.895 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 6.554e-05/0.3045, allocations: 104.2 kB / 1.022 GB, free: 5.789 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 9.147e-06/0.3045, allocations: 4 kB / 1.022 GB, free: 5.785 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.3046, allocations: 29.7 kB / 1.023 GB, free: 5.75 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001373/0.3047, allocations: 322.8 kB / 1.023 GB, free: 5.426 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.132e-05/0.3048, allocations: 63.91 kB / 1.023 GB, free: 5.363 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.774e-05/0.3049, allocations: 51.98 kB / 1.023 GB, free: 5.312 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001062/0.305, allocations: 92.77 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.305, allocations: 0 / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001905/0.3052, allocations: 157.5 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.658e-05/0.3052, allocations: 16 kB / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.3053, allocations: 0 / 1.023 GB, free: 5.043 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.3053, allocations: 3.938 kB / 1.023 GB, free: 5.039 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.547e-05/0.3053, allocations: 3.984 kB / 1.023 GB, free: 5.035 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.3053, allocations: 3.984 kB / 1.023 GB, free: 5.031 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.936e-05/0.3053, allocations: 15.78 kB / 1.023 GB, free: 5.016 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.526e-06/0.3053, allocations: 4 kB / 1.023 GB, free: 5.012 MB / 0.795 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.0001427/0.3055, allocations: 135.7 kB / 1.023 GB, free: 4.871 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.386e-05/0.3055, allocations: 11.84 kB / 1.023 GB, free: 4.859 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001166/0.3056, allocations: 66.23 kB / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.3057, allocations: 0 / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.3057, allocations: 0 / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.3057, allocations: 0 / 1.023 GB, free: 4.789 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001465/0.3058, allocations: 181.7 kB / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.3058, allocations: 0 / 1.024 GB, free: 4.562 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.212e-06/0.3058, allocations: 3.984 kB / 1.024 GB, free: 4.559 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.3058, allocations: 7.938 kB / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.3059, allocations: 0 / 1.024 GB, free: 4.551 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3059, allocations: 4.031 kB / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.3059, allocations: 0 / 1.024 GB, free: 4.547 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.354e-05/0.306, allocations: 88.88 kB / 1.024 GB, free: 4.441 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 5.657e-05/0.306, allocations: 84.95 kB / 1.024 GB, free: 4.34 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.186e-05/0.306, allocations: 4 kB / 1.024 GB, free: 4.336 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.269e-05/0.3061, allocations: 0 / 1.024 GB, free: 4.336 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.606e-05/0.3061, allocations: 3.984 kB / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.3061, allocations: 0 / 1.024 GB, free: 4.332 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.0001197/0.3062, allocations: 148.5 kB / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3062, allocations: 0 / 1.024 GB, free: 4.188 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0003451/0.3066, allocations: 87.98 kB / 1.024 GB, free: 4.102 MB / 0.795 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.0005044/0.3071, allocations: 232.9 kB / 1.024 GB, free: 3.891 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001983/0.3073, allocations: 125.7 kB / 1.024 GB, free: 3.762 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.3073, allocations: 7.938 kB / 1.024 GB, free: 3.754 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 1.873e-05/0.3073, allocations: 16 kB / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001358/0.3075, allocations: 0 / 1.024 GB, free: 3.738 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003463/0.3078, allocations: 251.7 kB / 1.025 GB, free: 3.461 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003316/0.3082, allocations: 0.708 MB / 1.025 GB, free: 2.727 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.496e-05/0.3082, allocations: 7.438 kB / 1.025 GB, free: 2.719 MB / 0.795 GB Notification: Performance of SimCode: time 2.1e-07/0.3082, allocations: 0 / 1.025 GB, free: 2.719 MB / 0.795 GB Notification: Performance of Templates: time 0.004542/0.3127, allocations: 2.368 MB / 1.028 GB, free: 356 kB / 0.795 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=400 -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