Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001193/0.001193, allocations: 110.7 kB / 17.09 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001189/0.001189, allocations: 193.6 kB / 18.02 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.202/1.202, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6598/0.6598, allocations: 115.3 MB / 407.2 MB, free: 6.18 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001125/0.001125, allocations: 63.28 kB / 0.5583 GB, free: 32.39 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1103, allocations: 76.17 MB / 0.6327 GB, free: 4.543 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001458/0.1118, allocations: 0.5074 MB / 0.6332 GB, free: 4.039 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.001901/0.1137, allocations: 1.61 MB / 0.6348 GB, free: 2.41 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.666e-05/0.1138, allocations: 0 / 0.6348 GB, free: 2.41 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.1139, allocations: 23.91 kB / 0.6348 GB, free: 2.387 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 1.987e-05/0.1139, allocations: 7.984 kB / 0.6348 GB, free: 2.379 MB / 478.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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/IBPSA 4.0.0-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.0007753/0.1147, allocations: 246.1 kB / 0.635 GB, free: 2.141 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 6.607e-05/0.1148, allocations: 27.97 kB / 0.6351 GB, free: 2.113 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.285e-05/0.1148, allocations: 4 kB / 0.6351 GB, free: 2.109 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.641e-05/0.1149, allocations: 11.92 kB / 0.6351 GB, free: 2.098 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.558e-05/0.1149, allocations: 23.91 kB / 0.6351 GB, free: 2.074 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.003e-05/0.1149, allocations: 0 / 0.6351 GB, free: 2.074 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004754/0.1154, allocations: 331.5 kB / 0.6354 GB, free: 1.75 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 4.231e-05/0.1154, allocations: 19.97 kB / 0.6354 GB, free: 1.73 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 2.512e-05/0.1155, allocations: 19.81 kB / 0.6355 GB, free: 1.711 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003439/0.1158, allocations: 283.3 kB / 0.6357 GB, free: 1.434 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1158, allocations: 0 / 0.6357 GB, free: 1.434 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.153e-06/0.1158, allocations: 4 kB / 0.6357 GB, free: 1.43 MB / 478.1 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.1159, allocations: 0 / 0.6357 GB, free: 1.43 MB / 478.1 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.0003707/0.1162, allocations: 399.2 kB / 0.6361 GB, free: 0.9922 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.119e-05/0.1163, allocations: 8.031 kB / 0.6361 GB, free: 0.9844 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.878e-05/0.1163, allocations: 8.844 kB / 0.6361 GB, free: 0.9766 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001392/0.1164, allocations: 182.4 kB / 0.6363 GB, free: 0.7617 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.224e-06/0.1165, allocations: 8.375 kB / 0.6363 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.839e-06/0.1165, allocations: 384 / 0.6363 GB, free: 0.7539 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.427e-05/0.1166, allocations: 46 kB / 0.6364 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.701e-06/0.1166, allocations: 0 / 0.6364 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.062e-06/0.1166, allocations: 0 / 0.6364 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.1166, allocations: 0 / 0.6364 GB, free: 0.7031 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.595e-05/0.1166, allocations: 15.94 kB / 0.6364 GB, free: 0.6875 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001462/0.1168, allocations: 169.7 kB / 0.6365 GB, free: 484 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.339e-05/0.1168, allocations: 26.56 kB / 0.6366 GB, free: 448 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.008e-05/0.1168, allocations: 16.91 kB / 0.6366 GB, free: 428 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.526e-05/0.1169, allocations: 8 kB / 0.6366 GB, free: 420 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.037e-05/0.1169, allocations: 46.48 kB / 0.6366 GB, free: 364 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.1169, allocations: 0 / 0.6366 GB, free: 364 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001215/0.117, allocations: 61.53 kB / 0.6367 GB, free: 296 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.831e-05/0.1171, allocations: 55.34 kB / 0.6367 GB, free: 228 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/0.1172, allocations: 176.4 kB / 0.6369 GB, free: 40 kB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 1.64e-05/0.1172, allocations: 25.7 kB / 0.6369 GB, free: 8 kB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.375e-05/0.1173, allocations: 96.25 kB / 0.637 GB, free: 15.91 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.588e-06/0.1173, allocations: 7.906 kB / 0.637 GB, free: 15.9 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.744e-05/0.1173, allocations: 29.7 kB / 0.6371 GB, free: 15.87 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.751e-05/0.1174, allocations: 322.8 kB / 0.6374 GB, free: 15.54 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.601e-05/0.1175, allocations: 35.98 kB / 0.6374 GB, free: 15.51 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.742e-05/0.1175, allocations: 39.98 kB / 0.6374 GB, free: 15.47 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.929e-05/0.1176, allocations: 68.81 kB / 0.6375 GB, free: 15.4 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1176, allocations: 0 / 0.6375 GB, free: 15.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001367/0.1178, allocations: 129.5 kB / 0.6376 GB, free: 15.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.288e-05/0.1178, allocations: 17.41 kB / 0.6376 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.113e-05/0.1178, allocations: 0 / 0.6376 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.189e-05/0.1178, allocations: 0 / 0.6376 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.206e-05/0.1178, allocations: 0 / 0.6376 GB, free: 15.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.1178, allocations: 7.938 kB / 0.6376 GB, free: 15.24 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.307e-05/0.1179, allocations: 7.844 kB / 0.6377 GB, free: 15.23 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-06/0.1179, allocations: 0 / 0.6377 GB, free: 15.23 MB / 494.1 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 9.875e-05/0.118, allocations: 121.8 kB / 0.6378 GB, free: 15.11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.403e-05/0.118, allocations: 11.84 kB / 0.6378 GB, free: 15.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.3e-05/0.1181, allocations: 69.48 kB / 0.6378 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1181, allocations: 0 / 0.6378 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.1181, allocations: 0 / 0.6378 GB, free: 15.02 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.193e-05/0.1182, allocations: 81.02 kB / 0.6379 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.002e-05/0.1182, allocations: 0 / 0.6379 GB, free: 14.92 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.285e-05/0.1182, allocations: 4 kB / 0.6379 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.106e-05/0.1182, allocations: 0 / 0.6379 GB, free: 14.91 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.656e-05/0.1183, allocations: 125 kB / 0.638 GB, free: 14.79 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001125/0.1184, allocations: 234.7 kB / 0.6383 GB, free: 14.54 MB / 494.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.683e-05/0.1184, allocations: 8 kB / 0.6383 GB, free: 14.53 MB / 494.1 MB Notification: Performance of sorting global known variables: time 6.921e-05/0.1185, allocations: 123.2 kB / 0.6384 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Backend: time 3.11e-07/0.1185, allocations: 0 / 0.6384 GB, free: 14.41 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0007183/0.1192, allocations: 303.5 kB / 0.6387 GB, free: 14.12 MB / 494.1 MB Notification: Performance of SimCode: time 0.000349/0.1196, allocations: 0.5922 MB / 0.6393 GB, free: 13.48 MB / 494.1 MB Notification: Performance of Templates: time 0.004428/0.124, allocations: 2.163 MB / 0.6414 GB, free: 11.32 MB / 494.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)