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.001075/0.001075, allocations: 103.9 kB / 16.35 MB, free: 5.875 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.001127/0.001127, allocations: 195.5 kB / 17.29 MB, free: 5.516 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.241/1.241, allocations: 222.9 MB / 241 MB, free: 14.98 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002041/0.002041, allocations: 284.6 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8856/0.8856, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001665/0.001665, allocations: 89.95 kB / 0.5966 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.149/0.1507, allocations: 86.98 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001598/0.1523, allocations: 0.5165 MB / 0.6821 GB, free: 6.938 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.1542, allocations: 1.595 MB / 0.6837 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.427e-05/0.1543, allocations: 4 kB / 0.6837 GB, free: 5.32 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001208/0.1544, allocations: 19.91 kB / 0.6837 GB, free: 5.301 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.161e-05/0.1544, allocations: 15.92 kB / 0.6837 GB, free: 5.285 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.0007122/0.1551, allocations: 247.3 kB / 0.6839 GB, free: 5.043 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.164e-05/0.1552, allocations: 27.86 kB / 0.684 GB, free: 5.016 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.611e-05/0.1553, allocations: 3.984 kB / 0.684 GB, free: 5.012 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.473e-05/0.1553, allocations: 8 kB / 0.684 GB, free: 5.004 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.073e-05/0.1553, allocations: 15.92 kB / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.999e-06/0.1553, allocations: 0 / 0.684 GB, free: 4.988 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004583/0.1558, allocations: 335.5 kB / 0.6843 GB, free: 4.66 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.585e-05/0.1559, allocations: 23.92 kB / 0.6843 GB, free: 4.637 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.426e-05/0.1559, allocations: 15.88 kB / 0.6843 GB, free: 4.621 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003242/0.1562, allocations: 279.4 kB / 0.6846 GB, free: 4.348 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.1562, allocations: 0 / 0.6846 GB, free: 4.348 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1562, allocations: 0 / 0.6846 GB, free: 4.348 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.538e-06/0.1562, allocations: 0 / 0.6846 GB, free: 4.348 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.0003594/0.1566, allocations: 415 kB / 0.685 GB, free: 3.895 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.262e-05/0.1566, allocations: 8.031 kB / 0.685 GB, free: 3.887 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.1567, allocations: 8.844 kB / 0.685 GB, free: 3.879 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001378/0.1568, allocations: 183.1 kB / 0.6852 GB, free: 3.664 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.615e-06/0.1568, allocations: 4.375 kB / 0.6852 GB, free: 3.66 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.029e-05/0.1569, allocations: 384 / 0.6852 GB, free: 3.66 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.405e-05/0.1569, allocations: 41.95 kB / 0.6852 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-06/0.157, allocations: 0 / 0.6852 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.157, allocations: 0 / 0.6852 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.457e-06/0.157, allocations: 0 / 0.6852 GB, free: 3.613 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.72e-05/0.157, allocations: 19.98 kB / 0.6853 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001471/0.1572, allocations: 173.7 kB / 0.6854 GB, free: 3.375 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.878e-05/0.1572, allocations: 26.58 kB / 0.6854 GB, free: 3.34 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.076e-05/0.1572, allocations: 16.91 kB / 0.6855 GB, free: 3.32 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.902e-05/0.1573, allocations: 4 kB / 0.6855 GB, free: 3.316 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.157e-05/0.1573, allocations: 38.44 kB / 0.6855 GB, free: 3.27 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1573, allocations: 3.938 kB / 0.6855 GB, free: 3.266 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001253/0.1574, allocations: 61.58 kB / 0.6856 GB, free: 3.199 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.264e-05/0.1575, allocations: 55.41 kB / 0.6856 GB, free: 3.133 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001266/0.1576, allocations: 170.3 kB / 0.6858 GB, free: 2.953 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.566e-05/0.1576, allocations: 25.7 kB / 0.6858 GB, free: 2.922 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.539e-05/0.1577, allocations: 96.12 kB / 0.6859 GB, free: 2.824 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.116e-06/0.1577, allocations: 0 / 0.6859 GB, free: 2.824 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.1577, allocations: 25.7 kB / 0.6859 GB, free: 2.793 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.572e-05/0.1578, allocations: 322.8 kB / 0.6862 GB, free: 2.469 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.545e-05/0.1579, allocations: 39.92 kB / 0.6863 GB, free: 2.43 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.671e-05/0.1579, allocations: 39.98 kB / 0.6863 GB, free: 2.391 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.043e-05/0.158, allocations: 76.78 kB / 0.6864 GB, free: 2.312 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.158, allocations: 4 kB / 0.6864 GB, free: 2.309 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001302/0.1581, allocations: 121.5 kB / 0.6865 GB, free: 2.184 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.1582, allocations: 7.938 kB / 0.6865 GB, free: 2.176 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.1582, allocations: 7.984 kB / 0.6865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.1582, allocations: 0 / 0.6865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.052e-05/0.1582, allocations: 0 / 0.6865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.188e-06/0.1582, allocations: 0 / 0.6865 GB, free: 2.168 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.223e-05/0.1582, allocations: 11.84 kB / 0.6865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.855e-06/0.1583, allocations: 0 / 0.6865 GB, free: 2.156 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.0001219/0.1584, allocations: 133.1 kB / 0.6867 GB, free: 2.02 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.533e-05/0.1584, allocations: 7.844 kB / 0.6867 GB, free: 2.012 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.654e-05/0.1585, allocations: 61.5 kB / 0.6867 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1585, allocations: 7.984 kB / 0.6867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.835e-06/0.1585, allocations: 0 / 0.6867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1585, allocations: 0 / 0.6867 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.593e-05/0.1586, allocations: 165.7 kB / 0.6869 GB, free: 1.723 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1586, allocations: 3.938 kB / 0.6869 GB, free: 1.719 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.22e-06/0.1587, allocations: 8.016 kB / 0.6869 GB, free: 1.711 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.1587, allocations: 7.922 kB / 0.6869 GB, free: 1.703 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.152e-06/0.1587, allocations: 4 kB / 0.6869 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.91e-07/0.1587, allocations: 0 / 0.6869 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1587, allocations: 0 / 0.6869 GB, free: 1.699 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.666e-05/0.1588, allocations: 76.97 kB / 0.687 GB, free: 1.605 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.779e-05/0.1588, allocations: 88.95 kB / 0.6871 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.049e-05/0.1588, allocations: 0 / 0.6871 GB, free: 1.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.093e-05/0.1588, allocations: 4.031 kB / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.129e-05/0.1588, allocations: 0 / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.154e-06/0.1589, allocations: 0 / 0.6871 GB, free: 1.496 MB / 494.1 MB Notification: Performance of sorting global known variables: time 7.518e-05/0.1589, allocations: 134.8 kB / 0.6872 GB, free: 1.367 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1589, allocations: 0 / 0.6872 GB, free: 1.367 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.1592, allocations: 83.98 kB / 0.6873 GB, free: 1.285 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.0004285/0.1597, allocations: 229.5 kB / 0.6875 GB, free: 1.074 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1598, allocations: 101.7 kB / 0.6876 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1598, allocations: 0 / 0.6876 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.505e-05/0.1598, allocations: 11.94 kB / 0.6876 GB, free: 0.957 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001325/0.16, allocations: 8 kB / 0.6876 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002327/0.1602, allocations: 168 kB / 0.6878 GB, free: 0.7617 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002084/0.1604, allocations: 0.6885 MB / 0.6884 GB, free: 48 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.867e-05/0.1605, allocations: 7.938 kB / 0.6885 GB, free: 40 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.183e-05/0.1605, allocations: 7.438 kB / 0.6885 GB, free: 32 kB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1605, allocations: 0 / 0.6885 GB, free: 32 kB / 494.1 MB Notification: Performance of Templates: time 0.2334/0.3939, allocations: 2.094 MB / 0.6905 GB, free: 17.43 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)