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.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.001359/0.001359, allocations: 102.1 kB / 19.7 MB, free: 2.254 MB / 14.72 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.001526/0.001526, allocations: 220.5 kB / 23.01 MB, free: 4.609 MB / 14.72 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 1.407/1.407, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002554/0.002554, allocations: 280.4 kB / 313.5 MB, free: 2.789 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.17/1.17, allocations: 180.6 MB / 0.5377 GB, free: 12.87 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002811/0.002811, allocations: 105.7 kB / 0.7408 GB, free: 28.25 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1788/0.1816, allocations: 95.38 MB / 0.8339 GB, free: 8.121 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001829/0.1834, allocations: 0.5203 MB / 0.8344 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002566/0.186, allocations: 1.683 MB / 0.8361 GB, free: 5.898 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.826e-05/0.186, allocations: 7.938 kB / 0.8361 GB, free: 5.891 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001428/0.1862, allocations: 23.91 kB / 0.8361 GB, free: 5.867 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.423e-05/0.1862, allocations: 7.984 kB / 0.8361 GB, free: 5.859 MB / 0.5762 GB [/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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 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.001028/0.1872, allocations: 272.5 kB / 0.8364 GB, free: 5.594 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.388e-05/0.1873, allocations: 19.92 kB / 0.8364 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.492e-05/0.1873, allocations: 4 kB / 0.8364 GB, free: 5.57 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.913e-05/0.1874, allocations: 7.984 kB / 0.8364 GB, free: 5.562 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.946e-05/0.1874, allocations: 35.89 kB / 0.8364 GB, free: 5.527 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.306e-05/0.1874, allocations: 0 / 0.8364 GB, free: 5.527 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007975/0.1882, allocations: 455.2 kB / 0.8369 GB, free: 5.082 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.181e-05/0.1883, allocations: 27.91 kB / 0.8369 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.242e-05/0.1883, allocations: 19.81 kB / 0.8369 GB, free: 5.035 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004824/0.1888, allocations: 283.2 kB / 0.8372 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1888, allocations: 0 / 0.8372 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.192e-06/0.1888, allocations: 3.938 kB / 0.8372 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.1888, allocations: 0 / 0.8372 GB, free: 4.754 MB / 0.5762 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.0005012/0.1893, allocations: 342.4 kB / 0.8375 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.1894, allocations: 9.344 kB / 0.8375 GB, free: 4.383 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.785e-05/0.1894, allocations: 8.891 kB / 0.8375 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/0.1896, allocations: 122.5 kB / 0.8377 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.011e-05/0.1896, allocations: 384 / 0.8377 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.1896, allocations: 384 / 0.8377 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.1897, allocations: 42 kB / 0.8377 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.1897, allocations: 0 / 0.8377 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.815e-06/0.1897, allocations: 0 / 0.8377 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1897, allocations: 0 / 0.8377 GB, free: 4.184 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.26e-05/0.1897, allocations: 27.92 kB / 0.8377 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001789/0.1899, allocations: 148.7 kB / 0.8379 GB, free: 3.969 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 6.532e-05/0.19, allocations: 26.56 kB / 0.8379 GB, free: 3.934 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.332e-05/0.19, allocations: 12.92 kB / 0.8379 GB, free: 3.918 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.1901, allocations: 4 kB / 0.8379 GB, free: 3.914 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.1901, allocations: 42.48 kB / 0.8379 GB, free: 3.863 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 2.785e-06/0.1901, allocations: 4 kB / 0.838 GB, free: 3.859 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001658/0.1903, allocations: 65.53 kB / 0.838 GB, free: 3.789 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.587e-05/0.1903, allocations: 51.41 kB / 0.8381 GB, free: 3.727 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.1905, allocations: 168.5 kB / 0.8382 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1905, allocations: 25.7 kB / 0.8382 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.468e-05/0.1906, allocations: 104.1 kB / 0.8383 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.141e-05/0.1906, allocations: 0 / 0.8383 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.077e-05/0.1906, allocations: 25.7 kB / 0.8384 GB, free: 3.387 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1908, allocations: 327 kB / 0.8387 GB, free: 3.059 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.83e-05/0.1908, allocations: 43.98 kB / 0.8387 GB, free: 3.016 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.177e-05/0.1909, allocations: 39.98 kB / 0.8388 GB, free: 2.977 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.534e-05/0.191, allocations: 68.83 kB / 0.8388 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.191, allocations: 0 / 0.8388 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001635/0.1911, allocations: 129.5 kB / 0.839 GB, free: 2.773 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.56e-05/0.1911, allocations: 7.938 kB / 0.839 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.1912, allocations: 4 kB / 0.839 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1912, allocations: 0 / 0.839 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.348e-05/0.1912, allocations: 0 / 0.839 GB, free: 2.762 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.959e-06/0.1912, allocations: 4.062 kB / 0.839 GB, free: 2.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.419e-05/0.1912, allocations: 7.953 kB / 0.839 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.873e-06/0.1912, allocations: 0 / 0.839 GB, free: 2.75 MB / 0.5762 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.0001553/0.1914, allocations: 126.4 kB / 0.8391 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.282e-05/0.1914, allocations: 7.891 kB / 0.8391 GB, free: 2.609 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001216/0.1915, allocations: 65.42 kB / 0.8392 GB, free: 2.535 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1915, allocations: 3.938 kB / 0.8392 GB, free: 2.531 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.1915, allocations: 4.031 kB / 0.8392 GB, free: 2.527 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.212e-06/0.1915, allocations: 3.984 kB / 0.8392 GB, free: 2.523 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.1916, allocations: 144.7 kB / 0.8393 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.1916, allocations: 0 / 0.8393 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-06/0.1916, allocations: 0 / 0.8393 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.359e-06/0.1917, allocations: 3.938 kB / 0.8393 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.909e-06/0.1917, allocations: 0 / 0.8393 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.143e-06/0.1917, allocations: 0 / 0.8393 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.1917, allocations: 4 kB / 0.8393 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001022/0.1918, allocations: 77.08 kB / 0.8394 GB, free: 2.238 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.306e-05/0.1918, allocations: 11.89 kB / 0.8394 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.182e-05/0.1918, allocations: 0 / 0.8394 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.142e-05/0.1918, allocations: 0 / 0.8394 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.945e-05/0.1918, allocations: 7.984 kB / 0.8394 GB, free: 2.219 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.254e-06/0.1918, allocations: 3.938 kB / 0.8394 GB, free: 2.215 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.745e-05/0.1919, allocations: 122 kB / 0.8395 GB, free: 2.098 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1919, allocations: 4 kB / 0.8395 GB, free: 2.094 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003717/0.1923, allocations: 87.8 kB / 0.8396 GB, free: 2.008 MB / 0.5762 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.0005544/0.1928, allocations: 232.2 kB / 0.8398 GB, free: 1.797 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001756/0.193, allocations: 97.59 kB / 0.8399 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.193, allocations: 0 / 0.8399 GB, free: 1.695 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.496e-05/0.193, allocations: 12.06 kB / 0.84 GB, free: 1.684 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.1932, allocations: 5.875 kB / 0.84 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000339/0.1935, allocations: 195 kB / 0.8401 GB, free: 1.457 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003444/0.1939, allocations: 0.6963 MB / 0.8408 GB, free: 0.7344 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.922e-05/0.1939, allocations: 7.438 kB / 0.8408 GB, free: 0.7266 MB / 0.5762 GB Notification: Performance of SimCode: time 4.8e-07/0.1939, allocations: 3.938 kB / 0.8408 GB, free: 0.7227 MB / 0.5762 GB Notification: Performance of Templates: time 0.004793/0.1987, allocations: 2.255 MB / 0.843 GB, free: 14.46 MB / 0.5919 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.9514162868727] Failed to read output from testmodel.py, exit status != 0: 0.2064987940248102 0.221811268 0.029872139000000002 Calling exit ...