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.001027/0.001027, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001661/0.002688, allocations: 440 kB / 10.41 MB, free: 284 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.0009673/0.0009673, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.004845/0.005813, allocations: 475.6 kB / 11.79 MB, free: 2.375 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.9383/0.9383, allocations: 177.2 MB / 189.7 MB, free: 5.234 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08106/1.019, allocations: 53.66 MB / 243.4 MB, free: 15.5 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.00218/0.00218, allocations: 226.5 kB / 244.4 MB, free: 14.54 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001816/0.003996, allocations: 479.6 kB / 244.8 MB, free: 14.07 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.6791/0.6791, allocations: 138.7 MB / 384.3 MB, free: 360 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07343/0.7526, allocations: 42.4 MB / 426.7 MB, free: 5.832 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_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: Performance of FrontEnd - loaded program: time 1.522e-06/1.522e-06, allocations: 0 / 428 MB, free: 4.516 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.821e-05, allocations: 2.312 kB / 428 MB, free: 4.512 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001143/0.001161, allocations: 0.5831 MB / 428.6 MB, free: 3.926 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.002774, allocations: 1.657 MB / 430.3 MB, free: 2.25 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.096e-05/0.002805, allocations: 3.938 kB / 430.3 MB, free: 2.246 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.293e-05/0.002878, allocations: 23.97 kB / 430.3 MB, free: 2.223 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 1.903e-05/0.002897, allocations: 11.92 kB / 430.3 MB, free: 2.211 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.0006166/0.003514, allocations: 239 kB / 430.5 MB, free: 1.977 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.618e-05/0.00357, allocations: 19.92 kB / 430.6 MB, free: 1.957 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.581e-05/0.003596, allocations: 0 / 430.6 MB, free: 1.957 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.63e-05/0.003642, allocations: 15.98 kB / 430.6 MB, free: 1.941 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.985e-05/0.003672, allocations: 19.92 kB / 430.6 MB, free: 1.922 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.004e-05/0.003682, allocations: 0 / 430.6 MB, free: 1.922 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.000546/0.004228, allocations: 443 kB / 431 MB, free: 1.488 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 4.137e-05/0.004269, allocations: 23.92 kB / 431.1 MB, free: 1.465 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.369e-05/0.004283, allocations: 7.938 kB / 431.1 MB, free: 1.457 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003078/0.004591, allocations: 267.4 kB / 431.3 MB, free: 1.195 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.538e-06/0.0046, allocations: 4 kB / 431.3 MB, free: 1.191 MB / 410.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.004601, allocations: 0 / 431.3 MB, free: 1.191 MB / 410.7 MB Notification: Performance of Transformations before backend: time 9.317e-06/0.00461, allocations: 0 / 431.3 MB, free: 1.191 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.0003237/0.004934, allocations: 339.8 kB / 431.7 MB, free: 0.8359 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.731e-05/0.004961, allocations: 12.03 kB / 431.7 MB, free: 0.8242 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.237e-05/0.004984, allocations: 4.922 kB / 431.7 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001081/0.005092, allocations: 133.5 kB / 431.8 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.65e-06/0.005098, allocations: 384 / 431.8 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.564e-06/0.005105, allocations: 384 / 431.8 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.962e-05/0.005165, allocations: 37.08 kB / 431.8 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.548e-06/0.005169, allocations: 192 / 431.8 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.509e-06/0.005174, allocations: 384 / 431.8 MB, free: 0.6211 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.00518, allocations: 3.938 kB / 431.8 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.993e-06/0.005187, allocations: 0 / 431.8 MB, free: 0.6172 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.908e-05/0.005266, allocations: 82.59 kB / 431.9 MB, free: 0.5195 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.905e-05/0.005295, allocations: 22.5 kB / 431.9 MB, free: 500 kB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.899e-06/0.005305, allocations: 8.953 kB / 432 MB, free: 488 kB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.003e-05/0.005335, allocations: 7.984 kB / 432 MB, free: 480 kB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.63e-05/0.005351, allocations: 34.56 kB / 432 MB, free: 436 kB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 5.51e-07/0.005352, allocations: 0 / 432 MB, free: 436 kB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 6.35e-05/0.005415, allocations: 33.7 kB / 432 MB, free: 396 kB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.176e-05/0.005437, allocations: 51.41 kB / 432.1 MB, free: 332 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.981e-05/0.005517, allocations: 155.2 kB / 432.2 MB, free: 164 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.616e-06/0.005525, allocations: 25.83 kB / 432.3 MB, free: 132 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.023e-05/0.005556, allocations: 104.1 kB / 432.4 MB, free: 24 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.636e-06/0.005564, allocations: 0 / 432.4 MB, free: 24 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.1816/0.1871, allocations: 19.62 kB / 432.4 MB, free: 1.895 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 5.134e-05/0.1872, allocations: 325.8 kB / 432.7 MB, free: 1.582 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.055e-05/0.1872, allocations: 10.64 kB / 432.7 MB, free: 1.578 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.45e-05/0.1872, allocations: 9.062 kB / 432.7 MB, free: 1.578 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.886e-05/0.1873, allocations: 30.05 kB / 432.7 MB, free: 1.566 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1873, allocations: 0 / 432.7 MB, free: 1.566 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.288e-05/0.1874, allocations: 58.22 kB / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1874, allocations: 4.312 kB / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/0.1874, allocations: 4.031 kB / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.404e-05/0.1874, allocations: 0 / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.513e-05/0.1874, allocations: 3.594 kB / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.026e-06/0.1874, allocations: 4.438 kB / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.413e-05/0.1874, allocations: 11.73 kB / 432.8 MB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.775e-06/0.1875, allocations: 2.188 kB / 432.8 MB, free: 1.535 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: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],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 8.498e-05/0.1875, allocations: 121.6 kB / 433 MB, free: 17.42 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.063e-06/0.1875, allocations: 5.391 kB / 433 MB, free: 17.42 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.606e-05/0.1876, allocations: 40.61 kB / 433 MB, free: 17.39 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.1876, allocations: 0.75 kB / 433 MB, free: 17.39 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.734e-06/0.1876, allocations: 3.938 kB / 433 MB, free: 17.38 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.1876, allocations: 0.7188 kB / 433 MB, free: 17.38 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.623e-05/0.1877, allocations: 75.22 kB / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1877, allocations: 0.7188 kB / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.747e-06/0.1877, allocations: 3.531 kB / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.087e-06/0.1877, allocations: 6.266 kB / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-06/0.1877, allocations: 3.312 kB / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-06/0.1877, allocations: 1.688 kB / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.1877, allocations: 0 / 433.1 MB, free: 17.31 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.1877, allocations: 5.125 kB / 433.1 MB, free: 17.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.889e-05/0.1877, allocations: 70.95 kB / 433.2 MB, free: 17.23 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.763e-06/0.1878, allocations: 0 / 433.2 MB, free: 17.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.174e-06/0.1878, allocations: 1.719 kB / 433.2 MB, free: 17.23 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.027e-06/0.1878, allocations: 2.562 kB / 433.2 MB, free: 17.23 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.355e-06/0.1878, allocations: 3.719 kB / 433.2 MB, free: 17.23 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.394e-05/0.1878, allocations: 37.61 kB / 433.2 MB, free: 17.22 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1878, allocations: 0 / 433.2 MB, free: 17.22 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0003016/0.1881, allocations: 84.59 kB / 433.3 MB, free: 17.22 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.0004425/0.1885, allocations: 271.6 kB / 433.6 MB, free: 17.15 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.574e-05/0.1886, allocations: 58.78 kB / 433.6 MB, free: 17.11 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.489e-06/0.1886, allocations: 2.219 kB / 433.6 MB, free: 17.11 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 7.284e-06/0.1887, allocations: 8.312 kB / 433.6 MB, free: 17.11 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.398e-05/0.1887, allocations: 10.06 kB / 433.6 MB, free: 17.11 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001752/0.1889, allocations: 153 kB / 433.8 MB, free: 16.98 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.244e-05/0.1889, allocations: 64.5 kB / 433.8 MB, free: 16.91 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.385e-05/0.1889, allocations: 3.453 kB / 433.9 MB, free: 16.91 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.189, allocations: 52.69 kB / 433.9 MB, free: 16.86 MB / 426.7 MB Notification: Performance of SimCode: time 6.12e-07/0.189, allocations: 0 / 433.9 MB, free: 16.86 MB / 426.7 MB Notification: Performance of Templates: time 0.004361/0.1933, allocations: 2.495 MB / 436.4 MB, free: 16.83 MB / 426.7 MB " [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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.397179728373885]