Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001072/0.001072, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00142/0.002493, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001044/0.001044, allocations: 165.2 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00129/0.002334, allocations: 459.6 kB / 11.71 MB, free: 2.457 MB / 13.93 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 0.8987/0.8987, allocations: 177.2 MB / 189.6 MB, free: 5.32 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07783/0.9766, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.x/package.mo): time 1.829/1.829, allocations: 378.2 MB / 0.6076 GB, free: 7.855 MB / 0.5886 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.4515/2.281, allocations: 123.3 MB / 0.728 GB, free: 5.844 MB / 0.698 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.3-maint.12.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_12_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_12_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.603e-06/1.603e-06, allocations: 0.5469 kB / 0.7293 GB, free: 4.586 MB / 0.698 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.015e-05/2.175e-05, allocations: 2.312 kB / 0.7293 GB, free: 4.582 MB / 0.698 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001636/0.001657, allocations: 0.5627 MB / 0.7298 GB, free: 4.039 MB / 0.698 GB Notification: Performance of NFInst.instExpressions: time 0.002248/0.003906, allocations: 1.675 MB / 0.7315 GB, free: 2.359 MB / 0.698 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.724e-05/0.003943, allocations: 2.125 kB / 0.7315 GB, free: 2.359 MB / 0.698 GB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.004096, allocations: 67.83 kB / 0.7316 GB, free: 2.293 MB / 0.698 GB Notification: Performance of NFTyping.typeBindings: time 4.534e-05/0.004141, allocations: 43.03 kB / 0.7316 GB, free: 2.254 MB / 0.698 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0008478/0.004989, allocations: 247.7 kB / 0.7318 GB, free: 2.016 MB / 0.698 GB Notification: Performance of NFFlatten.flatten: time 9.517e-05/0.005084, allocations: 31.89 kB / 0.7319 GB, free: 1.988 MB / 0.698 GB Notification: Performance of NFFlatten.resolveConnections: time 4.063e-05/0.005125, allocations: 9.031 kB / 0.7319 GB, free: 1.98 MB / 0.698 GB Notification: Performance of NFEvalConstants.evaluate: time 7.296e-05/0.005198, allocations: 33.39 kB / 0.7319 GB, free: 1.949 MB / 0.698 GB Notification: Performance of NFSimplifyModel.simplify: time 6.878e-05/0.005267, allocations: 37.25 kB / 0.7319 GB, free: 1.914 MB / 0.698 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.00528, allocations: 1.453 kB / 0.7319 GB, free: 1.914 MB / 0.698 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007947/0.006075, allocations: 462.3 kB / 0.7324 GB, free: 1.465 MB / 0.698 GB Notification: Performance of NFScalarize.scalarize: time 5.984e-05/0.006135, allocations: 28.36 kB / 0.7324 GB, free: 1.441 MB / 0.698 GB Notification: Performance of NFVerifyModel.verify: time 2.053e-05/0.006155, allocations: 11.77 kB / 0.7324 GB, free: 1.434 MB / 0.698 GB Notification: Performance of NFConvertDAE.convert: time 0.0004393/0.006594, allocations: 287.3 kB / 0.7327 GB, free: 1.152 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 1.35e-05/0.006608, allocations: 0.8125 kB / 0.7327 GB, free: 1.152 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.212e-06/0.006609, allocations: 0 / 0.7327 GB, free: 1.152 MB / 0.698 GB Notification: Performance of Transformations before backend: time 1.721e-05/0.006626, allocations: 8.375 kB / 0.7327 GB, free: 1.145 MB / 0.698 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.0004662/0.007093, allocations: 376.3 kB / 0.7331 GB, free: 0.7539 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.449e-05/0.007127, allocations: 8.031 kB / 0.7331 GB, free: 0.7461 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.588e-05/0.007163, allocations: 9.453 kB / 0.7331 GB, free: 0.7383 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.007311, allocations: 127.2 kB / 0.7332 GB, free: 0.5898 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.184e-05/0.007323, allocations: 5.625 kB / 0.7332 GB, free: 0.5859 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.445e-06/0.007332, allocations: 4.359 kB / 0.7332 GB, free: 0.582 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.468e-05/0.007406, allocations: 33.08 kB / 0.7332 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.412e-06/0.007413, allocations: 1.062 kB / 0.7332 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.202e-06/0.007419, allocations: 384 / 0.7332 GB, free: 0.543 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.007426, allocations: 8.562 kB / 0.7332 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.326e-05/0.007439, allocations: 0 / 0.7332 GB, free: 0.5352 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001047/0.007544, allocations: 79.28 kB / 0.7333 GB, free: 452 kB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 3.666e-05/0.007581, allocations: 20.27 kB / 0.7333 GB, free: 424 kB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.416e-05/0.007595, allocations: 8.953 kB / 0.7334 GB, free: 412 kB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 4.843e-05/0.007643, allocations: 7.984 kB / 0.7334 GB, free: 404 kB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.15e-05/0.007675, allocations: 38.56 kB / 0.7334 GB, free: 356 kB / 0.698 GB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.007676, allocations: 0 / 0.7334 GB, free: 356 kB / 0.698 GB Notification: Performance of matching and sorting (n=1): time 0.0001008/0.007776, allocations: 39.23 kB / 0.7334 GB, free: 312 kB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.609e-05/0.007862, allocations: 51.41 kB / 0.7335 GB, free: 248 kB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.008069, allocations: 187.4 kB / 0.7337 GB, free: 48 kB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.937e-05/0.008088, allocations: 30.23 kB / 0.7337 GB, free: 12 kB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/0.008167, allocations: 100.1 kB / 0.7338 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.008182, allocations: 5.078 kB / 0.7338 GB, free: 15.91 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.008239, allocations: 29.67 kB / 0.7338 GB, free: 15.87 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001169/0.008356, allocations: 326.8 kB / 0.7341 GB, free: 15.54 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.019e-05/0.008396, allocations: 15.55 kB / 0.7341 GB, free: 15.53 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.147e-05/0.008417, allocations: 8.531 kB / 0.7342 GB, free: 15.52 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.813e-05/0.008485, allocations: 42.16 kB / 0.7342 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.008489, allocations: 0.9375 kB / 0.7342 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001309/0.00862, allocations: 73.56 kB / 0.7343 GB, free: 15.4 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.008639, allocations: 12.42 kB / 0.7343 GB, free: 15.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.00866, allocations: 4.875 kB / 0.7343 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.008672, allocations: 0 / 0.7343 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.92e-05/0.008691, allocations: 0 / 0.7343 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.116e-06/0.008694, allocations: 5.547 kB / 0.7343 GB, free: 15.38 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.395e-05/0.008718, allocations: 11.89 kB / 0.7343 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-06/0.008725, allocations: 0 / 0.7343 GB, free: 15.37 MB / 0.7136 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 7.458e-05/0.0088, allocations: 113.2 kB / 0.7344 GB, free: 15.25 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.316e-06/0.008808, allocations: 8.984 kB / 0.7344 GB, free: 15.24 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.942e-05/0.008888, allocations: 42.19 kB / 0.7345 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.00889, allocations: 1.188 kB / 0.7345 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.008891, allocations: 0 / 0.7345 GB, free: 15.19 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.008894, allocations: 4 kB / 0.7345 GB, free: 15.18 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.745e-05/0.008961, allocations: 86.31 kB / 0.7345 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.008962, allocations: 0 / 0.7345 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.108e-06/0.008966, allocations: 1.156 kB / 0.7345 GB, free: 15.08 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 1.242e-05/0.008979, allocations: 15.89 kB / 0.7346 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.32e-07/0.008979, allocations: 0 / 0.7346 GB, free: 15.07 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.366e-06/0.008983, allocations: 4.906 kB / 0.7346 GB, free: 15.06 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-07/0.008983, allocations: 0 / 0.7346 GB, free: 15.06 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.008984, allocations: 1.25 kB / 0.7346 GB, free: 15.06 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.549e-05/0.00903, allocations: 66.72 kB / 0.7346 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.334e-06/0.009037, allocations: 0 / 0.7346 GB, free: 14.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.12e-05/0.009048, allocations: 5.031 kB / 0.7346 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.558e-06/0.009058, allocations: 3.984 kB / 0.7346 GB, free: 14.97 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.234e-06/0.00906, allocations: 4 kB / 0.7346 GB, free: 14.96 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.217e-05/0.009092, allocations: 41.38 kB / 0.7347 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5e-08/0.009092, allocations: 1.75 kB / 0.7347 GB, free: 14.92 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0002468/0.009339, allocations: 87.8 kB / 0.7348 GB, free: 14.84 MB / 0.7136 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.0004378/0.009777, allocations: 272.5 kB / 0.735 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001012/0.009878, allocations: 74.45 kB / 0.7351 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 3.858e-06/0.009882, allocations: 2.75 kB / 0.7351 GB, free: 14.52 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 6.993e-06/0.009889, allocations: 12.86 kB / 0.7351 GB, free: 14.51 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.996e-05/0.009959, allocations: 11.94 kB / 0.7351 GB, free: 14.5 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002139/0.01017, allocations: 190.8 kB / 0.7353 GB, free: 14.28 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.992e-05/0.0102, allocations: 67.33 kB / 0.7354 GB, free: 14.2 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 1.883e-05/0.01022, allocations: 6.562 kB / 0.7354 GB, free: 14.19 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.651e-05/0.01025, allocations: 47.38 kB / 0.7354 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of SimCode: time 4.41e-07/0.01025, allocations: 4 kB / 0.7354 GB, free: 14.14 MB / 0.7136 GB Notification: Performance of Templates: time 0.004063/0.01431, allocations: 2.612 MB / 0.738 GB, free: 11.68 MB / 0.7136 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d/Buildings_12_Buildings.Utilities.Clustering.Validation.KMeans_2d.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 4.6692423187196255]