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.001506/0.001506, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001956/0.001956, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.28/1.28, allocations: 223.3 MB / 240 MB, free: 5.285 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001727/0.001727, allocations: 270.9 kB / 291.4 MB, free: 1.828 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8905/0.8905, allocations: 169.5 MB / 0.5 GB, free: 14.19 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003987, allocations: 13.98 kB / 0.598 GB, free: 28.42 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1508, allocations: 88.55 MB / 0.6845 GB, free: 15.45 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.0006088/0.1515, allocations: 242.5 kB / 0.6847 GB, free: 15.21 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002/0.1535, allocations: 1.538 MB / 0.6862 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.229e-05/0.1535, allocations: 0 / 0.6862 GB, free: 13.66 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001875/0.1537, allocations: 56.78 kB / 0.6863 GB, free: 13.61 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.385e-05/0.1538, allocations: 36.7 kB / 0.6863 GB, free: 13.57 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.0007011/0.1545, allocations: 194.6 kB / 0.6865 GB, free: 13.38 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.327e-05/0.1546, allocations: 26.22 kB / 0.6865 GB, free: 13.36 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.367e-05/0.1546, allocations: 7.984 kB / 0.6865 GB, free: 13.35 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.262e-05/0.1546, allocations: 15.98 kB / 0.6865 GB, free: 13.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.866e-05/0.1547, allocations: 35.89 kB / 0.6866 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.184e-05/0.1547, allocations: 4 kB / 0.6866 GB, free: 13.3 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004137/0.1551, allocations: 258.8 kB / 0.6868 GB, free: 13.05 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.345e-05/0.1552, allocations: 23.92 kB / 0.6868 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.869e-05/0.1552, allocations: 33.64 kB / 0.6869 GB, free: 12.98 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002688/0.1555, allocations: 203.9 kB / 0.6871 GB, free: 12.79 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.1555, allocations: 0 / 0.6871 GB, free: 12.79 MB / 494.1 MB Notification: Performance of FrontEnd: time 4.057e-06/0.1555, allocations: 7.984 kB / 0.6871 GB, free: 12.78 MB / 494.1 MB Notification: Performance of Transformations before backend: time 6.321e-06/0.1555, allocations: 0 / 0.6871 GB, free: 12.78 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.0004094/0.156, allocations: 420 kB / 0.6875 GB, free: 12.32 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.65e-05/0.156, allocations: 15.97 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.779e-05/0.156, allocations: 7.891 kB / 0.6875 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.1562, allocations: 179.5 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.506e-05/0.1562, allocations: 0.625 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/0.1563, allocations: 4.5 kB / 0.6877 GB, free: 12.08 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.337e-05/0.1564, allocations: 39.97 kB / 0.6877 GB, free: 12.04 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.191e-06/0.1564, allocations: 4 kB / 0.6877 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.1564, allocations: 0 / 0.6877 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1564, allocations: 0 / 0.6877 GB, free: 12.03 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.891e-05/0.1564, allocations: 19.98 kB / 0.6877 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001825/0.1566, allocations: 190 kB / 0.6879 GB, free: 11.78 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.75e-05/0.1567, allocations: 27.31 kB / 0.6879 GB, free: 11.74 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.544e-05/0.1567, allocations: 25.5 kB / 0.688 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.891e-05/0.1568, allocations: 16.89 kB / 0.688 GB, free: 11.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.1568, allocations: 35.28 kB / 0.688 GB, free: 11.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 8.62e-07/0.1568, allocations: 0 / 0.688 GB, free: 11.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001414/0.157, allocations: 62.25 kB / 0.6881 GB, free: 11.59 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.434e-05/0.157, allocations: 52.22 kB / 0.6881 GB, free: 11.53 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001777/0.1572, allocations: 214.8 kB / 0.6883 GB, free: 11.31 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.873e-05/0.1572, allocations: 25.7 kB / 0.6883 GB, free: 11.28 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.61e-05/0.1573, allocations: 108.1 kB / 0.6885 GB, free: 11.17 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.236e-05/0.1573, allocations: 3.906 kB / 0.6885 GB, free: 11.17 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.886e-06/0.1573, allocations: 0 / 0.6885 GB, free: 11.17 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.1574, allocations: 330.8 kB / 0.6888 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.038e-05/0.1575, allocations: 59.91 kB / 0.6888 GB, free: 10.78 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.086e-05/0.1575, allocations: 51.98 kB / 0.6889 GB, free: 10.73 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.368e-05/0.1576, allocations: 60.69 kB / 0.6889 GB, free: 10.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1576, allocations: 0 / 0.6889 GB, free: 10.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001638/0.1578, allocations: 158.1 kB / 0.6891 GB, free: 10.51 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.1578, allocations: 9.875 kB / 0.6891 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.275e-05/0.1578, allocations: 3.938 kB / 0.6891 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.023e-05/0.1579, allocations: 0 / 0.6891 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.227e-05/0.1579, allocations: 0 / 0.6891 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.1579, allocations: 0 / 0.6891 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.381e-05/0.1579, allocations: 8.094 kB / 0.6891 GB, free: 10.49 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.1579, allocations: 7.984 kB / 0.6891 GB, free: 10.48 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 (cmp,labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],cluster_size[1],cluster_size[2],cluster_size[3]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001556/0.1581, allocations: 138.4 kB / 0.6892 GB, free: 10.34 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.142e-05/0.1581, allocations: 7.812 kB / 0.6893 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001182/0.1582, allocations: 70.17 kB / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.1582, allocations: 0 / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1582, allocations: 0 / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.714e-06/0.1582, allocations: 0 / 0.6893 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001301/0.1584, allocations: 189.6 kB / 0.6895 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.1584, allocations: 0 / 0.6895 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.59e-06/0.1584, allocations: 4 kB / 0.6895 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.393e-06/0.1584, allocations: 0 / 0.6895 GB, free: 10.02 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.1584, allocations: 3.984 kB / 0.6895 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.1584, allocations: 0 / 0.6895 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.1584, allocations: 3.938 kB / 0.6895 GB, free: 10.01 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.064e-05/0.1585, allocations: 88.92 kB / 0.6896 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.874e-05/0.1586, allocations: 88.95 kB / 0.6897 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.21e-05/0.1586, allocations: 4 kB / 0.6897 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.151e-05/0.1586, allocations: 0 / 0.6897 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.411e-05/0.1586, allocations: 0 / 0.6897 GB, free: 9.793 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.1586, allocations: 0 / 0.6897 GB, free: 9.793 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001107/0.1588, allocations: 152.4 kB / 0.6898 GB, free: 9.645 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1588, allocations: 0 / 0.6898 GB, free: 9.645 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003184/0.1591, allocations: 79.98 kB / 0.6899 GB, free: 9.566 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005601/0.1596, allocations: 247.8 kB / 0.6901 GB, free: 9.34 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001759/0.1598, allocations: 125.7 kB / 0.6903 GB, free: 9.211 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.1598, allocations: 4 kB / 0.6903 GB, free: 9.207 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.477e-05/0.1599, allocations: 11.94 kB / 0.6903 GB, free: 9.195 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.16, allocations: 8.312 kB / 0.6903 GB, free: 9.188 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003466/0.1604, allocations: 215.7 kB / 0.6905 GB, free: 8.949 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002637/0.1606, allocations: 0.7043 MB / 0.6912 GB, free: 8.219 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.737e-05/0.1607, allocations: 4 kB / 0.6912 GB, free: 8.215 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.106e-05/0.1607, allocations: 11.44 kB / 0.6912 GB, free: 8.203 MB / 494.1 MB Notification: Performance of SimCode: time 2e-07/0.1607, allocations: 0 / 0.6912 GB, free: 8.203 MB / 494.1 MB Notification: Performance of Templates: time 0.00479/0.1655, allocations: 2.079 MB / 0.6932 GB, free: 6.121 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)