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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001759/0.001759, allocations: 99.64 kB / 18.95 MB, free: 2.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001867/0.001867, allocations: 210.5 kB / 22.24 MB, free: 5.262 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.51/1.51, allocations: 230.6 MB / 256 MB, free: 7.785 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.847/2.847, allocations: 475.9 MB / 0.7699 GB, free: 4.766 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,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=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002147/0.002147, allocations: 68.8 kB / 1.117 GB, free: 41 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2837/0.2859, allocations: 170 MB / 1.283 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.00164/0.2875, allocations: 0.5287 MB / 1.284 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002421/0.2899, allocations: 1.593 MB / 1.285 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.192e-05/0.29, allocations: 0 / 1.285 GB, free: 9.82 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0001793/0.2901, allocations: 59.84 kB / 1.285 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 4.23e-05/0.2902, allocations: 31.95 kB / 1.285 GB, free: 9.73 MB / 0.9825 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.1-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.0008944/0.2911, allocations: 263.2 kB / 1.285 GB, free: 9.473 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.148e-05/0.2912, allocations: 35.91 kB / 1.285 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.326e-05/0.2912, allocations: 3.938 kB / 1.285 GB, free: 9.434 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.52e-05/0.2912, allocations: 27.89 kB / 1.285 GB, free: 9.406 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 6.945e-05/0.2913, allocations: 43.89 kB / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.264e-05/0.2913, allocations: 0 / 1.286 GB, free: 9.363 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007154/0.292, allocations: 431.2 kB / 1.286 GB, free: 8.941 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.2921, allocations: 27.92 kB / 1.286 GB, free: 8.914 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.532e-05/0.2921, allocations: 15.81 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004239/0.2925, allocations: 307 kB / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2925, allocations: 0 / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.543e-06/0.2925, allocations: 0 / 1.286 GB, free: 8.598 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 4.499e-06/0.2925, allocations: 4 kB / 1.286 GB, free: 8.594 MB / 0.9825 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.0004718/0.293, allocations: 357.3 kB / 1.287 GB, free: 8.215 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.455e-05/0.2931, allocations: 12.03 kB / 1.287 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.794e-05/0.2931, allocations: 8.891 kB / 1.287 GB, free: 8.195 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000171/0.2933, allocations: 134.3 kB / 1.287 GB, free: 8.039 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.932e-05/0.2933, allocations: 8.375 kB / 1.287 GB, free: 8.031 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.2933, allocations: 4.375 kB / 1.287 GB, free: 8.027 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.878e-05/0.2934, allocations: 41.77 kB / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.398e-06/0.2934, allocations: 0 / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.2934, allocations: 0 / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.2934, allocations: 0 / 1.287 GB, free: 7.98 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.261e-05/0.2934, allocations: 19.98 kB / 1.287 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001729/0.2936, allocations: 141.3 kB / 1.287 GB, free: 7.793 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 5.034e-05/0.2937, allocations: 26.56 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.344e-05/0.2937, allocations: 16.92 kB / 1.287 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.2937, allocations: 4 kB / 1.287 GB, free: 7.734 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.2938, allocations: 42.48 kB / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.2938, allocations: 0 / 1.287 GB, free: 7.684 MB / 0.9825 GB Notification: Performance of matching and sorting (n=1): time 0.0001538/0.2939, allocations: 73.53 kB / 1.287 GB, free: 7.605 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.294, allocations: 51.41 kB / 1.287 GB, free: 7.543 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002206/0.2942, allocations: 216.7 kB / 1.287 GB, free: 7.324 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.2942, allocations: 25.7 kB / 1.287 GB, free: 7.293 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.2943, allocations: 108.1 kB / 1.287 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 8.566e-06/0.2943, allocations: 0 / 1.287 GB, free: 7.184 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.231e-05/0.2943, allocations: 33.83 kB / 1.288 GB, free: 7.145 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001433/0.2945, allocations: 326.8 kB / 1.288 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.858e-05/0.2945, allocations: 51.98 kB / 1.288 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.012e-05/0.2946, allocations: 59.91 kB / 1.288 GB, free: 6.707 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.2947, allocations: 88.78 kB / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.2947, allocations: 0 / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001892/0.2949, allocations: 168.3 kB / 1.288 GB, free: 6.449 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2949, allocations: 7.938 kB / 1.288 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.2949, allocations: 7.922 kB / 1.288 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.346e-05/0.2949, allocations: 4 kB / 1.288 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.13e-05/0.2949, allocations: 64 / 1.288 GB, free: 6.43 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.288e-06/0.2949, allocations: 4 kB / 1.288 GB, free: 6.426 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.732e-05/0.295, allocations: 7.891 kB / 1.288 GB, free: 6.418 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.295, allocations: 4 kB / 1.288 GB, free: 6.414 MB / 0.9825 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.0001393/0.2951, allocations: 129.8 kB / 1.288 GB, free: 6.277 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.127e-05/0.2951, allocations: 23.77 kB / 1.288 GB, free: 6.254 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001122/0.2952, allocations: 62.19 kB / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.413e-06/0.2952, allocations: 0 / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.2953, allocations: 0 / 1.288 GB, free: 6.188 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.763e-06/0.2953, allocations: 4.031 kB / 1.288 GB, free: 6.184 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001095/0.2954, allocations: 129.3 kB / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.2954, allocations: 0 / 1.289 GB, free: 6.027 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.584e-06/0.2954, allocations: 3.984 kB / 1.289 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.392e-06/0.2954, allocations: 0 / 1.289 GB, free: 6.023 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.813e-06/0.2954, allocations: 3.938 kB / 1.289 GB, free: 6.02 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.2954, allocations: 4 kB / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2954, allocations: 0 / 1.289 GB, free: 6.016 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.682e-05/0.2955, allocations: 85.02 kB / 1.289 GB, free: 5.914 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 1.814e-05/0.2955, allocations: 11.91 kB / 1.289 GB, free: 5.902 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.488e-05/0.2955, allocations: 7.938 kB / 1.289 GB, free: 5.895 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.2955, allocations: 4.031 kB / 1.289 GB, free: 5.891 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.096e-05/0.2955, allocations: 3.984 kB / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.2955, allocations: 0 / 1.289 GB, free: 5.887 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001236/0.2957, allocations: 148.3 kB / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2957, allocations: 0 / 1.289 GB, free: 5.742 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003114/0.296, allocations: 87.8 kB / 1.289 GB, free: 5.656 MB / 0.9825 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.000516/0.2965, allocations: 245.8 kB / 1.289 GB, free: 5.43 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.00018/0.2967, allocations: 113.7 kB / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2967, allocations: 0 / 1.289 GB, free: 5.312 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.804e-05/0.2967, allocations: 11.94 kB / 1.289 GB, free: 5.301 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001467/0.2968, allocations: 11.94 kB / 1.289 GB, free: 5.289 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003205/0.2972, allocations: 209.7 kB / 1.289 GB, free: 5.059 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.535e-05/0.2972, allocations: 88.19 kB / 1.29 GB, free: 4.953 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 1.738e-05/0.2973, allocations: 8.109 kB / 1.29 GB, free: 4.945 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.046e-05/0.2973, allocations: 11.44 kB / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of SimCode: time 3.3e-07/0.2973, allocations: 0 / 1.29 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of Templates: time 0.005291/0.3026, allocations: 2.148 MB / 1.292 GB, free: 2.789 MB / 0.9825 GB " [Timeout remaining time 299] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (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) [Timeout 400] 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.758946096524596]