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.001108/0.001113, allocations: 104 kB / 16.41 MB, free: 6.508 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.001117/0.001117, allocations: 187 kB / 17.34 MB, free: 5.742 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.34/1.34, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.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.9145/0.9145, allocations: 143.1 MB / 434.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 56.16 kB / 0.5962 GB, free: 12.34 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1715/0.1726, allocations: 82.03 MB / 0.6763 GB, free: 10.4 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001988/0.1747, allocations: 0.5195 MB / 0.6768 GB, free: 9.883 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002511/0.1772, allocations: 1.603 MB / 0.6783 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.042e-05/0.1773, allocations: 7.938 kB / 0.6783 GB, free: 8.254 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0002072/0.1775, allocations: 51.92 kB / 0.6784 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 3.771e-05/0.1776, allocations: 43.88 kB / 0.6784 GB, free: 8.16 MB / 0.5137 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.001024/0.1786, allocations: 247.3 kB / 0.6787 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001054/0.1787, allocations: 31.95 kB / 0.6787 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.734e-05/0.1788, allocations: 3.984 kB / 0.6787 GB, free: 7.883 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.643e-05/0.1788, allocations: 19.92 kB / 0.6787 GB, free: 7.863 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 7.474e-05/0.1789, allocations: 51.88 kB / 0.6788 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.343e-05/0.1789, allocations: 0 / 0.6788 GB, free: 7.812 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006736/0.1796, allocations: 331.5 kB / 0.6791 GB, free: 7.488 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.322e-05/0.1797, allocations: 23.91 kB / 0.6791 GB, free: 7.465 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.056e-05/0.1797, allocations: 27.75 kB / 0.6791 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005259/0.1803, allocations: 291.3 kB / 0.6794 GB, free: 7.152 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.1803, allocations: 3.938 kB / 0.6794 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.62e-07/0.1803, allocations: 0 / 0.6794 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 6.102e-06/0.1803, allocations: 0 / 0.6794 GB, free: 7.148 MB / 0.5137 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.0005529/0.1808, allocations: 434.9 kB / 0.6798 GB, free: 6.676 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1809, allocations: 8.031 kB / 0.6798 GB, free: 6.668 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.174e-05/0.1809, allocations: 12.75 kB / 0.6799 GB, free: 6.656 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001993/0.1811, allocations: 196 kB / 0.68 GB, free: 6.426 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.606e-06/0.1812, allocations: 4.375 kB / 0.6801 GB, free: 6.422 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1812, allocations: 4.375 kB / 0.6801 GB, free: 6.418 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.1813, allocations: 42 kB / 0.6801 GB, free: 6.371 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.1813, allocations: 4 kB / 0.6801 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.546e-06/0.1813, allocations: 0 / 0.6801 GB, free: 6.367 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.32e-06/0.1813, allocations: 4 kB / 0.6801 GB, free: 6.363 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.741e-05/0.1814, allocations: 19.98 kB / 0.6801 GB, free: 6.344 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002163/0.1816, allocations: 185.6 kB / 0.6803 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.436e-05/0.1816, allocations: 30.5 kB / 0.6803 GB, free: 6.074 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.365e-05/0.1817, allocations: 12.92 kB / 0.6803 GB, free: 6.059 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.797e-05/0.1817, allocations: 8 kB / 0.6803 GB, free: 6.051 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.427e-05/0.1818, allocations: 38.48 kB / 0.6804 GB, free: 6.004 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 9.22e-07/0.1818, allocations: 4 kB / 0.6804 GB, free: 6 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001745/0.1819, allocations: 73.44 kB / 0.6805 GB, free: 5.922 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.498e-05/0.182, allocations: 51.41 kB / 0.6805 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001996/0.1822, allocations: 211.5 kB / 0.6807 GB, free: 5.645 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.674e-05/0.1822, allocations: 25.7 kB / 0.6807 GB, free: 5.613 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.176e-05/0.1823, allocations: 104 kB / 0.6808 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.442e-05/0.1823, allocations: 0 / 0.6808 GB, free: 5.508 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.1824, allocations: 29.83 kB / 0.6809 GB, free: 5.473 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.000133/0.1825, allocations: 326.8 kB / 0.6812 GB, free: 5.145 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.886e-05/0.1826, allocations: 55.98 kB / 0.6812 GB, free: 5.09 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.578e-05/0.1827, allocations: 56.95 kB / 0.6813 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000104/0.1828, allocations: 92.44 kB / 0.6814 GB, free: 4.945 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.1828, allocations: 0 / 0.6814 GB, free: 4.945 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001965/0.183, allocations: 165.3 kB / 0.6815 GB, free: 4.777 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.183, allocations: 11.94 kB / 0.6815 GB, free: 4.766 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.764e-05/0.183, allocations: 3.984 kB / 0.6815 GB, free: 4.762 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.1831, allocations: 3.938 kB / 0.6815 GB, free: 4.758 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.619e-05/0.1831, allocations: 4.062 kB / 0.6816 GB, free: 4.754 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.605e-06/0.1831, allocations: 4 kB / 0.6816 GB, free: 4.75 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.219e-05/0.1831, allocations: 7.844 kB / 0.6816 GB, free: 4.742 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.1832, allocations: 0 / 0.6816 GB, free: 4.742 MB / 0.5137 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.0001704/0.1833, allocations: 133.8 kB / 0.6817 GB, free: 4.602 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.736e-05/0.1834, allocations: 15.83 kB / 0.6817 GB, free: 4.586 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001092/0.1835, allocations: 58.25 kB / 0.6818 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.1835, allocations: 4.031 kB / 0.6818 GB, free: 4.52 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.815e-06/0.1835, allocations: 4 kB / 0.6818 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.1835, allocations: 3.938 kB / 0.6818 GB, free: 4.512 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001563/0.1837, allocations: 181.5 kB / 0.6819 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1837, allocations: 4 kB / 0.6819 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.523e-06/0.1837, allocations: 0 / 0.6819 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1837, allocations: 3.938 kB / 0.682 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.1837, allocations: 0 / 0.682 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1837, allocations: 0 / 0.682 GB, free: 4.277 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.1837, allocations: 3.984 kB / 0.682 GB, free: 4.273 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.442e-05/0.1838, allocations: 85.03 kB / 0.682 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.764e-05/0.1839, allocations: 88.95 kB / 0.6821 GB, free: 4.066 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.7e-05/0.1839, allocations: 7.984 kB / 0.6821 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.387e-05/0.1839, allocations: 0 / 0.6821 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.733e-05/0.1839, allocations: 0 / 0.6821 GB, free: 4.059 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.755e-06/0.184, allocations: 3.938 kB / 0.6821 GB, free: 4.055 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001274/0.1841, allocations: 147.2 kB / 0.6823 GB, free: 3.91 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1841, allocations: 4.031 kB / 0.6823 GB, free: 3.906 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003603/0.1845, allocations: 83.98 kB / 0.6824 GB, free: 3.824 MB / 0.5137 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.0005614/0.185, allocations: 235.1 kB / 0.6826 GB, free: 3.605 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001959/0.1852, allocations: 129.7 kB / 0.6827 GB, free: 3.473 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.1852, allocations: 4 kB / 0.6827 GB, free: 3.469 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.385e-05/0.1853, allocations: 12 kB / 0.6827 GB, free: 3.457 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001618/0.1854, allocations: 6.391 kB / 0.6827 GB, free: 3.453 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003842/0.1858, allocations: 239.5 kB / 0.683 GB, free: 3.188 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003146/0.1862, allocations: 0.7002 MB / 0.6836 GB, free: 2.461 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.079e-05/0.1862, allocations: 15.44 kB / 0.6837 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of SimCode: time 2.91e-07/0.1862, allocations: 0 / 0.6837 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of Templates: time 0.005336/0.1915, allocations: 2.384 MB / 0.686 GB, free: 56 kB / 0.5137 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)