Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_Buildings.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/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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.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.001127/0.001127, 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.001313/0.001313, allocations: 194.5 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.358/1.358, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.829/2.829, allocations: 472.6 MB / 0.7451 GB, free: 4.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001503, allocations: 59.45 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3468/0.3484, allocations: 159.9 MB / 1.068 GB, free: 10.45 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.002171/0.3506, allocations: 0.5106 MB / 1.069 GB, free: 9.938 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002765/0.3534, allocations: 1.62 MB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.309e-05/0.3534, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.3536, allocations: 19.91 kB / 1.07 GB, free: 8.281 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.406e-05/0.3537, allocations: 4 kB / 1.07 GB, free: 8.277 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.001062/0.3547, allocations: 247.3 kB / 1.071 GB, free: 8.035 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.485e-05/0.3548, allocations: 31.86 kB / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.677e-05/0.3548, allocations: 0 / 1.071 GB, free: 8.004 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.566e-05/0.3549, allocations: 15.97 kB / 1.071 GB, free: 7.988 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.278e-05/0.3549, allocations: 15.92 kB / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.394e-05/0.355, allocations: 0 / 1.071 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000543/0.3555, allocations: 291.6 kB / 1.071 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.52e-05/0.3556, allocations: 19.92 kB / 1.071 GB, free: 7.668 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.194e-05/0.3556, allocations: 23.8 kB / 1.071 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0004271/0.356, allocations: 271.4 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 2.705e-06/0.356, allocations: 4 kB / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.42e-07/0.3561, allocations: 0 / 1.071 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.3561, allocations: 0 / 1.071 GB, free: 7.375 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.0004536/0.3565, allocations: 407.4 kB / 1.072 GB, free: 6.93 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.527e-05/0.3566, allocations: 12.03 kB / 1.072 GB, free: 6.918 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.088e-05/0.3566, allocations: 4.844 kB / 1.072 GB, free: 6.914 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001511/0.3568, allocations: 184.2 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.454e-06/0.3568, allocations: 384 / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.233e-05/0.3568, allocations: 4.375 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.677e-05/0.3569, allocations: 41.95 kB / 1.072 GB, free: 6.645 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.4e-06/0.3569, allocations: 4 kB / 1.072 GB, free: 6.641 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.175e-05/0.3569, allocations: 7.922 kB / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.3569, allocations: 0 / 1.072 GB, free: 6.633 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.343e-05/0.357, allocations: 12 kB / 1.072 GB, free: 6.621 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001933/0.3572, allocations: 173.6 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.455e-05/0.3572, allocations: 22.58 kB / 1.072 GB, free: 6.371 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.729e-05/0.3573, allocations: 16.91 kB / 1.072 GB, free: 6.352 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.686e-05/0.3573, allocations: 8 kB / 1.072 GB, free: 6.344 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.183e-05/0.3573, allocations: 42.44 kB / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.3573, allocations: 0 / 1.072 GB, free: 6.293 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001613/0.3575, allocations: 61.58 kB / 1.072 GB, free: 6.227 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.186e-05/0.3575, allocations: 55.41 kB / 1.072 GB, free: 6.16 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.3577, allocations: 164.8 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.3577, allocations: 29.69 kB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.047e-05/0.3578, allocations: 96.27 kB / 1.072 GB, free: 5.859 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.263e-05/0.3578, allocations: 3.906 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.37e-05/0.3579, allocations: 29.7 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001173/0.358, allocations: 318.8 kB / 1.073 GB, free: 5.5 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.776e-05/0.3581, allocations: 39.98 kB / 1.073 GB, free: 5.461 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.159e-05/0.3581, allocations: 47.92 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.587e-05/0.3582, allocations: 72.81 kB / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3582, allocations: 0 / 1.073 GB, free: 5.34 MB / 0.8262 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001643/0.3584, allocations: 125.6 kB / 1.073 GB, free: 5.211 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/0.3584, allocations: 15.94 kB / 1.073 GB, free: 5.195 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.619e-05/0.3584, allocations: 3.984 kB / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3585, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.623e-05/0.3585, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.3585, allocations: 0 / 1.073 GB, free: 5.191 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.969e-05/0.3585, allocations: 7.906 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.758e-06/0.3585, allocations: 0 / 1.073 GB, free: 5.184 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: 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.0001632/0.3587, allocations: 121.8 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.749e-05/0.3587, allocations: 19.78 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.3589, allocations: 61.48 kB / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.3589, allocations: 0 / 1.073 GB, free: 4.965 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3589, allocations: 4 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-06/0.3589, allocations: 0 / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.359, allocations: 173.6 kB / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.359, allocations: 0 / 1.073 GB, free: 4.742 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.123e-06/0.359, allocations: 3.984 kB / 1.073 GB, free: 4.738 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.359, allocations: 3.938 kB / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.799e-06/0.359, allocations: 0 / 1.073 GB, free: 4.734 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.3591, allocations: 8.031 kB / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3591, allocations: 0 / 1.073 GB, free: 4.727 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.589e-05/0.3592, allocations: 84.91 kB / 1.074 GB, free: 4.625 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/0.3592, allocations: 84.95 kB / 1.074 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.266e-05/0.3592, allocations: 0 / 1.074 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.204e-05/0.3592, allocations: 0 / 1.074 GB, free: 4.523 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.558e-05/0.3592, allocations: 4 kB / 1.074 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.589e-06/0.3593, allocations: 8.016 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 7.882e-05/0.3593, allocations: 118.1 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.8e-07/0.3594, allocations: 0 / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003391/0.3597, allocations: 83.98 kB / 1.074 GB, free: 4.316 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.0005106/0.3602, allocations: 233.2 kB / 1.074 GB, free: 4.105 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001716/0.3604, allocations: 101.7 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3604, allocations: 11.88 kB / 1.074 GB, free: 3.988 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.702e-05/0.3604, allocations: 11.94 kB / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001409/0.3606, allocations: 0 / 1.074 GB, free: 3.977 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002822/0.3609, allocations: 169.5 kB / 1.074 GB, free: 3.785 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002515/0.3611, allocations: 0.6885 MB / 1.075 GB, free: 3.07 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.905e-05/0.3612, allocations: 4 kB / 1.075 GB, free: 3.066 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.644e-05/0.3612, allocations: 7.438 kB / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3612, allocations: 0 / 1.075 GB, free: 3.059 MB / 0.8262 GB Notification: Performance of Templates: time 0.005297/0.3665, allocations: 2.087 MB / 1.077 GB, free: 0.9688 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.sim & ./Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)