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.001599/0.001599, allocations: 101.9 kB / 16.35 MB, free: 5.824 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.00181/0.00181, allocations: 193.9 kB / 17.29 MB, free: 5.48 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.348/1.348, 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.8254/0.8254, allocations: 143.1 MB / 434.2 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 67.91 kB / 0.5156 GB, free: 14.44 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.33, allocations: 82.04 MB / 0.5957 GB, free: 16.12 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001688/0.3317, allocations: 0.5011 MB / 0.5962 GB, free: 15.63 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.3334, allocations: 1.612 MB / 0.5977 GB, free: 14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.379e-05/0.3335, allocations: 3.938 kB / 0.5978 GB, free: 14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001598/0.3337, allocations: 61.23 kB / 0.5978 GB, free: 13.94 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.026e-05/0.3337, allocations: 31.89 kB / 0.5978 GB, free: 13.91 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.0008125/0.3345, allocations: 250.1 kB / 0.5981 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.313e-05/0.3346, allocations: 31.95 kB / 0.5981 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.726e-05/0.3347, allocations: 0 / 0.5981 GB, free: 13.64 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3e-05/0.3347, allocations: 23.91 kB / 0.5981 GB, free: 13.61 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.016e-05/0.3348, allocations: 41.27 kB / 0.5982 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.23e-05/0.3348, allocations: 0 / 0.5982 GB, free: 13.57 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004402/0.3352, allocations: 344.3 kB / 0.5985 GB, free: 13.24 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.621e-05/0.3353, allocations: 23.92 kB / 0.5985 GB, free: 13.21 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.757e-05/0.3353, allocations: 23.75 kB / 0.5985 GB, free: 13.19 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004355/0.3358, allocations: 292.5 kB / 0.5988 GB, free: 12.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3358, allocations: 0 / 0.5988 GB, free: 12.91 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.3358, allocations: 3.938 kB / 0.5988 GB, free: 12.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.231e-06/0.3358, allocations: 1.25 kB / 0.5988 GB, free: 12.9 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.0003602/0.3362, allocations: 436.5 kB / 0.5992 GB, free: 12.43 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.186e-05/0.3362, allocations: 9.5 kB / 0.5993 GB, free: 12.43 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.868e-05/0.3363, allocations: 12.84 kB / 0.5993 GB, free: 12.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001221/0.3364, allocations: 188.1 kB / 0.5994 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.007e-06/0.3364, allocations: 1.75 kB / 0.5994 GB, free: 12.19 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.887e-06/0.3364, allocations: 8.312 kB / 0.5995 GB, free: 12.18 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.041e-05/0.3365, allocations: 46 kB / 0.5995 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.3365, allocations: 1.344 kB / 0.5995 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.715e-06/0.3365, allocations: 0 / 0.5995 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.456e-06/0.3365, allocations: 0 / 0.5995 GB, free: 12.13 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.651e-05/0.3366, allocations: 19.98 kB / 0.5995 GB, free: 12.11 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000123/0.3367, allocations: 182.9 kB / 0.5997 GB, free: 11.89 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.914e-05/0.3367, allocations: 31.52 kB / 0.5997 GB, free: 11.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.078e-05/0.3368, allocations: 16.91 kB / 0.5997 GB, free: 11.83 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.3368, allocations: 5.25 kB / 0.5997 GB, free: 11.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.657e-05/0.3368, allocations: 34.5 kB / 0.5998 GB, free: 11.78 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.82e-07/0.3368, allocations: 1.344 kB / 0.5998 GB, free: 11.78 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001382/0.337, allocations: 73.48 kB / 0.5998 GB, free: 11.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.337, allocations: 56.88 kB / 0.5999 GB, free: 11.64 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001357/0.3372, allocations: 215.4 kB / 0.6001 GB, free: 11.41 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.044e-06/0.3372, allocations: 25.7 kB / 0.6001 GB, free: 11.38 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.611e-05/0.3372, allocations: 101.5 kB / 0.6002 GB, free: 11.28 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.878e-06/0.3372, allocations: 3.984 kB / 0.6002 GB, free: 11.28 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.366e-05/0.3373, allocations: 29.7 kB / 0.6003 GB, free: 11.24 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.169e-05/0.3373, allocations: 324.2 kB / 0.6006 GB, free: 10.92 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.918e-05/0.3374, allocations: 55.97 kB / 0.6006 GB, free: 10.86 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.78e-05/0.3374, allocations: 55.98 kB / 0.6007 GB, free: 10.81 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.798e-05/0.3375, allocations: 96.08 kB / 0.6008 GB, free: 10.71 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.3375, allocations: 0 / 0.6008 GB, free: 10.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001246/0.3376, allocations: 170.5 kB / 0.6009 GB, free: 10.54 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.182e-05/0.3376, allocations: 7.938 kB / 0.6009 GB, free: 10.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.356e-05/0.3377, allocations: 4 kB / 0.6009 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.228e-05/0.3377, allocations: 1.031 kB / 0.6009 GB, free: 10.53 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.298e-05/0.3377, allocations: 7.969 kB / 0.601 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.519e-06/0.3377, allocations: 1.344 kB / 0.601 GB, free: 10.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.571e-05/0.3377, allocations: 11.84 kB / 0.601 GB, free: 10.51 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.416e-06/0.3378, allocations: 0 / 0.601 GB, free: 10.51 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 9.537e-05/0.3379, allocations: 128.7 kB / 0.6011 GB, free: 10.38 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.209e-05/0.3379, allocations: 15.75 kB / 0.6011 GB, free: 10.36 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.298e-05/0.338, allocations: 67.89 kB / 0.6012 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.338, allocations: 0 / 0.6012 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.338, allocations: 0 / 0.6012 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.338, allocations: 0.75 kB / 0.6012 GB, free: 10.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.427e-05/0.3381, allocations: 181.7 kB / 0.6013 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3381, allocations: 0.6562 kB / 0.6013 GB, free: 10.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.102e-06/0.3381, allocations: 7.922 kB / 0.6013 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.414e-06/0.3381, allocations: 5.469 kB / 0.6014 GB, free: 10.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.611e-06/0.3381, allocations: 7.875 kB / 0.6014 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.3381, allocations: 0 / 0.6014 GB, free: 10.05 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.133e-06/0.3381, allocations: 8 kB / 0.6014 GB, free: 10.04 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.872e-05/0.3382, allocations: 79.16 kB / 0.6014 GB, free: 9.949 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.246e-05/0.3382, allocations: 92.86 kB / 0.6015 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.238e-05/0.3382, allocations: 0.875 kB / 0.6015 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.392e-05/0.3382, allocations: 0 / 0.6015 GB, free: 9.84 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.088e-05/0.3383, allocations: 9.266 kB / 0.6015 GB, free: 9.832 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.3383, allocations: 0 / 0.6015 GB, free: 9.832 MB / 446.1 MB Notification: Performance of sorting global known variables: time 7.602e-05/0.3384, allocations: 139.2 kB / 0.6017 GB, free: 9.695 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3384, allocations: 1.406 kB / 0.6017 GB, free: 9.695 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.3387, allocations: 87.98 kB / 0.6018 GB, free: 9.609 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.0004254/0.3391, allocations: 232.9 kB / 0.602 GB, free: 9.402 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001524/0.3393, allocations: 129.6 kB / 0.6021 GB, free: 9.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.3393, allocations: 0 / 0.6021 GB, free: 9.27 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.274e-05/0.3393, allocations: 11 kB / 0.6021 GB, free: 9.262 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.3395, allocations: 11.75 kB / 0.6021 GB, free: 9.25 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002605/0.3397, allocations: 201.9 kB / 0.6023 GB, free: 9.027 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000129/0.3399, allocations: 0.7041 MB / 0.603 GB, free: 8.297 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.963e-05/0.3399, allocations: 3.984 kB / 0.603 GB, free: 8.293 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.529e-05/0.3399, allocations: 8.25 kB / 0.603 GB, free: 8.285 MB / 446.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3399, allocations: 0 / 0.603 GB, free: 8.285 MB / 446.1 MB Notification: Performance of Templates: time 0.004309/0.3442, allocations: 2.123 MB / 0.6051 GB, free: 6.234 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 gbode -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)