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: 111.3 kB / 15.23 MB, free: 0.6406 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.001259/0.001259, allocations: 198.1 kB / 16.14 MB, free: 6.715 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.434/1.434, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.0025/0.0025, allocations: 279.1 kB / 290.2 MB, free: 2.238 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.078/1.078, allocations: 178.6 MB / 0.5068 GB, free: 4.777 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002757/0.002757, allocations: 97.91 kB / 0.6057 GB, free: 25.15 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1755, allocations: 89.15 MB / 0.6928 GB, free: 4.852 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001816/0.1774, allocations: 0.5864 MB / 0.6934 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002407/0.1798, allocations: 1.636 MB / 0.6949 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.259e-05/0.1799, allocations: 0 / 0.6949 GB, free: 2.617 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002038/0.1801, allocations: 67.84 kB / 0.695 GB, free: 2.551 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.981e-05/0.1801, allocations: 31.89 kB / 0.695 GB, free: 2.52 MB / 494.1 MB [/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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007543/0.1809, allocations: 195.5 kB / 0.6952 GB, free: 2.328 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.976e-05/0.181, allocations: 27.97 kB / 0.6953 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.062e-05/0.181, allocations: 0 / 0.6953 GB, free: 2.301 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.405e-05/0.1811, allocations: 31.89 kB / 0.6953 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.185e-05/0.1811, allocations: 39.91 kB / 0.6953 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.22e-05/0.1812, allocations: 0 / 0.6953 GB, free: 2.23 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004673/0.1816, allocations: 275.6 kB / 0.6956 GB, free: 1.961 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.956e-05/0.1817, allocations: 23.92 kB / 0.6956 GB, free: 1.938 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.895e-05/0.1817, allocations: 31.73 kB / 0.6956 GB, free: 1.906 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004165/0.1822, allocations: 283.6 kB / 0.6959 GB, free: 1.629 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1822, allocations: 0 / 0.6959 GB, free: 1.629 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1822, allocations: 0 / 0.6959 GB, free: 1.629 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.1822, allocations: 0 / 0.6959 GB, free: 1.629 MB / 494.1 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.0004979/0.1827, allocations: 444.6 kB / 0.6963 GB, free: 1.148 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1827, allocations: 8.031 kB / 0.6963 GB, free: 1.141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.734e-05/0.1828, allocations: 8.844 kB / 0.6964 GB, free: 1.133 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000208/0.183, allocations: 192.1 kB / 0.6965 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.183e-06/0.183, allocations: 384 / 0.6965 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.202e-05/0.183, allocations: 384 / 0.6965 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001004/0.1831, allocations: 38.02 kB / 0.6966 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.1831, allocations: 0 / 0.6966 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.1832, allocations: 8 kB / 0.6966 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1832, allocations: 4 kB / 0.6966 GB, free: 0.8516 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.412e-05/0.1832, allocations: 19.92 kB / 0.6966 GB, free: 0.832 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002028/0.1834, allocations: 185.6 kB / 0.6968 GB, free: 0.6016 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.139e-05/0.1835, allocations: 30.56 kB / 0.6968 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.392e-05/0.1835, allocations: 12.92 kB / 0.6968 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.1836, allocations: 15.89 kB / 0.6968 GB, free: 0.5312 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.948e-05/0.1836, allocations: 38.5 kB / 0.6969 GB, free: 496 kB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1836, allocations: 0 / 0.6969 GB, free: 496 kB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.000165/0.1838, allocations: 65.53 kB / 0.6969 GB, free: 424 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.538e-05/0.1838, allocations: 51.41 kB / 0.697 GB, free: 360 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002121/0.1841, allocations: 212.1 kB / 0.6972 GB, free: 140 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1841, allocations: 29.7 kB / 0.6972 GB, free: 104 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.707e-05/0.1842, allocations: 100.1 kB / 0.6973 GB, free: 0 / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.1842, allocations: 176 / 0.6973 GB, free: 16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.858e-05/0.1842, allocations: 33.83 kB / 0.6973 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.1844, allocations: 322.8 kB / 0.6977 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.21e-05/0.1845, allocations: 51.98 kB / 0.6977 GB, free: 15.58 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.501e-05/0.1845, allocations: 59.97 kB / 0.6978 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001029/0.1846, allocations: 88.78 kB / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1847, allocations: 3.938 kB / 0.6978 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001946/0.1849, allocations: 171.3 kB / 0.698 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1849, allocations: 11.94 kB / 0.698 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/0.1849, allocations: 0 / 0.698 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1849, allocations: 4.062 kB / 0.698 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.252e-05/0.1849, allocations: 0 / 0.698 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.1849, allocations: 0 / 0.698 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.123e-05/0.185, allocations: 11.84 kB / 0.698 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.257e-06/0.185, allocations: 0 / 0.698 GB, free: 15.23 MB / 0.4981 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.0001723/0.1852, allocations: 133.8 kB / 0.6982 GB, free: 15.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.027e-05/0.1852, allocations: 11.75 kB / 0.6982 GB, free: 15.08 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.1853, allocations: 66.19 kB / 0.6982 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.877e-06/0.1853, allocations: 8.016 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1853, allocations: 0 / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.1854, allocations: 4 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001453/0.1855, allocations: 177.7 kB / 0.6984 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1855, allocations: 0 / 0.6984 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.482e-06/0.1855, allocations: 4 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.016e-06/0.1855, allocations: 3.938 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.857e-06/0.1855, allocations: 4 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1855, allocations: 0 / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1856, allocations: 0 / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.743e-05/0.1857, allocations: 89.02 kB / 0.6985 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.177e-05/0.1857, allocations: 96.84 kB / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.1857, allocations: 0 / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.326e-05/0.1858, allocations: 0 / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.1858, allocations: 0 / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.019e-06/0.1858, allocations: 0 / 0.6986 GB, free: 14.55 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001288/0.1859, allocations: 156.2 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.1859, allocations: 3.969 kB / 0.6988 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000331/0.1863, allocations: 87.98 kB / 0.6988 GB, free: 14.3 MB / 0.4981 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.0005513/0.1868, allocations: 227.1 kB / 0.6991 GB, free: 14.1 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001894/0.187, allocations: 125.7 kB / 0.6992 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.187, allocations: 4.062 kB / 0.6992 GB, free: 13.96 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 2.119e-05/0.1871, allocations: 15.98 kB / 0.6992 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001487/0.1872, allocations: 7.938 kB / 0.6992 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003768/0.1876, allocations: 223.9 kB / 0.6994 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003483/0.188, allocations: 0.7043 MB / 0.7001 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.907e-05/0.188, allocations: 0 / 0.7001 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.949e-05/0.188, allocations: 11.44 kB / 0.7001 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of SimCode: time 3.3e-07/0.188, allocations: 0 / 0.7001 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of Templates: time 0.005522/0.1935, allocations: 2.118 MB / 0.7022 GB, free: 10.83 MB / 0.4981 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)