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.001013/0.001013, allocations: 99.05 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 183.7 kB / 16.92 MB, free: 6.777 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.431/1.431, allocations: 223.3 MB / 241 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7411/0.7411, allocations: 115.5 MB / 407.6 MB, free: 2.652 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003385/0.0003384, allocations: 8 kB / 495.8 MB, free: 6.363 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1514, allocations: 77.54 MB / 0.56 GB, free: 9.023 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0005914/0.1521, allocations: 234.3 kB / 0.5602 GB, free: 8.793 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.1542, allocations: 1.617 MB / 0.5618 GB, free: 7.16 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.328e-05/0.1543, allocations: 0 / 0.5618 GB, free: 7.16 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001769/0.1545, allocations: 63.84 kB / 0.5618 GB, free: 7.098 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.467e-05/0.1545, allocations: 27.95 kB / 0.5618 GB, free: 7.07 MB / 430.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.0006655/0.1552, allocations: 195.6 kB / 0.562 GB, free: 6.879 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.595e-05/0.1553, allocations: 35.89 kB / 0.5621 GB, free: 6.844 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.842e-05/0.1553, allocations: 7.984 kB / 0.5621 GB, free: 6.836 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.377e-05/0.1553, allocations: 19.92 kB / 0.5621 GB, free: 6.816 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.124e-05/0.1554, allocations: 35.95 kB / 0.5621 GB, free: 6.781 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.04e-05/0.1554, allocations: 0 / 0.5621 GB, free: 6.781 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004214/0.1558, allocations: 275.5 kB / 0.5624 GB, free: 6.512 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.392e-05/0.1559, allocations: 35.84 kB / 0.5624 GB, free: 6.477 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.925e-05/0.156, allocations: 53.45 kB / 0.5625 GB, free: 6.418 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003616/0.1563, allocations: 279.4 kB / 0.5627 GB, free: 6.145 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.1563, allocations: 0 / 0.5627 GB, free: 6.145 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.1563, allocations: 0 / 0.5627 GB, free: 6.145 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.962e-06/0.1564, allocations: 0 / 0.5627 GB, free: 6.145 MB / 430.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.0004395/0.1568, allocations: 432.9 kB / 0.5632 GB, free: 5.676 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.378e-05/0.1569, allocations: 12.03 kB / 0.5632 GB, free: 5.664 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.422e-05/0.1569, allocations: 8.844 kB / 0.5632 GB, free: 5.656 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001592/0.1571, allocations: 184.1 kB / 0.5633 GB, free: 5.438 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.765e-06/0.1571, allocations: 8.312 kB / 0.5634 GB, free: 5.43 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.1571, allocations: 384 / 0.5634 GB, free: 5.43 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.1572, allocations: 46.02 kB / 0.5634 GB, free: 5.379 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.1572, allocations: 0 / 0.5634 GB, free: 5.379 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.1572, allocations: 0 / 0.5634 GB, free: 5.379 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.1572, allocations: 0 / 0.5634 GB, free: 5.379 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.373e-05/0.1573, allocations: 19.98 kB / 0.5634 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001879/0.1575, allocations: 189.5 kB / 0.5636 GB, free: 5.125 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.435e-05/0.1575, allocations: 30.52 kB / 0.5636 GB, free: 5.086 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.312e-05/0.1576, allocations: 12.92 kB / 0.5636 GB, free: 5.07 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.695e-05/0.1576, allocations: 11.98 kB / 0.5637 GB, free: 5.059 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.04e-05/0.1576, allocations: 34.5 kB / 0.5637 GB, free: 5.016 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.01e-07/0.1576, allocations: 0 / 0.5637 GB, free: 5.016 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001447/0.1578, allocations: 65.59 kB / 0.5637 GB, free: 4.945 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.1578, allocations: 55.39 kB / 0.5638 GB, free: 4.879 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.1581, allocations: 215.9 kB / 0.564 GB, free: 4.66 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.299e-05/0.1581, allocations: 25.7 kB / 0.564 GB, free: 4.629 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.98e-05/0.1581, allocations: 104.1 kB / 0.5641 GB, free: 4.523 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.176e-05/0.1582, allocations: 3.906 kB / 0.5641 GB, free: 4.52 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.232e-05/0.1582, allocations: 29.64 kB / 0.5642 GB, free: 4.484 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.1583, allocations: 326.8 kB / 0.5645 GB, free: 4.156 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.813e-05/0.1584, allocations: 47.98 kB / 0.5645 GB, free: 4.109 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.681e-05/0.1585, allocations: 59.97 kB / 0.5646 GB, free: 4.051 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001211/0.1586, allocations: 88.78 kB / 0.5647 GB, free: 3.961 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.1586, allocations: 4.031 kB / 0.5647 GB, free: 3.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001827/0.1588, allocations: 163.1 kB / 0.5648 GB, free: 3.793 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1588, allocations: 7.938 kB / 0.5648 GB, free: 3.785 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1588, allocations: 3.938 kB / 0.5648 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.209e-05/0.1589, allocations: 0 / 0.5648 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.276e-05/0.1589, allocations: 0 / 0.5648 GB, free: 3.781 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.893e-06/0.1589, allocations: 7.938 kB / 0.5648 GB, free: 3.773 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.505e-05/0.1589, allocations: 11.78 kB / 0.5649 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.899e-06/0.1589, allocations: 4 kB / 0.5649 GB, free: 3.758 MB / 430.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.0001682/0.1591, allocations: 137.2 kB / 0.565 GB, free: 3.617 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.915e-05/0.1591, allocations: 15.75 kB / 0.565 GB, free: 3.602 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.1592, allocations: 58.25 kB / 0.5651 GB, free: 3.543 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.459e-06/0.1593, allocations: 7.984 kB / 0.5651 GB, free: 3.535 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1593, allocations: 3.984 kB / 0.5651 GB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1593, allocations: 0 / 0.5651 GB, free: 3.531 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.1595, allocations: 185.7 kB / 0.5652 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1595, allocations: 0 / 0.5652 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.117e-06/0.1595, allocations: 32 / 0.5652 GB, free: 3.301 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1595, allocations: 7.938 kB / 0.5653 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.021e-06/0.1595, allocations: 0 / 0.5653 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.1595, allocations: 0 / 0.5653 GB, free: 3.293 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.1595, allocations: 3.938 kB / 0.5653 GB, free: 3.289 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.1596, allocations: 88.95 kB / 0.5653 GB, free: 3.184 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.1597, allocations: 92.86 kB / 0.5654 GB, free: 3.074 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.403e-05/0.1597, allocations: 0 / 0.5654 GB, free: 3.074 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.293e-05/0.1597, allocations: 4.031 kB / 0.5654 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.142e-05/0.1597, allocations: 0 / 0.5654 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.993e-06/0.1597, allocations: 0 / 0.5654 GB, free: 3.07 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001257/0.1599, allocations: 150.2 kB / 0.5656 GB, free: 2.926 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1599, allocations: 0 / 0.5656 GB, free: 2.926 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003179/0.1602, allocations: 83.98 kB / 0.5657 GB, free: 2.844 MB / 430.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.0005178/0.1607, allocations: 223.6 kB / 0.5659 GB, free: 2.637 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001965/0.1609, allocations: 129.6 kB / 0.566 GB, free: 2.504 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.1609, allocations: 0 / 0.566 GB, free: 2.504 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.896e-05/0.161, allocations: 15.98 kB / 0.566 GB, free: 2.488 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001413/0.1611, allocations: 7.938 kB / 0.566 GB, free: 2.48 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003428/0.1615, allocations: 222.9 kB / 0.5662 GB, free: 2.238 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003957/0.1619, allocations: 0.7095 MB / 0.5669 GB, free: 1.504 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 2.102e-05/0.1619, allocations: 3.984 kB / 0.5669 GB, free: 1.5 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.427e-05/0.1619, allocations: 7.438 kB / 0.5669 GB, free: 1.492 MB / 430.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1619, allocations: 4 kB / 0.5669 GB, free: 1.488 MB / 430.1 MB Notification: Performance of Templates: time 0.00569/0.1676, allocations: 2.084 MB / 0.569 GB, free: 15.4 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)