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.001246/0.001246, allocations: 109.1 kB / 15.99 MB, free: 6.352 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.00117/0.00117, allocations: 189.2 kB / 16.91 MB, free: 6.184 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.296/1.296, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002378/0.002378, allocations: 293.8 kB / 291 MB, free: 14.71 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.151/1.151, allocations: 178.5 MB / 0.5076 GB, free: 12.74 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002605/0.002605, allocations: 103.8 kB / 0.6066 GB, free: 9.672 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1779/0.1805, allocations: 89.13 MB / 0.6936 GB, free: 472 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001775/0.1824, allocations: 0.5815 MB / 0.6942 GB, free: 15.87 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002188/0.1846, allocations: 1.6 MB / 0.6957 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.844e-05/0.1846, allocations: 0 / 0.6957 GB, free: 14.25 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001426/0.1848, allocations: 19.92 kB / 0.6958 GB, free: 14.23 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 2.436e-05/0.1848, allocations: 7.984 kB / 0.6958 GB, free: 14.23 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.0008157/0.1856, allocations: 227.6 kB / 0.696 GB, free: 14 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 5.346e-05/0.1857, allocations: 19.86 kB / 0.696 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.696e-05/0.1857, allocations: 7.984 kB / 0.696 GB, free: 13.98 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 2.721e-05/0.1858, allocations: 8 kB / 0.696 GB, free: 13.97 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 4.261e-05/0.1858, allocations: 27.91 kB / 0.696 GB, free: 13.94 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.1858, allocations: 0 / 0.696 GB, free: 13.94 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004523/0.1863, allocations: 287.5 kB / 0.6963 GB, free: 13.66 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 4.863e-05/0.1863, allocations: 15.92 kB / 0.6963 GB, free: 13.64 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.638e-05/0.1864, allocations: 19.81 kB / 0.6964 GB, free: 13.62 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0002649/0.1867, allocations: 195.7 kB / 0.6965 GB, free: 13.43 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 4.949e-06/0.1867, allocations: 4 kB / 0.6965 GB, free: 13.43 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.273e-06/0.1867, allocations: 0 / 0.6965 GB, free: 13.43 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.209e-06/0.1867, allocations: 0 / 0.6965 GB, free: 13.43 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.0004494/0.1871, allocations: 411.4 kB / 0.6969 GB, free: 12.98 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.165e-05/0.1872, allocations: 8.031 kB / 0.6969 GB, free: 12.97 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.314e-05/0.1872, allocations: 8.844 kB / 0.697 GB, free: 12.96 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001742/0.1874, allocations: 184.2 kB / 0.6971 GB, free: 12.75 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-06/0.1874, allocations: 4.312 kB / 0.6971 GB, free: 12.74 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.898e-06/0.1874, allocations: 4.375 kB / 0.6971 GB, free: 12.74 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.335e-05/0.1875, allocations: 38.02 kB / 0.6972 GB, free: 12.7 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.763e-06/0.1875, allocations: 0 / 0.6972 GB, free: 12.7 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.606e-05/0.1876, allocations: 3.984 kB / 0.6972 GB, free: 12.69 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.081e-06/0.1876, allocations: 4 kB / 0.6972 GB, free: 12.69 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.949e-05/0.1876, allocations: 15.98 kB / 0.6972 GB, free: 12.67 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001862/0.1878, allocations: 173.6 kB / 0.6974 GB, free: 12.45 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.981e-05/0.1879, allocations: 26.52 kB / 0.6974 GB, free: 12.42 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.377e-05/0.1879, allocations: 16.91 kB / 0.6974 GB, free: 12.4 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 2.923e-05/0.1879, allocations: 4 kB / 0.6974 GB, free: 12.39 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.188, allocations: 42.5 kB / 0.6974 GB, free: 12.34 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.188, allocations: 4 kB / 0.6975 GB, free: 12.34 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001403/0.1881, allocations: 61.58 kB / 0.6975 GB, free: 12.27 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.1882, allocations: 51.41 kB / 0.6976 GB, free: 12.21 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.1883, allocations: 169 kB / 0.6977 GB, free: 12.04 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.581e-05/0.1883, allocations: 25.7 kB / 0.6977 GB, free: 12 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.099e-05/0.1884, allocations: 92.14 kB / 0.6978 GB, free: 11.91 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.057e-05/0.1884, allocations: 0 / 0.6978 GB, free: 11.91 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.39e-05/0.1885, allocations: 37.77 kB / 0.6979 GB, free: 11.87 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.1886, allocations: 318.8 kB / 0.6982 GB, free: 11.55 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.24e-05/0.1887, allocations: 39.98 kB / 0.6982 GB, free: 11.51 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.536e-05/0.1887, allocations: 39.98 kB / 0.6982 GB, free: 11.47 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.115e-05/0.1888, allocations: 64.83 kB / 0.6983 GB, free: 11.4 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1888, allocations: 0 / 0.6983 GB, free: 11.4 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000158/0.189, allocations: 129.6 kB / 0.6984 GB, free: 11.27 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.189, allocations: 11.94 kB / 0.6984 GB, free: 11.26 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.409e-05/0.189, allocations: 3.984 kB / 0.6984 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.1891, allocations: 4.062 kB / 0.6985 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-05/0.1891, allocations: 0 / 0.6985 GB, free: 11.25 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.1891, allocations: 7.938 kB / 0.6985 GB, free: 11.24 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.296e-05/0.1891, allocations: 11.78 kB / 0.6985 GB, free: 11.23 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.614e-06/0.1891, allocations: 0 / 0.6985 GB, free: 11.23 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.0001324/0.1893, allocations: 125.5 kB / 0.6986 GB, free: 11.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.72e-05/0.1893, allocations: 11.84 kB / 0.6986 GB, free: 11.09 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001117/0.1894, allocations: 65.48 kB / 0.6987 GB, free: 11.02 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-06/0.1894, allocations: 8.031 kB / 0.6987 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.1894, allocations: 0 / 0.6987 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.743e-06/0.1894, allocations: 0 / 0.6987 GB, free: 11.01 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001295/0.1896, allocations: 165.7 kB / 0.6988 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1896, allocations: 0 / 0.6988 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.231e-06/0.1896, allocations: 3.984 kB / 0.6988 GB, free: 10.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1896, allocations: 3.938 kB / 0.6988 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.702e-06/0.1896, allocations: 4 kB / 0.6988 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1896, allocations: 0 / 0.6988 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.1896, allocations: 0 / 0.6988 GB, free: 10.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.696e-05/0.1897, allocations: 84.97 kB / 0.6989 GB, free: 10.69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.669e-05/0.1898, allocations: 84.95 kB / 0.699 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.108e-05/0.1898, allocations: 0 / 0.699 GB, free: 10.59 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.064e-05/0.1898, allocations: 4 kB / 0.699 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.347e-06/0.1898, allocations: 0 / 0.699 GB, free: 10.58 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.359e-06/0.1898, allocations: 3.984 kB / 0.699 GB, free: 10.58 MB / 0.545 GB Notification: Performance of sorting global known variables: time 8.834e-05/0.1899, allocations: 121.7 kB / 0.6991 GB, free: 10.46 MB / 0.545 GB Notification: Performance of sort global known variables: time 1e-07/0.1899, allocations: 32 / 0.6991 GB, free: 10.46 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002958/0.1902, allocations: 91.98 kB / 0.6992 GB, free: 10.37 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.0005007/0.1907, allocations: 222 kB / 0.6994 GB, free: 10.17 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001693/0.1909, allocations: 105.6 kB / 0.6995 GB, free: 10.06 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 6.984e-06/0.1909, allocations: 8.062 kB / 0.6995 GB, free: 10.05 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.478e-05/0.1909, allocations: 11.94 kB / 0.6995 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.1911, allocations: 3.906 kB / 0.6996 GB, free: 10.04 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003053/0.1914, allocations: 203 kB / 0.6997 GB, free: 9.809 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003262/0.1917, allocations: 0.7002 MB / 0.7004 GB, free: 9.082 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.556e-05/0.1918, allocations: 7.438 kB / 0.7004 GB, free: 9.074 MB / 0.545 GB Notification: Performance of SimCode: time 2.3e-07/0.1918, allocations: 0 / 0.7004 GB, free: 9.074 MB / 0.545 GB Notification: Performance of Templates: time 0.004244/0.196, allocations: 2.247 MB / 0.7026 GB, free: 6.824 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)