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.001833/0.001833, allocations: 109 kB / 16.41 MB, free: 6.48 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.001838/0.001838, allocations: 193.8 kB / 17.34 MB, free: 5.762 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.425/1.425, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7687/0.7687, allocations: 115.3 MB / 406.5 MB, free: 6.145 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001308/0.001308, allocations: 60.03 kB / 0.5576 GB, free: 32.22 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1461/0.1475, allocations: 76.18 MB / 0.632 GB, free: 4.434 MB / 478.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001514/0.149, allocations: 0.5074 MB / 0.6325 GB, free: 3.93 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002213/0.1513, allocations: 1.61 MB / 0.6341 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.021e-05/0.1513, allocations: 0 / 0.6341 GB, free: 2.301 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001511/0.1515, allocations: 19.91 kB / 0.6341 GB, free: 2.281 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 2.515e-05/0.1515, allocations: 11.98 kB / 0.6341 GB, free: 2.27 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.0008454/0.1524, allocations: 247.3 kB / 0.6344 GB, free: 2.027 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 7.623e-05/0.1524, allocations: 15.98 kB / 0.6344 GB, free: 2.012 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.818e-05/0.1525, allocations: 15.92 kB / 0.6344 GB, free: 1.996 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.986e-05/0.1525, allocations: 7.938 kB / 0.6344 GB, free: 1.988 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.556e-05/0.1526, allocations: 19.91 kB / 0.6344 GB, free: 1.969 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 1.485e-05/0.1526, allocations: 0 / 0.6344 GB, free: 1.969 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005439/0.1532, allocations: 335.5 kB / 0.6347 GB, free: 1.641 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 6.286e-05/0.1532, allocations: 19.97 kB / 0.6348 GB, free: 1.621 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 3.128e-05/0.1533, allocations: 19.81 kB / 0.6348 GB, free: 1.602 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003883/0.1537, allocations: 275.4 kB / 0.635 GB, free: 1.332 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1537, allocations: 0 / 0.635 GB, free: 1.332 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.244e-06/0.1537, allocations: 4 kB / 0.6351 GB, free: 1.328 MB / 478.1 MB Notification: Performance of Transformations before backend: time 5.781e-06/0.1537, allocations: 0 / 0.6351 GB, free: 1.328 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.000447/0.1541, allocations: 407.1 kB / 0.6354 GB, free: 0.8828 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.81e-05/0.1542, allocations: 8.031 kB / 0.6354 GB, free: 0.875 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.674e-05/0.1542, allocations: 12.84 kB / 0.6355 GB, free: 0.8633 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.1544, allocations: 180.8 kB / 0.6356 GB, free: 0.6484 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.058e-05/0.1544, allocations: 4.375 kB / 0.6356 GB, free: 0.6445 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.274e-05/0.1544, allocations: 4.375 kB / 0.6356 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.484e-05/0.1545, allocations: 38.02 kB / 0.6357 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.244e-06/0.1546, allocations: 0 / 0.6357 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.186e-06/0.1546, allocations: 0 / 0.6357 GB, free: 0.5977 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.1546, allocations: 3.984 kB / 0.6357 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.784e-05/0.1546, allocations: 15.94 kB / 0.6357 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001941/0.1548, allocations: 177.7 kB / 0.6359 GB, free: 364 kB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.357e-05/0.1549, allocations: 22.58 kB / 0.6359 GB, free: 332 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.379e-05/0.1549, allocations: 16.91 kB / 0.6359 GB, free: 312 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.505e-05/0.1549, allocations: 4 kB / 0.6359 GB, free: 308 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.155, allocations: 34.5 kB / 0.6359 GB, free: 264 kB / 478.1 MB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.155, allocations: 0 / 0.6359 GB, free: 264 kB / 478.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002158/0.1552, allocations: 69.52 kB / 0.636 GB, free: 188 kB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.1552, allocations: 55.53 kB / 0.6361 GB, free: 120 kB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.1554, allocations: 174.3 kB / 0.6362 GB, free: 15.94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.135e-05/0.1554, allocations: 33.58 kB / 0.6363 GB, free: 15.9 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.061e-05/0.1555, allocations: 96.11 kB / 0.6364 GB, free: 15.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.1555, allocations: 7.906 kB / 0.6364 GB, free: 15.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.754e-05/0.1556, allocations: 29.7 kB / 0.6364 GB, free: 15.76 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.1557, allocations: 318.8 kB / 0.6367 GB, free: 15.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.028e-05/0.1557, allocations: 39.98 kB / 0.6367 GB, free: 15.4 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.097e-05/0.1558, allocations: 43.92 kB / 0.6368 GB, free: 15.36 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.526e-05/0.1559, allocations: 76.75 kB / 0.6368 GB, free: 15.28 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1559, allocations: 0 / 0.6368 GB, free: 15.28 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001371/0.156, allocations: 117.6 kB / 0.637 GB, free: 15.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.156, allocations: 11.94 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.1561, allocations: 3.984 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.218e-05/0.1561, allocations: 0 / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.31e-05/0.1561, allocations: 0 / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.183e-06/0.1561, allocations: 4 kB / 0.637 GB, free: 15.14 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.453e-05/0.1561, allocations: 11.84 kB / 0.637 GB, free: 15.12 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.1562, allocations: 4 kB / 0.637 GB, free: 15.12 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 0.0001146/0.1563, allocations: 125.8 kB / 0.6371 GB, free: 14.99 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.346e-05/0.1563, allocations: 11.84 kB / 0.6371 GB, free: 14.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.1564, allocations: 65.47 kB / 0.6372 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-06/0.1564, allocations: 4 kB / 0.6372 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.1564, allocations: 0 / 0.6372 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1564, allocations: 0 / 0.6372 GB, free: 14.9 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.1566, allocations: 165.7 kB / 0.6373 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.1566, allocations: 0 / 0.6373 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.021e-06/0.1566, allocations: 3.984 kB / 0.6373 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1566, allocations: 3.938 kB / 0.6374 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.1566, allocations: 4 kB / 0.6374 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1566, allocations: 0 / 0.6374 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.1566, allocations: 0 / 0.6374 GB, free: 14.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.881e-05/0.1567, allocations: 77.03 kB / 0.6374 GB, free: 14.58 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.181e-05/0.1568, allocations: 92.92 kB / 0.6375 GB, free: 14.47 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.1568, allocations: 4 kB / 0.6375 GB, free: 14.47 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.387e-05/0.1568, allocations: 4 kB / 0.6375 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.692e-05/0.1568, allocations: 0 / 0.6375 GB, free: 14.46 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.1568, allocations: 0 / 0.6375 GB, free: 14.46 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001004/0.1569, allocations: 131.2 kB / 0.6377 GB, free: 14.34 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1569, allocations: 0 / 0.6377 GB, free: 14.34 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003198/0.1573, allocations: 83.98 kB / 0.6377 GB, free: 14.25 MB / 494.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.0004492/0.1577, allocations: 216.2 kB / 0.6379 GB, free: 14.05 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001663/0.1579, allocations: 101.7 kB / 0.638 GB, free: 13.95 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1579, allocations: 4 kB / 0.638 GB, free: 13.95 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.403e-05/0.1579, allocations: 8 kB / 0.638 GB, free: 13.94 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001431/0.1581, allocations: 10.47 kB / 0.6381 GB, free: 13.93 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002713/0.1583, allocations: 169.4 kB / 0.6382 GB, free: 13.74 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002339/0.1586, allocations: 0.6885 MB / 0.6389 GB, free: 13.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.068e-05/0.1586, allocations: 7.984 kB / 0.6389 GB, free: 13.02 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.429e-05/0.1586, allocations: 7.438 kB / 0.6389 GB, free: 13.01 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1586, allocations: 0 / 0.6389 GB, free: 13.01 MB / 494.1 MB Notification: Performance of Templates: time 0.005081/0.1637, allocations: 2.085 MB / 0.6409 GB, free: 10.92 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)