Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.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.001277/0.001277, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001345/0.001345, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.382/1.382, allocations: 222.9 MB / 240.2 MB, free: 4.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.764/2.764, allocations: 472.6 MB / 0.7451 GB, free: 4.633 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 64.08 kB / 0.912 GB, free: 33.39 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2907/0.2919, allocations: 159.9 MB / 1.068 GB, free: 10.42 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.002552/0.2945, allocations: 0.5157 MB / 1.069 GB, free: 9.906 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.003469/0.298, allocations: 1.608 MB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.959e-05/0.2981, allocations: 3.938 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.2983, allocations: 71.89 kB / 1.07 GB, free: 8.207 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.875e-05/0.2984, allocations: 27.91 kB / 1.07 GB, free: 8.18 MB / 0.8262 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/Buildings 12.0.0-master/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.001181/0.2996, allocations: 251.2 kB / 1.071 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.419e-05/0.2997, allocations: 31.84 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.32e-05/0.2998, allocations: 4 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.949e-05/0.2998, allocations: 23.97 kB / 1.071 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.603e-05/0.2999, allocations: 43.89 kB / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.649e-05/0.3, allocations: 0 / 1.071 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007616/0.3007, allocations: 287.5 kB / 1.071 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.3008, allocations: 27.91 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 4.965e-05/0.3009, allocations: 27.75 kB / 1.071 GB, free: 7.496 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0006265/0.3015, allocations: 287.3 kB / 1.071 GB, free: 7.215 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.3015, allocations: 4 kB / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.644e-06/0.3015, allocations: 0 / 1.071 GB, free: 7.211 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 6.302e-06/0.3016, allocations: 0 / 1.071 GB, free: 7.211 MB / 0.8262 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.000798/0.3024, allocations: 439.1 kB / 1.072 GB, free: 6.734 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 5.912e-05/0.3024, allocations: 8.031 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.79e-05/0.3025, allocations: 8.844 kB / 1.072 GB, free: 6.719 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002963/0.3028, allocations: 192 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.754e-05/0.3029, allocations: 4.375 kB / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.3029, allocations: 384 / 1.072 GB, free: 6.488 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001649/0.3031, allocations: 38.02 kB / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.311e-05/0.3031, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.3031, allocations: 0 / 1.072 GB, free: 6.445 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.3031, allocations: 8 kB / 1.072 GB, free: 6.438 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.535e-05/0.3032, allocations: 19.98 kB / 1.072 GB, free: 6.418 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000309/0.3035, allocations: 185.7 kB / 1.072 GB, free: 6.188 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 6.955e-05/0.3036, allocations: 26.52 kB / 1.072 GB, free: 6.152 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.841e-05/0.3036, allocations: 16.91 kB / 1.072 GB, free: 6.133 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 5.268e-05/0.3037, allocations: 4 kB / 1.072 GB, free: 6.129 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.516e-05/0.3037, allocations: 46.44 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.522e-06/0.3037, allocations: 0 / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0002647/0.304, allocations: 69.5 kB / 1.072 GB, free: 6 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.743e-05/0.3041, allocations: 55.39 kB / 1.072 GB, free: 5.934 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003204/0.3044, allocations: 211.3 kB / 1.073 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.552e-05/0.3045, allocations: 25.7 kB / 1.073 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 8.94e-05/0.3046, allocations: 108.1 kB / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.831e-05/0.3046, allocations: 0 / 1.073 GB, free: 5.578 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.642e-05/0.3047, allocations: 33.83 kB / 1.073 GB, free: 5.539 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.3048, allocations: 326.8 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.352e-05/0.3049, allocations: 55.97 kB / 1.073 GB, free: 5.156 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.961e-05/0.305, allocations: 51.98 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001293/0.3052, allocations: 90.75 kB / 1.073 GB, free: 5.016 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3052, allocations: 3.938 kB / 1.073 GB, free: 5.012 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002297/0.3054, allocations: 161.5 kB / 1.073 GB, free: 4.848 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.631e-05/0.3054, allocations: 7.938 kB / 1.073 GB, free: 4.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/0.3055, allocations: 4 kB / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.3055, allocations: 64 / 1.073 GB, free: 4.836 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.471e-05/0.3055, allocations: 7.938 kB / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.779e-06/0.3055, allocations: 0 / 1.073 GB, free: 4.828 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.548e-05/0.3056, allocations: 19.78 kB / 1.073 GB, free: 4.809 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.475e-06/0.3056, allocations: 0 / 1.073 GB, free: 4.809 MB / 0.8262 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.0001911/0.3058, allocations: 129.8 kB / 1.074 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.787e-05/0.3058, allocations: 15.75 kB / 1.074 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001462/0.306, allocations: 66.23 kB / 1.074 GB, free: 4.586 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.306, allocations: 8.016 kB / 1.074 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.92e-06/0.306, allocations: 0 / 1.074 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.306, allocations: 0 / 1.074 GB, free: 4.578 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000181/0.3062, allocations: 177.7 kB / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3062, allocations: 0 / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.792e-06/0.3062, allocations: 0 / 1.074 GB, free: 4.355 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.561e-06/0.3062, allocations: 3.938 kB / 1.074 GB, free: 4.352 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.943e-06/0.3063, allocations: 4 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.3063, allocations: 4 kB / 1.074 GB, free: 4.344 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3063, allocations: 3.938 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001155/0.3064, allocations: 81.02 kB / 1.074 GB, free: 4.242 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.816e-05/0.3065, allocations: 92.86 kB / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.6e-05/0.3065, allocations: 0 / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.025e-05/0.3065, allocations: 0 / 1.074 GB, free: 4.133 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.637e-05/0.3066, allocations: 8 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.3066, allocations: 0 / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001526/0.3067, allocations: 155.1 kB / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.71e-07/0.3067, allocations: 32 / 1.074 GB, free: 3.973 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0005351/0.3073, allocations: 87.98 kB / 1.074 GB, free: 3.887 MB / 0.8262 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.0007247/0.308, allocations: 225.5 kB / 1.074 GB, free: 3.68 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002421/0.3083, allocations: 129.6 kB / 1.075 GB, free: 3.547 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3083, allocations: 4.062 kB / 1.075 GB, free: 3.543 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 2.622e-05/0.3083, allocations: 11.98 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000233/0.3086, allocations: 8 kB / 1.075 GB, free: 3.523 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004283/0.309, allocations: 210.1 kB / 1.075 GB, free: 3.293 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003206/0.3093, allocations: 0.7002 MB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.334e-05/0.3094, allocations: 3.984 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.074e-05/0.3094, allocations: 11.44 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of SimCode: time 4.11e-07/0.3094, allocations: 0 / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of Templates: time 0.007908/0.3173, allocations: 2.115 MB / 1.078 GB, free: 444 kB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)