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.001299/0.001299, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001457/0.001457, allocations: 210.5 kB / 22.24 MB, free: 4.859 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 7.789 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.002591/0.002591, allocations: 281.4 kB / 312.7 MB, free: 2.609 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.248/1.248, allocations: 180.6 MB / 0.5369 GB, free: 14.46 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.002995/0.002995, allocations: 99.09 kB / 0.74 GB, free: 27.99 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.179/0.182, allocations: 95.38 MB / 0.8331 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001901/0.1839, allocations: 0.5194 MB / 0.8336 GB, free: 7.32 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002706/0.1866, allocations: 1.609 MB / 0.8352 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.225e-05/0.1866, allocations: 0 / 0.8352 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001439/0.1867, allocations: 23.86 kB / 0.8352 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 3.026e-05/0.1868, allocations: 11.98 kB / 0.8352 GB, free: 5.66 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.001068/0.1878, allocations: 263.2 kB / 0.8355 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 9.161e-05/0.1879, allocations: 23.92 kB / 0.8355 GB, free: 5.379 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.88e-05/0.188, allocations: 3.984 kB / 0.8355 GB, free: 5.375 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.301e-05/0.188, allocations: 8 kB / 0.8355 GB, free: 5.367 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 5.299e-05/0.1881, allocations: 19.91 kB / 0.8355 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.1881, allocations: 0 / 0.8355 GB, free: 5.348 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008855/0.189, allocations: 423.2 kB / 0.8359 GB, free: 4.934 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 6.428e-05/0.189, allocations: 27.86 kB / 0.8359 GB, free: 4.906 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.547e-05/0.1891, allocations: 11.88 kB / 0.836 GB, free: 4.895 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0005267/0.1896, allocations: 295.1 kB / 0.8362 GB, free: 4.605 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1896, allocations: 4 kB / 0.8362 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of FrontEnd: time 9.12e-07/0.1896, allocations: 0 / 0.8362 GB, free: 4.602 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.428e-06/0.1896, allocations: 0 / 0.8362 GB, free: 4.602 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.0004792/0.1901, allocations: 333.6 kB / 0.8366 GB, free: 4.246 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.1901, allocations: 9.344 kB / 0.8366 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.689e-05/0.1902, allocations: 8.891 kB / 0.8366 GB, free: 4.23 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001754/0.1903, allocations: 122.4 kB / 0.8367 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1904, allocations: 384 / 0.8367 GB, free: 4.086 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.495e-05/0.1904, allocations: 4.312 kB / 0.8367 GB, free: 4.082 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001073/0.1905, allocations: 46 kB / 0.8367 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.495e-06/0.1905, allocations: 4 kB / 0.8368 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.865e-06/0.1905, allocations: 0 / 0.8368 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1905, allocations: 0 / 0.8368 GB, free: 4.027 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.692e-05/0.1905, allocations: 20 kB / 0.8368 GB, free: 4.008 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.1907, allocations: 129.3 kB / 0.8369 GB, free: 3.852 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.835e-05/0.1908, allocations: 22.58 kB / 0.8369 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.968e-05/0.1908, allocations: 20.84 kB / 0.8369 GB, free: 3.797 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.522e-05/0.1908, allocations: 4 kB / 0.8369 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.767e-05/0.1909, allocations: 30.56 kB / 0.837 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.132e-06/0.1909, allocations: 0 / 0.837 GB, free: 3.754 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001727/0.191, allocations: 81.52 kB / 0.837 GB, free: 3.668 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.053e-05/0.1911, allocations: 51.41 kB / 0.8371 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.1913, allocations: 164.8 kB / 0.8373 GB, free: 3.438 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.521e-05/0.1913, allocations: 25.7 kB / 0.8373 GB, free: 3.406 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.999e-05/0.1913, allocations: 100.1 kB / 0.8374 GB, free: 3.305 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.059e-05/0.1913, allocations: 3.938 kB / 0.8374 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.646e-05/0.1914, allocations: 29.7 kB / 0.8374 GB, free: 3.266 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001413/0.1915, allocations: 322.8 kB / 0.8377 GB, free: 2.941 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.848e-05/0.1916, allocations: 39.92 kB / 0.8377 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.253e-05/0.1916, allocations: 43.92 kB / 0.8378 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.706e-05/0.1917, allocations: 68.98 kB / 0.8379 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1917, allocations: 0 / 0.8379 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001578/0.1919, allocations: 121.6 kB / 0.838 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.1919, allocations: 6.188 kB / 0.838 GB, free: 2.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.555e-05/0.1919, allocations: 3.938 kB / 0.838 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.1919, allocations: 3.984 kB / 0.838 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.35e-05/0.192, allocations: 7.938 kB / 0.838 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.029e-06/0.192, allocations: 0 / 0.838 GB, free: 2.645 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.309e-05/0.192, allocations: 7.953 kB / 0.838 GB, free: 2.637 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.044e-05/0.192, allocations: 4 kB / 0.838 GB, free: 2.633 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.000148/0.1922, allocations: 128.5 kB / 0.8381 GB, free: 2.5 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.475e-05/0.1922, allocations: 7.953 kB / 0.8381 GB, free: 2.492 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000121/0.1923, allocations: 61.44 kB / 0.8382 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.1923, allocations: 0 / 0.8382 GB, free: 2.422 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.1923, allocations: 3.984 kB / 0.8382 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1923, allocations: 0 / 0.8382 GB, free: 2.418 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001094/0.1924, allocations: 121.3 kB / 0.8383 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.1924, allocations: 0 / 0.8383 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.658e-06/0.1924, allocations: 0 / 0.8383 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1924, allocations: 3.984 kB / 0.8383 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.207e-06/0.1924, allocations: 8.031 kB / 0.8383 GB, free: 2.258 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1924, allocations: 3.938 kB / 0.8383 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.041e-06/0.1924, allocations: 0 / 0.8383 GB, free: 2.254 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.76e-05/0.1925, allocations: 81 kB / 0.8384 GB, free: 2.156 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.84e-05/0.1925, allocations: 7.953 kB / 0.8384 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.187e-05/0.1926, allocations: 0 / 0.8384 GB, free: 2.148 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.459e-05/0.1926, allocations: 7.875 kB / 0.8384 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.658e-05/0.1926, allocations: 4 kB / 0.8384 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.1926, allocations: 8 kB / 0.8384 GB, free: 2.129 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 9.975e-05/0.1927, allocations: 124.1 kB / 0.8386 GB, free: 2.008 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1927, allocations: 8.031 kB / 0.8386 GB, free: 2 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003609/0.1931, allocations: 87.8 kB / 0.8386 GB, free: 1.914 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.000609/0.1937, allocations: 226 kB / 0.8389 GB, free: 1.711 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001999/0.1939, allocations: 93.61 kB / 0.8389 GB, free: 1.613 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.1939, allocations: 8.062 kB / 0.839 GB, free: 1.605 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.044e-05/0.1939, allocations: 11.98 kB / 0.839 GB, free: 1.594 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001462/0.194, allocations: 6.234 kB / 0.839 GB, free: 1.59 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002991/0.1943, allocations: 161.3 kB / 0.8391 GB, free: 1.406 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.914e-05/0.1944, allocations: 79.31 kB / 0.8392 GB, free: 1.309 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 2.134e-05/0.1944, allocations: 4 kB / 0.8392 GB, free: 1.305 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.751e-05/0.1945, allocations: 7.438 kB / 0.8392 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of SimCode: time 3.11e-07/0.1945, allocations: 0 / 0.8392 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of Templates: time 0.00586/0.2003, allocations: 2.114 MB / 0.8413 GB, free: 15.18 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: 6.2904483284801245] Failed to read output from testmodel.py, exit status != 0: 0.20724677853286266 0.22214477400000002 0.029577346 Calling exit ...