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.008/0.008, allocations: 101 kB / 15.87 MB, free: 5.867 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.001992/0.001992, allocations: 196.8 kB / 16.79 MB, free: 5.809 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.44/1.44, allocations: 222.9 MB / 240.5 MB, free: 4.555 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.9793/0.9793, allocations: 143 MB / 433.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001324, allocations: 67.89 kB / 0.5141 GB, free: 12.14 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1714, allocations: 82.03 MB / 0.5942 GB, free: 10.07 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001985/0.1735, allocations: 0.582 MB / 0.5948 GB, free: 9.488 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002639/0.1761, allocations: 1.638 MB / 0.5964 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.645e-05/0.1762, allocations: 4 kB / 0.5964 GB, free: 7.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0002016/0.1764, allocations: 55.86 kB / 0.5965 GB, free: 7.773 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.393e-05/0.1765, allocations: 35.94 kB / 0.5965 GB, free: 7.738 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008832/0.1774, allocations: 196.8 kB / 0.5967 GB, free: 7.547 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.317e-05/0.1775, allocations: 27.91 kB / 0.5967 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.39e-05/0.1775, allocations: 7.984 kB / 0.5967 GB, free: 7.512 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 5.39e-05/0.1776, allocations: 23.92 kB / 0.5967 GB, free: 7.488 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.688e-05/0.1776, allocations: 39.89 kB / 0.5968 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.563e-05/0.1777, allocations: 0 / 0.5968 GB, free: 7.449 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005928/0.1783, allocations: 271.6 kB / 0.597 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.763e-05/0.1784, allocations: 31.92 kB / 0.5971 GB, free: 7.152 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.245e-05/0.1784, allocations: 27.69 kB / 0.5971 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003951/0.1788, allocations: 207.5 kB / 0.5973 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.1788, allocations: 0 / 0.5973 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of FrontEnd: time 7.91e-07/0.1788, allocations: 0 / 0.5973 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.1788, allocations: 0 / 0.5973 GB, free: 6.922 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.0005839/0.1794, allocations: 437.2 kB / 0.5977 GB, free: 6.449 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.1795, allocations: 8.031 kB / 0.5977 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.709e-05/0.1795, allocations: 8.844 kB / 0.5977 GB, free: 6.434 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001982/0.1797, allocations: 201.1 kB / 0.5979 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.931e-06/0.1797, allocations: 4.375 kB / 0.5979 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.178e-05/0.1798, allocations: 384 / 0.5979 GB, free: 6.195 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.1799, allocations: 38.02 kB / 0.598 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.1799, allocations: 0 / 0.598 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.1799, allocations: 0 / 0.598 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.16e-06/0.1799, allocations: 0 / 0.598 GB, free: 6.152 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.814e-05/0.18, allocations: 19.98 kB / 0.598 GB, free: 6.133 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002175/0.1802, allocations: 189.6 kB / 0.5982 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.581e-05/0.1802, allocations: 26.58 kB / 0.5982 GB, free: 5.863 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.515e-05/0.1803, allocations: 12.92 kB / 0.5982 GB, free: 5.848 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 4.086e-05/0.1803, allocations: 11.89 kB / 0.5982 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.783e-05/0.1804, allocations: 38.5 kB / 0.5983 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.1804, allocations: 0 / 0.5983 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001838/0.1806, allocations: 69.53 kB / 0.5983 GB, free: 5.715 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.1806, allocations: 51.41 kB / 0.5984 GB, free: 5.652 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000221/0.1808, allocations: 220 kB / 0.5986 GB, free: 5.426 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.261e-05/0.1809, allocations: 29.64 kB / 0.5986 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.993e-05/0.1809, allocations: 108.1 kB / 0.5987 GB, free: 5.281 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.264e-05/0.181, allocations: 3.906 kB / 0.5987 GB, free: 5.277 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.181, allocations: 29.7 kB / 0.5987 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1811, allocations: 326.8 kB / 0.5991 GB, free: 4.914 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.503e-05/0.1812, allocations: 51.98 kB / 0.5991 GB, free: 4.863 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.638e-05/0.1813, allocations: 55.97 kB / 0.5992 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.389e-05/0.1814, allocations: 84.86 kB / 0.5992 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1814, allocations: 0 / 0.5992 GB, free: 4.723 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001862/0.1816, allocations: 167.9 kB / 0.5994 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 2.035e-05/0.1816, allocations: 7.938 kB / 0.5994 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.1816, allocations: 4 kB / 0.5994 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.229e-05/0.1817, allocations: 0 / 0.5994 GB, free: 4.543 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.663e-05/0.1817, allocations: 4 kB / 0.5994 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.1817, allocations: 0 / 0.5994 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.156e-05/0.1817, allocations: 11.84 kB / 0.5994 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.1817, allocations: 0 / 0.5994 GB, free: 4.527 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.0001967/0.1819, allocations: 141.8 kB / 0.5996 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.016e-05/0.182, allocations: 19.69 kB / 0.5996 GB, free: 4.359 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001312/0.1821, allocations: 66.23 kB / 0.5996 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1821, allocations: 0 / 0.5996 GB, free: 4.289 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1821, allocations: 3.938 kB / 0.5996 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.058e-06/0.1821, allocations: 3.984 kB / 0.5996 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001351/0.1823, allocations: 177.7 kB / 0.5998 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1823, allocations: 0 / 0.5998 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.382e-06/0.1823, allocations: 4.031 kB / 0.5998 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.1823, allocations: 3.938 kB / 0.5998 GB, free: 4.051 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.713e-06/0.1823, allocations: 4 kB / 0.5998 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1823, allocations: 0 / 0.5998 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.1823, allocations: 0 / 0.5998 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001016/0.1824, allocations: 85.02 kB / 0.5999 GB, free: 3.945 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.495e-05/0.1825, allocations: 88.86 kB / 0.6 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.527e-05/0.1825, allocations: 8.031 kB / 0.6 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.473e-05/0.1825, allocations: 0 / 0.6 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.176e-05/0.1825, allocations: 0 / 0.6 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.306e-06/0.1826, allocations: 0 / 0.6 GB, free: 3.832 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001349/0.1827, allocations: 151.2 kB / 0.6001 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.1827, allocations: 0 / 0.6001 GB, free: 3.684 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003722/0.1831, allocations: 83.98 kB / 0.6002 GB, free: 3.602 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.0005777/0.1837, allocations: 229.6 kB / 0.6004 GB, free: 3.387 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002037/0.1839, allocations: 129.7 kB / 0.6006 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.1839, allocations: 0 / 0.6006 GB, free: 3.254 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.897e-05/0.1839, allocations: 15.92 kB / 0.6006 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001576/0.1841, allocations: 7.938 kB / 0.6006 GB, free: 3.23 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000379/0.1845, allocations: 253.6 kB / 0.6008 GB, free: 2.949 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002993/0.1848, allocations: 0.7043 MB / 0.6015 GB, free: 2.219 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.732e-05/0.1848, allocations: 7.438 kB / 0.6015 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of SimCode: time 3e-07/0.1848, allocations: 0 / 0.6015 GB, free: 2.211 MB / 0.4981 GB Notification: Performance of Templates: time 0.2554/0.4402, allocations: 2.375 MB / 0.6038 GB, free: 44.32 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)