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.0008963/0.0008963, allocations: 73.88 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.001012/0.001012, allocations: 169 kB / 24.06 MB, free: 452 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.9798/0.9798, allocations: 177.1 MB / 204.5 MB, free: 5.496 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.001667/0.001667, allocations: 234 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.7574/0.7574, allocations: 138.4 MB / 456.3 MB, free: 1.383 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_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.633e-06/1.633e-06, allocations: 0 / 0.5563 GB, free: 284 kB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.208e-05/1.372e-05, allocations: 6.312 kB / 0.5563 GB, free: 276 kB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001439/0.001453, allocations: 0.5322 MB / 0.5568 GB, free: 15.73 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.002182/0.003634, allocations: 1.63 MB / 0.5584 GB, free: 14.09 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.873e-05/0.003673, allocations: 0 / 0.5584 GB, free: 14.09 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001436/0.003817, allocations: 23.91 kB / 0.5585 GB, free: 14.06 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.781e-05/0.003845, allocations: 11.97 kB / 0.5585 GB, free: 14.05 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.0008315/0.004676, allocations: 267 kB / 0.5587 GB, free: 13.79 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.325e-05/0.004739, allocations: 19.92 kB / 0.5587 GB, free: 13.77 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.2e-05/0.004771, allocations: 4 kB / 0.5588 GB, free: 13.77 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.988e-05/0.004811, allocations: 15.92 kB / 0.5588 GB, free: 13.75 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.821e-05/0.004849, allocations: 27.95 kB / 0.5588 GB, free: 13.72 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.175e-05/0.004861, allocations: 0 / 0.5588 GB, free: 13.72 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000617/0.005478, allocations: 427 kB / 0.5592 GB, free: 13.3 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 4.535e-05/0.005523, allocations: 19.94 kB / 0.5592 GB, free: 13.29 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.036e-05/0.005544, allocations: 11.92 kB / 0.5592 GB, free: 13.27 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004172/0.005961, allocations: 335.2 kB / 0.5596 GB, free: 12.95 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.643e-06/0.005963, allocations: 3.938 kB / 0.5596 GB, free: 12.94 MB / 490.7 MB Notification: Performance of FrontEnd: time 5.91e-07/0.005963, allocations: 0 / 0.5596 GB, free: 12.94 MB / 490.7 MB Notification: Performance of Transformations before backend: time 4.358e-06/0.005968, allocations: 3.984 kB / 0.5596 GB, free: 12.94 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.0003664/0.006334, allocations: 443.8 kB / 0.56 GB, free: 12.47 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.006368, allocations: 12.75 kB / 0.56 GB, free: 12.46 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.82e-05/0.006396, allocations: 4.891 kB / 0.56 GB, free: 12.45 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001214/0.006518, allocations: 132.5 kB / 0.5601 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.745e-06/0.006525, allocations: 384 / 0.5601 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.252e-06/0.006532, allocations: 384 / 0.5601 GB, free: 12.3 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.251e-05/0.006584, allocations: 30.27 kB / 0.5602 GB, free: 12.26 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.643e-06/0.006591, allocations: 4.188 kB / 0.5602 GB, free: 12.26 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.839e-06/0.006596, allocations: 384 / 0.5602 GB, free: 12.26 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.211e-06/0.006602, allocations: 3.938 kB / 0.5602 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.025e-06/0.00661, allocations: 0 / 0.5602 GB, free: 12.25 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001189/0.006729, allocations: 117.2 kB / 0.5603 GB, free: 12.11 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.822e-05/0.006767, allocations: 31.06 kB / 0.5603 GB, free: 12.07 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.386e-05/0.006781, allocations: 7.688 kB / 0.5603 GB, free: 12.06 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.972e-05/0.00681, allocations: 8.047 kB / 0.5603 GB, free: 12.05 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.366e-05/0.006834, allocations: 37.39 kB / 0.5604 GB, free: 12 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 8.21e-07/0.006835, allocations: 3.938 kB / 0.5604 GB, free: 12 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001044/0.006939, allocations: 37.59 kB / 0.5604 GB, free: 11.96 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.056e-05/0.00697, allocations: 55.41 kB / 0.5604 GB, free: 11.89 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000145/0.007115, allocations: 232.1 kB / 0.5607 GB, free: 11.65 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.007126, allocations: 29.83 kB / 0.5607 GB, free: 11.61 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.007186, allocations: 142.9 kB / 0.5608 GB, free: 11.47 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.025e-05/0.007196, allocations: 3.984 kB / 0.5608 GB, free: 11.46 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.007239, allocations: 35.34 kB / 0.5609 GB, free: 11.42 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.007381, allocations: 0.4962 MB / 0.5614 GB, free: 10.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.731e-05/0.007398, allocations: 8 kB / 0.5614 GB, free: 10.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.285e-05/0.007411, allocations: 4 kB / 0.5614 GB, free: 10.9 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.058e-05/0.007451, allocations: 23.69 kB / 0.5614 GB, free: 10.88 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.007453, allocations: 0 / 0.5614 GB, free: 10.88 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 9.632e-05/0.007549, allocations: 81.56 kB / 0.5615 GB, free: 10.79 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.007561, allocations: 4 kB / 0.5615 GB, free: 10.79 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.231e-05/0.007573, allocations: 8.062 kB / 0.5615 GB, free: 10.78 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.366e-06/0.007582, allocations: 0 / 0.5615 GB, free: 10.78 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.859e-06/0.007592, allocations: 0 / 0.5615 GB, free: 10.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.007596, allocations: 3.984 kB / 0.5615 GB, free: 10.77 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.452e-05/0.007621, allocations: 11.89 kB / 0.5615 GB, free: 10.76 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.474e-06/0.007628, allocations: 0 / 0.5615 GB, free: 10.76 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: 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 7.602e-05/0.007704, allocations: 156.6 kB / 0.5616 GB, free: 10.6 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.364e-05/0.007718, allocations: 11.91 kB / 0.5617 GB, free: 10.59 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.335e-05/0.007791, allocations: 41.5 kB / 0.5617 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.007793, allocations: 4.031 kB / 0.5617 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-06/0.007794, allocations: 3.938 kB / 0.5617 GB, free: 10.54 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.337e-06/0.007797, allocations: 7.938 kB / 0.5617 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.63e-05/0.007883, allocations: 109.2 kB / 0.5618 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.007884, allocations: 3.938 kB / 0.5618 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-06/0.007889, allocations: 4 kB / 0.5618 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.453e-06/0.00789, allocations: 0 / 0.5618 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.559e-06/0.007895, allocations: 4 kB / 0.5618 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.81e-07/0.007896, allocations: 0 / 0.5618 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.007897, allocations: 0 / 0.5618 GB, free: 10.38 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.386e-05/0.007961, allocations: 80.33 kB / 0.5619 GB, free: 10.28 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.455e-05/0.007975, allocations: 7.953 kB / 0.5619 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.606e-06/0.007984, allocations: 0 / 0.5619 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.036e-05/0.007994, allocations: 0 / 0.5619 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-06/0.008004, allocations: 0 / 0.5619 GB, free: 10.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.883e-06/0.008006, allocations: 0 / 0.5619 GB, free: 10.27 MB / 490.7 MB Notification: Performance of sorting global known variables: time 6.974e-05/0.008075, allocations: 156.8 kB / 0.5621 GB, free: 10.12 MB / 490.7 MB Notification: Performance of sort global known variables: time 9e-08/0.008075, allocations: 0 / 0.5621 GB, free: 10.12 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003361/0.008411, allocations: 91.73 kB / 0.5621 GB, free: 10.03 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.0004576/0.008869, allocations: 257.5 kB / 0.5624 GB, free: 9.801 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001104/0.008979, allocations: 69.31 kB / 0.5625 GB, free: 9.723 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.008981, allocations: 0 / 0.5625 GB, free: 9.723 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 8.846e-06/0.00899, allocations: 7.688 kB / 0.5625 GB, free: 9.711 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001389/0.009129, allocations: 4 kB / 0.5625 GB, free: 9.707 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002059/0.009334, allocations: 158.6 kB / 0.5626 GB, free: 9.523 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.684e-05/0.009371, allocations: 63.34 kB / 0.5627 GB, free: 9.441 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.728e-05/0.009389, allocations: 3.938 kB / 0.5627 GB, free: 9.438 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.927e-05/0.009428, allocations: 70.2 kB / 0.5628 GB, free: 9.367 MB / 490.7 MB Notification: Performance of SimCode: time 5.51e-07/0.009428, allocations: 0 / 0.5628 GB, free: 9.367 MB / 490.7 MB Notification: Performance of Templates: time 0.004092/0.01352, allocations: 2.552 MB / 0.5652 GB, free: 6.82 MB / 490.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.6582477567717433]