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.001105/0.001105, allocations: 80.75 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.001803/0.001803, 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 1.02/1.02, allocations: 177.1 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.001803/0.001803, allocations: 245.5 kB / 260.5 MB, free: 12.7 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.7364/0.7364, allocations: 138.4 MB / 402.2 MB, free: 0.543 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.734e-06/1.734e-06, allocations: 0 / 462.3 MB, free: 0.9219 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.526e-05/2.699e-05, allocations: 5.047 kB / 462.3 MB, free: 0.918 MB / 410.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.002165/0.002192, allocations: 0.5843 MB / 462.9 MB, free: 0.6133 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.001886/0.004078, allocations: 1.653 MB / 464.5 MB, free: 15.51 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.789e-05/0.004116, allocations: 0 / 464.5 MB, free: 15.51 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.00431, allocations: 71.77 kB / 464.6 MB, free: 15.5 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 3.782e-05/0.004348, allocations: 28.14 kB / 464.6 MB, free: 15.5 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'. Notification: Performance of NFTyping.typeClassSections: time 0.0007846/0.005133, allocations: 236.3 kB / 464.9 MB, free: 15.4 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 9.997e-05/0.005233, allocations: 38.38 kB / 464.9 MB, free: 15.39 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.237e-05/0.005265, allocations: 2.547 kB / 464.9 MB, free: 15.39 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.849e-05/0.005324, allocations: 26.23 kB / 464.9 MB, free: 15.39 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.572e-05/0.005379, allocations: 37.45 kB / 465 MB, free: 15.38 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 1.24e-05/0.005392, allocations: 1.5 kB / 465 MB, free: 15.38 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: 'inertia' is used uninitialized and may cause unexpected behaviour. This is deprecated and will become an error in future releases. Notification: Performance of NFFlatten.collectFunctions: time 0.0007224/0.006114, allocations: 453.9 kB / 465.4 MB, free: 15.27 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.006164, allocations: 29.75 kB / 465.4 MB, free: 15.25 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 2.23e-05/0.006186, allocations: 10.34 kB / 465.5 MB, free: 15.25 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004223/0.006609, allocations: 349.8 kB / 465.8 MB, free: 15.07 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.006611, allocations: 5.125 kB / 465.8 MB, free: 15.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.006612, allocations: 0 / 465.8 MB, free: 15.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.959e-06/0.006617, allocations: 1.125 kB / 465.8 MB, free: 15.06 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.0003168/0.006934, allocations: 336.7 kB / 466.1 MB, free: 14.75 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.102e-05/0.006965, allocations: 10 kB / 466.1 MB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.361e-05/0.006989, allocations: 3.75 kB / 466.1 MB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001152/0.007104, allocations: 132.7 kB / 466.3 MB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.993e-06/0.007111, allocations: 384 / 466.3 MB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.192e-06/0.007117, allocations: 7.594 kB / 466.3 MB, free: 14.61 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.949e-05/0.007186, allocations: 34.09 kB / 466.3 MB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.31e-06/0.007192, allocations: 192 / 466.3 MB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.939e-06/0.007197, allocations: 1.375 kB / 466.3 MB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.007201, allocations: 5.219 kB / 466.3 MB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.716e-06/0.00721, allocations: 6.469 kB / 466.3 MB, free: 14.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.68e-05/0.007307, allocations: 78.11 kB / 466.4 MB, free: 14.48 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.199e-05/0.007339, allocations: 17.55 kB / 466.4 MB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.039e-05/0.007349, allocations: 11.25 kB / 466.4 MB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.376e-05/0.007383, allocations: 5.969 kB / 466.4 MB, free: 14.44 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.813e-05/0.007401, allocations: 32.75 kB / 466.5 MB, free: 14.4 MB / 426.7 MB Notification: Performance of pre-optimization done (n=1): time 8.41e-07/0.007402, allocations: 0.9062 kB / 466.5 MB, free: 14.4 MB / 426.7 MB Notification: Performance of matching and sorting (n=1): time 7.788e-05/0.00748, allocations: 36.88 kB / 466.5 MB, free: 14.37 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.313e-05/0.007503, allocations: 51.41 kB / 466.6 MB, free: 14.3 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001108/0.007614, allocations: 190.9 kB / 466.7 MB, free: 14.14 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-06/0.007624, allocations: 27.33 kB / 466.8 MB, free: 14.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.21e-05/0.007656, allocations: 96.09 kB / 466.9 MB, free: 14.01 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.005e-05/0.007666, allocations: 3.953 kB / 466.9 MB, free: 14 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.109e-05/0.007697, allocations: 33.67 kB / 466.9 MB, free: 13.96 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.468e-05/0.007772, allocations: 334.7 kB / 467.2 MB, free: 13.63 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.985e-05/0.007792, allocations: 15.45 kB / 467.2 MB, free: 13.61 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.23e-05/0.007804, allocations: 14.06 kB / 467.3 MB, free: 13.6 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.765e-05/0.007841, allocations: 37.77 kB / 467.3 MB, free: 13.56 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.007843, allocations: 3.938 kB / 467.3 MB, free: 13.56 MB / 426.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 7.134e-05/0.007915, allocations: 66.44 kB / 467.4 MB, free: 13.49 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.094e-05/0.007926, allocations: 4 kB / 467.4 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.207e-05/0.007938, allocations: 0 / 467.4 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.015e-05/0.007948, allocations: 4.594 kB / 467.4 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.08e-05/0.007959, allocations: 0.6875 kB / 467.4 MB, free: 13.48 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.007964, allocations: 11.91 kB / 467.4 MB, free: 13.47 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.158e-05/0.007985, allocations: 12.92 kB / 467.4 MB, free: 13.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.394e-06/0.007993, allocations: 4.5 kB / 467.4 MB, free: 13.45 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.54e-05/0.008068, allocations: 121.4 kB / 467.5 MB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.662e-06/0.008075, allocations: 0 / 467.5 MB, free: 13.33 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.12e-05/0.008146, allocations: 45.58 kB / 467.6 MB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.008148, allocations: 0 / 467.6 MB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.008149, allocations: 0 / 467.6 MB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.544e-06/0.008152, allocations: 0.7188 kB / 467.6 MB, free: 13.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.488e-05/0.008216, allocations: 91.22 kB / 467.7 MB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/0.008218, allocations: 0.5 kB / 467.7 MB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-06/0.008223, allocations: 6.281 kB / 467.7 MB, free: 13.18 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.072e-06/0.008224, allocations: 3.938 kB / 467.7 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.427e-06/0.008227, allocations: 0 / 467.7 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.008228, allocations: 0 / 467.7 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.008229, allocations: 0 / 467.7 MB, free: 13.17 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 4.759e-05/0.008277, allocations: 74.66 kB / 467.7 MB, free: 13.08 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.046e-05/0.008287, allocations: 12.94 kB / 467.8 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.765e-06/0.008295, allocations: 0 / 467.8 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.927e-06/0.008304, allocations: 1.25 kB / 467.8 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.177e-06/0.008313, allocations: 1.578 kB / 467.8 MB, free: 13.07 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.627e-06/0.008317, allocations: 4 kB / 467.8 MB, free: 13.06 MB / 426.7 MB Notification: Performance of sorting global known variables: time 3.738e-05/0.008354, allocations: 45.8 kB / 467.8 MB, free: 13.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.1e-08/0.008354, allocations: 0 / 467.8 MB, free: 13.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0002454/0.0086, allocations: 85.62 kB / 467.9 MB, free: 12.93 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.0004545/0.009054, allocations: 256.1 kB / 468.1 MB, free: 12.73 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 9.562e-05/0.00915, allocations: 75.75 kB / 468.2 MB, free: 12.65 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.009153, allocations: 0 / 468.2 MB, free: 12.65 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 5.7e-06/0.009159, allocations: 8.859 kB / 468.2 MB, free: 12.64 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.554e-05/0.009224, allocations: 7.938 kB / 468.2 MB, free: 12.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002191/0.009443, allocations: 185.3 kB / 468.4 MB, free: 12.42 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.265e-05/0.009476, allocations: 70.72 kB / 468.5 MB, free: 12.34 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 1.862e-05/0.009495, allocations: 5.344 kB / 468.5 MB, free: 12.33 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.736e-05/0.009522, allocations: 47.38 kB / 468.5 MB, free: 12.29 MB / 426.7 MB Notification: Performance of SimCode: time 4e-07/0.009522, allocations: 0 / 468.5 MB, free: 12.29 MB / 426.7 MB Notification: Performance of Templates: time 0.004596/0.01412, allocations: 2.538 MB / 471.1 MB, free: 9.953 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 -s gbode -gbm=radauIIA3 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.557903259061277]