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.001106/0.001105, allocations: 115.3 kB / 15.34 MB, free: 0.5117 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.0011/0.0011, allocations: 193.2 kB / 16.25 MB, free: 6.637 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.288/1.288, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00209/0.00209, allocations: 276.3 kB / 290.4 MB, free: 2.133 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9148/0.9148, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001656/0.001656, allocations: 90.33 kB / 0.5947 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.158/0.1596, allocations: 86.99 MB / 0.6796 GB, free: 1.09 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001619/0.1613, allocations: 0.5722 MB / 0.6802 GB, free: 0.5273 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002136/0.1634, allocations: 1.601 MB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.1635, allocations: 0.7188 kB / 0.6817 GB, free: 14.91 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000122/0.1636, allocations: 19.91 kB / 0.6818 GB, free: 14.89 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.064e-05/0.1636, allocations: 8.859 kB / 0.6818 GB, free: 14.88 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/BuildingSystems 2.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.0007606/0.1644, allocations: 224.3 kB / 0.682 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 4.931e-05/0.1645, allocations: 27.86 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.588e-05/0.1645, allocations: 4 kB / 0.682 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.396e-05/0.1645, allocations: 11.98 kB / 0.682 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.372e-05/0.1646, allocations: 19.92 kB / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.072e-05/0.1646, allocations: 0 / 0.682 GB, free: 14.61 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004154/0.165, allocations: 291.6 kB / 0.6823 GB, free: 14.32 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.038e-05/0.1651, allocations: 15.92 kB / 0.6823 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.363e-05/0.1651, allocations: 19.81 kB / 0.6824 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004109/0.1655, allocations: 275.7 kB / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.806e-06/0.1655, allocations: 0 / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.243e-06/0.1655, allocations: 0 / 0.6826 GB, free: 14.02 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.857e-06/0.1655, allocations: 0 / 0.6826 GB, free: 14.02 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.0003743/0.1659, allocations: 415 kB / 0.683 GB, free: 13.56 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.106e-05/0.166, allocations: 12.03 kB / 0.683 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.059e-05/0.166, allocations: 12.84 kB / 0.683 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.1662, allocations: 180.3 kB / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.566e-06/0.1662, allocations: 384 / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.868e-06/0.1662, allocations: 384 / 0.6832 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001488/0.1663, allocations: 41.95 kB / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.971e-06/0.1664, allocations: 0 / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.1664, allocations: 0 / 0.6832 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.1664, allocations: 4 kB / 0.6833 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.744e-05/0.1664, allocations: 19.98 kB / 0.6833 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001612/0.1666, allocations: 169.7 kB / 0.6834 GB, free: 13.04 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.827e-05/0.1666, allocations: 26.58 kB / 0.6835 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.194e-05/0.1667, allocations: 16.91 kB / 0.6835 GB, free: 12.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.39e-05/0.1667, allocations: 15.88 kB / 0.6835 GB, free: 12.97 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.22e-05/0.1667, allocations: 42.44 kB / 0.6835 GB, free: 12.92 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.1667, allocations: 0 / 0.6835 GB, free: 12.92 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001258/0.1669, allocations: 57.59 kB / 0.6836 GB, free: 12.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.263e-05/0.1669, allocations: 55.39 kB / 0.6836 GB, free: 12.79 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001285/0.167, allocations: 168.4 kB / 0.6838 GB, free: 12.62 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.834e-05/0.1671, allocations: 25.7 kB / 0.6838 GB, free: 12.59 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.357e-05/0.1671, allocations: 96.12 kB / 0.6839 GB, free: 12.49 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.827e-06/0.1671, allocations: 0 / 0.6839 GB, free: 12.49 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.749e-05/0.1672, allocations: 29.83 kB / 0.6839 GB, free: 12.45 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.654e-05/0.1673, allocations: 318.8 kB / 0.6842 GB, free: 12.13 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.536e-05/0.1673, allocations: 43.97 kB / 0.6843 GB, free: 12.09 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.895e-05/0.1674, allocations: 39.92 kB / 0.6843 GB, free: 12.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.964e-05/0.1675, allocations: 72.81 kB / 0.6844 GB, free: 11.98 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1675, allocations: 4 kB / 0.6844 GB, free: 11.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001404/0.1676, allocations: 125.6 kB / 0.6845 GB, free: 11.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.247e-05/0.1676, allocations: 7.938 kB / 0.6845 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/0.1677, allocations: 4 kB / 0.6845 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.638e-06/0.1677, allocations: 4.062 kB / 0.6845 GB, free: 11.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.232e-05/0.1677, allocations: 3.984 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.696e-06/0.1677, allocations: 0 / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.475e-05/0.1677, allocations: 11.84 kB / 0.6845 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.1677, allocations: 0 / 0.6845 GB, free: 11.81 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.0001182/0.1679, allocations: 131.1 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.19e-05/0.1679, allocations: 7.844 kB / 0.6847 GB, free: 11.67 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.168, allocations: 53.56 kB / 0.6847 GB, free: 11.61 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.392e-06/0.168, allocations: 4.031 kB / 0.6847 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.728e-06/0.168, allocations: 3.984 kB / 0.6847 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.168, allocations: 0 / 0.6847 GB, free: 11.6 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001511/0.1682, allocations: 173.6 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.1682, allocations: 0 / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.278e-06/0.1682, allocations: 0 / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.1682, allocations: 3.938 kB / 0.6849 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.1682, allocations: 3.984 kB / 0.6849 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.02e-07/0.1682, allocations: 0 / 0.6849 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.1682, allocations: 3.984 kB / 0.6849 GB, free: 11.37 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.458e-05/0.1683, allocations: 88.97 kB / 0.685 GB, free: 11.26 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.227e-05/0.1683, allocations: 88.95 kB / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.1684, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.131e-05/0.1684, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.416e-06/0.1684, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1684, allocations: 0 / 0.6851 GB, free: 11.16 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.638e-05/0.1685, allocations: 132.7 kB / 0.6852 GB, free: 11.03 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1685, allocations: 4.031 kB / 0.6852 GB, free: 11.02 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002926/0.1688, allocations: 83.98 kB / 0.6853 GB, free: 10.94 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.0004377/0.1692, allocations: 219.1 kB / 0.6855 GB, free: 10.74 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001522/0.1694, allocations: 109.7 kB / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.1694, allocations: 0 / 0.6856 GB, free: 10.63 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.585e-05/0.1694, allocations: 11.94 kB / 0.6856 GB, free: 10.62 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001408/0.1696, allocations: 5.719 kB / 0.6856 GB, free: 10.61 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002651/0.1698, allocations: 169.4 kB / 0.6858 GB, free: 10.42 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002346/0.1701, allocations: 0.6964 MB / 0.6865 GB, free: 9.699 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.628e-05/0.1701, allocations: 7.875 kB / 0.6865 GB, free: 9.691 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.398e-05/0.1701, allocations: 11.44 kB / 0.6865 GB, free: 9.68 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1701, allocations: 0 / 0.6865 GB, free: 9.68 MB / 494.1 MB Notification: Performance of Templates: time 0.004534/0.1747, allocations: 2.097 MB / 0.6885 GB, free: 7.582 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)