Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0009812/0.0009812, allocations: 110.4 kB / 16.42 MB, free: 6.508 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.0009624/0.0009624, allocations: 185.5 kB / 17.35 MB, free: 5.738 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.209/1.209, allocations: 222.9 MB / 241.1 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001988/0.001988, allocations: 297.7 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8973/0.8973, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001704/0.001705, allocations: 91.86 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3549/0.3566, allocations: 86.98 MB / 0.767 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00145/0.3581, allocations: 0.519 MB / 0.7675 GB, free: 3.383 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.001853/0.36, allocations: 1.6 MB / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.529e-05/0.36, allocations: 0 / 0.7691 GB, free: 1.766 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001577/0.3602, allocations: 71.84 kB / 0.7692 GB, free: 1.695 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.279e-05/0.3602, allocations: 31.89 kB / 0.7692 GB, free: 1.664 MB / 0.5294 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/BuildingSystems 2.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.0007282/0.361, allocations: 242.5 kB / 0.7694 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 6.454e-05/0.361, allocations: 31.91 kB / 0.7695 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 3.198e-05/0.3611, allocations: 3.984 kB / 0.7695 GB, free: 1.395 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 3.341e-05/0.3611, allocations: 27.91 kB / 0.7695 GB, free: 1.367 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.749e-05/0.3612, allocations: 43.89 kB / 0.7695 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.171e-05/0.3612, allocations: 0 / 0.7695 GB, free: 1.324 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004855/0.3617, allocations: 335.5 kB / 0.7698 GB, free: 0.9961 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 4.647e-05/0.3617, allocations: 27.92 kB / 0.7699 GB, free: 0.9688 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.637e-05/0.3618, allocations: 19.75 kB / 0.7699 GB, free: 0.9492 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0003368/0.3621, allocations: 295 kB / 0.7702 GB, free: 0.6641 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.3621, allocations: 7.938 kB / 0.7702 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.122e-06/0.3621, allocations: 0 / 0.7702 GB, free: 0.6562 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 7.113e-06/0.3622, allocations: 4 kB / 0.7702 GB, free: 0.6523 MB / 0.5294 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.0003838/0.3625, allocations: 429.5 kB / 0.7706 GB, free: 192 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.343e-05/0.3626, allocations: 12.03 kB / 0.7706 GB, free: 180 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.77e-05/0.3626, allocations: 4.844 kB / 0.7706 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001536/0.3628, allocations: 196.1 kB / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.3628, allocations: 384 / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.026e-05/0.3628, allocations: 384 / 0.7708 GB, free: 15.94 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.306e-05/0.3629, allocations: 45.98 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.72e-06/0.3629, allocations: 4 kB / 0.7708 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.444e-06/0.3629, allocations: 4 kB / 0.7708 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.337e-06/0.3629, allocations: 3.938 kB / 0.7709 GB, free: 15.88 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.737e-05/0.363, allocations: 19.98 kB / 0.7709 GB, free: 15.86 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001518/0.3631, allocations: 181.7 kB / 0.771 GB, free: 15.63 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 3.683e-05/0.3632, allocations: 30.5 kB / 0.7711 GB, free: 15.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.977e-05/0.3632, allocations: 12.92 kB / 0.7711 GB, free: 15.58 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 3.166e-05/0.3632, allocations: 11.91 kB / 0.7711 GB, free: 15.57 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.883e-05/0.3633, allocations: 42.48 kB / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3633, allocations: 0 / 0.7711 GB, free: 15.52 MB / 0.545 GB Notification: Performance of matching and sorting (n=1): time 0.0001265/0.3634, allocations: 65.59 kB / 0.7712 GB, free: 15.45 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.382e-05/0.3634, allocations: 51.41 kB / 0.7712 GB, free: 15.38 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001642/0.3636, allocations: 211.5 kB / 0.7715 GB, free: 15.17 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.3636, allocations: 25.7 kB / 0.7715 GB, free: 15.14 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 5.848e-05/0.3637, allocations: 100.1 kB / 0.7716 GB, free: 15.04 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.073e-05/0.3637, allocations: 3.906 kB / 0.7716 GB, free: 15.03 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.3637, allocations: 37.77 kB / 0.7716 GB, free: 14.99 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.57e-05/0.3638, allocations: 326.8 kB / 0.7719 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.281e-05/0.3639, allocations: 55.92 kB / 0.772 GB, free: 14.61 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.029e-05/0.364, allocations: 55.97 kB / 0.772 GB, free: 14.55 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.541e-05/0.364, allocations: 99.95 kB / 0.7721 GB, free: 14.45 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.3641, allocations: 0 / 0.7721 GB, free: 14.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001562/0.3642, allocations: 149.6 kB / 0.7723 GB, free: 14.3 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3642, allocations: 11.94 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.3643, allocations: 4.047 kB / 0.7723 GB, free: 14.29 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.487e-06/0.3643, allocations: 4 kB / 0.7723 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.04e-05/0.3643, allocations: 0 / 0.7723 GB, free: 14.28 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.623e-06/0.3643, allocations: 7.938 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.382e-05/0.3643, allocations: 7.844 kB / 0.7723 GB, free: 14.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.3643, allocations: 0 / 0.7723 GB, free: 14.27 MB / 0.545 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.0001092/0.3644, allocations: 133.8 kB / 0.7724 GB, free: 14.12 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.757e-05/0.3645, allocations: 19.73 kB / 0.7724 GB, free: 14.11 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.264e-05/0.3646, allocations: 66.19 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.3646, allocations: 0 / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3646, allocations: 4 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.3e-05/0.3646, allocations: 81.02 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.3647, allocations: 3.984 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.548e-05/0.3647, allocations: 4 kB / 0.7726 GB, free: 13.93 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.266e-06/0.3647, allocations: 3.938 kB / 0.7726 GB, free: 13.92 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.611e-05/0.3648, allocations: 124.9 kB / 0.7727 GB, free: 13.79 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001159/0.3649, allocations: 238.6 kB / 0.7729 GB, free: 13.54 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 1.86e-05/0.3649, allocations: 11.98 kB / 0.773 GB, free: 13.53 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001078/0.365, allocations: 154.2 kB / 0.7731 GB, free: 13.38 MB / 0.545 GB Notification: Performance of Backend: time 2.11e-07/0.365, allocations: 0 / 0.7731 GB, free: 13.38 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0007148/0.3658, allocations: 332.5 kB / 0.7734 GB, free: 13.07 MB / 0.545 GB Notification: Performance of SimCode: time 0.0004128/0.3662, allocations: 0.6467 MB / 0.7741 GB, free: 12.37 MB / 0.545 GB Notification: Performance of Templates: time 0.004459/0.3706, allocations: 2.199 MB / 0.7762 GB, free: 10.18 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & ./BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)