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.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001281/0.001281, allocations: 110.2 kB / 16.41 MB, free: 6.477 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.001357/0.001357, allocations: 185.5 kB / 17.34 MB, free: 5.754 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002153/0.002153, allocations: 285.1 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9134/0.9134, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 95.86 kB / 0.6821 GB, free: 6.996 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4819/0.4839, allocations: 86.98 MB / 0.767 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001806/0.4858, allocations: 0.5191 MB / 0.7675 GB, free: 3.43 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.002158/0.4879, allocations: 1.608 MB / 0.7691 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.183e-05/0.488, allocations: 0 / 0.7691 GB, free: 1.805 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.000189/0.4882, allocations: 67.83 kB / 0.7692 GB, free: 1.738 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.597e-05/0.4883, allocations: 23.97 kB / 0.7692 GB, free: 1.715 MB / 0.5294 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/BuildingSystems 2.0.0-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.0008674/0.4891, allocations: 249.3 kB / 0.7694 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.885e-05/0.4892, allocations: 35.89 kB / 0.7695 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.488e-05/0.4893, allocations: 0 / 0.7695 GB, free: 1.438 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.903e-05/0.4893, allocations: 27.91 kB / 0.7695 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 6.814e-05/0.4894, allocations: 39.89 kB / 0.7695 GB, free: 1.371 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.172e-05/0.4894, allocations: 4 kB / 0.7695 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005363/0.4899, allocations: 331.5 kB / 0.7698 GB, free: 1.043 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 5.885e-05/0.49, allocations: 31.91 kB / 0.7699 GB, free: 1.012 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.131e-05/0.4901, allocations: 23.75 kB / 0.7699 GB, free: 0.9883 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003937/0.4905, allocations: 291 kB / 0.7702 GB, free: 0.707 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.029e-06/0.4905, allocations: 4 kB / 0.7702 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.744e-06/0.4905, allocations: 0 / 0.7702 GB, free: 0.7031 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.4905, allocations: 3.984 kB / 0.7702 GB, free: 0.6992 MB / 0.5294 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.0004569/0.4909, allocations: 429.5 kB / 0.7706 GB, free: 240 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.491, allocations: 16.03 kB / 0.7706 GB, free: 224 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.446e-05/0.491, allocations: 8.844 kB / 0.7706 GB, free: 216 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001738/0.4912, allocations: 188.1 kB / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.079e-06/0.4912, allocations: 384 / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.047e-05/0.4912, allocations: 384 / 0.7708 GB, free: 15.99 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.773e-05/0.4913, allocations: 45.95 kB / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.4913, allocations: 0 / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.905e-06/0.4914, allocations: 3.938 kB / 0.7708 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.188e-06/0.4914, allocations: 0 / 0.7708 GB, free: 15.93 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.222e-05/0.4914, allocations: 19.98 kB / 0.7709 GB, free: 15.91 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001851/0.4916, allocations: 185.7 kB / 0.771 GB, free: 15.68 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.92e-05/0.4916, allocations: 26.58 kB / 0.7711 GB, free: 15.65 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.203e-05/0.4917, allocations: 16.92 kB / 0.7711 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.457e-05/0.4917, allocations: 19.81 kB / 0.7711 GB, free: 15.61 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.131e-05/0.4917, allocations: 34.5 kB / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.11e-07/0.4917, allocations: 0 / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001459/0.4919, allocations: 65.59 kB / 0.7712 GB, free: 15.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.299e-05/0.4919, allocations: 55.41 kB / 0.7712 GB, free: 15.43 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000181/0.4921, allocations: 208.1 kB / 0.7714 GB, free: 15.22 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.957e-05/0.4922, allocations: 25.7 kB / 0.7715 GB, free: 15.19 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.439e-05/0.4922, allocations: 108 kB / 0.7716 GB, free: 15.08 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.223e-05/0.4922, allocations: 7.906 kB / 0.7716 GB, free: 15.07 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.09e-05/0.4923, allocations: 29.7 kB / 0.7716 GB, free: 15.04 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.4924, allocations: 327 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.378e-05/0.4925, allocations: 55.92 kB / 0.772 GB, free: 14.65 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5e-05/0.4925, allocations: 63.84 kB / 0.772 GB, free: 14.59 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.034e-05/0.4926, allocations: 92.78 kB / 0.7721 GB, free: 14.5 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.4926, allocations: 0 / 0.7721 GB, free: 14.5 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001773/0.4928, allocations: 164.6 kB / 0.7723 GB, free: 14.33 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.4928, allocations: 7.938 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.4928, allocations: 0 / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.4929, allocations: 0 / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.254e-05/0.4929, allocations: 4 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.148e-06/0.4929, allocations: 0 / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.803e-05/0.4929, allocations: 11.91 kB / 0.7723 GB, free: 14.31 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.037e-05/0.4929, allocations: 4 kB / 0.7723 GB, free: 14.3 MB / 0.545 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.0001327/0.4931, allocations: 136.2 kB / 0.7724 GB, free: 14.16 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.76e-05/0.4931, allocations: 15.75 kB / 0.7724 GB, free: 14.15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000106/0.4932, allocations: 66.23 kB / 0.7725 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.4932, allocations: 0 / 0.7725 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.4932, allocations: 0 / 0.7725 GB, free: 14.08 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.924e-06/0.4932, allocations: 4.031 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.4934, allocations: 181.7 kB / 0.7727 GB, free: 13.85 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.4934, allocations: 3.938 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.931e-06/0.4934, allocations: 4 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.4934, allocations: 3.938 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-06/0.4934, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.4934, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.4934, allocations: 0 / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.124e-05/0.4935, allocations: 88.95 kB / 0.7728 GB, free: 13.73 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.926e-05/0.4936, allocations: 92.86 kB / 0.7729 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.4936, allocations: 0 / 0.7729 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.413e-05/0.4936, allocations: 0 / 0.7729 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.454e-05/0.4936, allocations: 4 kB / 0.7729 GB, free: 13.62 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-06/0.4936, allocations: 4 kB / 0.7729 GB, free: 13.61 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001121/0.4937, allocations: 145.6 kB / 0.773 GB, free: 13.47 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4937, allocations: 0 / 0.773 GB, free: 13.47 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003195/0.4941, allocations: 83.98 kB / 0.7731 GB, free: 13.39 MB / 0.545 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.0004595/0.4945, allocations: 234.4 kB / 0.7733 GB, free: 13.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001704/0.4947, allocations: 125.7 kB / 0.7734 GB, free: 13.04 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.4947, allocations: 0 / 0.7734 GB, free: 13.04 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.198e-05/0.4948, allocations: 19.98 kB / 0.7735 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001432/0.4949, allocations: 10.56 kB / 0.7735 GB, free: 13.02 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003225/0.4952, allocations: 239.6 kB / 0.7737 GB, free: 12.75 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002641/0.4955, allocations: 0.7041 MB / 0.7744 GB, free: 12.02 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.42e-05/0.4955, allocations: 7.438 kB / 0.7744 GB, free: 12.01 MB / 0.545 GB Notification: Performance of SimCode: time 1.774e-06/0.4955, allocations: 0 / 0.7744 GB, free: 12.01 MB / 0.545 GB Notification: Performance of Templates: time 0.004247/0.4998, allocations: 2.38 MB / 0.7767 GB, free: 9.629 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)