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.001057/0.001057, allocations: 105.3 kB / 16.4 MB, free: 6.52 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.001116/0.001116, allocations: 192 kB / 17.34 MB, free: 5.734 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.34/1.34, 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.7644/0.7644, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001335/0.001335, allocations: 65.62 kB / 0.5684 GB, free: 28.87 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1429/0.1442, allocations: 77.92 MB / 0.6445 GB, free: 9.055 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001597/0.1459, allocations: 0.516 MB / 0.645 GB, free: 8.543 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00226/0.1481, allocations: 1.604 MB / 0.6466 GB, free: 6.922 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.666e-05/0.1482, allocations: 0 / 0.6466 GB, free: 6.922 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001701/0.1484, allocations: 63.86 kB / 0.6467 GB, free: 6.859 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.824e-05/0.1485, allocations: 35.88 kB / 0.6467 GB, free: 6.824 MB / 494.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.0008968/0.1494, allocations: 245 kB / 0.6469 GB, free: 6.586 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.878e-05/0.1494, allocations: 31.89 kB / 0.6469 GB, free: 6.555 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.012e-05/0.1495, allocations: 3.984 kB / 0.647 GB, free: 6.551 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.714e-05/0.1495, allocations: 27.92 kB / 0.647 GB, free: 6.523 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.061e-05/0.1496, allocations: 39.89 kB / 0.647 GB, free: 6.484 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.272e-05/0.1496, allocations: 4 kB / 0.647 GB, free: 6.48 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005603/0.1502, allocations: 335.4 kB / 0.6473 GB, free: 6.152 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.872e-05/0.1503, allocations: 27.92 kB / 0.6474 GB, free: 6.125 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.196e-05/0.1503, allocations: 23.75 kB / 0.6474 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004383/0.1507, allocations: 291.1 kB / 0.6477 GB, free: 5.816 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.765e-06/0.1508, allocations: 0 / 0.6477 GB, free: 5.816 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1508, allocations: 0 / 0.6477 GB, free: 5.816 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.688e-06/0.1508, allocations: 0 / 0.6477 GB, free: 5.816 MB / 494.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.0004629/0.1513, allocations: 434.5 kB / 0.6481 GB, free: 5.344 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.1513, allocations: 12.62 kB / 0.6481 GB, free: 5.332 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.545e-05/0.1513, allocations: 12.84 kB / 0.6481 GB, free: 5.32 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001566/0.1515, allocations: 203.9 kB / 0.6483 GB, free: 5.082 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.286e-06/0.1515, allocations: 384 / 0.6483 GB, free: 5.082 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.289e-05/0.1515, allocations: 4.375 kB / 0.6483 GB, free: 5.078 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.619e-05/0.1516, allocations: 42 kB / 0.6483 GB, free: 5.031 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.591e-06/0.1516, allocations: 0 / 0.6483 GB, free: 5.031 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.564e-06/0.1517, allocations: 4 kB / 0.6483 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.1517, allocations: 0 / 0.6483 GB, free: 5.027 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.138e-05/0.1517, allocations: 19.98 kB / 0.6484 GB, free: 5.008 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001781/0.1519, allocations: 181.6 kB / 0.6485 GB, free: 4.781 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.988e-05/0.1519, allocations: 34.5 kB / 0.6486 GB, free: 4.738 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.423e-05/0.152, allocations: 12.92 kB / 0.6486 GB, free: 4.723 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.161e-05/0.152, allocations: 4 kB / 0.6486 GB, free: 4.719 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.657e-05/0.152, allocations: 46.48 kB / 0.6486 GB, free: 4.664 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.152, allocations: 0 / 0.6486 GB, free: 4.664 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001569/0.1522, allocations: 69.59 kB / 0.6487 GB, free: 4.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.063e-05/0.1522, allocations: 51.41 kB / 0.6488 GB, free: 4.527 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001888/0.1524, allocations: 210.3 kB / 0.649 GB, free: 4.309 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.417e-05/0.1525, allocations: 25.7 kB / 0.649 GB, free: 4.277 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.195e-05/0.1525, allocations: 108.1 kB / 0.6491 GB, free: 4.168 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.179e-05/0.1525, allocations: 3.953 kB / 0.6491 GB, free: 4.164 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.1526, allocations: 33.83 kB / 0.6491 GB, free: 4.125 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000112/0.1527, allocations: 326.8 kB / 0.6494 GB, free: 3.797 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.346e-05/0.1528, allocations: 51.98 kB / 0.6495 GB, free: 3.746 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.895e-05/0.1529, allocations: 55.97 kB / 0.6495 GB, free: 3.691 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.215e-05/0.1529, allocations: 88.78 kB / 0.6496 GB, free: 3.602 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.153, allocations: 0 / 0.6496 GB, free: 3.602 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001794/0.1531, allocations: 161.5 kB / 0.6498 GB, free: 3.438 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1532, allocations: 7.938 kB / 0.6498 GB, free: 3.43 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.1532, allocations: 11.97 kB / 0.6498 GB, free: 3.418 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1532, allocations: 12.05 kB / 0.6498 GB, free: 3.406 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-05/0.1532, allocations: 3.938 kB / 0.6498 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.1532, allocations: 0 / 0.6498 GB, free: 3.402 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.753e-05/0.1533, allocations: 3.953 kB / 0.6498 GB, free: 3.398 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.598e-06/0.1533, allocations: 11.94 kB / 0.6498 GB, free: 3.387 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: 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.0001276/0.1534, allocations: 125.8 kB / 0.6499 GB, free: 3.254 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.81e-05/0.1534, allocations: 15.84 kB / 0.65 GB, free: 3.238 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001189/0.1536, allocations: 70.23 kB / 0.65 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.1536, allocations: 0 / 0.65 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.1536, allocations: 0 / 0.65 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.824e-06/0.1536, allocations: 0 / 0.65 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.1537, allocations: 181.6 kB / 0.6502 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.1537, allocations: 0 / 0.6502 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.149e-06/0.1537, allocations: 0 / 0.6502 GB, free: 2.938 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.1538, allocations: 3.938 kB / 0.6502 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.35e-06/0.1538, allocations: 0 / 0.6502 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.1538, allocations: 0 / 0.6502 GB, free: 2.934 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1538, allocations: 7.938 kB / 0.6502 GB, free: 2.926 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.041e-05/0.1539, allocations: 85.06 kB / 0.6503 GB, free: 2.824 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.614e-05/0.1539, allocations: 89 kB / 0.6504 GB, free: 2.719 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.1539, allocations: 3.984 kB / 0.6504 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.424e-05/0.154, allocations: 0 / 0.6504 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.859e-06/0.154, allocations: 0 / 0.6504 GB, free: 2.715 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.296e-06/0.154, allocations: 4 kB / 0.6504 GB, free: 2.711 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001133/0.1541, allocations: 152.3 kB / 0.6505 GB, free: 2.562 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1541, allocations: 4.031 kB / 0.6505 GB, free: 2.559 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003547/0.1545, allocations: 87.81 kB / 0.6506 GB, free: 2.473 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.0005054/0.155, allocations: 229 kB / 0.6508 GB, free: 2.262 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001884/0.1552, allocations: 141.5 kB / 0.651 GB, free: 2.117 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1552, allocations: 0 / 0.651 GB, free: 2.117 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.664e-05/0.1552, allocations: 8 kB / 0.651 GB, free: 2.109 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001473/0.1554, allocations: 7.938 kB / 0.651 GB, free: 2.102 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003054/0.1557, allocations: 225.6 kB / 0.6512 GB, free: 1.855 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002685/0.156, allocations: 0.7041 MB / 0.6519 GB, free: 1.125 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.095e-05/0.156, allocations: 4 kB / 0.6519 GB, free: 1.121 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.483e-05/0.156, allocations: 7.438 kB / 0.6519 GB, free: 1.113 MB / 494.1 MB Notification: Performance of SimCode: time 2.9e-07/0.156, allocations: 4.125 kB / 0.6519 GB, free: 1.109 MB / 494.1 MB Notification: Performance of Templates: time 0.004897/0.1609, allocations: 2.107 MB / 0.654 GB, free: 15 MB / 0.4981 GB 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)