Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.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.00146/0.00146, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001609/0.001609, allocations: 186.5 kB / 16.25 MB, free: 6.578 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.312/1.312, allocations: 222.9 MB / 239.9 MB, free: 4.523 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.9666/0.9666, allocations: 143 MB / 433.1 MB, free: 11.52 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 59.91 kB / 0.5137 GB, free: 11.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1583/0.1596, allocations: 82.04 MB / 0.5938 GB, free: 9.922 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00181/0.1614, allocations: 0.5715 MB / 0.5943 GB, free: 9.348 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002214/0.1636, allocations: 1.61 MB / 0.5959 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.002e-05/0.1637, allocations: 0 / 0.5959 GB, free: 7.719 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.1639, allocations: 59.84 kB / 0.596 GB, free: 7.66 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.596e-05/0.1639, allocations: 31.95 kB / 0.596 GB, free: 7.629 MB / 0.4981 GB [/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/BuildSysPro 3.6.0/IBPSA/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.0009323/0.1649, allocations: 215.6 kB / 0.5962 GB, free: 7.418 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.355e-05/0.165, allocations: 31.91 kB / 0.5962 GB, free: 7.387 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.922e-05/0.165, allocations: 7.984 kB / 0.5962 GB, free: 7.379 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.995e-05/0.1651, allocations: 27.84 kB / 0.5963 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.454e-05/0.1652, allocations: 43.89 kB / 0.5963 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.316e-05/0.1652, allocations: 0 / 0.5963 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005164/0.1657, allocations: 287.6 kB / 0.5966 GB, free: 7.027 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.558e-05/0.1658, allocations: 31.86 kB / 0.5966 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.72e-05/0.1658, allocations: 27.75 kB / 0.5966 GB, free: 6.969 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0004781/0.1663, allocations: 287.3 kB / 0.5969 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.1663, allocations: 0 / 0.5969 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.653e-06/0.1663, allocations: 0 / 0.5969 GB, free: 6.688 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.1663, allocations: 0 / 0.5969 GB, free: 6.688 MB / 0.4981 GB 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.0005059/0.1668, allocations: 435.2 kB / 0.5973 GB, free: 6.215 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.1669, allocations: 8.031 kB / 0.5973 GB, free: 6.207 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.774e-05/0.1669, allocations: 12.83 kB / 0.5973 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001786/0.1671, allocations: 193.2 kB / 0.5975 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-06/0.1671, allocations: 384 / 0.5975 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.609e-05/0.1672, allocations: 4.312 kB / 0.5975 GB, free: 5.965 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.629e-05/0.1673, allocations: 42 kB / 0.5976 GB, free: 5.918 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.954e-06/0.1673, allocations: 3.938 kB / 0.5976 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.105e-06/0.1673, allocations: 0 / 0.5976 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.58e-06/0.1673, allocations: 4 kB / 0.5976 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.295e-05/0.1673, allocations: 15.98 kB / 0.5976 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001717/0.1675, allocations: 181.7 kB / 0.5978 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.517e-05/0.1676, allocations: 30.56 kB / 0.5978 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.021e-05/0.1676, allocations: 20.86 kB / 0.5978 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.511e-05/0.1677, allocations: 11.89 kB / 0.5978 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1677, allocations: 42.5 kB / 0.5979 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.032e-06/0.1677, allocations: 0 / 0.5979 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001665/0.1679, allocations: 61.59 kB / 0.5979 GB, free: 5.477 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.664e-05/0.1679, allocations: 51.53 kB / 0.598 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001932/0.1681, allocations: 219.9 kB / 0.5982 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.344e-05/0.1681, allocations: 29.7 kB / 0.5982 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.163e-05/0.1682, allocations: 104.1 kB / 0.5983 GB, free: 5.047 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.1682, allocations: 3.906 kB / 0.5983 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.704e-05/0.1683, allocations: 33.7 kB / 0.5984 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1684, allocations: 322.8 kB / 0.5987 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.664e-05/0.1685, allocations: 59.86 kB / 0.5987 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-05/0.1686, allocations: 55.97 kB / 0.5988 GB, free: 4.566 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.435e-05/0.1687, allocations: 95.81 kB / 0.5989 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1687, allocations: 0 / 0.5989 GB, free: 4.473 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001645/0.1688, allocations: 157.5 kB / 0.599 GB, free: 4.312 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.762e-05/0.1689, allocations: 11.94 kB / 0.599 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.1689, allocations: 0 / 0.599 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.114e-05/0.1689, allocations: 3.938 kB / 0.599 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.311e-05/0.1689, allocations: 0 / 0.599 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.1689, allocations: 0 / 0.599 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.136e-05/0.169, allocations: 11.84 kB / 0.599 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.678e-06/0.169, allocations: 0 / 0.599 GB, free: 4.285 MB / 0.4981 GB 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.000178/0.1692, allocations: 139.9 kB / 0.5992 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.732e-05/0.1692, allocations: 15.75 kB / 0.5992 GB, free: 4.125 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.1693, allocations: 62.25 kB / 0.5992 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.1693, allocations: 0 / 0.5992 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.1693, allocations: 0 / 0.5992 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.1693, allocations: 7.969 kB / 0.5993 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001289/0.1695, allocations: 185.6 kB / 0.5994 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1695, allocations: 4.031 kB / 0.5994 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.951e-06/0.1695, allocations: 0 / 0.5994 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.758e-06/0.1695, allocations: 7.938 kB / 0.5994 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.982e-06/0.1695, allocations: 0 / 0.5994 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1695, allocations: 0 / 0.5994 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1695, allocations: 0 / 0.5994 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.698e-05/0.1696, allocations: 80.97 kB / 0.5995 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.442e-05/0.1697, allocations: 92.84 kB / 0.5996 GB, free: 3.602 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.669e-05/0.1697, allocations: 12.03 kB / 0.5996 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.379e-05/0.1697, allocations: 0 / 0.5996 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.117e-05/0.1697, allocations: 0 / 0.5996 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.1697, allocations: 0 / 0.5996 GB, free: 3.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001176/0.1699, allocations: 147.2 kB / 0.5998 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.7e-07/0.1699, allocations: 0 / 0.5998 GB, free: 3.445 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000346/0.1702, allocations: 87.98 kB / 0.5998 GB, free: 3.359 MB / 0.4981 GB 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.0005203/0.1707, allocations: 229.8 kB / 0.6001 GB, free: 3.145 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001776/0.1709, allocations: 129.6 kB / 0.6002 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1709, allocations: 0 / 0.6002 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.988e-05/0.171, allocations: 15.98 kB / 0.6002 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001523/0.1711, allocations: 4 kB / 0.6002 GB, free: 2.992 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003751/0.1715, allocations: 230 kB / 0.6004 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003397/0.1719, allocations: 0.7041 MB / 0.6011 GB, free: 2.012 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.545e-05/0.1719, allocations: 3.938 kB / 0.6011 GB, free: 2.008 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.978e-05/0.1719, allocations: 15.44 kB / 0.6011 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of SimCode: time 3.81e-07/0.1719, allocations: 0 / 0.6011 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of Templates: time 0.2542/0.4261, allocations: 2.102 MB / 0.6032 GB, free: 43.82 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)