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.0007556/0.0007557, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.00475/0.00475, allocations: 169.8 kB / 16.26 MB, free: 6.68 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.304/1.304, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001712/0.001712, allocations: 275 kB / 291.7 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9195/0.9195, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004575/0.0004575, allocations: 13.19 kB / 0.5986 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1589, allocations: 88.55 MB / 0.6851 GB, free: 15.06 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.0005831/0.1596, allocations: 246.5 kB / 0.6854 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002015/0.1616, allocations: 1.612 MB / 0.6869 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.349e-05/0.1616, allocations: 0.5938 kB / 0.6869 GB, free: 13.19 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.1618, allocations: 19.97 kB / 0.6869 GB, free: 13.17 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.511e-05/0.1618, allocations: 8.5 kB / 0.687 GB, free: 13.16 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.0006843/0.1625, allocations: 194.1 kB / 0.6871 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.287e-05/0.1626, allocations: 23.91 kB / 0.6872 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.77e-05/0.1626, allocations: 4 kB / 0.6872 GB, free: 12.95 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.909e-05/0.1626, allocations: 12.89 kB / 0.6872 GB, free: 12.94 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.896e-05/0.1627, allocations: 19.92 kB / 0.6872 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.237e-05/0.1627, allocations: 0.5625 kB / 0.6872 GB, free: 12.92 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004227/0.1631, allocations: 273.8 kB / 0.6875 GB, free: 12.65 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.903e-05/0.1632, allocations: 27.91 kB / 0.6875 GB, free: 12.62 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.758e-05/0.1633, allocations: 45.45 kB / 0.6875 GB, free: 12.57 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003446/0.1636, allocations: 275.7 kB / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.1636, allocations: 0 / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.364e-06/0.1636, allocations: 0 / 0.6878 GB, free: 12.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.52e-06/0.1636, allocations: 0.5 kB / 0.6878 GB, free: 12.3 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.0004043/0.1641, allocations: 401.6 kB / 0.6882 GB, free: 11.87 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.602e-05/0.1641, allocations: 8.031 kB / 0.6882 GB, free: 11.86 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.225e-05/0.1642, allocations: 8.844 kB / 0.6882 GB, free: 11.85 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001665/0.1643, allocations: 180.3 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.085e-05/0.1643, allocations: 384 / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.097e-06/0.1644, allocations: 1.125 kB / 0.6884 GB, free: 11.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.7e-05/0.1645, allocations: 42.66 kB / 0.6884 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1645, allocations: 0 / 0.6884 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.596e-06/0.1645, allocations: 1.406 kB / 0.6884 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1645, allocations: 0 / 0.6884 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.288e-05/0.1645, allocations: 19.92 kB / 0.6884 GB, free: 11.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001734/0.1647, allocations: 180.8 kB / 0.6886 GB, free: 11.35 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.953e-05/0.1648, allocations: 22.58 kB / 0.6886 GB, free: 11.32 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.839e-05/0.1648, allocations: 8.922 kB / 0.6886 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.58e-05/0.1648, allocations: 7.984 kB / 0.6886 GB, free: 11.3 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.1649, allocations: 50.44 kB / 0.6887 GB, free: 11.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.1649, allocations: 0.7812 kB / 0.6887 GB, free: 11.24 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001371/0.165, allocations: 63.12 kB / 0.6887 GB, free: 11.17 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.883e-05/0.165, allocations: 51.41 kB / 0.6888 GB, free: 11.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001429/0.1652, allocations: 164.3 kB / 0.689 GB, free: 10.94 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.1652, allocations: 29.7 kB / 0.689 GB, free: 10.91 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.903e-05/0.1653, allocations: 100.9 kB / 0.6891 GB, free: 10.8 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.776e-06/0.1653, allocations: 4.688 kB / 0.6891 GB, free: 10.8 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.681e-05/0.1653, allocations: 17.72 kB / 0.6891 GB, free: 10.78 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.462e-05/0.1654, allocations: 323.6 kB / 0.6894 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.897e-05/0.1655, allocations: 37.27 kB / 0.6894 GB, free: 10.42 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.081e-05/0.1655, allocations: 43.92 kB / 0.6895 GB, free: 10.38 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.285e-05/0.1656, allocations: 68.81 kB / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1656, allocations: 160 / 0.6895 GB, free: 10.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001443/0.1658, allocations: 141.4 kB / 0.6897 GB, free: 10.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/0.1658, allocations: 7.938 kB / 0.6897 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.1658, allocations: 0 / 0.6897 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1658, allocations: 4 kB / 0.6897 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.126e-05/0.1658, allocations: 0 / 0.6897 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.517e-06/0.1658, allocations: 0 / 0.6897 GB, free: 10.15 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.177e-05/0.1659, allocations: 7.844 kB / 0.6897 GB, free: 10.14 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.1659, allocations: 4 kB / 0.6897 GB, free: 10.14 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.0001186/0.166, allocations: 127.1 kB / 0.6898 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.407e-05/0.166, allocations: 11.84 kB / 0.6898 GB, free: 9.992 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000103/0.1661, allocations: 65.48 kB / 0.6899 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.1661, allocations: 0 / 0.6899 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.1661, allocations: 0 / 0.6899 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.1662, allocations: 0 / 0.6899 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001055/0.1663, allocations: 173.6 kB / 0.6901 GB, free: 9.699 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1663, allocations: 0 / 0.6901 GB, free: 9.699 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.918e-06/0.1663, allocations: 4 kB / 0.6901 GB, free: 9.695 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.1663, allocations: 3.938 kB / 0.6901 GB, free: 9.691 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.44e-06/0.1663, allocations: 4.031 kB / 0.6901 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1663, allocations: 0 / 0.6901 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.1663, allocations: 0 / 0.6901 GB, free: 9.688 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.213e-05/0.1664, allocations: 77.03 kB / 0.6902 GB, free: 9.594 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.873e-05/0.1664, allocations: 88.95 kB / 0.6902 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.31e-05/0.1665, allocations: 7.969 kB / 0.6902 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.11e-05/0.1665, allocations: 0 / 0.6902 GB, free: 9.48 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.207e-06/0.1665, allocations: 4.031 kB / 0.6902 GB, free: 9.477 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.1665, allocations: 0 / 0.6902 GB, free: 9.477 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.361e-05/0.1666, allocations: 127.9 kB / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1666, allocations: 0 / 0.6904 GB, free: 9.352 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003004/0.1669, allocations: 83.98 kB / 0.6905 GB, free: 9.27 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.000449/0.1673, allocations: 230.6 kB / 0.6907 GB, free: 9.059 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.1675, allocations: 97.67 kB / 0.6908 GB, free: 8.957 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1675, allocations: 0 / 0.6908 GB, free: 8.957 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.337e-05/0.1675, allocations: 8 kB / 0.6908 GB, free: 8.949 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.1677, allocations: 5.719 kB / 0.6908 GB, free: 8.945 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000256/0.1679, allocations: 183.2 kB / 0.691 GB, free: 8.738 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.1682, allocations: 0.6926 MB / 0.6916 GB, free: 8.02 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.961e-05/0.1682, allocations: 3.984 kB / 0.6916 GB, free: 8.016 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.222e-05/0.1682, allocations: 7.438 kB / 0.6916 GB, free: 8.008 MB / 494.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1682, allocations: 0 / 0.6916 GB, free: 8.008 MB / 494.1 MB Notification: Performance of Templates: time 0.004704/0.1729, allocations: 2.077 MB / 0.6937 GB, free: 5.93 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)