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.001544/0.001544, allocations: 106.7 kB / 16.36 MB, free: 5.875 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.001815/0.001815, allocations: 191 kB / 17.29 MB, free: 5.516 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.337/1.337, allocations: 222.9 MB / 241 MB, free: 14.99 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.8704/0.8704, allocations: 143.1 MB / 434.2 MB, free: 11.98 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001302/0.001302, allocations: 67.89 kB / 0.5156 GB, free: 14.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.354/0.3553, allocations: 82.04 MB / 0.5957 GB, free: 16.3 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001477/0.3568, allocations: 0.513 MB / 0.5962 GB, free: 15.8 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001534/0.3584, allocations: 1.614 MB / 0.5978 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.756e-05/0.3584, allocations: 1.531 kB / 0.5978 GB, free: 14.17 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001418/0.3586, allocations: 59.84 kB / 0.5978 GB, free: 14.11 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.459e-05/0.3586, allocations: 27.95 kB / 0.5978 GB, free: 14.09 MB / 446.1 MB [/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.0006627/0.3593, allocations: 245.7 kB / 0.5981 GB, free: 13.85 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.998e-05/0.3593, allocations: 35.94 kB / 0.5981 GB, free: 13.81 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.3594, allocations: 9.344 kB / 0.5981 GB, free: 13.8 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.807e-05/0.3594, allocations: 23.86 kB / 0.5981 GB, free: 13.78 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.95e-05/0.3595, allocations: 39.94 kB / 0.5982 GB, free: 13.74 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.058e-05/0.3595, allocations: 5.406 kB / 0.5982 GB, free: 13.74 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003834/0.3599, allocations: 331.5 kB / 0.5985 GB, free: 13.41 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.192e-05/0.3599, allocations: 23.92 kB / 0.5985 GB, free: 13.39 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.474e-05/0.3599, allocations: 24.66 kB / 0.5985 GB, free: 13.37 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002796/0.3602, allocations: 295.3 kB / 0.5988 GB, free: 13.08 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.3602, allocations: 3.938 kB / 0.5988 GB, free: 13.07 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3602, allocations: 1.188 kB / 0.5988 GB, free: 13.07 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.618e-06/0.3603, allocations: 0 / 0.5988 GB, free: 13.07 MB / 446.1 MB 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.0003308/0.3606, allocations: 434.6 kB / 0.5992 GB, free: 12.61 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.101e-05/0.3606, allocations: 8.031 kB / 0.5993 GB, free: 12.6 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.3607, allocations: 8.844 kB / 0.5993 GB, free: 12.59 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001137/0.3608, allocations: 192.1 kB / 0.5994 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.616e-06/0.3608, allocations: 2.156 kB / 0.5994 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.3608, allocations: 384 / 0.5994 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.521e-05/0.3609, allocations: 46 kB / 0.5995 GB, free: 12.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.3609, allocations: 0 / 0.5995 GB, free: 12.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.205e-06/0.3609, allocations: 1.5 kB / 0.5995 GB, free: 12.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.3609, allocations: 0 / 0.5995 GB, free: 12.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.638e-05/0.361, allocations: 27.86 kB / 0.5995 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001517/0.3611, allocations: 182.4 kB / 0.5997 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.451e-05/0.3612, allocations: 28.06 kB / 0.5997 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.869e-05/0.3612, allocations: 16.92 kB / 0.5997 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.762e-05/0.3612, allocations: 7.984 kB / 0.5997 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.547e-05/0.3613, allocations: 39.5 kB / 0.5998 GB, free: 11.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3613, allocations: 0 / 0.5998 GB, free: 11.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001342/0.3614, allocations: 70.5 kB / 0.5998 GB, free: 11.88 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.551e-05/0.3615, allocations: 52.91 kB / 0.5999 GB, free: 11.81 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001376/0.3616, allocations: 211.4 kB / 0.6001 GB, free: 11.59 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 8.866e-06/0.3616, allocations: 29.7 kB / 0.6001 GB, free: 11.56 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.3617, allocations: 104.8 kB / 0.6002 GB, free: 11.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.586e-06/0.3617, allocations: 0 / 0.6002 GB, free: 11.45 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.505e-05/0.3617, allocations: 35.11 kB / 0.6003 GB, free: 11.41 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.151e-05/0.3618, allocations: 322.8 kB / 0.6006 GB, free: 11.09 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.806e-05/0.3618, allocations: 51.98 kB / 0.6006 GB, free: 11.04 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.267e-05/0.3619, allocations: 57.44 kB / 0.6007 GB, free: 10.98 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.157e-05/0.362, allocations: 95.81 kB / 0.6008 GB, free: 10.89 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.362, allocations: 7.938 kB / 0.6008 GB, free: 10.88 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001249/0.3621, allocations: 166 kB / 0.6009 GB, free: 10.71 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.608e-05/0.3621, allocations: 13.47 kB / 0.6009 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.323e-05/0.3622, allocations: 3.938 kB / 0.6009 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.3622, allocations: 0 / 0.6009 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.443e-05/0.3622, allocations: 0 / 0.6009 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.3622, allocations: 1.469 kB / 0.6009 GB, free: 10.7 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.338e-05/0.3622, allocations: 7.906 kB / 0.601 GB, free: 10.69 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.3622, allocations: 0 / 0.601 GB, free: 10.69 MB / 446.1 MB 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.0001093/0.3624, allocations: 134.5 kB / 0.6011 GB, free: 10.55 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.308e-05/0.3624, allocations: 21.23 kB / 0.6011 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.235e-05/0.3625, allocations: 66.19 kB / 0.6012 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.3625, allocations: 0 / 0.6012 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.3625, allocations: 0.6875 kB / 0.6012 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.3625, allocations: 0 / 0.6012 GB, free: 10.46 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.024e-05/0.3626, allocations: 187.6 kB / 0.6013 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.3626, allocations: 0 / 0.6013 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.99e-06/0.3626, allocations: 0 / 0.6013 GB, free: 10.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.3626, allocations: 11.88 kB / 0.6014 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.3626, allocations: 0 / 0.6014 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.3626, allocations: 1.906 kB / 0.6014 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.3626, allocations: 0 / 0.6014 GB, free: 10.22 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.389e-05/0.3627, allocations: 78.38 kB / 0.6014 GB, free: 10.13 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.456e-05/0.3627, allocations: 92.84 kB / 0.6015 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.325e-05/0.3627, allocations: 4 kB / 0.6015 GB, free: 10.02 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.397e-05/0.3627, allocations: 11.94 kB / 0.6015 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.138e-05/0.3628, allocations: 1.344 kB / 0.6015 GB, free: 10 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.3628, allocations: 0 / 0.6015 GB, free: 10 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.319e-05/0.3628, allocations: 148.8 kB / 0.6017 GB, free: 9.859 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3629, allocations: 0 / 0.6017 GB, free: 9.859 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002886/0.3631, allocations: 83.98 kB / 0.6018 GB, free: 9.777 MB / 446.1 MB 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.0004068/0.3636, allocations: 228 kB / 0.602 GB, free: 9.57 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001422/0.3637, allocations: 126.7 kB / 0.6021 GB, free: 9.441 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3637, allocations: 0 / 0.6021 GB, free: 9.441 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.286e-05/0.3637, allocations: 17.39 kB / 0.6021 GB, free: 9.426 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001464/0.3639, allocations: 7.75 kB / 0.6021 GB, free: 9.418 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002533/0.3641, allocations: 207.2 kB / 0.6023 GB, free: 9.191 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.3643, allocations: 0.7041 MB / 0.603 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.714e-05/0.3643, allocations: 1.281 kB / 0.603 GB, free: 8.461 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.251e-05/0.3643, allocations: 11.44 kB / 0.603 GB, free: 8.449 MB / 446.1 MB Notification: Performance of SimCode: time 8.12e-07/0.3643, allocations: 0 / 0.603 GB, free: 8.449 MB / 446.1 MB Notification: Performance of Templates: time 0.01187/0.3762, allocations: 2.12 MB / 0.6051 GB, free: 6.41 MB / 446.1 MB 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 -s cvode -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)