Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001709/0.001709, allocations: 98.62 kB / 16.26 MB, free: 5.934 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.002029/0.002029, allocations: 188.5 kB / 17.2 MB, free: 5.574 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.368/1.368, allocations: 222.9 MB / 240.9 MB, free: 15.21 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8173/0.8173, allocations: 122.9 MB / 413.9 MB, free: 15.88 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001286/0.001287, allocations: 59.91 kB / 0.4911 GB, free: 7.418 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3669/0.3682, allocations: 77.92 MB / 0.5672 GB, free: 32.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001792/0.37, allocations: 0.517 MB / 0.5677 GB, free: 32.31 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001802/0.3718, allocations: 1.594 MB / 0.5692 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.685e-05/0.3719, allocations: 0 / 0.5692 GB, free: 31.18 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001997/0.3721, allocations: 67.56 kB / 0.5693 GB, free: 31.17 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.044e-05/0.3721, allocations: 26.84 kB / 0.5693 GB, free: 31.17 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/IBPSA 4.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.0008097/0.3729, allocations: 251.4 kB / 0.5696 GB, free: 31.07 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.752e-05/0.373, allocations: 32.47 kB / 0.5696 GB, free: 31.06 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.836e-05/0.3731, allocations: 6.5 kB / 0.5696 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.137e-05/0.3731, allocations: 26.86 kB / 0.5696 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.531e-05/0.3732, allocations: 33.27 kB / 0.5697 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.339e-05/0.3732, allocations: 1.781 kB / 0.5697 GB, free: 31.05 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005055/0.3737, allocations: 287.5 kB / 0.5699 GB, free: 30.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.656e-05/0.3738, allocations: 37.27 kB / 0.57 GB, free: 30.94 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.952e-05/0.3738, allocations: 25.22 kB / 0.57 GB, free: 30.92 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004414/0.3743, allocations: 286.6 kB / 0.5703 GB, free: 30.84 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3743, allocations: 0 / 0.5703 GB, free: 30.84 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.3743, allocations: 1.281 kB / 0.5703 GB, free: 30.84 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.3743, allocations: 0 / 0.5703 GB, free: 30.84 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.0003731/0.3747, allocations: 436.3 kB / 0.5707 GB, free: 30.42 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.3747, allocations: 12.09 kB / 0.5707 GB, free: 30.42 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.3748, allocations: 8.938 kB / 0.5707 GB, free: 30.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001258/0.3749, allocations: 193 kB / 0.5709 GB, free: 30.2 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.045e-06/0.3749, allocations: 1.469 kB / 0.5709 GB, free: 30.2 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.107e-05/0.3749, allocations: 2.469 kB / 0.5709 GB, free: 30.2 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.812e-05/0.375, allocations: 46.11 kB / 0.5709 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.375, allocations: 4 kB / 0.5709 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.3751, allocations: 4.797 kB / 0.5709 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.3751, allocations: 1.5 kB / 0.5709 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.73e-05/0.3751, allocations: 19.67 kB / 0.571 GB, free: 30.16 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001516/0.3753, allocations: 189.3 kB / 0.5711 GB, free: 29.95 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.074e-05/0.3753, allocations: 29.09 kB / 0.5712 GB, free: 29.92 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.267e-05/0.3753, allocations: 15.25 kB / 0.5712 GB, free: 29.91 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.3754, allocations: 7.719 kB / 0.5712 GB, free: 29.91 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.3754, allocations: 37.69 kB / 0.5712 GB, free: 29.87 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.3754, allocations: 3.938 kB / 0.5712 GB, free: 29.87 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000145/0.3756, allocations: 65.81 kB / 0.5713 GB, free: 29.83 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.739e-05/0.3756, allocations: 52.02 kB / 0.5713 GB, free: 29.77 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001955/0.3758, allocations: 207 kB / 0.5715 GB, free: 29.64 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 1.057e-05/0.3758, allocations: 26.33 kB / 0.5716 GB, free: 29.61 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.953e-05/0.3759, allocations: 102.4 kB / 0.5717 GB, free: 29.52 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.348e-05/0.3759, allocations: 8.969 kB / 0.5717 GB, free: 29.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.86e-05/0.3759, allocations: 28.72 kB / 0.5717 GB, free: 29.49 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.051e-05/0.376, allocations: 324.1 kB / 0.572 GB, free: 29.18 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.653e-05/0.3761, allocations: 54.02 kB / 0.5721 GB, free: 29.17 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.755e-05/0.3762, allocations: 53.97 kB / 0.5721 GB, free: 29.16 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.3763, allocations: 103.5 kB / 0.5722 GB, free: 29.12 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.3763, allocations: 2.812 kB / 0.5722 GB, free: 29.12 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001856/0.3765, allocations: 156.3 kB / 0.5724 GB, free: 29.07 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3765, allocations: 10.59 kB / 0.5724 GB, free: 29.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.366e-05/0.3765, allocations: 10.22 kB / 0.5724 GB, free: 29.06 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.3765, allocations: 0.75 kB / 0.5724 GB, free: 29.06 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-05/0.3766, allocations: 1.125 kB / 0.5724 GB, free: 29.06 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.3766, allocations: 0.5625 kB / 0.5724 GB, free: 29.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.645e-05/0.3766, allocations: 11.19 kB / 0.5724 GB, free: 29.05 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.233e-06/0.3766, allocations: 1.719 kB / 0.5724 GB, free: 29.05 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: 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.0001055/0.3767, allocations: 133.9 kB / 0.5725 GB, free: 28.94 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.315e-05/0.3767, allocations: 15.34 kB / 0.5725 GB, free: 28.93 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.557e-05/0.3768, allocations: 68.61 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3768, allocations: 3.062 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.306e-06/0.3769, allocations: 0 / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3769, allocations: 0.6562 kB / 0.5726 GB, free: 28.89 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.49e-05/0.377, allocations: 181.9 kB / 0.5728 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.62e-07/0.377, allocations: 0 / 0.5728 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.559e-06/0.377, allocations: 2.25 kB / 0.5728 GB, free: 28.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.377, allocations: 3.938 kB / 0.5728 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.481e-06/0.377, allocations: 2.5 kB / 0.5728 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.377, allocations: 0 / 0.5728 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.377, allocations: 6.875 kB / 0.5728 GB, free: 28.68 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.081e-05/0.3771, allocations: 86.08 kB / 0.5729 GB, free: 28.61 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.451e-05/0.3771, allocations: 92.22 kB / 0.573 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.363e-05/0.3771, allocations: 3.656 kB / 0.573 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.434e-05/0.3771, allocations: 4.656 kB / 0.573 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.678e-06/0.3772, allocations: 0 / 0.573 GB, free: 28.5 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.635e-06/0.3772, allocations: 1.922 kB / 0.573 GB, free: 28.5 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001008/0.3773, allocations: 149.7 kB / 0.5731 GB, free: 28.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3773, allocations: 0.9375 kB / 0.5731 GB, free: 28.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003252/0.3776, allocations: 89.17 kB / 0.5732 GB, free: 28.39 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.0004012/0.378, allocations: 223.6 kB / 0.5734 GB, free: 28.27 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.3782, allocations: 126.3 kB / 0.5735 GB, free: 28.22 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3782, allocations: 0 / 0.5735 GB, free: 28.22 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.657e-05/0.3782, allocations: 17.47 kB / 0.5736 GB, free: 28.22 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001512/0.3784, allocations: 6.078 kB / 0.5736 GB, free: 28.21 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002754/0.3787, allocations: 216 kB / 0.5738 GB, free: 28.07 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001473/0.3788, allocations: 0.7029 MB / 0.5745 GB, free: 27.37 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.653e-05/0.3788, allocations: 2.188 kB / 0.5745 GB, free: 27.37 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.096e-05/0.3789, allocations: 8.469 kB / 0.5745 GB, free: 27.36 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3789, allocations: 2.438 kB / 0.5745 GB, free: 27.36 MB / 446.1 MB Notification: Performance of Templates: time 0.005122/0.384, allocations: 2.116 MB / 0.5765 GB, free: 27.23 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)