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.002414/0.002414, allocations: 85.48 kB / 19.44 MB, free: 344 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.002953/0.002953, allocations: 173.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.569/1.569, allocations: 177.1 MB / 203.1 MB, free: 5.605 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.003366/0.003366, allocations: 234.1 kB / 259.8 MB, free: 12.84 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.187/1.187, allocations: 138.4 MB / 454.7 MB, free: 1.492 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.503e-06/1.503e-06, allocations: 0 / 0.5543 GB, free: 0.8789 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.882e-05/3.032e-05, allocations: 2.312 kB / 0.5543 GB, free: 0.875 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001638/0.001668, allocations: 0.5053 MB / 0.5548 GB, free: 376 kB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.002648/0.004316, allocations: 1.63 MB / 0.5564 GB, free: 14.72 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.164e-05/0.004348, allocations: 0 / 0.5564 GB, free: 14.72 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001669/0.004515, allocations: 23.86 kB / 0.5564 GB, free: 14.7 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 2.632e-05/0.004541, allocations: 11.98 kB / 0.5564 GB, free: 14.68 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.0009296/0.005471, allocations: 267 kB / 0.5567 GB, free: 14.42 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 6.8e-05/0.005539, allocations: 19.92 kB / 0.5567 GB, free: 14.4 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.086e-05/0.00558, allocations: 11.92 kB / 0.5567 GB, free: 14.39 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.097e-05/0.005631, allocations: 19.97 kB / 0.5567 GB, free: 14.37 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.252e-05/0.005673, allocations: 15.98 kB / 0.5567 GB, free: 14.36 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 1.565e-05/0.005689, allocations: 0 / 0.5567 GB, free: 14.36 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007378/0.006427, allocations: 427 kB / 0.5572 GB, free: 13.94 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 6.303e-05/0.00649, allocations: 23.92 kB / 0.5572 GB, free: 13.91 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 2.167e-05/0.006511, allocations: 4 kB / 0.5572 GB, free: 13.91 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005265/0.007038, allocations: 347.1 kB / 0.5575 GB, free: 13.57 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.755e-06/0.007041, allocations: 0 / 0.5575 GB, free: 13.57 MB / 490.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007041, allocations: 0 / 0.5575 GB, free: 13.57 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.007047, allocations: 0 / 0.5575 GB, free: 13.57 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.0005489/0.007596, allocations: 435.5 kB / 0.5579 GB, free: 13.11 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.007634, allocations: 12.75 kB / 0.5579 GB, free: 13.1 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.37e-05/0.007688, allocations: 12.84 kB / 0.5579 GB, free: 13.09 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001743/0.007862, allocations: 125.6 kB / 0.5581 GB, free: 12.94 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.007873, allocations: 384 / 0.5581 GB, free: 12.94 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.007883, allocations: 4.375 kB / 0.5581 GB, free: 12.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.105e-05/0.007974, allocations: 30.27 kB / 0.5581 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.007983, allocations: 192 / 0.5581 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.00799, allocations: 384 / 0.5581 GB, free: 12.9 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.007996, allocations: 3.938 kB / 0.5581 GB, free: 12.89 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.467e-05/0.008021, allocations: 15.86 kB / 0.5581 GB, free: 12.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001894/0.00821, allocations: 136.7 kB / 0.5583 GB, free: 12.71 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.748e-05/0.008278, allocations: 27.06 kB / 0.5583 GB, free: 12.67 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.257e-05/0.0083, allocations: 7.688 kB / 0.5583 GB, free: 12.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.208e-05/0.008353, allocations: 8.047 kB / 0.5583 GB, free: 12.65 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.921e-05/0.008392, allocations: 41.39 kB / 0.5583 GB, free: 12.6 MB / 490.7 MB Notification: Performance of pre-optimization done (n=1): time 1.262e-06/0.008393, allocations: 0 / 0.5583 GB, free: 12.6 MB / 490.7 MB Notification: Performance of matching and sorting (n=1): time 0.000164/0.008557, allocations: 37.59 kB / 0.5584 GB, free: 12.56 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.056e-05/0.008608, allocations: 63.34 kB / 0.5584 GB, free: 12.48 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/0.008817, allocations: 222.3 kB / 0.5586 GB, free: 12.25 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 2.032e-05/0.008837, allocations: 29.69 kB / 0.5587 GB, free: 12.22 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.325e-05/0.00893, allocations: 143 kB / 0.5588 GB, free: 12.07 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.393e-05/0.008944, allocations: 7.953 kB / 0.5588 GB, free: 12.07 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.356e-05/0.008998, allocations: 35.36 kB / 0.5588 GB, free: 12.02 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002626/0.00926, allocations: 0.4923 MB / 0.5593 GB, free: 11.52 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.501e-05/0.009285, allocations: 8 kB / 0.5593 GB, free: 11.51 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.746e-05/0.009303, allocations: 8 kB / 0.5593 GB, free: 11.5 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.583e-05/0.009359, allocations: 35.62 kB / 0.5594 GB, free: 11.46 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.009361, allocations: 0 / 0.5594 GB, free: 11.46 MB / 490.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001112/0.009472, allocations: 73.58 kB / 0.5594 GB, free: 11.39 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.009487, allocations: 8 kB / 0.5595 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.307e-05/0.0095, allocations: 64 / 0.5595 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.009513, allocations: 4 kB / 0.5595 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.225e-05/0.009525, allocations: 0 / 0.5595 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.036e-05/0.009536, allocations: 7.922 kB / 0.5595 GB, free: 11.37 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.191e-05/0.009568, allocations: 15.83 kB / 0.5595 GB, free: 11.35 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.009575, allocations: 0 / 0.5595 GB, free: 11.35 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 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001233/0.009698, allocations: 156.6 kB / 0.5596 GB, free: 11.19 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.789e-05/0.009716, allocations: 11.95 kB / 0.5596 GB, free: 11.18 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.835e-05/0.009815, allocations: 41.44 kB / 0.5597 GB, free: 11.13 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.009816, allocations: 8.031 kB / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.61e-05/0.009832, allocations: 3.938 kB / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.009835, allocations: 0 / 0.5597 GB, free: 11.12 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.009965, allocations: 136.6 kB / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.009966, allocations: 0 / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.268e-06/0.00997, allocations: 0 / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.009971, allocations: 0 / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.085e-06/0.009979, allocations: 4 kB / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.00998, allocations: 0 / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.009981, allocations: 0 / 0.5598 GB, free: 10.95 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.586e-05/0.01008, allocations: 80.33 kB / 0.5599 GB, free: 10.85 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.447e-05/0.01009, allocations: 11.98 kB / 0.5599 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.107e-05/0.0101, allocations: 0 / 0.5599 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.064e-05/0.01011, allocations: 0 / 0.5599 GB, free: 10.84 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.863e-05/0.01014, allocations: 3.938 kB / 0.5599 GB, free: 10.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.244e-06/0.01015, allocations: 7.922 kB / 0.5599 GB, free: 10.82 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001131/0.01026, allocations: 155.2 kB / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01026, allocations: 0 / 0.5601 GB, free: 10.67 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0003198/0.01058, allocations: 87.8 kB / 0.5602 GB, free: 10.59 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.0006932/0.01128, allocations: 247.7 kB / 0.5604 GB, free: 10.36 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0001546/0.01143, allocations: 69.36 kB / 0.5605 GB, free: 10.28 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.01143, allocations: 0 / 0.5605 GB, free: 10.28 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.478e-05/0.01145, allocations: 7.688 kB / 0.5605 GB, free: 10.27 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.01159, allocations: 14.69 kB / 0.5605 GB, free: 10.26 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004224/0.01201, allocations: 150.6 kB / 0.5606 GB, free: 10.08 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.181e-05/0.0121, allocations: 83.27 kB / 0.5607 GB, free: 9.98 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.702e-05/0.01212, allocations: 3.938 kB / 0.5607 GB, free: 9.977 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.86e-05/0.01214, allocations: 8.5 kB / 0.5607 GB, free: 9.969 MB / 490.7 MB Notification: Performance of SimCode: time 3.91e-07/0.01214, allocations: 0 / 0.5607 GB, free: 9.969 MB / 490.7 MB Notification: Performance of Templates: time 0.00585/0.01799, allocations: 2.128 MB / 0.5628 GB, free: 7.844 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: 5.885871349950321]