Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008698/0.0008698, allocations: 93.59 kB / 16.66 MB, free: 5.859 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.001005/0.001005, allocations: 176.7 kB / 17.57 MB, free: 5.543 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.441/1.441, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7337/0.7337, allocations: 115.5 MB / 408.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003615/0.0003614, allocations: 12 kB / 496.5 MB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4416/0.442, allocations: 77.53 MB / 0.5606 GB, free: 35.54 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0006274/0.4426, allocations: 242.7 kB / 0.5608 GB, free: 35.38 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002017/0.4447, allocations: 1.604 MB / 0.5624 GB, free: 34.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.012e-05/0.4447, allocations: 0 / 0.5624 GB, free: 34.25 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001849/0.4449, allocations: 60.69 kB / 0.5624 GB, free: 34.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.902e-05/0.4449, allocations: 39.12 kB / 0.5625 GB, free: 34.23 MB / 446.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007165/0.4457, allocations: 197.2 kB / 0.5627 GB, free: 34.15 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.651e-05/0.4457, allocations: 37.45 kB / 0.5627 GB, free: 34.14 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.424e-05/0.4458, allocations: 1.656 kB / 0.5627 GB, free: 34.14 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.661e-05/0.4458, allocations: 24.52 kB / 0.5627 GB, free: 34.13 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.842e-05/0.4459, allocations: 34.53 kB / 0.5628 GB, free: 34.13 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.361e-05/0.4459, allocations: 3.984 kB / 0.5628 GB, free: 34.13 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004507/0.4464, allocations: 273.2 kB / 0.563 GB, free: 34.04 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.847e-05/0.4465, allocations: 27.75 kB / 0.563 GB, free: 34.04 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.631e-05/0.4465, allocations: 51.77 kB / 0.5631 GB, free: 33.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003235/0.4468, allocations: 203 kB / 0.5633 GB, free: 33.94 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.4468, allocations: 1.219 kB / 0.5633 GB, free: 33.94 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4468, allocations: 0.5312 kB / 0.5633 GB, free: 33.94 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.037e-06/0.4469, allocations: 0.5625 kB / 0.5633 GB, free: 33.94 MB / 446.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.0003662/0.4472, allocations: 427.5 kB / 0.5637 GB, free: 33.52 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.547e-05/0.4473, allocations: 13.09 kB / 0.5637 GB, free: 33.52 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.623e-05/0.4473, allocations: 11.5 kB / 0.5637 GB, free: 33.52 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000127/0.4474, allocations: 184.9 kB / 0.5639 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.498e-06/0.4475, allocations: 1.172 kB / 0.5639 GB, free: 33.31 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.024e-05/0.4475, allocations: 5.719 kB / 0.5639 GB, free: 33.3 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001075/0.4476, allocations: 42.17 kB / 0.5639 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.4476, allocations: 0 / 0.5639 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.226e-06/0.4476, allocations: 1.031 kB / 0.5639 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.4476, allocations: 0.6875 kB / 0.5639 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.602e-05/0.4477, allocations: 18.94 kB / 0.564 GB, free: 33.27 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001601/0.4478, allocations: 186.9 kB / 0.5641 GB, free: 33.07 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.689e-05/0.4479, allocations: 26.17 kB / 0.5642 GB, free: 33.04 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.698e-05/0.4479, allocations: 23.5 kB / 0.5642 GB, free: 33.03 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.656e-05/0.448, allocations: 6.5 kB / 0.5642 GB, free: 33.03 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.746e-05/0.448, allocations: 38.36 kB / 0.5642 GB, free: 32.98 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.448, allocations: 0 / 0.5642 GB, free: 32.98 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001588/0.4482, allocations: 67.44 kB / 0.5643 GB, free: 32.95 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.324e-05/0.4482, allocations: 53.52 kB / 0.5643 GB, free: 32.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001897/0.4484, allocations: 213 kB / 0.5645 GB, free: 32.75 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.926e-06/0.4484, allocations: 27.73 kB / 0.5646 GB, free: 32.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.559e-05/0.4485, allocations: 105.4 kB / 0.5647 GB, free: 32.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.114e-05/0.4485, allocations: 1.531 kB / 0.5647 GB, free: 32.62 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.254e-05/0.4485, allocations: 26.44 kB / 0.5647 GB, free: 32.61 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.018e-05/0.4486, allocations: 326.5 kB / 0.565 GB, free: 32.29 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.122e-05/0.4486, allocations: 57.59 kB / 0.5651 GB, free: 32.27 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.347e-05/0.4487, allocations: 58.08 kB / 0.5651 GB, free: 32.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001143/0.4488, allocations: 100.6 kB / 0.5652 GB, free: 32.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.4488, allocations: 0 / 0.5652 GB, free: 32.23 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001804/0.449, allocations: 160 kB / 0.5654 GB, free: 32.18 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.555e-05/0.4491, allocations: 9.156 kB / 0.5654 GB, free: 32.17 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.571e-05/0.4491, allocations: 1.766 kB / 0.5654 GB, free: 32.17 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.4491, allocations: 1.406 kB / 0.5654 GB, free: 32.17 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.547e-05/0.4491, allocations: 6.016 kB / 0.5654 GB, free: 32.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.4491, allocations: 0 / 0.5654 GB, free: 32.17 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.711e-05/0.4492, allocations: 17.91 kB / 0.5654 GB, free: 32.15 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.077e-06/0.4492, allocations: 2.5 kB / 0.5654 GB, free: 32.15 MB / 446.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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001214/0.4493, allocations: 134.9 kB / 0.5655 GB, free: 32.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.43e-05/0.4493, allocations: 15.44 kB / 0.5656 GB, free: 32.02 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.4494, allocations: 64.59 kB / 0.5656 GB, free: 31.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.4494, allocations: 0.6875 kB / 0.5656 GB, free: 31.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4495, allocations: 5.266 kB / 0.5656 GB, free: 31.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.4495, allocations: 0 / 0.5656 GB, free: 31.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001017/0.4496, allocations: 177.3 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.4496, allocations: 1.656 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-06/0.4496, allocations: 0.7031 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.096e-06/0.4496, allocations: 7.922 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.502e-06/0.4496, allocations: 1.344 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.4496, allocations: 0.7031 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4496, allocations: 0.5625 kB / 0.5658 GB, free: 31.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.185e-05/0.4497, allocations: 86.47 kB / 0.5659 GB, free: 31.71 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.4497, allocations: 93.56 kB / 0.566 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.349e-05/0.4498, allocations: 0.75 kB / 0.566 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.361e-05/0.4498, allocations: 2.406 kB / 0.566 GB, free: 31.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.335e-05/0.4498, allocations: 4.5 kB / 0.566 GB, free: 31.6 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.4498, allocations: 1.312 kB / 0.566 GB, free: 31.6 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001116/0.4499, allocations: 151.2 kB / 0.5661 GB, free: 31.51 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4499, allocations: 0 / 0.5661 GB, free: 31.51 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.4503, allocations: 90.06 kB / 0.5662 GB, free: 31.5 MB / 446.1 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.0004768/0.4508, allocations: 221.8 kB / 0.5664 GB, free: 31.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001822/0.451, allocations: 126.8 kB / 0.5665 GB, free: 31.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.451, allocations: 3.938 kB / 0.5665 GB, free: 31.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.823e-05/0.451, allocations: 11.81 kB / 0.5666 GB, free: 31.32 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001515/0.4512, allocations: 10.48 kB / 0.5666 GB, free: 31.31 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003473/0.4515, allocations: 249.2 kB / 0.5668 GB, free: 31.12 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.4517, allocations: 0.7034 MB / 0.5675 GB, free: 30.43 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.339e-05/0.4517, allocations: 8.938 kB / 0.5675 GB, free: 30.42 MB / 446.1 MB Notification: Performance of SimCode: time 7.82e-07/0.4517, allocations: 1.312 kB / 0.5675 GB, free: 30.42 MB / 446.1 MB Notification: Performance of Templates: time 0.005616/0.4573, allocations: 2.364 MB / 0.5698 GB, free: 30.29 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)