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.001135/0.001135, allocations: 113.7 kB / 16.37 MB, free: 6.004 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.001288/0.001288, allocations: 196 kB / 17.31 MB, free: 5.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.29/1.29, allocations: 222.9 MB / 241 MB, free: 15.17 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.8598/0.8598, allocations: 143.1 MB / 434.2 MB, free: 12.03 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001316/0.001316, allocations: 63.91 kB / 0.5156 GB, free: 14.46 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2987/0.3, allocations: 82.04 MB / 0.5957 GB, free: 16.11 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00154/0.3016, allocations: 0.5002 MB / 0.5962 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001705/0.3033, allocations: 1.611 MB / 0.5978 GB, free: 14 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.618e-05/0.3034, allocations: 0 / 0.5978 GB, free: 14 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.3036, allocations: 19.91 kB / 0.5978 GB, free: 13.98 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.182e-05/0.3036, allocations: 11.98 kB / 0.5978 GB, free: 13.96 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.0008649/0.3045, allocations: 244.4 kB / 0.598 GB, free: 13.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.462e-05/0.3045, allocations: 29.28 kB / 0.598 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.295e-05/0.3046, allocations: 0 / 0.598 GB, free: 13.7 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.762e-05/0.3046, allocations: 15.92 kB / 0.5981 GB, free: 13.69 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.623e-05/0.3047, allocations: 15.92 kB / 0.5981 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.141e-05/0.3047, allocations: 0.875 kB / 0.5981 GB, free: 13.67 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004835/0.3052, allocations: 341 kB / 0.5984 GB, free: 13.34 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.946e-05/0.3052, allocations: 11.98 kB / 0.5984 GB, free: 13.33 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.781e-05/0.3053, allocations: 23.8 kB / 0.5984 GB, free: 13.3 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003605/0.3056, allocations: 279.3 kB / 0.5987 GB, free: 13.03 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.973e-06/0.3057, allocations: 4.938 kB / 0.5987 GB, free: 13.03 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3057, allocations: 0 / 0.5987 GB, free: 13.03 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.3057, allocations: 0 / 0.5987 GB, free: 13.03 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.0004106/0.3061, allocations: 400.1 kB / 0.5991 GB, free: 12.59 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.323e-05/0.3061, allocations: 13.5 kB / 0.5991 GB, free: 12.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.994e-05/0.3062, allocations: 8.844 kB / 0.5991 GB, free: 12.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001117/0.3063, allocations: 182.9 kB / 0.5993 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.385e-06/0.3063, allocations: 4.375 kB / 0.5993 GB, free: 12.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.088e-05/0.3063, allocations: 13.02 kB / 0.5993 GB, free: 12.34 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.397e-05/0.3064, allocations: 43.47 kB / 0.5993 GB, free: 12.3 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.142e-06/0.3064, allocations: 4 kB / 0.5993 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.873e-06/0.3064, allocations: 0 / 0.5993 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.3064, allocations: 0 / 0.5993 GB, free: 12.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.283e-05/0.3064, allocations: 17.45 kB / 0.5994 GB, free: 12.28 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.3066, allocations: 173.5 kB / 0.5995 GB, free: 12.06 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.39e-05/0.3066, allocations: 27.16 kB / 0.5996 GB, free: 12.02 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.812e-05/0.3066, allocations: 14.45 kB / 0.5996 GB, free: 12.01 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.154e-05/0.3067, allocations: 7.984 kB / 0.5996 GB, free: 12 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.265e-05/0.3067, allocations: 42.44 kB / 0.5996 GB, free: 11.95 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.263e-06/0.3067, allocations: 0.8125 kB / 0.5996 GB, free: 11.95 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001162/0.3068, allocations: 59.84 kB / 0.5997 GB, free: 11.89 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.633e-05/0.3068, allocations: 55.41 kB / 0.5997 GB, free: 11.82 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001021/0.3069, allocations: 172.3 kB / 0.5999 GB, free: 11.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.961e-06/0.307, allocations: 25.7 kB / 0.5999 GB, free: 11.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.782e-05/0.307, allocations: 97.62 kB / 0.6 GB, free: 11.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.849e-06/0.307, allocations: 7.891 kB / 0.6 GB, free: 11.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.151e-05/0.307, allocations: 25.72 kB / 0.6 GB, free: 11.48 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.995e-05/0.3071, allocations: 320.3 kB / 0.6003 GB, free: 11.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/0.3071, allocations: 35.98 kB / 0.6004 GB, free: 11.12 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.056e-05/0.3072, allocations: 43.98 kB / 0.6004 GB, free: 11.08 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.833e-05/0.3072, allocations: 75.61 kB / 0.6005 GB, free: 11 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.3072, allocations: 0 / 0.6005 GB, free: 11 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001077/0.3073, allocations: 128.6 kB / 0.6006 GB, free: 10.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.3074, allocations: 11.94 kB / 0.6006 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.346e-05/0.3074, allocations: 5.281 kB / 0.6006 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.169e-05/0.3074, allocations: 0 / 0.6006 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.162e-05/0.3074, allocations: 0 / 0.6006 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.3074, allocations: 1.469 kB / 0.6006 GB, free: 10.86 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.263e-05/0.3075, allocations: 7.906 kB / 0.6006 GB, free: 10.85 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.3075, allocations: 0 / 0.6006 GB, free: 10.85 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: 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 7.433e-05/0.3075, allocations: 123.1 kB / 0.6008 GB, free: 10.72 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.002e-05/0.3076, allocations: 11.84 kB / 0.6008 GB, free: 10.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.488e-05/0.3077, allocations: 62.42 kB / 0.6008 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3077, allocations: 0 / 0.6008 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3077, allocations: 5.156 kB / 0.6008 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.864e-06/0.3077, allocations: 0 / 0.6008 GB, free: 10.64 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.05e-05/0.3077, allocations: 169.7 kB / 0.601 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.3078, allocations: 1.344 kB / 0.601 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.508e-06/0.3078, allocations: 0 / 0.601 GB, free: 10.43 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3078, allocations: 3.938 kB / 0.601 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.97e-06/0.3078, allocations: 3.938 kB / 0.601 GB, free: 10.42 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.3078, allocations: 5.281 kB / 0.601 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.3078, allocations: 4 kB / 0.601 GB, free: 10.41 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.625e-05/0.3078, allocations: 82.44 kB / 0.6011 GB, free: 10.31 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.936e-05/0.3079, allocations: 92.88 kB / 0.6012 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.115e-05/0.3079, allocations: 1.344 kB / 0.6012 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.255e-05/0.3079, allocations: 0 / 0.6012 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.392e-05/0.3079, allocations: 4 kB / 0.6012 GB, free: 10.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.695e-06/0.3079, allocations: 1 kB / 0.6012 GB, free: 10.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 5.717e-05/0.308, allocations: 118.3 kB / 0.6013 GB, free: 10.09 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.308, allocations: 1.094 kB / 0.6013 GB, free: 10.09 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.3083, allocations: 83.98 kB / 0.6014 GB, free: 10 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.0004282/0.3088, allocations: 237.4 kB / 0.6016 GB, free: 9.793 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001342/0.3089, allocations: 95.17 kB / 0.6017 GB, free: 9.695 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.3089, allocations: 4 kB / 0.6017 GB, free: 9.691 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.413e-05/0.3089, allocations: 19.92 kB / 0.6017 GB, free: 9.672 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001417/0.3091, allocations: 1.344 kB / 0.6017 GB, free: 9.672 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002294/0.3093, allocations: 153.5 kB / 0.6019 GB, free: 9.496 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.3094, allocations: 0.6937 MB / 0.6025 GB, free: 8.777 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.828e-05/0.3095, allocations: 4 kB / 0.6026 GB, free: 8.773 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.247e-05/0.3095, allocations: 7.438 kB / 0.6026 GB, free: 8.766 MB / 446.1 MB Notification: Performance of SimCode: time 3e-07/0.3095, allocations: 1.281 kB / 0.6026 GB, free: 8.766 MB / 446.1 MB Notification: Performance of Templates: time 0.004274/0.3138, allocations: 2.098 MB / 0.6046 GB, free: 6.738 MB / 446.1 MB 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 -s gbode -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)