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.0007393/0.0007393, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000913/0.001652, allocations: 435.8 kB / 10.33 MB, free: 368 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.001082/0.001082, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001352/0.002434, 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.9003/0.9003, allocations: 177.2 MB / 189.6 MB, free: 5.312 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07735/0.9777, allocations: 53.65 MB / 243.2 MB, free: 15.59 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.001274/0.001274, allocations: 230.6 kB / 244.2 MB, free: 14.64 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009379/0.002211, allocations: 471 kB / 244.7 MB, free: 14.18 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.7402/0.7402, allocations: 138.7 MB / 384.1 MB, free: 488 kB / 362.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.06051/0.8007, allocations: 42.4 MB / 426.5 MB, free: 5.957 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.312e-06/1.312e-06, allocations: 0 / 427.7 MB, free: 4.684 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.112e-05/1.243e-05, allocations: 10.25 kB / 427.7 MB, free: 4.672 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.0008654/0.0008779, allocations: 0.5751 MB / 428.3 MB, free: 4.094 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001623/0.002501, allocations: 1.668 MB / 430 MB, free: 2.406 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.818e-05/0.002529, allocations: 0 / 430 MB, free: 2.406 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 7.972e-05/0.002609, allocations: 15.92 kB / 430 MB, free: 2.391 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 2.316e-05/0.002632, allocations: 19.92 kB / 430 MB, free: 2.371 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.0004946/0.003127, allocations: 227.1 kB / 430.2 MB, free: 2.148 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 5.701e-05/0.003184, allocations: 31.89 kB / 430.3 MB, free: 2.117 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.896e-05/0.003213, allocations: 4 kB / 430.3 MB, free: 2.113 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.101e-05/0.003264, allocations: 15.92 kB / 430.3 MB, free: 2.098 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.063e-05/0.003295, allocations: 11.98 kB / 430.3 MB, free: 2.086 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.1e-05/0.003306, allocations: 4 kB / 430.3 MB, free: 2.082 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.0004719/0.003777, allocations: 443 kB / 430.7 MB, free: 1.648 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 3.872e-05/0.003816, allocations: 23.92 kB / 430.8 MB, free: 1.625 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.251e-05/0.003829, allocations: 4 kB / 430.8 MB, free: 1.621 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002831/0.004112, allocations: 279.2 kB / 431 MB, free: 1.348 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.037e-05/0.004122, allocations: 0 / 431 MB, free: 1.348 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.004123, allocations: 0 / 431 MB, free: 1.348 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.004135, allocations: 0 / 431 MB, free: 1.348 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.000309/0.004444, allocations: 331.9 kB / 431.4 MB, free: 1 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.926e-05/0.004473, allocations: 11.98 kB / 431.4 MB, free: 0.9883 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.328e-05/0.004496, allocations: 12.92 kB / 431.4 MB, free: 0.9766 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.004605, allocations: 133.5 kB / 431.5 MB, free: 0.8203 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.424e-06/0.004613, allocations: 4.375 kB / 431.5 MB, free: 0.8164 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.342e-06/0.004619, allocations: 4.375 kB / 431.5 MB, free: 0.8125 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.876e-05/0.004678, allocations: 29.09 kB / 431.6 MB, free: 0.7773 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.004684, allocations: 4.125 kB / 431.6 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-06/0.00469, allocations: 384 / 431.6 MB, free: 0.7734 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.004695, allocations: 7.938 kB / 431.6 MB, free: 0.7656 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.065e-05/0.004706, allocations: 7.984 kB / 431.6 MB, free: 0.7578 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.16e-05/0.004777, allocations: 66.66 kB / 431.6 MB, free: 0.6758 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.058e-05/0.004808, allocations: 26.61 kB / 431.7 MB, free: 0.6406 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.758e-06/0.004818, allocations: 4.859 kB / 431.7 MB, free: 0.6328 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.752e-05/0.004855, allocations: 4.062 kB / 431.7 MB, free: 0.6289 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.842e-05/0.004874, allocations: 34.56 kB / 431.7 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.004874, allocations: 0 / 431.7 MB, free: 0.5859 MB / 410.7 MB Notification: Performance of matching and sorting (n=1): time 7.652e-05/0.004951, allocations: 37.62 kB / 431.8 MB, free: 0.543 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.552e-05/0.004976, allocations: 51.41 kB / 431.8 MB, free: 492 kB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.108e-05/0.005057, allocations: 154.5 kB / 432 MB, free: 324 kB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.959e-06/0.005067, allocations: 29.7 kB / 432 MB, free: 288 kB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.603e-05/0.005103, allocations: 96.06 kB / 432.1 MB, free: 188 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.342e-06/0.00511, allocations: 8.062 kB / 432.1 MB, free: 180 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.005134, allocations: 21.7 kB / 432.1 MB, free: 152 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.1642/0.1693, allocations: 326.4 kB / 432.4 MB, free: 1.762 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.968e-05/0.1694, allocations: 8.859 kB / 432.4 MB, free: 1.758 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.399e-05/0.1694, allocations: 7.562 kB / 432.4 MB, free: 1.758 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.075e-05/0.1694, allocations: 27.62 kB / 432.5 MB, free: 1.746 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.1694, allocations: 0 / 432.5 MB, free: 1.746 MB / 410.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 8.048e-05/0.1695, allocations: 61.92 kB / 432.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/0.1695, allocations: 5.469 kB / 432.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.624e-05/0.1695, allocations: 2.078 kB / 432.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.1695, allocations: 1.438 kB / 432.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.986e-05/0.1696, allocations: 1.062 kB / 432.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.156e-06/0.1696, allocations: 4.594 kB / 432.5 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.518e-05/0.1696, allocations: 10.45 kB / 432.6 MB, free: 1.715 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.424e-06/0.1696, allocations: 1.719 kB / 432.6 MB, free: 1.715 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 6.506e-05/0.1697, allocations: 115.9 kB / 432.7 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.492e-06/0.1697, allocations: 3.688 kB / 432.7 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.584e-05/0.1697, allocations: 45.56 kB / 432.7 MB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.1697, allocations: 1.5 kB / 432.7 MB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.1698, allocations: 3.938 kB / 432.7 MB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.1698, allocations: 6 kB / 432.7 MB, free: 1.562 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.518e-05/0.1698, allocations: 72.61 kB / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1698, allocations: 0 / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.437e-06/0.1698, allocations: 1.281 kB / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.756e-06/0.1698, allocations: 9.578 kB / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-06/0.1698, allocations: 2.156 kB / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.437e-06/0.1698, allocations: 1.25 kB / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.1698, allocations: 2.531 kB / 432.8 MB, free: 1.488 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.1698, allocations: 5.281 kB / 432.8 MB, free: 1.484 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.365e-05/0.1699, allocations: 59.8 kB / 432.9 MB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.652e-06/0.1699, allocations: 1.375 kB / 432.9 MB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.304e-06/0.1699, allocations: 5.375 kB / 432.9 MB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.047e-06/0.1699, allocations: 8.406 kB / 432.9 MB, free: 1.414 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-06/0.1699, allocations: 0 / 432.9 MB, free: 1.414 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.964e-05/0.1699, allocations: 36.16 kB / 432.9 MB, free: 1.402 MB / 410.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1699, allocations: 0 / 432.9 MB, free: 1.402 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002475/0.1702, allocations: 84.27 kB / 433 MB, free: 1.402 MB / 410.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.0004153/0.1706, allocations: 272.1 kB / 433.3 MB, free: 1.332 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 8.451e-05/0.1707, allocations: 58.66 kB / 433.3 MB, free: 1.293 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.398e-06/0.1707, allocations: 2.5 kB / 433.3 MB, free: 1.293 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.418e-06/0.1707, allocations: 10.5 kB / 433.3 MB, free: 1.285 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.442e-05/0.1707, allocations: 7.125 kB / 433.4 MB, free: 1.285 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001673/0.1709, allocations: 151.7 kB / 433.5 MB, free: 1.156 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.801e-05/0.1709, allocations: 59.55 kB / 433.6 MB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 1.863e-05/0.1709, allocations: 5.219 kB / 433.6 MB, free: 1.086 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.171, allocations: 52.64 kB / 433.6 MB, free: 1.043 MB / 410.7 MB Notification: Performance of SimCode: time 4.21e-07/0.171, allocations: 0 / 433.6 MB, free: 1.043 MB / 410.7 MB Notification: Performance of Templates: time 0.004357/0.1753, allocations: 2.525 MB / 436.1 MB, free: 1.008 MB / 410.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.299194261431694]