Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.0016/0.0016, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00207/0.00207, allocations: 189.9 kB / 16.25 MB, free: 6.621 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.42/1.42, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.751/2.751, allocations: 472.6 MB / 0.7448 GB, free: 4.867 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 61.81 kB / 0.9115 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3568, allocations: 159.9 MB / 1.068 GB, free: 10.77 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001826/0.3587, allocations: 0.5832 MB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002086/0.3608, allocations: 1.608 MB / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.734e-05/0.3608, allocations: 0 / 1.07 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.361, allocations: 55.91 kB / 1.07 GB, free: 8.504 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.837e-05/0.3611, allocations: 27.91 kB / 1.07 GB, free: 8.477 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.0008824/0.362, allocations: 231.4 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.144e-05/0.362, allocations: 27.97 kB / 1.07 GB, free: 8.223 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.447e-05/0.3621, allocations: 7.938 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 5.253e-05/0.3621, allocations: 23.95 kB / 1.07 GB, free: 8.191 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 6.106e-05/0.3622, allocations: 39.84 kB / 1.07 GB, free: 8.152 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.376e-05/0.3622, allocations: 4 kB / 1.07 GB, free: 8.148 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000465/0.3627, allocations: 291.6 kB / 1.07 GB, free: 7.863 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 5.074e-05/0.3628, allocations: 23.92 kB / 1.071 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.945e-05/0.3628, allocations: 27.73 kB / 1.071 GB, free: 7.812 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003826/0.3632, allocations: 291.3 kB / 1.071 GB, free: 7.527 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 5.961e-06/0.3632, allocations: 4 kB / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.312e-06/0.3632, allocations: 0 / 1.071 GB, free: 7.523 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.484e-06/0.3632, allocations: 0 / 1.071 GB, free: 7.523 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.0004268/0.3636, allocations: 431.1 kB / 1.071 GB, free: 7.055 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.3637, allocations: 16.02 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.3637, allocations: 12.84 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001542/0.3639, allocations: 184.1 kB / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.3639, allocations: 384 / 1.071 GB, free: 6.809 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.748e-06/0.3639, allocations: 4.359 kB / 1.071 GB, free: 6.805 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.925e-05/0.364, allocations: 46.02 kB / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.364, allocations: 0 / 1.071 GB, free: 6.754 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.3641, allocations: 3.984 kB / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.3641, allocations: 0 / 1.071 GB, free: 6.75 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.392e-05/0.3641, allocations: 23.92 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001713/0.3643, allocations: 177.7 kB / 1.072 GB, free: 6.504 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.49e-05/0.3643, allocations: 30.62 kB / 1.072 GB, free: 6.465 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.182e-05/0.3644, allocations: 20.8 kB / 1.072 GB, free: 6.441 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 3.114e-05/0.3644, allocations: 7.984 kB / 1.072 GB, free: 6.434 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.3644, allocations: 34.5 kB / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.112e-06/0.3644, allocations: 0 / 1.072 GB, free: 6.391 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001561/0.3646, allocations: 69.56 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.125e-05/0.3646, allocations: 59.41 kB / 1.072 GB, free: 6.246 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001874/0.3648, allocations: 219.3 kB / 1.072 GB, free: 6.023 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.3648, allocations: 25.7 kB / 1.072 GB, free: 5.992 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 6.138e-05/0.3649, allocations: 104.1 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.08e-05/0.3649, allocations: 4 kB / 1.072 GB, free: 5.883 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.365, allocations: 25.7 kB / 1.072 GB, free: 5.852 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001069/0.3651, allocations: 326.8 kB / 1.073 GB, free: 5.523 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.073e-05/0.3651, allocations: 51.98 kB / 1.073 GB, free: 5.473 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.359e-05/0.3652, allocations: 59.97 kB / 1.073 GB, free: 5.414 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001024/0.3653, allocations: 94.47 kB / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.3653, allocations: 0 / 1.073 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001833/0.3655, allocations: 169.4 kB / 1.073 GB, free: 5.148 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.3655, allocations: 9.656 kB / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.3656, allocations: 0 / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.3656, allocations: 0 / 1.073 GB, free: 5.141 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.442e-05/0.3656, allocations: 7.938 kB / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.3656, allocations: 0 / 1.073 GB, free: 5.133 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.825e-05/0.3656, allocations: 15.84 kB / 1.073 GB, free: 5.117 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.3656, allocations: 4 kB / 1.073 GB, free: 5.113 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.0001281/0.3658, allocations: 131.4 kB / 1.073 GB, free: 4.977 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.664e-05/0.3658, allocations: 15.75 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.3659, allocations: 62.19 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3659, allocations: 4 kB / 1.073 GB, free: 4.891 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.394e-06/0.3659, allocations: 3.984 kB / 1.073 GB, free: 4.887 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.366, allocations: 4.031 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00012/0.3661, allocations: 181.7 kB / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.3661, allocations: 0 / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.079e-06/0.3661, allocations: 0 / 1.073 GB, free: 4.656 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.3661, allocations: 3.938 kB / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.661e-06/0.3661, allocations: 0 / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.3661, allocations: 0 / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3661, allocations: 0 / 1.073 GB, free: 4.652 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.551e-05/0.3662, allocations: 89.02 kB / 1.073 GB, free: 4.547 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.025e-05/0.3663, allocations: 92.86 kB / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.329e-05/0.3663, allocations: 0 / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.309e-05/0.3663, allocations: 0 / 1.074 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.358e-05/0.3663, allocations: 3.938 kB / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3663, allocations: 0 / 1.074 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001041/0.3664, allocations: 151.1 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.113e-06/0.3664, allocations: 0 / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003311/0.3668, allocations: 87.92 kB / 1.074 GB, free: 4.199 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.0004871/0.3673, allocations: 233 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001739/0.3675, allocations: 125.7 kB / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3675, allocations: 0 / 1.074 GB, free: 3.852 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.847e-05/0.3675, allocations: 11.98 kB / 1.074 GB, free: 3.84 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001476/0.3677, allocations: 8.125 kB / 1.074 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003471/0.368, allocations: 226 kB / 1.074 GB, free: 3.586 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002678/0.3683, allocations: 0.7002 MB / 1.075 GB, free: 2.859 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.928e-05/0.3683, allocations: 11.94 kB / 1.075 GB, free: 2.848 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.696e-05/0.3683, allocations: 7.438 kB / 1.075 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of SimCode: time 2.6e-07/0.3683, allocations: 0 / 1.075 GB, free: 2.84 MB / 0.8262 GB Notification: Performance of Templates: time 0.004987/0.3733, allocations: 2.12 MB / 1.077 GB, free: 0.7227 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)