Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001265/0.001265, allocations: 104 kB / 16.27 MB, free: 5.98 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.001195/0.001195, allocations: 189.8 kB / 17.2 MB, free: 5.605 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.312/1.312, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002437/0.002437, allocations: 282.6 kB / 291.3 MB, free: 14.52 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.157/1.157, allocations: 178.5 MB / 0.5079 GB, free: 12.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002771/0.002771, allocations: 95.84 kB / 0.6071 GB, free: 9.301 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1815/0.1843, allocations: 89.12 MB / 0.6941 GB, free: 96 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.00166/0.186, allocations: 0.5312 MB / 0.6947 GB, free: 15.56 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002157/0.1881, allocations: 1.593 MB / 0.6962 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.461e-05/0.1882, allocations: 4 kB / 0.6962 GB, free: 13.95 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.000129/0.1883, allocations: 27.84 kB / 0.6962 GB, free: 13.92 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.648e-05/0.1884, allocations: 11.97 kB / 0.6963 GB, free: 13.91 MB / 0.545 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.0008134/0.1892, allocations: 243.3 kB / 0.6965 GB, free: 13.67 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.339e-05/0.1892, allocations: 23.91 kB / 0.6965 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.652e-05/0.1893, allocations: 4 kB / 0.6965 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.923e-05/0.1893, allocations: 15.98 kB / 0.6965 GB, free: 13.62 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 3.886e-05/0.1894, allocations: 15.92 kB / 0.6965 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.181e-05/0.1894, allocations: 0 / 0.6965 GB, free: 13.61 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004674/0.1899, allocations: 283.6 kB / 0.6968 GB, free: 13.33 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.819e-05/0.1899, allocations: 19.92 kB / 0.6968 GB, free: 13.31 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.324e-05/0.19, allocations: 19.81 kB / 0.6969 GB, free: 13.29 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003758/0.1903, allocations: 283.3 kB / 0.6971 GB, free: 13.02 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1903, allocations: 3.938 kB / 0.6971 GB, free: 13.01 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1904, allocations: 0 / 0.6971 GB, free: 13.01 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.06e-06/0.1904, allocations: 0 / 0.6971 GB, free: 13.01 MB / 0.545 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.0004508/0.1908, allocations: 403.4 kB / 0.6975 GB, free: 12.57 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.707e-05/0.1909, allocations: 8.031 kB / 0.6975 GB, free: 12.56 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.584e-05/0.1909, allocations: 12.83 kB / 0.6975 GB, free: 12.55 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.1911, allocations: 185.6 kB / 0.6977 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.1911, allocations: 384 / 0.6977 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.1911, allocations: 384 / 0.6977 GB, free: 12.33 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.476e-05/0.1912, allocations: 45.94 kB / 0.6978 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.251e-06/0.1912, allocations: 0 / 0.6978 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.1912, allocations: 0 / 0.6978 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.978e-06/0.1912, allocations: 4 kB / 0.6978 GB, free: 12.28 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.842e-05/0.1913, allocations: 15.98 kB / 0.6978 GB, free: 12.26 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.1915, allocations: 177.6 kB / 0.6979 GB, free: 12.04 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.595e-05/0.1915, allocations: 30.58 kB / 0.698 GB, free: 12 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.968e-05/0.1915, allocations: 8.922 kB / 0.698 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.53e-05/0.1916, allocations: 11.92 kB / 0.698 GB, free: 11.98 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.963e-05/0.1916, allocations: 42.5 kB / 0.698 GB, free: 11.93 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.1916, allocations: 0 / 0.698 GB, free: 11.93 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001427/0.1918, allocations: 57.59 kB / 0.6981 GB, free: 11.86 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.1918, allocations: 51.41 kB / 0.6981 GB, free: 11.8 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001584/0.192, allocations: 169 kB / 0.6983 GB, free: 11.62 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.192, allocations: 29.7 kB / 0.6983 GB, free: 11.59 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.712e-05/0.1921, allocations: 96.12 kB / 0.6984 GB, free: 11.49 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.177e-05/0.1921, allocations: 3.906 kB / 0.6984 GB, free: 11.49 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/0.1921, allocations: 25.84 kB / 0.6984 GB, free: 11.46 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001342/0.1923, allocations: 322.8 kB / 0.6988 GB, free: 11.13 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.68e-05/0.1923, allocations: 39.98 kB / 0.6988 GB, free: 11.09 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.304e-05/0.1924, allocations: 39.92 kB / 0.6988 GB, free: 11.05 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.071e-05/0.1925, allocations: 72.77 kB / 0.6989 GB, free: 10.98 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.1925, allocations: 0 / 0.6989 GB, free: 10.98 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001479/0.1926, allocations: 125.6 kB / 0.699 GB, free: 10.85 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.1927, allocations: 10.28 kB / 0.699 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.311e-05/0.1927, allocations: 0 / 0.699 GB, free: 10.84 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1927, allocations: 12.06 kB / 0.699 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.195e-05/0.1927, allocations: 0 / 0.699 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.598e-06/0.1927, allocations: 0 / 0.699 GB, free: 10.83 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.518e-05/0.1928, allocations: 7.875 kB / 0.699 GB, free: 10.82 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.327e-06/0.1928, allocations: 4 kB / 0.699 GB, free: 10.82 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001351/0.1929, allocations: 129.8 kB / 0.6992 GB, free: 10.68 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.519e-05/0.1929, allocations: 11.84 kB / 0.6992 GB, free: 10.67 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.193, allocations: 57.5 kB / 0.6992 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.1931, allocations: 4.031 kB / 0.6992 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.686e-06/0.1931, allocations: 0 / 0.6992 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1931, allocations: 0 / 0.6992 GB, free: 10.61 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001318/0.1932, allocations: 173.6 kB / 0.6994 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1932, allocations: 0 / 0.6994 GB, free: 10.39 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.901e-06/0.1932, allocations: 4 kB / 0.6994 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1932, allocations: 3.938 kB / 0.6994 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-06/0.1932, allocations: 0 / 0.6994 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1932, allocations: 0 / 0.6994 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.486e-05/0.1933, allocations: 3.984 kB / 0.6994 GB, free: 10.38 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.429e-05/0.1934, allocations: 84.97 kB / 0.6995 GB, free: 10.27 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.738e-05/0.1934, allocations: 88.94 kB / 0.6996 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.195e-05/0.1934, allocations: 4 kB / 0.6996 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.1934, allocations: 0 / 0.6996 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.1935, allocations: 0 / 0.6996 GB, free: 10.16 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1935, allocations: 0 / 0.6996 GB, free: 10.16 MB / 0.545 GB Notification: Performance of sorting global known variables: time 9.474e-05/0.1936, allocations: 121.5 kB / 0.6997 GB, free: 10.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.11e-07/0.1936, allocations: 32 / 0.6997 GB, free: 10.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003065/0.1939, allocations: 91.98 kB / 0.6998 GB, free: 9.957 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.0004995/0.1944, allocations: 223.3 kB / 0.7 GB, free: 9.75 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001617/0.1946, allocations: 101.7 kB / 0.7001 GB, free: 9.645 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.1946, allocations: 8.062 kB / 0.7001 GB, free: 9.637 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.761e-05/0.1946, allocations: 15.92 kB / 0.7001 GB, free: 9.621 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001301/0.1947, allocations: 6 kB / 0.7001 GB, free: 9.617 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002784/0.195, allocations: 195 kB / 0.7003 GB, free: 9.395 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002927/0.1953, allocations: 0.6924 MB / 0.701 GB, free: 8.676 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.691e-05/0.1954, allocations: 11.44 kB / 0.701 GB, free: 8.664 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.1954, allocations: 0 / 0.701 GB, free: 8.664 MB / 0.545 GB Notification: Performance of Templates: time 0.004115/0.1995, allocations: 2.246 MB / 0.7032 GB, free: 6.414 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)