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.0009174/0.0009174, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 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.0009831/0.0009831, allocations: 181 kB / 23.36 MB, free: 1.133 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 0.9263/0.9263, allocations: 177.2 MB / 203.8 MB, free: 5.484 MB / 186.7 MB " [Timeout remaining time 179] 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.001618/0.001618, allocations: 237.8 kB / 260.5 MB, free: 12.71 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 0.6943/0.6943, allocations: 138.4 MB / 402.2 MB, free: 0.5625 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.413e-06/1.413e-06, allocations: 0 / 462.3 MB, free: 0.9336 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.618e-05/1.759e-05, allocations: 5.203 kB / 462.3 MB, free: 0.9297 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001468/0.001486, allocations: 0.5357 MB / 462.8 MB, free: 0.6484 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.002229/0.003714, allocations: 1.652 MB / 464.5 MB, free: 15.55 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.012e-05/0.003754, allocations: 0.6562 kB / 464.5 MB, free: 15.55 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002/0.003954, allocations: 66.75 kB / 464.5 MB, free: 15.54 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 4.032e-05/0.003995, allocations: 27 kB / 464.6 MB, free: 15.54 MB / 426.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.0009631/0.004958, allocations: 273 kB / 464.8 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 8.793e-05/0.005046, allocations: 29.8 kB / 464.9 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.37e-05/0.005079, allocations: 3.984 kB / 464.9 MB, free: 15.43 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.823e-05/0.005138, allocations: 29.11 kB / 464.9 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.26e-05/0.0052, allocations: 36.38 kB / 464.9 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.005213, allocations: 1.062 kB / 464.9 MB, free: 15.42 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007776/0.00599, allocations: 426.5 kB / 465.3 MB, free: 15.3 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 5.778e-05/0.006048, allocations: 29.91 kB / 465.4 MB, free: 15.29 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.205e-05/0.00607, allocations: 18.84 kB / 465.4 MB, free: 15.28 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005008/0.006571, allocations: 344.3 kB / 465.7 MB, free: 15.12 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.204e-06/0.006573, allocations: 1.531 kB / 465.7 MB, free: 15.12 MB / 426.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.006574, allocations: 0 / 465.7 MB, free: 15.12 MB / 426.7 MB Notification: Performance of Transformations before backend: time 3.196e-06/0.006577, allocations: 0 / 465.7 MB, free: 15.12 MB / 426.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.000376/0.006953, allocations: 339.9 kB / 466.1 MB, free: 14.81 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.176e-05/0.006985, allocations: 10.88 kB / 466.1 MB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.808e-05/0.007013, allocations: 3.562 kB / 466.1 MB, free: 14.81 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.007141, allocations: 134.4 kB / 466.2 MB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.377e-06/0.00715, allocations: 1.5 kB / 466.2 MB, free: 14.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.808e-06/0.00716, allocations: 5.406 kB / 466.2 MB, free: 14.66 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.956e-05/0.00722, allocations: 32 kB / 466.2 MB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.114e-06/0.007227, allocations: 1.312 kB / 466.2 MB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.989e-06/0.007232, allocations: 384 / 466.2 MB, free: 14.63 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.007238, allocations: 3.938 kB / 466.2 MB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.487e-06/0.007247, allocations: 7.547 kB / 466.3 MB, free: 14.62 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001013/0.007348, allocations: 77.5 kB / 466.3 MB, free: 14.54 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.646e-05/0.007385, allocations: 17.2 kB / 466.3 MB, free: 14.51 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.158e-05/0.007397, allocations: 11.77 kB / 466.4 MB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.094e-05/0.007427, allocations: 5.594 kB / 466.4 MB, free: 14.5 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.281e-05/0.00745, allocations: 35.81 kB / 466.4 MB, free: 14.46 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 1.593e-06/0.007452, allocations: 0.6094 kB / 466.4 MB, free: 14.46 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 8.34e-05/0.007535, allocations: 36.56 kB / 466.4 MB, free: 14.42 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.86e-05/0.007564, allocations: 52.78 kB / 466.5 MB, free: 14.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.007704, allocations: 191.5 kB / 466.7 MB, free: 14.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 1.107e-05/0.007715, allocations: 25.7 kB / 466.7 MB, free: 14.16 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.874e-05/0.007754, allocations: 93.17 kB / 466.8 MB, free: 14.07 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.084e-05/0.007765, allocations: 7.953 kB / 466.8 MB, free: 14.06 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.134e-05/0.007806, allocations: 33.67 kB / 466.8 MB, free: 14.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.837e-05/0.007894, allocations: 331.6 kB / 467.2 MB, free: 13.69 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.318e-05/0.007918, allocations: 14.83 kB / 467.2 MB, free: 13.67 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.531e-05/0.007933, allocations: 14.02 kB / 467.2 MB, free: 13.66 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.835e-05/0.007981, allocations: 39.19 kB / 467.2 MB, free: 13.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.007983, allocations: 0.6875 kB / 467.2 MB, free: 13.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 8.506e-05/0.008069, allocations: 69.69 kB / 467.3 MB, free: 13.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.00808, allocations: 4 kB / 467.3 MB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.00809, allocations: 0.5625 kB / 467.3 MB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.008102, allocations: 0 / 467.3 MB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.479e-05/0.008117, allocations: 4.672 kB / 467.3 MB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.958e-06/0.008121, allocations: 4.5 kB / 467.3 MB, free: 13.54 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.614e-05/0.008147, allocations: 20.52 kB / 467.3 MB, free: 13.52 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/0.008155, allocations: 1.188 kB / 467.3 MB, free: 13.52 MB / 426.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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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 7.424e-05/0.008229, allocations: 112.7 kB / 467.4 MB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.008239, allocations: 7.391 kB / 467.4 MB, free: 13.39 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.421e-05/0.008313, allocations: 46.91 kB / 467.5 MB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.008315, allocations: 0.875 kB / 467.5 MB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.754e-06/0.008317, allocations: 0 / 467.5 MB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.959e-06/0.008322, allocations: 5.484 kB / 467.5 MB, free: 13.34 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.585e-05/0.008408, allocations: 86.48 kB / 467.6 MB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.008409, allocations: 0 / 467.6 MB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.366e-06/0.008412, allocations: 0 / 467.6 MB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.008414, allocations: 0 / 467.6 MB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.887e-06/0.008418, allocations: 2.188 kB / 467.6 MB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.215e-06/0.00842, allocations: 4 kB / 467.6 MB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.392e-06/0.008422, allocations: 1 kB / 467.6 MB, free: 13.23 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.103e-05/0.008483, allocations: 70.66 kB / 467.7 MB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.269e-05/0.008495, allocations: 13.78 kB / 467.7 MB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.037e-05/0.008506, allocations: 0 / 467.7 MB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.117e-05/0.008517, allocations: 0 / 467.7 MB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.049e-05/0.008527, allocations: 3.938 kB / 467.7 MB, free: 13.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.275e-06/0.00853, allocations: 0 / 467.7 MB, free: 13.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 5.705e-05/0.008587, allocations: 49.7 kB / 467.7 MB, free: 13.08 MB / 426.7 MB Notification: Performance of sort global known variables: time 8e-08/0.008587, allocations: 0 / 467.7 MB, free: 13.08 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000325/0.008912, allocations: 92.33 kB / 467.8 MB, free: 12.99 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.0004949/0.009407, allocations: 261.1 kB / 468.1 MB, free: 12.79 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0001052/0.009512, allocations: 71.09 kB / 468.1 MB, free: 12.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.63e-06/0.009518, allocations: 4 kB / 468.1 MB, free: 12.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 9.418e-06/0.009527, allocations: 6.266 kB / 468.1 MB, free: 12.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.883e-05/0.009596, allocations: 8.438 kB / 468.2 MB, free: 12.69 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000246/0.009842, allocations: 185.3 kB / 468.3 MB, free: 12.48 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.04e-05/0.009882, allocations: 70.97 kB / 468.4 MB, free: 12.39 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.631e-05/0.009898, allocations: 0 / 468.4 MB, free: 12.39 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.009932, allocations: 52 kB / 468.5 MB, free: 12.35 MB / 426.7 MB Notification: Performance of SimCode: time 5.11e-07/0.009933, allocations: 1.094 kB / 468.5 MB, free: 12.35 MB / 426.7 MB Notification: Performance of Templates: time 0.005147/0.01508, allocations: 2.544 MB / 471 MB, free: 10.01 MB / 426.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: 3.445157908834517]