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.001575/0.001575, allocations: 106.4 kB / 16.41 MB, free: 6.469 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.001886/0.001886, allocations: 189.7 kB / 17.34 MB, free: 5.719 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.377/1.377, allocations: 222.9 MB / 241 MB, free: 15.18 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.8898/0.8898, allocations: 143.1 MB / 434.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001194/0.001194, allocations: 59.66 kB / 0.5962 GB, free: 12.32 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1565, allocations: 82.03 MB / 0.6763 GB, free: 10.38 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001818/0.1583, allocations: 0.5255 MB / 0.6768 GB, free: 9.852 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002328/0.1607, allocations: 1.606 MB / 0.6783 GB, free: 8.227 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.175e-05/0.1607, allocations: 4 kB / 0.6784 GB, free: 8.223 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1609, allocations: 19.92 kB / 0.6784 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 3.239e-05/0.161, allocations: 15.92 kB / 0.6784 GB, free: 8.188 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.0009887/0.1619, allocations: 247.3 kB / 0.6786 GB, free: 7.945 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 7.807e-05/0.162, allocations: 23.91 kB / 0.6786 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.222e-05/0.1621, allocations: 0 / 0.6786 GB, free: 7.922 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 3.833e-05/0.1621, allocations: 15.98 kB / 0.6787 GB, free: 7.906 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 4.328e-05/0.1622, allocations: 15.92 kB / 0.6787 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.1622, allocations: 0 / 0.6787 GB, free: 7.891 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005978/0.1628, allocations: 335.5 kB / 0.679 GB, free: 7.562 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.555e-05/0.1629, allocations: 19.92 kB / 0.679 GB, free: 7.543 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 3.236e-05/0.1629, allocations: 23.81 kB / 0.679 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004832/0.1634, allocations: 279.4 kB / 0.6793 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.1634, allocations: 0 / 0.6793 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.233e-06/0.1634, allocations: 0 / 0.6793 GB, free: 7.246 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.631e-06/0.1634, allocations: 0 / 0.6793 GB, free: 7.246 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.0004782/0.1639, allocations: 407.1 kB / 0.6797 GB, free: 6.801 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.164, allocations: 8.031 kB / 0.6797 GB, free: 6.793 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.116e-05/0.164, allocations: 12.83 kB / 0.6797 GB, free: 6.781 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001661/0.1642, allocations: 177.5 kB / 0.6799 GB, free: 6.57 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.063e-05/0.1642, allocations: 8.312 kB / 0.6799 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.949e-06/0.1642, allocations: 384 / 0.6799 GB, free: 6.562 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.1643, allocations: 42 kB / 0.6799 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.1643, allocations: 0 / 0.6799 GB, free: 6.516 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.215e-06/0.1644, allocations: 3.938 kB / 0.6799 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.037e-06/0.1644, allocations: 0 / 0.6799 GB, free: 6.512 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.544e-05/0.1644, allocations: 23.97 kB / 0.68 GB, free: 6.488 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001768/0.1646, allocations: 173.6 kB / 0.6801 GB, free: 6.27 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.864e-05/0.1647, allocations: 34.52 kB / 0.6802 GB, free: 6.227 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.1647, allocations: 12.92 kB / 0.6802 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.572e-05/0.1647, allocations: 7.984 kB / 0.6802 GB, free: 6.203 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.1647, allocations: 34.5 kB / 0.6802 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.152e-06/0.1648, allocations: 0 / 0.6802 GB, free: 6.16 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.000162/0.1649, allocations: 57.59 kB / 0.6803 GB, free: 6.098 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.165, allocations: 51.41 kB / 0.6803 GB, free: 6.035 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001535/0.1651, allocations: 184.9 kB / 0.6805 GB, free: 5.848 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.1652, allocations: 25.7 kB / 0.6805 GB, free: 5.816 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.249e-05/0.1652, allocations: 92.12 kB / 0.6806 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.191e-05/0.1652, allocations: 0 / 0.6806 GB, free: 5.723 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.993e-05/0.1653, allocations: 25.66 kB / 0.6806 GB, free: 5.691 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1654, allocations: 322.8 kB / 0.6809 GB, free: 5.367 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.478e-05/0.1654, allocations: 39.98 kB / 0.681 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.935e-05/0.1655, allocations: 35.98 kB / 0.681 GB, free: 5.293 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.095e-05/0.1656, allocations: 76.8 kB / 0.6811 GB, free: 5.215 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.808e-06/0.1656, allocations: 4 kB / 0.6811 GB, free: 5.211 MB / 0.5137 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001458/0.1657, allocations: 121.6 kB / 0.6812 GB, free: 5.086 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1658, allocations: 7.938 kB / 0.6812 GB, free: 5.078 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.706e-05/0.1658, allocations: 8 kB / 0.6812 GB, free: 5.07 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.274e-05/0.1658, allocations: 0 / 0.6812 GB, free: 5.07 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.284e-05/0.1658, allocations: 0 / 0.6812 GB, free: 5.07 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.1658, allocations: 3.938 kB / 0.6812 GB, free: 5.066 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.062e-05/0.1659, allocations: 15.78 kB / 0.6812 GB, free: 5.051 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.1659, allocations: 0 / 0.6812 GB, free: 5.051 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.0001396/0.166, allocations: 130.5 kB / 0.6814 GB, free: 4.914 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.971e-05/0.1661, allocations: 11.83 kB / 0.6814 GB, free: 4.902 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.1662, allocations: 53.56 kB / 0.6814 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1662, allocations: 0 / 0.6814 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1662, allocations: 0 / 0.6814 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1662, allocations: 0 / 0.6814 GB, free: 4.844 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001125/0.1663, allocations: 173.7 kB / 0.6816 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1663, allocations: 0 / 0.6816 GB, free: 4.625 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.989e-06/0.1663, allocations: 4.031 kB / 0.6816 GB, free: 4.621 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.707e-06/0.1663, allocations: 3.938 kB / 0.6816 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.1663, allocations: 0 / 0.6816 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.1664, allocations: 0 / 0.6816 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.254e-06/0.1664, allocations: 0 / 0.6816 GB, free: 4.617 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.872e-05/0.1664, allocations: 84.91 kB / 0.6817 GB, free: 4.516 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.836e-05/0.1665, allocations: 92.94 kB / 0.6818 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.259e-05/0.1665, allocations: 0 / 0.6818 GB, free: 4.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.236e-05/0.1665, allocations: 4.031 kB / 0.6818 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.051e-05/0.1665, allocations: 0 / 0.6818 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.005e-06/0.1666, allocations: 0 / 0.6818 GB, free: 4.402 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 7.755e-05/0.1666, allocations: 124.9 kB / 0.6819 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1666, allocations: 0 / 0.6819 GB, free: 4.281 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.000351/0.167, allocations: 79.98 kB / 0.682 GB, free: 4.203 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.0005121/0.1675, allocations: 242.7 kB / 0.6822 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0001771/0.1677, allocations: 105.6 kB / 0.6823 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1677, allocations: 3.938 kB / 0.6823 GB, free: 3.867 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.723e-05/0.1677, allocations: 11.98 kB / 0.6823 GB, free: 3.855 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001482/0.1679, allocations: 6.062 kB / 0.6823 GB, free: 3.852 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002868/0.1682, allocations: 191.1 kB / 0.6825 GB, free: 3.633 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.1685, allocations: 0.6885 MB / 0.6832 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.761e-05/0.1685, allocations: 11.44 kB / 0.6832 GB, free: 2.906 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1685, allocations: 4 kB / 0.6832 GB, free: 2.902 MB / 0.5137 GB Notification: Performance of Templates: time 0.004608/0.1731, allocations: 2.254 MB / 0.6854 GB, free: 0.6445 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)