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.001867/0.001867, allocations: 109 kB / 16.41 MB, free: 6.457 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.002201/0.002201, allocations: 183 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.465/1.465, 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.9177/0.9177, allocations: 143.1 MB / 434.3 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 63.64 kB / 0.5962 GB, free: 12.29 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1594, allocations: 82.03 MB / 0.6763 GB, free: 10.36 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001669/0.161, allocations: 0.5273 MB / 0.6768 GB, free: 9.828 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.002415/0.1635, allocations: 1.606 MB / 0.6784 GB, free: 8.203 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.004e-05/0.1635, allocations: 3.938 kB / 0.6784 GB, free: 8.199 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.0001865/0.1637, allocations: 59.84 kB / 0.6784 GB, free: 8.141 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 3.56e-05/0.1637, allocations: 27.95 kB / 0.6784 GB, free: 8.113 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.0008831/0.1646, allocations: 251.3 kB / 0.6787 GB, free: 7.867 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 8.294e-05/0.1647, allocations: 31.91 kB / 0.6787 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.738e-05/0.1647, allocations: 0 / 0.6787 GB, free: 7.836 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 4.77e-05/0.1648, allocations: 27.95 kB / 0.6787 GB, free: 7.809 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 6.007e-05/0.1648, allocations: 35.91 kB / 0.6788 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.1648, allocations: 0 / 0.6788 GB, free: 7.773 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005488/0.1654, allocations: 343.4 kB / 0.6791 GB, free: 7.438 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 5.407e-05/0.1654, allocations: 23.92 kB / 0.6791 GB, free: 7.414 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.782e-05/0.1655, allocations: 35.69 kB / 0.6792 GB, free: 7.379 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0004161/0.1659, allocations: 295.1 kB / 0.6794 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.436e-06/0.1659, allocations: 0 / 0.6794 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.423e-06/0.1659, allocations: 0 / 0.6794 GB, free: 7.09 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.771e-06/0.1659, allocations: 0 / 0.6794 GB, free: 7.09 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.0005404/0.1665, allocations: 438.4 kB / 0.6799 GB, free: 6.613 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.1665, allocations: 8.031 kB / 0.6799 GB, free: 6.605 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.97e-05/0.1665, allocations: 12.84 kB / 0.6799 GB, free: 6.594 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000209/0.1667, allocations: 200.1 kB / 0.6801 GB, free: 6.359 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.233e-05/0.1668, allocations: 4.375 kB / 0.6801 GB, free: 6.355 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.1668, allocations: 384 / 0.6801 GB, free: 6.355 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001072/0.1669, allocations: 45.94 kB / 0.6801 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.236e-06/0.1669, allocations: 0 / 0.6801 GB, free: 6.305 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.406e-06/0.1669, allocations: 4 kB / 0.6801 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.1669, allocations: 0 / 0.6801 GB, free: 6.301 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.044e-05/0.1669, allocations: 12 kB / 0.6801 GB, free: 6.289 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000222/0.1671, allocations: 201.5 kB / 0.6803 GB, free: 6.043 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 4.893e-05/0.1672, allocations: 22.58 kB / 0.6803 GB, free: 6.012 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.855e-05/0.1672, allocations: 20.91 kB / 0.6804 GB, free: 5.988 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.067e-05/0.1672, allocations: 4 kB / 0.6804 GB, free: 5.984 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.331e-05/0.1673, allocations: 42.44 kB / 0.6804 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1673, allocations: 0 / 0.6804 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of matching and sorting (n=1): time 0.0001613/0.1674, allocations: 69.58 kB / 0.6805 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.74e-05/0.1675, allocations: 55.53 kB / 0.6805 GB, free: 5.793 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.1677, allocations: 211.4 kB / 0.6807 GB, free: 5.578 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.782e-05/0.1677, allocations: 25.7 kB / 0.6808 GB, free: 5.547 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.358e-05/0.1678, allocations: 100.1 kB / 0.6809 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.718e-06/0.1678, allocations: 0 / 0.6809 GB, free: 5.445 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.926e-05/0.1679, allocations: 33.7 kB / 0.6809 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001502/0.168, allocations: 322.8 kB / 0.6812 GB, free: 5.082 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.818e-05/0.1681, allocations: 55.97 kB / 0.6812 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.822e-05/0.1681, allocations: 57.25 kB / 0.6813 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001206/0.1683, allocations: 103.5 kB / 0.6814 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.1683, allocations: 0 / 0.6814 GB, free: 4.871 MB / 0.5137 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002011/0.1685, allocations: 161.5 kB / 0.6816 GB, free: 4.707 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.1685, allocations: 11.94 kB / 0.6816 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.1685, allocations: 0 / 0.6816 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1685, allocations: 3.938 kB / 0.6816 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.263e-05/0.1685, allocations: 0 / 0.6816 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1685, allocations: 0 / 0.6816 GB, free: 4.691 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.599e-05/0.1685, allocations: 11.89 kB / 0.6816 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.998e-06/0.1686, allocations: 8.047 kB / 0.6816 GB, free: 4.672 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.0001801/0.1687, allocations: 130.5 kB / 0.6817 GB, free: 4.535 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.1688, allocations: 11.84 kB / 0.6817 GB, free: 4.523 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001212/0.1689, allocations: 70.17 kB / 0.6818 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1689, allocations: 0 / 0.6818 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.487e-06/0.1689, allocations: 0 / 0.6818 GB, free: 4.449 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1689, allocations: 4 kB / 0.6818 GB, free: 4.445 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001557/0.169, allocations: 181.7 kB / 0.682 GB, free: 4.219 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.169, allocations: 0 / 0.682 GB, free: 4.219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.361e-06/0.169, allocations: 4 kB / 0.682 GB, free: 4.215 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.488e-06/0.1691, allocations: 3.938 kB / 0.682 GB, free: 4.211 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1691, allocations: 3.984 kB / 0.682 GB, free: 4.207 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.825e-06/0.1691, allocations: 3.984 kB / 0.682 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1691, allocations: 0 / 0.682 GB, free: 4.203 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001027/0.1692, allocations: 88.91 kB / 0.6821 GB, free: 4.098 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.327e-05/0.1692, allocations: 93.03 kB / 0.6822 GB, free: 3.988 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.505e-05/0.1692, allocations: 4 kB / 0.6822 GB, free: 3.984 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.517e-05/0.1692, allocations: 4 kB / 0.6822 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.047e-05/0.1693, allocations: 0 / 0.6822 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.365e-06/0.1693, allocations: 0 / 0.6822 GB, free: 3.98 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.000131/0.1694, allocations: 147.2 kB / 0.6823 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.1694, allocations: 0 / 0.6823 GB, free: 3.836 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0003417/0.1697, allocations: 87.8 kB / 0.6824 GB, free: 3.75 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.0005577/0.1703, allocations: 234.5 kB / 0.6826 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002083/0.1705, allocations: 117.7 kB / 0.6827 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1705, allocations: 0 / 0.6827 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.989e-05/0.1705, allocations: 11.94 kB / 0.6827 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001421/0.1707, allocations: 4.062 kB / 0.6827 GB, free: 3.395 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003774/0.171, allocations: 250.5 kB / 0.683 GB, free: 3.121 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003603/0.1714, allocations: 0.708 MB / 0.6837 GB, free: 2.387 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.779e-05/0.1714, allocations: 7.438 kB / 0.6837 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of SimCode: time 4.31e-07/0.1714, allocations: 0 / 0.6837 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of Templates: time 0.004994/0.1764, allocations: 2.376 MB / 0.686 GB, free: 15.99 MB / 0.5294 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)