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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001196/0.001196, allocations: 76.17 kB / 9.906 MB, free: 0.7812 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001885/0.003082, allocations: 439.8 kB / 10.34 MB, free: 360 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 157.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001474/0.002621, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9301/0.9301, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08303/1.013, allocations: 53.66 MB / 243.2 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001737/0.001737, allocations: 229.5 kB / 244.2 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00152/0.003257, allocations: 479.2 kB / 244.7 MB, free: 14.16 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.6942/0.6942, allocations: 138.7 MB / 384.1 MB, free: 480 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06806/0.7623, allocations: 42.39 MB / 426.5 MB, free: 5.949 MB / 410.7 MB " [Timeout remaining time 179] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.553e-06/1.553e-06, allocations: 0 / 427.8 MB, free: 4.664 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.733e-05/1.888e-05, allocations: 6.312 kB / 427.8 MB, free: 4.656 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001088/0.001106, allocations: 0.5713 MB / 428.3 MB, free: 4.082 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001444/0.002551, allocations: 1.664 MB / 430 MB, free: 2.398 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.235e-05/0.002573, allocations: 0 / 430 MB, free: 2.398 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001031/0.002676, allocations: 79.81 kB / 430.1 MB, free: 2.32 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.474e-05/0.002701, allocations: 27.95 kB / 430.1 MB, free: 2.293 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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.0004706/0.003172, allocations: 239 kB / 430.3 MB, free: 2.059 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.962e-05/0.003231, allocations: 35.89 kB / 430.4 MB, free: 2.023 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.758e-05/0.003259, allocations: 11.94 kB / 430.4 MB, free: 2.012 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.803e-05/0.003307, allocations: 27.91 kB / 430.4 MB, free: 1.984 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.078e-05/0.003348, allocations: 31.95 kB / 430.4 MB, free: 1.953 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 9.518e-06/0.003357, allocations: 0 / 430.4 MB, free: 1.953 MB / 410.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: 'inertia' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.0004643/0.003821, allocations: 439.2 kB / 430.9 MB, free: 1.523 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.71e-05/0.003858, allocations: 31.86 kB / 430.9 MB, free: 1.492 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.339e-05/0.003872, allocations: 7.938 kB / 430.9 MB, free: 1.484 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002639/0.004136, allocations: 287.2 kB / 431.2 MB, free: 1.203 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.049e-05/0.004146, allocations: 0 / 431.2 MB, free: 1.203 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.62e-07/0.004147, allocations: 0 / 431.2 MB, free: 1.203 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.004161, allocations: 4 kB / 431.2 MB, free: 1.199 MB / 410.7 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.0003182/0.004479, allocations: 371.6 kB / 431.6 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.523e-05/0.004504, allocations: 11.98 kB / 431.6 MB, free: 0.8008 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.388e-05/0.004528, allocations: 12.88 kB / 431.6 MB, free: 0.7891 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001041/0.004632, allocations: 141.4 kB / 431.7 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.192e-06/0.004638, allocations: 384 / 431.7 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.242e-06/0.004645, allocations: 384 / 431.7 MB, free: 0.625 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.364e-05/0.004698, allocations: 33.09 kB / 431.8 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.33e-06/0.004704, allocations: 192 / 431.8 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-06/0.004708, allocations: 384 / 431.8 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.004713, allocations: 3.938 kB / 431.8 MB, free: 0.582 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.888e-06/0.004723, allocations: 7.984 kB / 431.8 MB, free: 0.5742 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.222e-05/0.004795, allocations: 70.7 kB / 431.8 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.424e-05/0.004829, allocations: 22.55 kB / 431.9 MB, free: 468 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.009e-05/0.004839, allocations: 8.859 kB / 431.9 MB, free: 456 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.004875, allocations: 4.062 kB / 431.9 MB, free: 452 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.744e-05/0.004892, allocations: 34.56 kB / 431.9 MB, free: 408 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.004893, allocations: 0 / 431.9 MB, free: 408 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 6.628e-05/0.004959, allocations: 37.67 kB / 431.9 MB, free: 364 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.941e-05/0.004988, allocations: 59.34 kB / 432 MB, free: 292 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.567e-05/0.005084, allocations: 182.7 kB / 432.2 MB, free: 96 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.006e-05/0.005094, allocations: 25.7 kB / 432.2 MB, free: 64 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.1768/0.1819, allocations: 100.7 kB / 432.3 MB, free: 2.043 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.17e-05/0.1819, allocations: 1.094 kB / 432.3 MB, free: 2.043 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.1819, allocations: 30.55 kB / 432.3 MB, free: 2.027 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.39e-05/0.1819, allocations: 326.2 kB / 432.6 MB, free: 1.715 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.959e-05/0.182, allocations: 12.55 kB / 432.7 MB, free: 1.711 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.334e-05/0.182, allocations: 9.406 kB / 432.7 MB, free: 1.711 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.045e-05/0.182, allocations: 40.61 kB / 432.7 MB, free: 1.699 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.182, allocations: 0.9062 kB / 432.7 MB, free: 1.699 MB / 410.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 7.781e-05/0.1821, allocations: 70.92 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.1821, allocations: 4.5 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.1821, allocations: 2.531 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.179e-05/0.1821, allocations: 1.125 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.58e-05/0.1822, allocations: 2.109 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.895e-06/0.1822, allocations: 4.625 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.219e-05/0.1822, allocations: 7.609 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.763e-06/0.1822, allocations: 1.062 kB / 432.8 MB, free: 1.668 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3],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 9.214e-05/0.1823, allocations: 117.7 kB / 432.9 MB, free: 17.55 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.518e-06/0.1823, allocations: 3.344 kB / 432.9 MB, free: 17.55 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.323e-05/0.1824, allocations: 46.05 kB / 433 MB, free: 17.52 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.1824, allocations: 0 / 433 MB, free: 17.52 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.1824, allocations: 6.75 kB / 433 MB, free: 17.51 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1824, allocations: 1.031 kB / 433 MB, free: 17.51 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.615e-05/0.1824, allocations: 84.75 kB / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1824, allocations: 0 / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.557e-06/0.1824, allocations: 2.531 kB / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.828e-06/0.1824, allocations: 13.72 kB / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1824, allocations: 1.719 kB / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.236e-06/0.1824, allocations: 2.766 kB / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.1824, allocations: 2.25 kB / 433.1 MB, free: 17.44 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.1824, allocations: 5.062 kB / 433.1 MB, free: 17.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.39e-05/0.1825, allocations: 71.19 kB / 433.2 MB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.923e-06/0.1825, allocations: 1.375 kB / 433.2 MB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.563e-06/0.1825, allocations: 1.5 kB / 433.2 MB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.694e-06/0.1825, allocations: 1.375 kB / 433.2 MB, free: 17.36 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.142e-06/0.1825, allocations: 0 / 433.2 MB, free: 17.36 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.666e-05/0.1825, allocations: 51.72 kB / 433.2 MB, free: 17.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1825, allocations: 0 / 433.2 MB, free: 17.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002527/0.1828, allocations: 86.73 kB / 433.3 MB, free: 17.35 MB / 426.7 MB 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.0003844/0.1832, allocations: 267.5 kB / 433.6 MB, free: 17.29 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 8.927e-05/0.1833, allocations: 66.31 kB / 433.6 MB, free: 17.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.338e-06/0.1833, allocations: 3.5 kB / 433.6 MB, free: 17.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 6.813e-06/0.1833, allocations: 9.172 kB / 433.6 MB, free: 17.24 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 5.426e-05/0.1833, allocations: 11.31 kB / 433.6 MB, free: 17.24 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000174/0.1835, allocations: 196.2 kB / 433.8 MB, free: 17.09 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.011e-05/0.1835, allocations: 69.52 kB / 433.9 MB, free: 17.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.503e-05/0.1835, allocations: 4.812 kB / 433.9 MB, free: 17.02 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.163e-05/0.1836, allocations: 49.88 kB / 434 MB, free: 16.98 MB / 426.7 MB Notification: Performance of SimCode: time 3.7e-07/0.1836, allocations: 0 / 434 MB, free: 16.98 MB / 426.7 MB Notification: Performance of Templates: time 0.004151/0.1877, allocations: 2.543 MB / 436.5 MB, free: 16.94 MB / 426.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.3548740576952696]