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.000796/0.0007961, allocations: 98.97 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.000926/0.0009259, allocations: 186.1 kB / 16.92 MB, free: 6.754 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.381/1.381, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7005/0.7005, allocations: 115.5 MB / 407.6 MB, free: 2.727 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003126/0.0003126, allocations: 8.75 kB / 495.9 MB, free: 6.395 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1736/0.1739, allocations: 77.53 MB / 0.5599 GB, free: 9.066 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00072/0.1747, allocations: 234.3 kB / 0.5602 GB, free: 8.836 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002274/0.177, allocations: 1.613 MB / 0.5617 GB, free: 7.207 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.202e-05/0.177, allocations: 0 / 0.5617 GB, free: 7.207 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.1772, allocations: 19.91 kB / 0.5618 GB, free: 7.188 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 2.331e-05/0.1772, allocations: 7.984 kB / 0.5618 GB, free: 7.18 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.0007244/0.1779, allocations: 199.6 kB / 0.562 GB, free: 6.984 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.853e-05/0.178, allocations: 23.91 kB / 0.562 GB, free: 6.961 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.433e-05/0.178, allocations: 3.984 kB / 0.562 GB, free: 6.957 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.203e-05/0.1781, allocations: 11.94 kB / 0.562 GB, free: 6.945 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.077e-05/0.1781, allocations: 15.98 kB / 0.562 GB, free: 6.93 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.287e-05/0.1781, allocations: 0 / 0.562 GB, free: 6.93 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004771/0.1786, allocations: 275.5 kB / 0.5623 GB, free: 6.66 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.563e-05/0.1787, allocations: 27.91 kB / 0.5623 GB, free: 6.633 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 4.598e-05/0.1787, allocations: 49.5 kB / 0.5624 GB, free: 6.578 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003744/0.1791, allocations: 267.4 kB / 0.5626 GB, free: 6.316 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.476e-06/0.1791, allocations: 3.938 kB / 0.5626 GB, free: 6.312 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.1791, allocations: 0 / 0.5626 GB, free: 6.312 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.478e-06/0.1791, allocations: 0 / 0.5626 GB, free: 6.312 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.0004224/0.1796, allocations: 399.5 kB / 0.563 GB, free: 5.875 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.1796, allocations: 8.031 kB / 0.563 GB, free: 5.867 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.213e-05/0.1797, allocations: 8.844 kB / 0.563 GB, free: 5.859 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001562/0.1798, allocations: 181.8 kB / 0.5632 GB, free: 5.645 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.062e-05/0.1798, allocations: 4.375 kB / 0.5632 GB, free: 5.641 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.157e-05/0.1799, allocations: 4.359 kB / 0.5632 GB, free: 5.637 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.698e-05/0.18, allocations: 45.94 kB / 0.5632 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.653e-06/0.18, allocations: 0 / 0.5632 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.687e-06/0.18, allocations: 0 / 0.5632 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.18, allocations: 0 / 0.5632 GB, free: 5.586 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.18e-05/0.18, allocations: 19.98 kB / 0.5633 GB, free: 5.566 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000172/0.1802, allocations: 177.6 kB / 0.5634 GB, free: 5.344 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.425e-05/0.1803, allocations: 30.52 kB / 0.5635 GB, free: 5.305 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.231e-05/0.1803, allocations: 12.92 kB / 0.5635 GB, free: 5.289 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.1803, allocations: 7.984 kB / 0.5635 GB, free: 5.281 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.104e-05/0.1804, allocations: 34.5 kB / 0.5635 GB, free: 5.238 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.011e-06/0.1804, allocations: 0 / 0.5635 GB, free: 5.238 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001417/0.1805, allocations: 57.59 kB / 0.5636 GB, free: 5.176 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.062e-05/0.1806, allocations: 51.53 kB / 0.5636 GB, free: 5.113 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001487/0.1807, allocations: 177.7 kB / 0.5638 GB, free: 4.934 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.499e-05/0.1807, allocations: 25.7 kB / 0.5638 GB, free: 4.902 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.133e-05/0.1808, allocations: 104 kB / 0.5639 GB, free: 4.797 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.06e-05/0.1808, allocations: 4 kB / 0.5639 GB, free: 4.793 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.566e-05/0.1809, allocations: 13.72 kB / 0.5639 GB, free: 4.773 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001218/0.181, allocations: 322.8 kB / 0.5642 GB, free: 4.449 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.124e-05/0.1811, allocations: 43.92 kB / 0.5643 GB, free: 4.406 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.052e-05/0.1811, allocations: 43.7 kB / 0.5643 GB, free: 4.367 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.728e-05/0.1812, allocations: 72.86 kB / 0.5644 GB, free: 4.293 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1812, allocations: 0 / 0.5644 GB, free: 4.293 MB / 430.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001384/0.1814, allocations: 121.6 kB / 0.5645 GB, free: 4.168 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.1814, allocations: 7.938 kB / 0.5645 GB, free: 4.16 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.697e-05/0.1814, allocations: 4 kB / 0.5645 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.1814, allocations: 0 / 0.5645 GB, free: 4.156 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.536e-05/0.1814, allocations: 7.938 kB / 0.5645 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.1814, allocations: 0 / 0.5645 GB, free: 4.148 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.405e-05/0.1815, allocations: 11.84 kB / 0.5645 GB, free: 4.137 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.255e-06/0.1815, allocations: 0 / 0.5645 GB, free: 4.137 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: 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.0001358/0.1816, allocations: 129.9 kB / 0.5647 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.319e-05/0.1816, allocations: 11.83 kB / 0.5647 GB, free: 3.988 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.944e-05/0.1818, allocations: 57.5 kB / 0.5647 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1818, allocations: 0 / 0.5647 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1818, allocations: 0 / 0.5647 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.1818, allocations: 0 / 0.5647 GB, free: 3.926 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000119/0.1819, allocations: 177.6 kB / 0.5649 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.1819, allocations: 0 / 0.5649 GB, free: 3.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.997e-06/0.1819, allocations: 4.031 kB / 0.5649 GB, free: 3.699 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.145e-06/0.1819, allocations: 3.938 kB / 0.5649 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.921e-06/0.1819, allocations: 0 / 0.5649 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.515e-06/0.1819, allocations: 0 / 0.5649 GB, free: 3.695 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1819, allocations: 3.938 kB / 0.5649 GB, free: 3.691 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.565e-05/0.182, allocations: 77.03 kB / 0.565 GB, free: 3.598 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.081e-05/0.1821, allocations: 92.94 kB / 0.5651 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.1821, allocations: 0 / 0.5651 GB, free: 3.488 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.1821, allocations: 4.031 kB / 0.5651 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.14e-05/0.1821, allocations: 0 / 0.5651 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.157e-06/0.1821, allocations: 4 kB / 0.5651 GB, free: 3.48 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.767e-05/0.1822, allocations: 115.2 kB / 0.5652 GB, free: 3.367 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1822, allocations: 0 / 0.5652 GB, free: 3.367 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003127/0.1826, allocations: 83.98 kB / 0.5653 GB, free: 3.285 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.0004778/0.183, allocations: 244.3 kB / 0.5655 GB, free: 3.066 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001551/0.1832, allocations: 105.6 kB / 0.5656 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.1832, allocations: 0 / 0.5656 GB, free: 2.957 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.434e-05/0.1832, allocations: 8 kB / 0.5656 GB, free: 2.949 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.1834, allocations: 3.984 kB / 0.5656 GB, free: 2.945 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002722/0.1837, allocations: 179.2 kB / 0.5658 GB, free: 2.742 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002647/0.1839, allocations: 0.6965 MB / 0.5665 GB, free: 2.02 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 1.764e-05/0.184, allocations: 0 / 0.5665 GB, free: 2.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.316e-05/0.184, allocations: 7.438 kB / 0.5665 GB, free: 2.012 MB / 430.1 MB Notification: Performance of SimCode: time 2.71e-07/0.184, allocations: 0 / 0.5665 GB, free: 2.012 MB / 430.1 MB Notification: Performance of Templates: time 0.004792/0.1888, allocations: 2.077 MB / 0.5685 GB, free: 15.94 MB / 446.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)