Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001442/0.001442, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001685/0.001685, allocations: 196.5 kB / 16.14 MB, free: 6.707 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.332/1.332, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002055/0.002055, allocations: 268.1 kB / 290.2 MB, free: 2.215 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9588/0.9588, allocations: 169.2 MB / 0.4977 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001671/0.001671, allocations: 90.17 kB / 0.5945 GB, free: 28.38 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1691, allocations: 86.98 MB / 0.6794 GB, free: 1.188 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001635/0.1708, allocations: 0.5822 MB / 0.68 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002112/0.1729, allocations: 1.632 MB / 0.6816 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.592e-05/0.173, allocations: 1.719 kB / 0.6816 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001278/0.1731, allocations: 27.84 kB / 0.6816 GB, free: 14.94 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.076e-05/0.1731, allocations: 7.984 kB / 0.6816 GB, free: 14.93 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0006573/0.1738, allocations: 187.3 kB / 0.6818 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.898e-05/0.1739, allocations: 27.91 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.575e-05/0.1739, allocations: 7.984 kB / 0.6818 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.912e-05/0.174, allocations: 7.984 kB / 0.6818 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.984e-05/0.174, allocations: 19.92 kB / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.147e-05/0.174, allocations: 0 / 0.6819 GB, free: 14.69 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004576/0.1745, allocations: 277.7 kB / 0.6821 GB, free: 14.42 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.127e-05/0.1745, allocations: 19.92 kB / 0.6821 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.765e-05/0.1746, allocations: 23.8 kB / 0.6822 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003552/0.1749, allocations: 271.6 kB / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.306e-06/0.175, allocations: 0 / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.02e-07/0.175, allocations: 0 / 0.6824 GB, free: 14.11 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.175, allocations: 0.7188 kB / 0.6824 GB, free: 14.11 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.0003854/0.1754, allocations: 412 kB / 0.6828 GB, free: 13.66 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.162e-05/0.1754, allocations: 8.031 kB / 0.6828 GB, free: 13.66 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.179e-05/0.1754, allocations: 9.469 kB / 0.6828 GB, free: 13.65 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001394/0.1756, allocations: 177.6 kB / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.893e-06/0.1756, allocations: 384 / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.03e-05/0.1756, allocations: 384 / 0.683 GB, free: 13.44 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.1757, allocations: 42.7 kB / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.272e-06/0.1757, allocations: 0 / 0.683 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.358e-06/0.1757, allocations: 8 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1758, allocations: 3.984 kB / 0.6831 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.606e-05/0.1758, allocations: 12 kB / 0.6831 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.1759, allocations: 181.6 kB / 0.6832 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.216e-05/0.176, allocations: 22.58 kB / 0.6833 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.15e-05/0.176, allocations: 12.91 kB / 0.6833 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.2e-05/0.1761, allocations: 11.94 kB / 0.6833 GB, free: 13.08 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.378e-05/0.1761, allocations: 38.5 kB / 0.6833 GB, free: 13.04 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.52e-07/0.1761, allocations: 0 / 0.6833 GB, free: 13.04 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001373/0.1762, allocations: 65.58 kB / 0.6834 GB, free: 12.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.73e-05/0.1763, allocations: 51.41 kB / 0.6834 GB, free: 12.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001304/0.1764, allocations: 164.4 kB / 0.6836 GB, free: 12.73 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.126e-05/0.1764, allocations: 29.7 kB / 0.6836 GB, free: 12.7 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.382e-05/0.1765, allocations: 96.12 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.979e-06/0.1765, allocations: 3.984 kB / 0.6837 GB, free: 12.6 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.558e-05/0.1765, allocations: 29.83 kB / 0.6837 GB, free: 12.56 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.1766, allocations: 322.8 kB / 0.6841 GB, free: 12.24 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.968e-05/0.1767, allocations: 35.98 kB / 0.6841 GB, free: 12.2 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.991e-05/0.1767, allocations: 43.92 kB / 0.6841 GB, free: 12.16 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.37e-05/0.1768, allocations: 72.75 kB / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1768, allocations: 0 / 0.6842 GB, free: 12.09 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001339/0.177, allocations: 125.6 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.177, allocations: 7.938 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.316e-05/0.177, allocations: 4.047 kB / 0.6843 GB, free: 11.95 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.177, allocations: 8 kB / 0.6843 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.068e-05/0.177, allocations: 0 / 0.6843 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.227e-06/0.177, allocations: 0 / 0.6843 GB, free: 11.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.43e-05/0.1771, allocations: 15.78 kB / 0.6844 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.1771, allocations: 4 kB / 0.6844 GB, free: 11.92 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.0001531/0.1772, allocations: 126 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.1773, allocations: 11.84 kB / 0.6845 GB, free: 11.78 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.1774, allocations: 65.55 kB / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.222e-06/0.1774, allocations: 0 / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.1774, allocations: 0 / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.713e-06/0.1774, allocations: 0 / 0.6846 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001023/0.1775, allocations: 165.7 kB / 0.6847 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1775, allocations: 0 / 0.6847 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.56e-06/0.1775, allocations: 7.984 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1775, allocations: 3.938 kB / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.681e-06/0.1775, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.1775, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.1775, allocations: 0 / 0.6847 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.442e-05/0.1776, allocations: 81 kB / 0.6848 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.1777, allocations: 92.94 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.26e-05/0.1777, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.133e-05/0.1777, allocations: 3.938 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.189e-05/0.1777, allocations: 4 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.574e-06/0.1777, allocations: 0 / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.724e-05/0.1778, allocations: 129.1 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1778, allocations: 4.031 kB / 0.685 GB, free: 11.14 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003026/0.1781, allocations: 83.98 kB / 0.6851 GB, free: 11.05 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.0004581/0.1786, allocations: 231.7 kB / 0.6853 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001443/0.1787, allocations: 105.7 kB / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.215e-06/0.1788, allocations: 0 / 0.6854 GB, free: 10.73 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.683e-05/0.1788, allocations: 11.94 kB / 0.6854 GB, free: 10.72 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001394/0.1789, allocations: 9.656 kB / 0.6854 GB, free: 10.71 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002587/0.1792, allocations: 179.1 kB / 0.6856 GB, free: 10.51 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002176/0.1794, allocations: 0.6965 MB / 0.6863 GB, free: 9.789 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.734e-05/0.1794, allocations: 0 / 0.6863 GB, free: 9.789 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.29e-05/0.1795, allocations: 7.438 kB / 0.6863 GB, free: 9.781 MB / 494.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1795, allocations: 0 / 0.6863 GB, free: 9.781 MB / 494.1 MB Notification: Performance of Templates: time 0.004562/0.184, allocations: 2.078 MB / 0.6883 GB, free: 7.703 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)