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.0008878/0.0008878, allocations: 73.97 kB / 20.66 MB, free: 3.844 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.001038/0.001038, allocations: 169.4 kB / 24.06 MB, free: 456 kB / 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.9585/0.9585, allocations: 177.1 MB / 204.5 MB, free: 5.5 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.001679/0.001679, allocations: 240.1 kB / 261.3 MB, free: 12.66 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.711/0.711, allocations: 138.5 MB / 456.3 MB, free: 1.387 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 2.365e-06/2.365e-06, allocations: 3.984 kB / 0.5563 GB, free: 252 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.226e-05/2.463e-05, allocations: 2.312 kB / 0.5563 GB, free: 248 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00157/0.001595, allocations: 0.5323 MB / 0.5569 GB, free: 15.7 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002152/0.003747, allocations: 1.633 MB / 0.5585 GB, free: 14.05 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.061e-05/0.003788, allocations: 0 / 0.5585 GB, free: 14.05 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001878/0.003975, allocations: 67.83 kB / 0.5585 GB, free: 13.99 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.999e-05/0.004005, allocations: 35.89 kB / 0.5586 GB, free: 13.95 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.0007629/0.004768, allocations: 267 kB / 0.5588 GB, free: 13.69 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 7.677e-05/0.004845, allocations: 31.91 kB / 0.5588 GB, free: 13.66 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.493e-05/0.00488, allocations: 4 kB / 0.5588 GB, free: 13.66 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.319e-05/0.004923, allocations: 23.91 kB / 0.5589 GB, free: 13.63 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.91e-05/0.004982, allocations: 43.94 kB / 0.5589 GB, free: 13.59 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.329e-05/0.004995, allocations: 4 kB / 0.5589 GB, free: 13.59 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005503/0.005546, allocations: 427.1 kB / 0.5593 GB, free: 13.17 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 5.755e-05/0.005603, allocations: 31.91 kB / 0.5593 GB, free: 13.14 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.098e-05/0.005624, allocations: 11.88 kB / 0.5594 GB, free: 13.12 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004275/0.006052, allocations: 347.1 kB / 0.5597 GB, free: 12.79 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.006056, allocations: 3.938 kB / 0.5597 GB, free: 12.78 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.006057, allocations: 0 / 0.5597 GB, free: 12.78 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.006062, allocations: 0 / 0.5597 GB, free: 12.78 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.000414/0.006476, allocations: 471.6 kB / 0.5601 GB, free: 12.29 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.006513, allocations: 12.75 kB / 0.5602 GB, free: 12.27 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.418e-05/0.006547, allocations: 12.84 kB / 0.5602 GB, free: 12.26 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000126/0.006673, allocations: 132.5 kB / 0.5603 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.265e-06/0.006681, allocations: 384 / 0.5603 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.006688, allocations: 384 / 0.5603 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.751e-05/0.006745, allocations: 30.27 kB / 0.5603 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.006752, allocations: 192 / 0.5603 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.843e-06/0.006759, allocations: 4.375 kB / 0.5603 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.006765, allocations: 7.922 kB / 0.5603 GB, free: 12.06 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.844e-06/0.006773, allocations: 4 kB / 0.5603 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001319/0.006905, allocations: 129.1 kB / 0.5605 GB, free: 11.9 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.869e-05/0.006943, allocations: 23.06 kB / 0.5605 GB, free: 11.87 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.17e-05/0.006955, allocations: 7.688 kB / 0.5605 GB, free: 11.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.391e-05/0.006989, allocations: 8.062 kB / 0.5605 GB, free: 11.85 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.14e-05/0.00701, allocations: 41.36 kB / 0.5605 GB, free: 11.8 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.192e-06/0.007012, allocations: 0 / 0.5605 GB, free: 11.8 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001058/0.007117, allocations: 45.55 kB / 0.5606 GB, free: 11.75 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.701e-05/0.007144, allocations: 51.41 kB / 0.5606 GB, free: 11.68 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003953/0.00754, allocations: 269.4 kB / 0.5609 GB, free: 11.4 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 8.095e-06/0.007548, allocations: 25.7 kB / 0.5609 GB, free: 11.37 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.543e-05/0.007603, allocations: 166.9 kB / 0.5611 GB, free: 11.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.406e-06/0.007612, allocations: 0 / 0.5611 GB, free: 11.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.605e-05/0.007648, allocations: 39.34 kB / 0.5611 GB, free: 11.16 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.007766, allocations: 0.5001 MB / 0.5616 GB, free: 10.64 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.818e-05/0.007784, allocations: 11.94 kB / 0.5616 GB, free: 10.63 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.339e-05/0.007797, allocations: 8 kB / 0.5616 GB, free: 10.62 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.507e-05/0.007842, allocations: 43.27 kB / 0.5617 GB, free: 10.58 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.007844, allocations: 0 / 0.5617 GB, free: 10.58 MB / 490.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 8.707e-05/0.007931, allocations: 85.55 kB / 0.5617 GB, free: 10.49 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.079e-05/0.007942, allocations: 4 kB / 0.5617 GB, free: 10.49 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.007955, allocations: 4 kB / 0.5617 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.278e-06/0.007964, allocations: 8.047 kB / 0.5618 GB, free: 10.48 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.287e-05/0.007977, allocations: 3.984 kB / 0.5618 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.554e-06/0.00798, allocations: 0 / 0.5618 GB, free: 10.47 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.437e-05/0.008004, allocations: 19.77 kB / 0.5618 GB, free: 10.45 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.244e-06/0.008011, allocations: 0 / 0.5618 GB, free: 10.45 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 (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.417e-05/0.008086, allocations: 156.6 kB / 0.5619 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-06/0.008095, allocations: 11.91 kB / 0.5619 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.563e-05/0.008171, allocations: 46.19 kB / 0.562 GB, free: 10.23 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.008172, allocations: 4.031 kB / 0.562 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.533e-06/0.008174, allocations: 3.938 kB / 0.562 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/0.008179, allocations: 3.938 kB / 0.562 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.215e-05/0.008251, allocations: 121.2 kB / 0.5621 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.008252, allocations: 0 / 0.5621 GB, free: 10.07 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.689e-06/0.008257, allocations: 7.984 kB / 0.5621 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.008258, allocations: 0 / 0.5621 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.146e-06/0.008262, allocations: 0 / 0.5621 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.62e-07/0.008262, allocations: 0 / 0.5621 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.008263, allocations: 0 / 0.5621 GB, free: 10.06 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.372e-05/0.008317, allocations: 80.3 kB / 0.5622 GB, free: 9.961 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.018e-05/0.008327, allocations: 15.97 kB / 0.5622 GB, free: 9.945 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.604e-06/0.008334, allocations: 0 / 0.5622 GB, free: 9.945 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.456e-06/0.008343, allocations: 0 / 0.5622 GB, free: 9.945 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.777e-06/0.008352, allocations: 3.938 kB / 0.5622 GB, free: 9.941 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.273e-06/0.008353, allocations: 0 / 0.5622 GB, free: 9.941 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.164e-05/0.008415, allocations: 168.3 kB / 0.5624 GB, free: 9.777 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008415, allocations: 0 / 0.5624 GB, free: 9.777 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002683/0.008683, allocations: 91.73 kB / 0.5625 GB, free: 9.688 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.0004242/0.009107, allocations: 254.2 kB / 0.5627 GB, free: 9.453 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001216/0.009229, allocations: 77.3 kB / 0.5628 GB, free: 9.367 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.00923, allocations: 0 / 0.5628 GB, free: 9.367 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.005e-06/0.009238, allocations: 7.688 kB / 0.5628 GB, free: 9.355 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001202/0.009359, allocations: 10.58 kB / 0.5628 GB, free: 9.348 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002356/0.009594, allocations: 194.7 kB / 0.563 GB, free: 9.133 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.686e-05/0.009631, allocations: 67.33 kB / 0.563 GB, free: 9.047 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.949e-05/0.009651, allocations: 0 / 0.563 GB, free: 9.047 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.45e-05/0.009685, allocations: 70.2 kB / 0.5631 GB, free: 8.977 MB / 490.7 MB Notification: Performance of SimCode: time 4.61e-07/0.009686, allocations: 0 / 0.5631 GB, free: 8.977 MB / 490.7 MB Notification: Performance of Templates: time 0.004603/0.01429, allocations: 2.547 MB / 0.5656 GB, free: 6.434 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.587597100995481]