Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 114.3 kB / 16.37 MB, free: 6 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.001316/0.001316, allocations: 195.9 kB / 17.31 MB, free: 5.613 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.255/1.255, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002032/0.002032, allocations: 275.6 kB / 291.4 MB, free: 14.5 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9/0.9, allocations: 169.3 MB / 0.4989 GB, free: 4.461 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 90.05 kB / 0.5967 GB, free: 14.43 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1481/0.1497, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001604/0.1514, allocations: 0.5126 MB / 0.6821 GB, free: 6.938 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001983/0.1534, allocations: 1.595 MB / 0.6837 GB, free: 5.324 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.988e-05/0.1534, allocations: 7.938 kB / 0.6837 GB, free: 5.316 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001991/0.1536, allocations: 67.83 kB / 0.6837 GB, free: 5.25 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.261e-05/0.1537, allocations: 27.97 kB / 0.6838 GB, free: 5.223 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.0007883/0.1545, allocations: 251.2 kB / 0.684 GB, free: 4.977 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.192e-05/0.1546, allocations: 31.91 kB / 0.684 GB, free: 4.945 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.632e-05/0.1546, allocations: 0 / 0.684 GB, free: 4.945 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.569e-05/0.1546, allocations: 23.95 kB / 0.684 GB, free: 4.922 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.983e-05/0.1547, allocations: 43.91 kB / 0.6841 GB, free: 4.879 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.125e-05/0.1547, allocations: 0 / 0.6841 GB, free: 4.879 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005472/0.1553, allocations: 331.5 kB / 0.6844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.712e-05/0.1553, allocations: 23.91 kB / 0.6844 GB, free: 4.531 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.775e-05/0.1554, allocations: 27.75 kB / 0.6845 GB, free: 4.504 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003954/0.1558, allocations: 299.2 kB / 0.6847 GB, free: 4.211 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1558, allocations: 3.984 kB / 0.6847 GB, free: 4.207 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1558, allocations: 0 / 0.6847 GB, free: 4.207 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.1558, allocations: 0 / 0.6847 GB, free: 4.207 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.0004198/0.1562, allocations: 434.9 kB / 0.6852 GB, free: 3.734 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.276e-05/0.1563, allocations: 8.031 kB / 0.6852 GB, free: 3.727 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.743e-05/0.1563, allocations: 12.75 kB / 0.6852 GB, free: 3.715 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001597/0.1565, allocations: 180.3 kB / 0.6854 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.766e-06/0.1565, allocations: 384 / 0.6854 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.1565, allocations: 4.375 kB / 0.6854 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.469e-05/0.1566, allocations: 41.95 kB / 0.6854 GB, free: 3.449 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.623e-06/0.1566, allocations: 3.938 kB / 0.6854 GB, free: 3.445 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.1566, allocations: 4 kB / 0.6854 GB, free: 3.441 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.1567, allocations: 4 kB / 0.6854 GB, free: 3.438 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.994e-05/0.1567, allocations: 15.98 kB / 0.6854 GB, free: 3.422 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001859/0.1569, allocations: 197.5 kB / 0.6856 GB, free: 3.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.194e-05/0.1569, allocations: 22.58 kB / 0.6856 GB, free: 3.148 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.008e-05/0.157, allocations: 12.92 kB / 0.6856 GB, free: 3.133 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.291e-05/0.157, allocations: 11.98 kB / 0.6857 GB, free: 3.121 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.092e-05/0.157, allocations: 34.5 kB / 0.6857 GB, free: 3.078 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 2.875e-06/0.157, allocations: 4 kB / 0.6857 GB, free: 3.074 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001458/0.1572, allocations: 73.44 kB / 0.6858 GB, free: 2.996 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.528e-05/0.1572, allocations: 55.39 kB / 0.6858 GB, free: 2.93 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001801/0.1574, allocations: 203.6 kB / 0.686 GB, free: 2.723 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.1574, allocations: 25.7 kB / 0.686 GB, free: 2.691 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.412e-05/0.1575, allocations: 108 kB / 0.6861 GB, free: 2.582 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.061e-05/0.1575, allocations: 0 / 0.6861 GB, free: 2.582 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.039e-05/0.1576, allocations: 29.83 kB / 0.6862 GB, free: 2.547 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001457/0.1577, allocations: 330.8 kB / 0.6865 GB, free: 2.215 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.372e-05/0.1578, allocations: 59.97 kB / 0.6865 GB, free: 2.156 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.982e-05/0.1578, allocations: 51.98 kB / 0.6866 GB, free: 2.105 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001385/0.158, allocations: 95.53 kB / 0.6867 GB, free: 2.012 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.158, allocations: 0 / 0.6867 GB, free: 2.012 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001673/0.1582, allocations: 165.4 kB / 0.6868 GB, free: 1.844 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.1582, allocations: 11.94 kB / 0.6868 GB, free: 1.832 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.518e-05/0.1582, allocations: 3.984 kB / 0.6869 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.516e-05/0.1582, allocations: 0 / 0.6869 GB, free: 1.828 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.276e-05/0.1582, allocations: 4.062 kB / 0.6869 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.3e-06/0.1582, allocations: 0 / 0.6869 GB, free: 1.824 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.563e-05/0.1583, allocations: 11.84 kB / 0.6869 GB, free: 1.812 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.596e-06/0.1583, allocations: 0 / 0.6869 GB, free: 1.812 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: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],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.0001125/0.1584, allocations: 137.8 kB / 0.687 GB, free: 1.668 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.324e-05/0.1584, allocations: 11.84 kB / 0.687 GB, free: 1.656 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.1585, allocations: 66.17 kB / 0.6871 GB, free: 1.586 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.1586, allocations: 4.031 kB / 0.6871 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.277e-06/0.1586, allocations: 0 / 0.6871 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.235e-06/0.1586, allocations: 4 kB / 0.6871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001096/0.1587, allocations: 177.7 kB / 0.6873 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1587, allocations: 0 / 0.6873 GB, free: 1.355 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-06/0.1587, allocations: 4 kB / 0.6873 GB, free: 1.352 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.835e-06/0.1587, allocations: 3.938 kB / 0.6873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.219e-06/0.1587, allocations: 0 / 0.6873 GB, free: 1.348 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.1587, allocations: 3.938 kB / 0.6873 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.1587, allocations: 0 / 0.6873 GB, free: 1.344 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.386e-05/0.1588, allocations: 100.8 kB / 0.6874 GB, free: 1.227 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.973e-05/0.1589, allocations: 88.95 kB / 0.6874 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.1589, allocations: 0 / 0.6874 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.1589, allocations: 0 / 0.6874 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.1589, allocations: 0 / 0.6874 GB, free: 1.121 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.304e-06/0.1589, allocations: 3.938 kB / 0.6874 GB, free: 1.117 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000118/0.159, allocations: 150.2 kB / 0.6876 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.159, allocations: 0 / 0.6876 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.1593, allocations: 88.02 kB / 0.6877 GB, free: 0.8867 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.000426/0.1598, allocations: 229 kB / 0.6879 GB, free: 0.6719 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001681/0.1599, allocations: 121.7 kB / 0.688 GB, free: 0.5469 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.16, allocations: 8.062 kB / 0.688 GB, free: 0.5391 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.679e-05/0.16, allocations: 15.98 kB / 0.688 GB, free: 0.5234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001321/0.1601, allocations: 3.938 kB / 0.688 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002816/0.1604, allocations: 213.8 kB / 0.6882 GB, free: 288 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2234/0.3838, allocations: 0.6988 MB / 0.6889 GB, free: 17.46 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 3.004e-05/0.3839, allocations: 2.406 kB / 0.6889 GB, free: 17.46 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.942e-05/0.3839, allocations: 8.734 kB / 0.6889 GB, free: 17.45 MB / 494.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3839, allocations: 0 / 0.6889 GB, free: 17.45 MB / 494.1 MB Notification: Performance of Templates: time 0.005958/0.3899, allocations: 2.12 MB / 0.691 GB, free: 17.39 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)