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.0007947/0.0007947, allocations: 89.89 kB / 15.36 MB, free: 0.7383 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.004713/0.004714, allocations: 171.8 kB / 16.26 MB, free: 6.613 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.326/1.326, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.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 1.03/1.03, allocations: 143.2 MB / 434.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003567/0.0003568, allocations: 8 kB / 0.5164 GB, free: 11.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1701/0.1704, allocations: 83.41 MB / 0.5978 GB, free: 7.688 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.0007252/0.1712, allocations: 254.2 kB / 0.5981 GB, free: 7.441 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.002452/0.1737, allocations: 1.607 MB / 0.5996 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.939e-05/0.1737, allocations: 4 kB / 0.5996 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.1739, allocations: 23.97 kB / 0.5997 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 2.804e-05/0.174, allocations: 11.92 kB / 0.5997 GB, free: 5.777 MB / 0.4981 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008862/0.1748, allocations: 193.7 kB / 0.5999 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 5.541e-05/0.1749, allocations: 19.91 kB / 0.5999 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 5.146e-05/0.175, allocations: 7.984 kB / 0.5999 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.19e-05/0.175, allocations: 15.92 kB / 0.5999 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.958e-05/0.1751, allocations: 23.92 kB / 0.5999 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.098e-05/0.1751, allocations: 0 / 0.5999 GB, free: 5.523 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004563/0.1756, allocations: 267.6 kB / 0.6002 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 4.911e-05/0.1756, allocations: 19.98 kB / 0.6002 GB, free: 5.242 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.319e-05/0.1757, allocations: 45.5 kB / 0.6002 GB, free: 5.191 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003706/0.176, allocations: 271.4 kB / 0.6005 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.506e-06/0.176, allocations: 0 / 0.6005 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.543e-06/0.1761, allocations: 0 / 0.6005 GB, free: 4.926 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.1761, allocations: 0 / 0.6005 GB, free: 4.926 MB / 0.4981 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.0004242/0.1765, allocations: 411.5 kB / 0.6009 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.865e-05/0.1765, allocations: 8.031 kB / 0.6009 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.007e-05/0.1766, allocations: 8.844 kB / 0.6009 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001512/0.1767, allocations: 185.6 kB / 0.6011 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.284e-06/0.1767, allocations: 384 / 0.6011 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.066e-05/0.1768, allocations: 384 / 0.6011 GB, free: 4.242 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.984e-05/0.1769, allocations: 38.02 kB / 0.6011 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.1769, allocations: 0 / 0.6011 GB, free: 4.199 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.1769, allocations: 4 kB / 0.6011 GB, free: 4.195 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.418e-06/0.1769, allocations: 4 kB / 0.6011 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.135e-05/0.1769, allocations: 23.86 kB / 0.6012 GB, free: 4.168 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000168/0.1771, allocations: 173.7 kB / 0.6013 GB, free: 3.949 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.255e-05/0.1772, allocations: 22.58 kB / 0.6013 GB, free: 3.918 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.955e-05/0.1772, allocations: 12.91 kB / 0.6014 GB, free: 3.902 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.517e-05/0.1772, allocations: 4 kB / 0.6014 GB, free: 3.898 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.511e-05/0.1773, allocations: 42.5 kB / 0.6014 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1773, allocations: 0 / 0.6014 GB, free: 3.848 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.000144/0.1774, allocations: 65.53 kB / 0.6015 GB, free: 3.777 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.521e-05/0.1775, allocations: 55.39 kB / 0.6015 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000229/0.1777, allocations: 164.6 kB / 0.6017 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.29e-05/0.1777, allocations: 29.7 kB / 0.6017 GB, free: 3.508 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.61e-05/0.1778, allocations: 96.12 kB / 0.6018 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 9.247e-06/0.1778, allocations: 3.938 kB / 0.6018 GB, free: 3.406 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.037e-05/0.1778, allocations: 21.7 kB / 0.6018 GB, free: 3.379 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001033/0.1779, allocations: 319 kB / 0.6021 GB, free: 3.059 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.172e-05/0.178, allocations: 39.98 kB / 0.6022 GB, free: 3.02 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.104e-05/0.178, allocations: 39.97 kB / 0.6022 GB, free: 2.98 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.642e-05/0.1781, allocations: 68.89 kB / 0.6023 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1781, allocations: 0 / 0.6023 GB, free: 2.91 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001398/0.1783, allocations: 129.5 kB / 0.6024 GB, free: 2.777 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.1783, allocations: 7.938 kB / 0.6024 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.1783, allocations: 0 / 0.6024 GB, free: 2.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.1783, allocations: 4 kB / 0.6024 GB, free: 2.766 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.146e-05/0.1784, allocations: 4.062 kB / 0.6024 GB, free: 2.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.372e-06/0.1784, allocations: 3.984 kB / 0.6024 GB, free: 2.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.632e-05/0.1784, allocations: 15.83 kB / 0.6024 GB, free: 2.742 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-06/0.1784, allocations: 4 kB / 0.6024 GB, free: 2.738 MB / 0.4981 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.000123/0.1785, allocations: 121.8 kB / 0.6025 GB, free: 2.609 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.122e-05/0.1786, allocations: 11.84 kB / 0.6025 GB, free: 2.598 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001242/0.1787, allocations: 61.5 kB / 0.6026 GB, free: 2.531 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.1787, allocations: 8.016 kB / 0.6026 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.1787, allocations: 0 / 0.6026 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1787, allocations: 0 / 0.6026 GB, free: 2.523 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001054/0.1788, allocations: 173.6 kB / 0.6028 GB, free: 2.305 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.1788, allocations: 4 kB / 0.6028 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.128e-06/0.1789, allocations: 0 / 0.6028 GB, free: 2.301 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.1789, allocations: 3.938 kB / 0.6028 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.33e-06/0.1789, allocations: 0 / 0.6028 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1789, allocations: 0 / 0.6028 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1789, allocations: 0 / 0.6028 GB, free: 2.297 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.407e-05/0.179, allocations: 85.02 kB / 0.6029 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.878e-05/0.179, allocations: 88.95 kB / 0.603 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.12e-05/0.179, allocations: 3.938 kB / 0.603 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.276e-05/0.179, allocations: 0 / 0.603 GB, free: 2.086 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.064e-05/0.1791, allocations: 3.938 kB / 0.603 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.1791, allocations: 0 / 0.603 GB, free: 2.082 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 8.289e-05/0.1792, allocations: 131.7 kB / 0.6031 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.383e-06/0.1792, allocations: 0 / 0.6031 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003159/0.1795, allocations: 87.95 kB / 0.6032 GB, free: 1.867 MB / 0.4981 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.0004588/0.18, allocations: 213.4 kB / 0.6034 GB, free: 1.672 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001537/0.1801, allocations: 101.7 kB / 0.6035 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 8.015e-06/0.1801, allocations: 4.062 kB / 0.6035 GB, free: 1.562 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.986e-05/0.1802, allocations: 11.98 kB / 0.6035 GB, free: 1.551 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001447/0.1803, allocations: 7.938 kB / 0.6035 GB, free: 1.543 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002633/0.1806, allocations: 171 kB / 0.6037 GB, free: 1.344 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002366/0.1808, allocations: 0.7004 MB / 0.6043 GB, free: 0.6172 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.891e-05/0.1809, allocations: 11.98 kB / 0.6044 GB, free: 0.6055 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.11e-05/0.1809, allocations: 7.438 kB / 0.6044 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of SimCode: time 3.5e-07/0.1809, allocations: 0 / 0.6044 GB, free: 0.6016 MB / 0.4981 GB Notification: Performance of Templates: time 0.2981/0.4789, allocations: 2.07 MB / 0.6064 GB, free: 39.89 MB / 0.4981 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)