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.001811/0.001811, allocations: 93.47 kB / 19.44 MB, free: 336 kB / 13.93 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.00198/0.00198, allocations: 169.2 kB / 22.76 MB, free: 1.664 MB / 18.57 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.555/1.555, allocations: 177.1 MB / 203.1 MB, free: 5.535 MB / 186.7 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.003203/0.003203, allocations: 242.5 kB / 259.8 MB, free: 12.88 MB / 250.7 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.166/1.166, allocations: 138.5 MB / 454.7 MB, free: 1.5 MB / 362.7 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: Performance of FrontEnd - loaded program: time 1.34e-05/1.34e-05, allocations: 4 kB / 0.5543 GB, free: 0.9062 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.67e-05/4.01e-05, allocations: 5.406 kB / 0.5543 GB, free: 0.9023 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001595/0.001635, allocations: 0.5169 MB / 0.5548 GB, free: 392 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.003032/0.004667, allocations: 1.634 MB / 0.5564 GB, free: 14.73 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.809e-05/0.004705, allocations: 4 kB / 0.5564 GB, free: 14.72 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000261/0.004966, allocations: 59.84 kB / 0.5565 GB, free: 14.66 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 4.986e-05/0.005016, allocations: 35.83 kB / 0.5565 GB, free: 14.63 MB / 490.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'. [/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.001165/0.006181, allocations: 259.1 kB / 0.5567 GB, free: 14.38 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 9.388e-05/0.006275, allocations: 39.89 kB / 0.5568 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.481e-05/0.00631, allocations: 0 / 0.5568 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.773e-05/0.006368, allocations: 27.84 kB / 0.5568 GB, free: 14.31 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.17e-05/0.006449, allocations: 43.94 kB / 0.5568 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.6e-05/0.006465, allocations: 0 / 0.5568 GB, free: 14.27 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008121/0.007278, allocations: 423.1 kB / 0.5572 GB, free: 13.85 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.895e-05/0.007347, allocations: 35.86 kB / 0.5573 GB, free: 13.82 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.975e-05/0.007376, allocations: 7.938 kB / 0.5573 GB, free: 13.81 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005777/0.007954, allocations: 347.1 kB / 0.5576 GB, free: 13.47 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.081e-06/0.00796, allocations: 4 kB / 0.5576 GB, free: 13.46 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.007961, allocations: 0 / 0.5576 GB, free: 13.46 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.94e-06/0.007966, allocations: 0 / 0.5576 GB, free: 13.46 MB / 490.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.0006032/0.008569, allocations: 471.2 kB / 0.5581 GB, free: 12.97 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.008609, allocations: 8.75 kB / 0.5581 GB, free: 12.96 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.114e-05/0.00866, allocations: 12.84 kB / 0.5581 GB, free: 12.95 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002036/0.008864, allocations: 136.5 kB / 0.5582 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.093e-05/0.008875, allocations: 384 / 0.5582 GB, free: 12.79 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.008885, allocations: 8.375 kB / 0.5582 GB, free: 12.78 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001064/0.008992, allocations: 30.25 kB / 0.5583 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.009, allocations: 192 / 0.5583 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.096e-06/0.009008, allocations: 384 / 0.5583 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.009014, allocations: 3.938 kB / 0.5583 GB, free: 12.74 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.142e-05/0.009036, allocations: 7.938 kB / 0.5583 GB, free: 12.73 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002167/0.009252, allocations: 152.6 kB / 0.5584 GB, free: 12.55 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.576e-05/0.009318, allocations: 27.06 kB / 0.5584 GB, free: 12.51 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.597e-05/0.009344, allocations: 11.75 kB / 0.5585 GB, free: 12.5 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.104e-05/0.009385, allocations: 7.984 kB / 0.5585 GB, free: 12.49 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.406e-05/0.009419, allocations: 37.39 kB / 0.5585 GB, free: 12.44 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 8.11e-07/0.00942, allocations: 0 / 0.5585 GB, free: 12.44 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001645/0.009584, allocations: 45.55 kB / 0.5585 GB, free: 12.39 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.009636, allocations: 59.34 kB / 0.5586 GB, free: 12.32 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.009929, allocations: 265.5 kB / 0.5589 GB, free: 12.04 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.404e-05/0.009953, allocations: 29.7 kB / 0.5589 GB, free: 12.01 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.01007, allocations: 150.9 kB / 0.559 GB, free: 11.86 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.251e-05/0.01008, allocations: 3.953 kB / 0.559 GB, free: 11.85 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.838e-05/0.01015, allocations: 39.36 kB / 0.5591 GB, free: 11.8 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002912/0.01044, allocations: 0.5001 MB / 0.5596 GB, free: 11.29 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.047e-05/0.01047, allocations: 16.12 kB / 0.5596 GB, free: 11.28 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.329e-05/0.01049, allocations: 12 kB / 0.5596 GB, free: 11.27 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.284e-05/0.01057, allocations: 48.16 kB / 0.5596 GB, free: 11.22 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.01057, allocations: 4 kB / 0.5596 GB, free: 11.21 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001333/0.0107, allocations: 85.58 kB / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.01073, allocations: 4 kB / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.523e-05/0.01074, allocations: 0 / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.01076, allocations: 4 kB / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.319e-05/0.01077, allocations: 0 / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.01078, allocations: 3.938 kB / 0.5597 GB, free: 11.11 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.92e-05/0.01081, allocations: 15.95 kB / 0.5597 GB, free: 11.1 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.105e-06/0.01082, allocations: 4 kB / 0.5597 GB, free: 11.09 MB / 490.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: 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.0001419/0.01096, allocations: 160.5 kB / 0.5599 GB, free: 10.93 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.01098, allocations: 11.91 kB / 0.5599 GB, free: 10.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001149/0.01109, allocations: 50.12 kB / 0.56 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.0111, allocations: 3.984 kB / 0.56 GB, free: 10.86 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.598e-06/0.01111, allocations: 3.938 kB / 0.56 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.01111, allocations: 0 / 0.56 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003925/0.0115, allocations: 148.6 kB / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.0115, allocations: 4.031 kB / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.709e-06/0.01151, allocations: 0 / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.473e-06/0.01151, allocations: 0 / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.002e-06/0.01152, allocations: 0 / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.01152, allocations: 4 kB / 0.5601 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.01152, allocations: 0 / 0.5601 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001175/0.01163, allocations: 84.28 kB / 0.5602 GB, free: 10.56 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.713e-05/0.01165, allocations: 7.953 kB / 0.5602 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.289e-05/0.01166, allocations: 0 / 0.5602 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.329e-05/0.01168, allocations: 3.938 kB / 0.5602 GB, free: 10.55 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.263e-05/0.0117, allocations: 7.984 kB / 0.5602 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.08e-06/0.01171, allocations: 7.969 kB / 0.5602 GB, free: 10.53 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001454/0.01185, allocations: 176.3 kB / 0.5604 GB, free: 10.36 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01185, allocations: 0 / 0.5604 GB, free: 10.36 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003624/0.01221, allocations: 87.8 kB / 0.5605 GB, free: 10.27 MB / 490.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.0007468/0.01296, allocations: 250 kB / 0.5607 GB, free: 10.05 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001721/0.01313, allocations: 77.36 kB / 0.5608 GB, free: 9.961 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.01313, allocations: 0 / 0.5608 GB, free: 9.961 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.17e-05/0.01316, allocations: 11.69 kB / 0.5608 GB, free: 9.945 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001451/0.0133, allocations: 6.047 kB / 0.5608 GB, free: 9.945 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.01368, allocations: 190.9 kB / 0.561 GB, free: 9.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001126/0.01379, allocations: 92.17 kB / 0.5611 GB, free: 9.621 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 2.054e-05/0.01381, allocations: 4 kB / 0.5611 GB, free: 9.617 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.215e-05/0.01383, allocations: 12.62 kB / 0.5611 GB, free: 9.602 MB / 490.7 MB Notification: Performance of SimCode: time 4.51e-07/0.01383, allocations: 3.938 kB / 0.5611 GB, free: 9.598 MB / 490.7 MB Notification: Performance of Templates: time 0.006419/0.02025, allocations: 2.136 MB / 0.5632 GB, free: 7.465 MB / 490.7 MB " [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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 5.9839208429912105]