Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001539/0.001539, allocations: 107.9 kB / 16.41 MB, free: 5.996 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.001811/0.001811, allocations: 191 kB / 17.35 MB, free: 5.605 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.14 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.8499/0.8499, allocations: 143.1 MB / 434.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002282/0.002282, allocations: 63.66 kB / 0.5962 GB, free: 12.28 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1702/0.1725, allocations: 82.03 MB / 0.6763 GB, free: 10.34 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001467/0.174, allocations: 0.5212 MB / 0.6768 GB, free: 9.82 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.001999/0.176, allocations: 1.618 MB / 0.6784 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.697e-05/0.1761, allocations: 0 / 0.6784 GB, free: 8.184 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1762, allocations: 23.91 kB / 0.6784 GB, free: 8.16 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 2.336e-05/0.1763, allocations: 7.984 kB / 0.6784 GB, free: 8.152 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.0007765/0.177, allocations: 247.3 kB / 0.6786 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 6.254e-05/0.1771, allocations: 23.91 kB / 0.6787 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.423e-05/0.1772, allocations: 0 / 0.6787 GB, free: 7.887 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.099e-05/0.1772, allocations: 11.98 kB / 0.6787 GB, free: 7.875 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 3.846e-05/0.1772, allocations: 19.92 kB / 0.6787 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.034e-05/0.1773, allocations: 0 / 0.6787 GB, free: 7.855 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004977/0.1778, allocations: 339.5 kB / 0.679 GB, free: 7.523 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 4.901e-05/0.1778, allocations: 19.92 kB / 0.679 GB, free: 7.504 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.493e-05/0.1779, allocations: 19.81 kB / 0.679 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.000342/0.1782, allocations: 279.4 kB / 0.6793 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1782, allocations: 0 / 0.6793 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.312e-06/0.1782, allocations: 0 / 0.6793 GB, free: 7.211 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 3.877e-06/0.1782, allocations: 0 / 0.6793 GB, free: 7.211 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.0004105/0.1786, allocations: 407.1 kB / 0.6797 GB, free: 6.766 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.404e-05/0.1787, allocations: 12.03 kB / 0.6797 GB, free: 6.754 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.836e-05/0.1787, allocations: 4.844 kB / 0.6797 GB, free: 6.75 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.1789, allocations: 185.6 kB / 0.6799 GB, free: 6.531 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.589e-06/0.1789, allocations: 4.375 kB / 0.6799 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.1789, allocations: 4.312 kB / 0.6799 GB, free: 6.523 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.876e-05/0.179, allocations: 38.02 kB / 0.6799 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.564e-06/0.179, allocations: 0 / 0.6799 GB, free: 6.48 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.179, allocations: 3.938 kB / 0.6799 GB, free: 6.477 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.427e-06/0.179, allocations: 4 kB / 0.6799 GB, free: 6.473 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.787e-05/0.1791, allocations: 15.98 kB / 0.68 GB, free: 6.457 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000155/0.1792, allocations: 173.6 kB / 0.6801 GB, free: 6.238 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 3.821e-05/0.1793, allocations: 30.58 kB / 0.6802 GB, free: 6.199 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.179e-05/0.1793, allocations: 16.91 kB / 0.6802 GB, free: 6.18 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.1793, allocations: 4 kB / 0.6802 GB, free: 6.176 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.846e-05/0.1793, allocations: 34.5 kB / 0.6802 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.1793, allocations: 0 / 0.6802 GB, free: 6.133 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001409/0.1795, allocations: 65.52 kB / 0.6803 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.53e-05/0.1795, allocations: 51.41 kB / 0.6803 GB, free: 6 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001419/0.1797, allocations: 181.1 kB / 0.6805 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.181e-05/0.1797, allocations: 25.7 kB / 0.6805 GB, free: 5.785 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 4.416e-05/0.1797, allocations: 92.12 kB / 0.6806 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 8.326e-06/0.1798, allocations: 0 / 0.6806 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.638e-05/0.1798, allocations: 25.7 kB / 0.6806 GB, free: 5.66 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.1799, allocations: 322.8 kB / 0.6809 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.943e-05/0.18, allocations: 39.98 kB / 0.681 GB, free: 5.297 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.817e-05/0.18, allocations: 39.98 kB / 0.681 GB, free: 5.258 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.254e-05/0.1801, allocations: 80.73 kB / 0.6811 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1801, allocations: 0 / 0.6811 GB, free: 5.176 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001441/0.1803, allocations: 117.6 kB / 0.6812 GB, free: 5.055 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.1803, allocations: 7.938 kB / 0.6812 GB, free: 5.047 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.411e-05/0.1803, allocations: 4 kB / 0.6812 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.487e-05/0.1803, allocations: 3.984 kB / 0.6812 GB, free: 5.039 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.286e-05/0.1803, allocations: 4 kB / 0.6812 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.1803, allocations: 0 / 0.6812 GB, free: 5.035 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.394e-05/0.1804, allocations: 15.78 kB / 0.6812 GB, free: 5.02 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.1804, allocations: 0 / 0.6812 GB, free: 5.02 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001155/0.1805, allocations: 130.5 kB / 0.6814 GB, free: 4.883 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.273e-05/0.1805, allocations: 7.844 kB / 0.6814 GB, free: 4.875 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.968e-05/0.1806, allocations: 61.5 kB / 0.6814 GB, free: 4.809 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.778e-06/0.1806, allocations: 3.984 kB / 0.6814 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.1806, allocations: 0 / 0.6814 GB, free: 4.805 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.1807, allocations: 85.02 kB / 0.6815 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.103e-05/0.1807, allocations: 0 / 0.6815 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.1e-05/0.1807, allocations: 0 / 0.6815 GB, free: 4.703 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.338e-05/0.1807, allocations: 4.031 kB / 0.6815 GB, free: 4.699 MB / 0.5137 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 8.2e-05/0.1808, allocations: 121 kB / 0.6816 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001361/0.181, allocations: 238.5 kB / 0.6819 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.243e-05/0.181, allocations: 11.98 kB / 0.6819 GB, free: 4.312 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.762e-05/0.1811, allocations: 120.7 kB / 0.682 GB, free: 4.195 MB / 0.5137 GB Notification: Performance of Backend: time 2.8e-07/0.1811, allocations: 4.062 kB / 0.682 GB, free: 4.191 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0007383/0.1818, allocations: 296.4 kB / 0.6823 GB, free: 3.918 MB / 0.5137 GB Notification: Performance of SimCode: time 0.00039/0.1822, allocations: 0.5998 MB / 0.6829 GB, free: 3.27 MB / 0.5137 GB Notification: Performance of Templates: time 0.004827/0.1871, allocations: 2.177 MB / 0.685 GB, free: 1.09 MB / 0.5137 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)