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.001453/0.001453, allocations: 101.1 kB / 16.27 MB, free: 6.414 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.001429/0.001429, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.314/1.314, allocations: 222.9 MB / 240.9 MB, free: 15.23 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002425/0.002425, allocations: 298.4 kB / 291.3 MB, free: 14.55 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.167/1.167, allocations: 178.5 MB / 0.5079 GB, free: 12.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002628/0.002629, allocations: 95.83 kB / 0.6071 GB, free: 9.289 MB / 462.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1775/0.1802, allocations: 89.13 MB / 0.6941 GB, free: 84 kB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001782/0.182, allocations: 0.5271 MB / 0.6947 GB, free: 15.55 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002147/0.1842, allocations: 1.6 MB / 0.6962 GB, free: 13.93 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.101e-05/0.1842, allocations: 0 / 0.6962 GB, free: 13.93 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.0001831/0.1844, allocations: 59.84 kB / 0.6963 GB, free: 13.88 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.137e-05/0.1845, allocations: 35.94 kB / 0.6963 GB, free: 13.84 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.0007958/0.1853, allocations: 243.3 kB / 0.6965 GB, free: 13.6 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 6.755e-05/0.1853, allocations: 39.83 kB / 0.6966 GB, free: 13.56 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.1854, allocations: 7.938 kB / 0.6966 GB, free: 13.55 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.948e-05/0.1854, allocations: 19.97 kB / 0.6966 GB, free: 13.54 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 6.26e-05/0.1855, allocations: 39.89 kB / 0.6966 GB, free: 13.5 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.199e-05/0.1855, allocations: 0 / 0.6966 GB, free: 13.5 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004612/0.186, allocations: 291.6 kB / 0.6969 GB, free: 13.21 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 5.485e-05/0.186, allocations: 27.92 kB / 0.6969 GB, free: 13.18 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 3.377e-05/0.1861, allocations: 23.75 kB / 0.697 GB, free: 13.16 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0003782/0.1865, allocations: 295.5 kB / 0.6973 GB, free: 12.87 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1865, allocations: 0 / 0.6973 GB, free: 12.87 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.353e-06/0.1865, allocations: 0 / 0.6973 GB, free: 12.87 MB / 0.545 GB Notification: Performance of Transformations before backend: time 5.43e-06/0.1865, allocations: 0 / 0.6973 GB, free: 12.87 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.0004569/0.187, allocations: 430.9 kB / 0.6977 GB, free: 12.4 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.344e-05/0.187, allocations: 8.031 kB / 0.6977 GB, free: 12.39 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.923e-05/0.187, allocations: 12.75 kB / 0.6977 GB, free: 12.38 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001662/0.1872, allocations: 192.7 kB / 0.6979 GB, free: 12.16 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.013e-05/0.1872, allocations: 4.375 kB / 0.6979 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.1872, allocations: 384 / 0.6979 GB, free: 12.15 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001015/0.1873, allocations: 45.94 kB / 0.6979 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.1874, allocations: 0 / 0.6979 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.1874, allocations: 0 / 0.6979 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.656e-06/0.1874, allocations: 0 / 0.6979 GB, free: 12.1 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.977e-05/0.1874, allocations: 19.98 kB / 0.6979 GB, free: 12.08 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001881/0.1876, allocations: 189.6 kB / 0.6981 GB, free: 11.85 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 4.678e-05/0.1877, allocations: 26.58 kB / 0.6981 GB, free: 11.81 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.565e-05/0.1877, allocations: 16.91 kB / 0.6982 GB, free: 11.79 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.502e-05/0.1877, allocations: 11.88 kB / 0.6982 GB, free: 11.78 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.1878, allocations: 34.5 kB / 0.6982 GB, free: 11.74 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1878, allocations: 0 / 0.6982 GB, free: 11.74 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001605/0.1879, allocations: 77.48 kB / 0.6983 GB, free: 11.66 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.58e-05/0.188, allocations: 51.53 kB / 0.6983 GB, free: 11.59 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002003/0.1882, allocations: 213.5 kB / 0.6985 GB, free: 11.38 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.1882, allocations: 25.7 kB / 0.6986 GB, free: 11.35 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 6.625e-05/0.1883, allocations: 112 kB / 0.6987 GB, free: 11.23 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 9.287e-06/0.1883, allocations: 0 / 0.6987 GB, free: 11.23 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.687e-05/0.1883, allocations: 29.7 kB / 0.6987 GB, free: 11.2 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1885, allocations: 326.8 kB / 0.699 GB, free: 10.87 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.828e-05/0.1886, allocations: 59.97 kB / 0.6991 GB, free: 10.81 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.625e-05/0.1886, allocations: 55.92 kB / 0.6991 GB, free: 10.76 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.926e-05/0.1887, allocations: 96.03 kB / 0.6992 GB, free: 10.66 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1887, allocations: 0 / 0.6992 GB, free: 10.66 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001791/0.1889, allocations: 165.4 kB / 0.6994 GB, free: 10.5 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.1889, allocations: 7.938 kB / 0.6994 GB, free: 10.49 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.189, allocations: 7.938 kB / 0.6994 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.189, allocations: 0 / 0.6994 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.4e-05/0.189, allocations: 3.984 kB / 0.6994 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.987e-06/0.189, allocations: 0 / 0.6994 GB, free: 10.48 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.554e-05/0.189, allocations: 11.84 kB / 0.6994 GB, free: 10.46 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.344e-06/0.189, allocations: 0 / 0.6994 GB, free: 10.46 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.0001535/0.1892, allocations: 141.1 kB / 0.6995 GB, free: 10.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.332e-05/0.1892, allocations: 15.75 kB / 0.6995 GB, free: 10.3 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001152/0.1894, allocations: 66.23 kB / 0.6996 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1894, allocations: 0 / 0.6996 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.1894, allocations: 0 / 0.6996 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-06/0.1894, allocations: 0 / 0.6996 GB, free: 10.23 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001331/0.1895, allocations: 177.7 kB / 0.6998 GB, free: 10.01 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1895, allocations: 8.016 kB / 0.6998 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.701e-06/0.1895, allocations: 3.984 kB / 0.6998 GB, free: 10 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/0.1895, allocations: 3.938 kB / 0.6998 GB, free: 9.996 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.149e-06/0.1895, allocations: 0 / 0.6998 GB, free: 9.996 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.1896, allocations: 4 kB / 0.6998 GB, free: 9.992 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1896, allocations: 0 / 0.6998 GB, free: 9.992 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.516e-05/0.1896, allocations: 80.97 kB / 0.6999 GB, free: 9.895 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.216e-05/0.1897, allocations: 92.86 kB / 0.7 GB, free: 9.785 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.272e-05/0.1897, allocations: 4.031 kB / 0.7 GB, free: 9.781 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.207e-05/0.1897, allocations: 0 / 0.7 GB, free: 9.781 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.269e-05/0.1898, allocations: 7.984 kB / 0.7 GB, free: 9.773 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.878e-06/0.1898, allocations: 4 kB / 0.7 GB, free: 9.77 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001178/0.1899, allocations: 151.4 kB / 0.7001 GB, free: 9.621 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1899, allocations: 0 / 0.7001 GB, free: 9.621 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0003161/0.1902, allocations: 87.92 kB / 0.7002 GB, free: 9.535 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.0005045/0.1907, allocations: 224.9 kB / 0.7004 GB, free: 9.324 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.000183/0.1909, allocations: 129.7 kB / 0.7005 GB, free: 9.191 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.1909, allocations: 0 / 0.7005 GB, free: 9.191 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 1.636e-05/0.191, allocations: 11.94 kB / 0.7005 GB, free: 9.18 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.1911, allocations: 4 kB / 0.7006 GB, free: 9.176 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003373/0.1914, allocations: 239.9 kB / 0.7008 GB, free: 8.902 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003092/0.1918, allocations: 0.7078 MB / 0.7015 GB, free: 8.168 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.598e-05/0.1918, allocations: 11.44 kB / 0.7015 GB, free: 8.16 MB / 0.545 GB Notification: Performance of SimCode: time 2.6e-07/0.1918, allocations: 4 kB / 0.7015 GB, free: 8.156 MB / 0.545 GB Notification: Performance of Templates: time 0.004396/0.1962, allocations: 2.375 MB / 0.7038 GB, free: 5.777 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)