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.001581/0.001587, allocations: 110.8 kB / 16.41 MB, free: 6.496 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.001794/0.001795, allocations: 183 kB / 17.34 MB, free: 5.766 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.387/1.387, allocations: 222.9 MB / 241 MB, free: 15.15 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.884/0.884, allocations: 143.1 MB / 434.3 MB, free: 12.01 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001339/0.001339, allocations: 64.02 kB / 0.5962 GB, free: 12.45 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1734/0.1748, allocations: 82.02 MB / 0.6763 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001947/0.1767, allocations: 0.5217 MB / 0.6768 GB, free: 10 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002498/0.1793, allocations: 1.614 MB / 0.6783 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.753e-05/0.1793, allocations: 0 / 0.6783 GB, free: 8.367 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.000201/0.1796, allocations: 63.84 kB / 0.6784 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.089e-05/0.1796, allocations: 31.94 kB / 0.6784 GB, free: 8.273 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.001076/0.1807, allocations: 247.3 kB / 0.6787 GB, free: 8.031 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001322/0.1809, allocations: 31.89 kB / 0.6787 GB, free: 8 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 5.115e-05/0.1809, allocations: 4 kB / 0.6787 GB, free: 7.996 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 5.499e-05/0.181, allocations: 27.91 kB / 0.6787 GB, free: 7.969 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 7.883e-05/0.1811, allocations: 39.89 kB / 0.6788 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.524e-05/0.1811, allocations: 0 / 0.6788 GB, free: 7.93 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006552/0.1817, allocations: 331.5 kB / 0.6791 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 6.721e-05/0.1818, allocations: 31.91 kB / 0.6791 GB, free: 7.574 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.676e-05/0.1819, allocations: 31.69 kB / 0.6792 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0005528/0.1824, allocations: 291.3 kB / 0.6794 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.266e-06/0.1825, allocations: 0 / 0.6794 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of FrontEnd: time 9.11e-07/0.1825, allocations: 0 / 0.6794 GB, free: 7.258 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 1.025e-05/0.1825, allocations: 0 / 0.6794 GB, free: 7.258 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.0005775/0.1831, allocations: 430.9 kB / 0.6798 GB, free: 6.789 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.495e-05/0.1831, allocations: 8.031 kB / 0.6798 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.798e-05/0.1832, allocations: 12.75 kB / 0.6799 GB, free: 6.77 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001917/0.1834, allocations: 196 kB / 0.68 GB, free: 6.539 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.151e-05/0.1834, allocations: 4.375 kB / 0.6801 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.917e-06/0.1834, allocations: 384 / 0.6801 GB, free: 6.535 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001111/0.1835, allocations: 45.94 kB / 0.6801 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.1835, allocations: 3.984 kB / 0.6801 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.558e-06/0.1835, allocations: 4 kB / 0.6801 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.851e-06/0.1836, allocations: 0 / 0.6801 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.581e-05/0.1836, allocations: 19.98 kB / 0.6801 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002272/0.1838, allocations: 185.6 kB / 0.6803 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.042e-05/0.1839, allocations: 26.58 kB / 0.6803 GB, free: 6.191 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.842e-05/0.1839, allocations: 20.91 kB / 0.6803 GB, free: 6.168 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.184, allocations: 8 kB / 0.6804 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.441e-05/0.184, allocations: 34.5 kB / 0.6804 GB, free: 6.117 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.153e-06/0.184, allocations: 3.938 kB / 0.6804 GB, free: 6.113 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001792/0.1842, allocations: 69.48 kB / 0.6805 GB, free: 6.039 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.951e-05/0.1842, allocations: 51.41 kB / 0.6805 GB, free: 5.977 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.1845, allocations: 215.6 kB / 0.6807 GB, free: 5.758 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.555e-05/0.1845, allocations: 25.7 kB / 0.6807 GB, free: 5.727 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.513e-05/0.1846, allocations: 100 kB / 0.6808 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.237e-05/0.1846, allocations: 0 / 0.6808 GB, free: 5.625 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.858e-05/0.1847, allocations: 33.7 kB / 0.6809 GB, free: 5.586 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001325/0.1848, allocations: 322.8 kB / 0.6812 GB, free: 5.262 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.681e-05/0.1849, allocations: 55.97 kB / 0.6812 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.348e-05/0.1849, allocations: 51.98 kB / 0.6813 GB, free: 5.156 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001136/0.1851, allocations: 106.3 kB / 0.6814 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1851, allocations: 0 / 0.6814 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001989/0.1853, allocations: 161.4 kB / 0.6815 GB, free: 4.887 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.881e-05/0.1853, allocations: 11.94 kB / 0.6815 GB, free: 4.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.705e-05/0.1853, allocations: 0 / 0.6815 GB, free: 4.875 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.1854, allocations: 3.938 kB / 0.6815 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.806e-05/0.1854, allocations: 7.984 kB / 0.6816 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1854, allocations: 0 / 0.6816 GB, free: 4.863 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.365e-05/0.1854, allocations: 11.84 kB / 0.6816 GB, free: 4.852 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1854, allocations: 0 / 0.6816 GB, free: 4.852 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.0001609/0.1856, allocations: 137.1 kB / 0.6817 GB, free: 4.711 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.831e-05/0.1856, allocations: 11.84 kB / 0.6817 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001222/0.1858, allocations: 66.17 kB / 0.6818 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.1858, allocations: 0 / 0.6818 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.1858, allocations: 0 / 0.6818 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.435e-06/0.1858, allocations: 4 kB / 0.6818 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001434/0.1859, allocations: 181.6 kB / 0.6819 GB, free: 4.398 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.186, allocations: 4 kB / 0.6819 GB, free: 4.395 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.624e-06/0.186, allocations: 8.016 kB / 0.682 GB, free: 4.387 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.186, allocations: 3.938 kB / 0.682 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.186, allocations: 0 / 0.682 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.186, allocations: 0 / 0.682 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.186, allocations: 0 / 0.682 GB, free: 4.383 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.201e-05/0.1861, allocations: 80.97 kB / 0.682 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.607e-05/0.1862, allocations: 88.95 kB / 0.6821 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.507e-05/0.1862, allocations: 0 / 0.6821 GB, free: 4.18 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.761e-05/0.1862, allocations: 8.031 kB / 0.6821 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.493e-05/0.1862, allocations: 7.922 kB / 0.6821 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-06/0.1862, allocations: 0 / 0.6821 GB, free: 4.164 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0001153/0.1864, allocations: 143.2 kB / 0.6823 GB, free: 4.023 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1864, allocations: 0 / 0.6823 GB, free: 4.023 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003642/0.1867, allocations: 83.98 kB / 0.6824 GB, free: 3.941 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.0005522/0.1873, allocations: 247.2 kB / 0.6826 GB, free: 3.711 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.000188/0.1875, allocations: 125.7 kB / 0.6827 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1875, allocations: 0 / 0.6827 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 2.568e-05/0.1875, allocations: 15.94 kB / 0.6827 GB, free: 3.566 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001564/0.1877, allocations: 4 kB / 0.6827 GB, free: 3.562 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003788/0.1881, allocations: 247.6 kB / 0.683 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002662/0.1884, allocations: 0.7041 MB / 0.6837 GB, free: 2.559 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.911e-05/0.1884, allocations: 7.438 kB / 0.6837 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of SimCode: time 2.2e-07/0.1884, allocations: 0 / 0.6837 GB, free: 2.551 MB / 0.5137 GB Notification: Performance of Templates: time 0.005151/0.1935, allocations: 2.372 MB / 0.686 GB, free: 176 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)