Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001536/0.001543, allocations: 105.8 kB / 15.99 MB, free: 6.348 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.001567/0.001567, allocations: 190.5 kB / 16.91 MB, free: 6.188 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.458/1.458, allocations: 222.9 MB / 240.6 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.794/2.794, allocations: 469.8 MB / 0.7427 GB, free: 7.527 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001952/0.001952, allocations: 72.31 kB / 0.9087 GB, free: 34.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2912, allocations: 159.1 MB / 1.064 GB, free: 14.59 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001787/0.293, allocations: 0.5715 MB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002379/0.2954, allocations: 1.612 MB / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.172e-05/0.2955, allocations: 0 / 1.066 GB, free: 12.39 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.000197/0.2957, allocations: 55.86 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.134e-05/0.2957, allocations: 31.94 kB / 1.066 GB, free: 12.3 MB / 0.8262 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.1.0-maint.11.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.0009152/0.2967, allocations: 224.5 kB / 1.067 GB, free: 12.09 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.569e-05/0.2968, allocations: 43.83 kB / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.147e-05/0.2968, allocations: 0 / 1.067 GB, free: 12.04 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.059e-05/0.2968, allocations: 19.97 kB / 1.067 GB, free: 12.02 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.929e-05/0.2969, allocations: 43.89 kB / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.2969, allocations: 0 / 1.067 GB, free: 11.98 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004967/0.2974, allocations: 283.5 kB / 1.067 GB, free: 11.7 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 6.311e-05/0.2975, allocations: 27.92 kB / 1.067 GB, free: 11.68 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.61e-05/0.2976, allocations: 27.75 kB / 1.067 GB, free: 11.65 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003373/0.2979, allocations: 211.6 kB / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2979, allocations: 0 / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.673e-06/0.2979, allocations: 0 / 1.067 GB, free: 11.44 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 9.698e-06/0.2979, allocations: 0 / 1.067 GB, free: 11.44 MB / 0.8262 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.0005075/0.2985, allocations: 431.3 kB / 1.068 GB, free: 10.97 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.58e-05/0.2985, allocations: 8.031 kB / 1.068 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.2985, allocations: 12.75 kB / 1.068 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001858/0.2987, allocations: 200 kB / 1.068 GB, free: 10.72 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.374e-06/0.2987, allocations: 4.375 kB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.2988, allocations: 384 / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.768e-05/0.2989, allocations: 46 kB / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.296e-06/0.2989, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.524e-06/0.2989, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.717e-06/0.2989, allocations: 0 / 1.068 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.146e-05/0.2989, allocations: 19.94 kB / 1.068 GB, free: 10.64 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002002/0.2991, allocations: 185.7 kB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.377e-05/0.2992, allocations: 22.58 kB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.847e-05/0.2992, allocations: 20.91 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.864e-05/0.2993, allocations: 4 kB / 1.068 GB, free: 10.36 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.058e-05/0.2993, allocations: 42.5 kB / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.2993, allocations: 0 / 1.068 GB, free: 10.3 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.000168/0.2995, allocations: 73.42 kB / 1.068 GB, free: 10.23 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.579e-05/0.2995, allocations: 51.41 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002147/0.2998, allocations: 211.1 kB / 1.068 GB, free: 9.949 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.2998, allocations: 25.83 kB / 1.068 GB, free: 9.918 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.651e-05/0.2999, allocations: 112 kB / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.008e-05/0.2999, allocations: 0 / 1.069 GB, free: 9.805 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.689e-05/0.2999, allocations: 29.7 kB / 1.069 GB, free: 9.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001563/0.3001, allocations: 326.8 kB / 1.069 GB, free: 9.441 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.197e-05/0.3002, allocations: 55.97 kB / 1.069 GB, free: 9.387 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.011e-05/0.3002, allocations: 53.67 kB / 1.069 GB, free: 9.336 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001126/0.3003, allocations: 92.77 kB / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3004, allocations: 0 / 1.069 GB, free: 9.242 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001877/0.3006, allocations: 171.3 kB / 1.069 GB, free: 9.07 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.3006, allocations: 7.938 kB / 1.069 GB, free: 9.062 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.46e-05/0.3006, allocations: 4 kB / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.3006, allocations: 0 / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.134e-05/0.3006, allocations: 0 / 1.069 GB, free: 9.059 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3006, allocations: 3.984 kB / 1.069 GB, free: 9.055 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.185e-05/0.3007, allocations: 19.77 kB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.3007, allocations: 0 / 1.069 GB, free: 9.035 MB / 0.8262 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.0001609/0.3009, allocations: 133.9 kB / 1.069 GB, free: 8.895 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.884e-05/0.3009, allocations: 15.83 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.301, allocations: 70.17 kB / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.301, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.547e-06/0.301, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.301, allocations: 0 / 1.07 GB, free: 8.809 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000151/0.3012, allocations: 181.6 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3012, allocations: 0 / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-06/0.3012, allocations: 0 / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.3012, allocations: 3.938 kB / 1.07 GB, free: 8.578 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.3012, allocations: 12.02 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3012, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.3012, allocations: 0 / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.861e-05/0.3013, allocations: 81.03 kB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.992e-05/0.3014, allocations: 84.95 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.671e-05/0.3014, allocations: 8 kB / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.321e-05/0.3014, allocations: 0 / 1.07 GB, free: 8.359 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.522e-05/0.3015, allocations: 4.031 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.62e-06/0.3015, allocations: 3.984 kB / 1.07 GB, free: 8.352 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001384/0.3016, allocations: 156.2 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.4e-07/0.3016, allocations: 0 / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003455/0.302, allocations: 83.98 kB / 1.07 GB, free: 8.117 MB / 0.8262 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.0005344/0.3025, allocations: 231 kB / 1.07 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001995/0.3027, allocations: 129.7 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.3027, allocations: 0 / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.936e-05/0.3028, allocations: 12 kB / 1.07 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001422/0.3029, allocations: 7.938 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003642/0.3033, allocations: 257.8 kB / 1.071 GB, free: 7.469 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003363/0.3036, allocations: 0.7041 MB / 1.071 GB, free: 6.738 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.551e-05/0.3036, allocations: 7.438 kB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of SimCode: time 3.61e-07/0.3036, allocations: 4 kB / 1.071 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of Templates: time 0.004862/0.3085, allocations: 2.372 MB / 1.074 GB, free: 4.352 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches