Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.001347/0.001347, allocations: 92.2 kB / 20.19 MB, free: 4.363 MB / 18.57 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.001446/0.001446, allocations: 169 kB / 23.49 MB, free: 1.066 MB / 18.57 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.944/0.944, allocations: 177.1 MB / 203.8 MB, free: 5.641 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.001497/0.001497, allocations: 240.2 kB / 260.5 MB, free: 12.89 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7537/0.7537, allocations: 138.4 MB / 455.4 MB, free: 1.543 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.804e-06/1.804e-06, allocations: 0 / 0.555 GB, free: 0.9375 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.509e-05/2.689e-05, allocations: 6.25 kB / 0.555 GB, free: 0.9297 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001969/0.001996, allocations: 0.5284 MB / 0.5555 GB, free: 408 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.004653, allocations: 1.645 MB / 0.5571 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.071e-05/0.004704, allocations: 3.938 kB / 0.5571 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002007/0.004905, allocations: 59.84 kB / 0.5572 GB, free: 14.67 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.988e-05/0.004945, allocations: 35.83 kB / 0.5572 GB, free: 14.64 MB / 490.7 MB [/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/BuildingSystems master/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.0009282/0.005873, allocations: 259.1 kB / 0.5575 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.919e-05/0.005962, allocations: 39.89 kB / 0.5575 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.006002, allocations: 0 / 0.5575 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.382e-05/0.006056, allocations: 27.91 kB / 0.5575 GB, free: 14.32 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.013e-05/0.006126, allocations: 43.94 kB / 0.5576 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.401e-05/0.00614, allocations: 0 / 0.5576 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007043/0.006844, allocations: 419.1 kB / 0.558 GB, free: 13.86 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.639e-05/0.00691, allocations: 35.86 kB / 0.558 GB, free: 13.83 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.699e-05/0.006937, allocations: 11.92 kB / 0.558 GB, free: 13.82 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004944/0.007432, allocations: 347 kB / 0.5583 GB, free: 13.48 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.007436, allocations: 7.984 kB / 0.5584 GB, free: 13.47 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.007437, allocations: 0 / 0.5584 GB, free: 13.47 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.007441, allocations: 0 / 0.5584 GB, free: 13.47 MB / 490.7 MB 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.0004586/0.0079, allocations: 467.6 kB / 0.5588 GB, free: 12.98 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.00794, allocations: 12.75 kB / 0.5588 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.652e-05/0.007987, allocations: 12.84 kB / 0.5588 GB, free: 12.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.008138, allocations: 124.5 kB / 0.5589 GB, free: 12.8 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.005e-05/0.008148, allocations: 384 / 0.5589 GB, free: 12.8 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.008157, allocations: 4.375 kB / 0.5589 GB, free: 12.8 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.04e-05/0.008237, allocations: 38.19 kB / 0.559 GB, free: 12.76 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.008246, allocations: 8.172 kB / 0.559 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.584e-06/0.008253, allocations: 384 / 0.559 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.008263, allocations: 3.938 kB / 0.559 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.008405, allocations: 4 kB / 0.559 GB, free: 12.74 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001798/0.008585, allocations: 156.5 kB / 0.5591 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.118e-05/0.008626, allocations: 23.06 kB / 0.5592 GB, free: 12.52 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.78e-05/0.008644, allocations: 11.75 kB / 0.5592 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.939e-05/0.008683, allocations: 7.984 kB / 0.5592 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.484e-05/0.008708, allocations: 37.33 kB / 0.5592 GB, free: 12.45 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.543e-06/0.00871, allocations: 0 / 0.5592 GB, free: 12.45 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001378/0.008848, allocations: 53.61 kB / 0.5593 GB, free: 12.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.008882, allocations: 55.34 kB / 0.5593 GB, free: 12.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.009079, allocations: 261.6 kB / 0.5596 GB, free: 12.05 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.223e-05/0.009091, allocations: 25.7 kB / 0.5596 GB, free: 12.02 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.264e-05/0.009174, allocations: 162.8 kB / 0.5598 GB, free: 11.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.289e-05/0.009187, allocations: 3.938 kB / 0.5598 GB, free: 11.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.182e-05/0.009239, allocations: 39.36 kB / 0.5598 GB, free: 11.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.009389, allocations: 0.5001 MB / 0.5603 GB, free: 11.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.944e-05/0.009418, allocations: 12 kB / 0.5603 GB, free: 11.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.015e-05/0.009438, allocations: 12 kB / 0.5603 GB, free: 11.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.05e-05/0.009499, allocations: 51.38 kB / 0.5604 GB, free: 11.22 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.009501, allocations: 0 / 0.5604 GB, free: 11.22 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001238/0.009625, allocations: 89.59 kB / 0.5604 GB, free: 11.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.009641, allocations: 8 kB / 0.5604 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.009656, allocations: 0 / 0.5604 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.00967, allocations: 3.938 kB / 0.5605 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.323e-05/0.009683, allocations: 0 / 0.5605 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.674e-06/0.009691, allocations: 7.938 kB / 0.5605 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.014e-05/0.009721, allocations: 7.891 kB / 0.5605 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.195e-06/0.009729, allocations: 0 / 0.5605 GB, free: 11.1 MB / 490.7 MB 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.0003816/0.01011, allocations: 164.6 kB / 0.5606 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.969e-05/0.01013, allocations: 15.89 kB / 0.5606 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001007/0.01023, allocations: 42.14 kB / 0.5607 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.396e-06/0.01023, allocations: 3.984 kB / 0.5607 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.01024, allocations: 3.938 kB / 0.5607 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.01024, allocations: 4 kB / 0.5607 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.01035, allocations: 148.6 kB / 0.5608 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.843e-06/0.01036, allocations: 0 / 0.5608 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.423e-06/0.01036, allocations: 4 kB / 0.5608 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.01037, allocations: 0 / 0.5608 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.01037, allocations: 4.031 kB / 0.5608 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.01037, allocations: 0 / 0.5608 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.01037, allocations: 0 / 0.5608 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.997e-05/0.01045, allocations: 96.16 kB / 0.5609 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.254e-05/0.01047, allocations: 7.953 kB / 0.5609 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.275e-05/0.01048, allocations: 0 / 0.5609 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.487e-05/0.01049, allocations: 0 / 0.5609 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.49e-05/0.01051, allocations: 0 / 0.5609 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.017e-06/0.01051, allocations: 3.938 kB / 0.5609 GB, free: 10.54 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001011/0.01061, allocations: 172.3 kB / 0.5611 GB, free: 10.37 MB / 490.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01061, allocations: 4.031 kB / 0.5611 GB, free: 10.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000365/0.01098, allocations: 87.8 kB / 0.5612 GB, free: 10.28 MB / 490.7 MB 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.0005394/0.01152, allocations: 244.1 kB / 0.5614 GB, free: 10.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001485/0.01167, allocations: 81.36 kB / 0.5615 GB, free: 9.965 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.01167, allocations: 4.062 kB / 0.5615 GB, free: 9.961 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.283e-05/0.01168, allocations: 15.62 kB / 0.5615 GB, free: 9.941 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001631/0.01185, allocations: 0 / 0.5615 GB, free: 9.941 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003717/0.01222, allocations: 198.7 kB / 0.5617 GB, free: 9.719 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.694e-05/0.01226, allocations: 63.34 kB / 0.5618 GB, free: 9.637 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.913e-05/0.01228, allocations: 4 kB / 0.5618 GB, free: 9.633 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.744e-05/0.0123, allocations: 8.5 kB / 0.5618 GB, free: 9.625 MB / 490.7 MB Notification: Performance of SimCode: time 5.71e-07/0.0123, allocations: 0 / 0.5618 GB, free: 9.625 MB / 490.7 MB Notification: Performance of Templates: time 0.005424/0.01773, allocations: 2.145 MB / 0.5639 GB, free: 7.48 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.6046652710065246]