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.001569/0.001569, allocations: 104.3 kB / 19.7 MB, free: 2.004 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.001731/0.001731, allocations: 221 kB / 23 MB, free: 4.918 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.383/1.383, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.002512/0.002512, allocations: 289.6 kB / 313.5 MB, free: 2.621 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.169/1.169, allocations: 180.6 MB / 0.5377 GB, free: 14.45 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_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: 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.002802/0.002802, allocations: 106.3 kB / 0.7407 GB, free: 27.73 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1743/0.1771, allocations: 95.38 MB / 0.8338 GB, free: 7.828 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001713/0.1788, allocations: 0.5205 MB / 0.8344 GB, free: 7.305 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002465/0.1813, allocations: 1.601 MB / 0.8359 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.101e-05/0.1813, allocations: 0 / 0.8359 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001774/0.1815, allocations: 59.84 kB / 0.836 GB, free: 5.629 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.989e-05/0.1816, allocations: 43.88 kB / 0.836 GB, free: 5.586 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.0008726/0.1824, allocations: 259.3 kB / 0.8363 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 7.125e-05/0.1825, allocations: 35.84 kB / 0.8363 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.14e-05/0.1826, allocations: 0 / 0.8363 GB, free: 5.297 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.938e-05/0.1826, allocations: 23.97 kB / 0.8363 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.116e-05/0.1827, allocations: 51.88 kB / 0.8364 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.1827, allocations: 0 / 0.8364 GB, free: 5.223 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006744/0.1834, allocations: 431.2 kB / 0.8368 GB, free: 4.801 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.93e-05/0.1834, allocations: 19.92 kB / 0.8368 GB, free: 4.781 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.622e-05/0.1834, allocations: 23.81 kB / 0.8368 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.1838, allocations: 299.1 kB / 0.8371 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.1838, allocations: 0 / 0.8371 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.443e-06/0.1838, allocations: 0 / 0.8371 GB, free: 4.465 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.019e-06/0.1838, allocations: 0 / 0.8371 GB, free: 4.465 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.0004575/0.1843, allocations: 369.3 kB / 0.8375 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.1843, allocations: 13.94 kB / 0.8375 GB, free: 4.062 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.653e-05/0.1844, allocations: 12.84 kB / 0.8375 GB, free: 4.051 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000161/0.1845, allocations: 131 kB / 0.8376 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.125e-06/0.1845, allocations: 384 / 0.8376 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.243e-06/0.1846, allocations: 384 / 0.8376 GB, free: 3.898 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.277e-05/0.1846, allocations: 53.94 kB / 0.8377 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-06/0.1847, allocations: 0 / 0.8377 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.192e-06/0.1847, allocations: 0 / 0.8377 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.006e-06/0.1847, allocations: 0 / 0.8377 GB, free: 3.84 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.115e-05/0.1847, allocations: 19.98 kB / 0.8377 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001691/0.1849, allocations: 141.2 kB / 0.8378 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.237e-05/0.1849, allocations: 38.5 kB / 0.8379 GB, free: 3.605 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.341e-05/0.1849, allocations: 16.91 kB / 0.8379 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 2.91e-05/0.185, allocations: 4 kB / 0.8379 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.354e-05/0.185, allocations: 30.56 kB / 0.8379 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.185, allocations: 0 / 0.8379 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.000155/0.1852, allocations: 73.56 kB / 0.838 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.59e-05/0.1852, allocations: 51.41 kB / 0.838 GB, free: 3.402 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002122/0.1854, allocations: 212 kB / 0.8382 GB, free: 3.184 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.695e-05/0.1854, allocations: 29.64 kB / 0.8383 GB, free: 3.148 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.72e-05/0.1855, allocations: 112.2 kB / 0.8384 GB, free: 3.035 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 8.435e-06/0.1855, allocations: 4 kB / 0.8384 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.357e-05/0.1856, allocations: 29.7 kB / 0.8384 GB, free: 2.996 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1857, allocations: 322.8 kB / 0.8387 GB, free: 2.672 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.023e-05/0.1858, allocations: 55.97 kB / 0.8388 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.823e-05/0.1858, allocations: 58.23 kB / 0.8388 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001031/0.186, allocations: 88.81 kB / 0.8389 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.186, allocations: 0 / 0.8389 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001896/0.1861, allocations: 157.5 kB / 0.839 GB, free: 2.312 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.394e-05/0.1862, allocations: 8 kB / 0.839 GB, free: 2.305 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.1862, allocations: 3.938 kB / 0.8391 GB, free: 2.301 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.1862, allocations: 4.062 kB / 0.8391 GB, free: 2.297 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.302e-05/0.1862, allocations: 3.938 kB / 0.8391 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.1862, allocations: 0 / 0.8391 GB, free: 2.293 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.633e-05/0.1862, allocations: 23.83 kB / 0.8391 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.1862, allocations: 0 / 0.8391 GB, free: 2.27 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: 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.0001626/0.1864, allocations: 133.6 kB / 0.8392 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.1864, allocations: 11.95 kB / 0.8392 GB, free: 2.121 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1865, allocations: 62.11 kB / 0.8393 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1865, allocations: 0 / 0.8393 GB, free: 2.055 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.1865, allocations: 8.031 kB / 0.8393 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.053e-06/0.1865, allocations: 0 / 0.8393 GB, free: 2.047 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.1867, allocations: 133.3 kB / 0.8394 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1867, allocations: 0 / 0.8394 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.647e-06/0.1867, allocations: 0 / 0.8394 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.413e-06/0.1867, allocations: 0 / 0.8394 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.719e-06/0.1867, allocations: 0 / 0.8394 GB, free: 1.887 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.1867, allocations: 11.81 kB / 0.8394 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1867, allocations: 0 / 0.8394 GB, free: 1.875 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.185e-05/0.1868, allocations: 89.02 kB / 0.8395 GB, free: 1.77 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.702e-05/0.1868, allocations: 11.94 kB / 0.8395 GB, free: 1.758 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.1868, allocations: 4 kB / 0.8395 GB, free: 1.754 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.66e-05/0.1868, allocations: 3.938 kB / 0.8395 GB, free: 1.75 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.137e-05/0.1868, allocations: 4 kB / 0.8395 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.003e-06/0.1868, allocations: 0 / 0.8395 GB, free: 1.746 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001263/0.1869, allocations: 151.2 kB / 0.8397 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6e-08/0.1869, allocations: 0 / 0.8397 GB, free: 1.598 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003159/0.1873, allocations: 87.8 kB / 0.8398 GB, free: 1.512 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.0005304/0.1878, allocations: 235.3 kB / 0.84 GB, free: 1.297 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001886/0.188, allocations: 117.6 kB / 0.8401 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.188, allocations: 0 / 0.8401 GB, free: 1.176 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.147e-05/0.188, allocations: 15.98 kB / 0.8401 GB, free: 1.16 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001382/0.1881, allocations: 4.688 kB / 0.8401 GB, free: 1.156 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003558/0.1885, allocations: 239.4 kB / 0.8403 GB, free: 0.8906 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.726e-05/0.1886, allocations: 100.3 kB / 0.8404 GB, free: 0.7734 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.829e-05/0.1886, allocations: 7.438 kB / 0.8404 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of SimCode: time 2.7e-07/0.1886, allocations: 0 / 0.8404 GB, free: 0.7656 MB / 0.5762 GB Notification: Performance of Templates: time 0.004638/0.1932, allocations: 2.393 MB / 0.8428 GB, free: 14.37 MB / 0.5919 GB " [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=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 9.755087919067591] Failed to read output from testmodel.py, exit status != 0: 0.20031988201662898 0.21465545000000003 0.027993866000000003 Calling exit ...