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.001093/0.001093, allocations: 92.22 kB / 19.65 MB, free: 276 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.0009796/0.0009796, allocations: 169 kB / 23.02 MB, free: 1.551 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.9354/0.9354, allocations: 177.1 MB / 203.4 MB, free: 5.633 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.002279/0.002279, allocations: 234 kB / 260.2 MB, free: 12.82 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.7519/0.7519, allocations: 138.4 MB / 455.2 MB, free: 1.527 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.533e-06/1.533e-06, allocations: 0 / 0.5551 GB, free: 0.543 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.8e-05/2.954e-05, allocations: 6.25 kB / 0.5551 GB, free: 0.5352 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001763/0.001793, allocations: 0.5206 MB / 0.5556 GB, free: 12 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.00235/0.004143, allocations: 1.645 MB / 0.5572 GB, free: 14.35 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.013e-05/0.004183, allocations: 7.938 kB / 0.5572 GB, free: 14.34 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001811/0.004364, allocations: 63.89 kB / 0.5573 GB, free: 14.28 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 3.003e-05/0.004394, allocations: 35.78 kB / 0.5573 GB, free: 14.24 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.0007449/0.005139, allocations: 259.1 kB / 0.5575 GB, free: 13.99 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 8.199e-05/0.005221, allocations: 35.89 kB / 0.5576 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.976e-05/0.005251, allocations: 0 / 0.5576 GB, free: 13.95 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.216e-05/0.005293, allocations: 27.91 kB / 0.5576 GB, free: 13.93 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.216e-05/0.005345, allocations: 47.92 kB / 0.5577 GB, free: 13.88 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.005357, allocations: 0 / 0.5577 GB, free: 13.88 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005985/0.005956, allocations: 427.1 kB / 0.5581 GB, free: 13.46 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.006006, allocations: 23.88 kB / 0.5581 GB, free: 13.44 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.213e-05/0.006028, allocations: 7.938 kB / 0.5581 GB, free: 13.43 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003953/0.006424, allocations: 359 kB / 0.5584 GB, free: 13.08 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.006427, allocations: 0 / 0.5584 GB, free: 13.08 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.006428, allocations: 0 / 0.5584 GB, free: 13.08 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.006432, allocations: 0 / 0.5584 GB, free: 13.08 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.0003972/0.006829, allocations: 471.6 kB / 0.5589 GB, free: 12.58 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.006868, allocations: 12.75 kB / 0.5589 GB, free: 12.57 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.006909, allocations: 12.84 kB / 0.5589 GB, free: 12.56 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001374/0.007047, allocations: 136.5 kB / 0.559 GB, free: 12.4 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.069e-05/0.007057, allocations: 4.375 kB / 0.559 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.151e-05/0.007069, allocations: 384 / 0.559 GB, free: 12.39 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.629e-05/0.007165, allocations: 34.19 kB / 0.5591 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.067e-05/0.007176, allocations: 192 / 0.5591 GB, free: 12.36 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.606e-06/0.007184, allocations: 4.375 kB / 0.5591 GB, free: 12.35 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.007194, allocations: 3.938 kB / 0.5591 GB, free: 12.35 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.156e-05/0.007206, allocations: 0 / 0.5591 GB, free: 12.35 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001665/0.007372, allocations: 160.5 kB / 0.5592 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.021e-05/0.007412, allocations: 27.06 kB / 0.5593 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.992e-05/0.007432, allocations: 11.69 kB / 0.5593 GB, free: 12.1 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.88e-05/0.007481, allocations: 8.047 kB / 0.5593 GB, free: 12.09 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.007506, allocations: 41.33 kB / 0.5593 GB, free: 12.04 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.153e-06/0.007507, allocations: 0 / 0.5593 GB, free: 12.04 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001324/0.00764, allocations: 41.61 kB / 0.5594 GB, free: 12 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.839e-05/0.007668, allocations: 55.34 kB / 0.5594 GB, free: 11.93 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001571/0.007825, allocations: 261.6 kB / 0.5597 GB, free: 11.66 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 9.638e-06/0.007835, allocations: 29.83 kB / 0.5597 GB, free: 11.62 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.331e-05/0.007898, allocations: 158.8 kB / 0.5598 GB, free: 11.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.001e-05/0.007908, allocations: 0 / 0.5598 GB, free: 11.46 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.931e-05/0.007948, allocations: 39.36 kB / 0.5599 GB, free: 11.41 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.008074, allocations: 0.5001 MB / 0.5604 GB, free: 10.9 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.531e-05/0.0081, allocations: 15.94 kB / 0.5604 GB, free: 10.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.707e-05/0.008117, allocations: 15.94 kB / 0.5604 GB, free: 10.87 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.337e-05/0.00817, allocations: 51.28 kB / 0.5604 GB, free: 10.82 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.008172, allocations: 0 / 0.5604 GB, free: 10.82 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 9.05e-05/0.008262, allocations: 85.59 kB / 0.5605 GB, free: 10.73 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.008275, allocations: 4 kB / 0.5605 GB, free: 10.73 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.431e-05/0.008289, allocations: 4.062 kB / 0.5605 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.008305, allocations: 0 / 0.5605 GB, free: 10.72 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.498e-05/0.00832, allocations: 7.938 kB / 0.5605 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.872e-06/0.008327, allocations: 3.938 kB / 0.5605 GB, free: 10.71 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.186e-05/0.008349, allocations: 7.891 kB / 0.5606 GB, free: 10.7 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.005e-06/0.008357, allocations: 4 kB / 0.5606 GB, free: 10.7 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 8.048e-05/0.008438, allocations: 168.5 kB / 0.5607 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.06e-05/0.008448, allocations: 11.91 kB / 0.5607 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.572e-05/0.008534, allocations: 46.19 kB / 0.5608 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.008535, allocations: 4 kB / 0.5608 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.00854, allocations: 3.938 kB / 0.5608 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.008542, allocations: 0 / 0.5608 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.408e-05/0.008626, allocations: 148.6 kB / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.008627, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-06/0.008631, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.008633, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.759e-06/0.008638, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.163e-06/0.008639, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.008641, allocations: 0 / 0.5609 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.849e-05/0.008699, allocations: 92.25 kB / 0.561 GB, free: 10.16 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.868e-06/0.008709, allocations: 11.89 kB / 0.561 GB, free: 10.15 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.618e-06/0.008719, allocations: 4 kB / 0.561 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.667e-06/0.008727, allocations: 0 / 0.561 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.321e-05/0.008741, allocations: 4 kB / 0.561 GB, free: 10.14 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.008744, allocations: 7.938 kB / 0.561 GB, free: 10.13 MB / 490.7 MB Notification: Performance of sorting global known variables: time 7.135e-05/0.008815, allocations: 168.3 kB / 0.5612 GB, free: 9.969 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008815, allocations: 0 / 0.5612 GB, free: 9.969 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002891/0.009104, allocations: 87.8 kB / 0.5613 GB, free: 9.883 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.0004426/0.009547, allocations: 251.3 kB / 0.5615 GB, free: 9.652 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001263/0.009673, allocations: 77.36 kB / 0.5616 GB, free: 9.566 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.009675, allocations: 0 / 0.5616 GB, free: 9.566 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.014e-05/0.009685, allocations: 15.62 kB / 0.5616 GB, free: 9.547 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001098/0.009795, allocations: 7.094 kB / 0.5616 GB, free: 9.543 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002543/0.01005, allocations: 198.7 kB / 0.5618 GB, free: 9.32 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.161e-05/0.01008, allocations: 63.34 kB / 0.5619 GB, free: 9.238 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.909e-05/0.0101, allocations: 7.984 kB / 0.5619 GB, free: 9.23 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.679e-05/0.01012, allocations: 8.5 kB / 0.5619 GB, free: 9.223 MB / 490.7 MB Notification: Performance of SimCode: time 7.82e-07/0.01012, allocations: 0 / 0.5619 GB, free: 9.223 MB / 490.7 MB Notification: Performance of Templates: time 0.003928/0.01405, allocations: 2.129 MB / 0.564 GB, free: 7.094 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: 3.8188870497979224]