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.001147/0.001147, allocations: 104 kB / 15.98 MB, free: 6.348 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.00116/0.00116, allocations: 195.6 kB / 16.91 MB, free: 6.191 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.374/1.374, allocations: 222.9 MB / 240.6 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7599/0.7599, allocations: 122.9 MB / 413.6 MB, free: 16 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 59.91 kB / 0.4906 GB, free: 7.77 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3539/0.3552, allocations: 77.93 MB / 0.5667 GB, free: 32.7 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001686/0.3569, allocations: 0.569 MB / 0.5673 GB, free: 32.36 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002033/0.359, allocations: 1.6 MB / 0.5688 GB, free: 31.22 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.991e-05/0.359, allocations: 0 / 0.5688 GB, free: 31.22 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001813/0.3592, allocations: 67.53 kB / 0.5689 GB, free: 31.21 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.567e-05/0.3593, allocations: 33.44 kB / 0.5689 GB, free: 31.21 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.0008776/0.3602, allocations: 214.8 kB / 0.5691 GB, free: 31.12 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 7.63e-05/0.3603, allocations: 45.23 kB / 0.5692 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.933e-05/0.3603, allocations: 2.891 kB / 0.5692 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.243e-05/0.3604, allocations: 21.25 kB / 0.5692 GB, free: 31.11 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.608e-05/0.3604, allocations: 40.36 kB / 0.5692 GB, free: 31.1 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.233e-05/0.3605, allocations: 3.938 kB / 0.5692 GB, free: 31.1 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005167/0.361, allocations: 281.6 kB / 0.5695 GB, free: 31.01 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 6.236e-05/0.3611, allocations: 29.11 kB / 0.5695 GB, free: 31 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.112e-05/0.3611, allocations: 25.48 kB / 0.5696 GB, free: 30.98 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004615/0.3616, allocations: 287.5 kB / 0.5698 GB, free: 30.91 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.3616, allocations: 5.688 kB / 0.5698 GB, free: 30.9 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3616, allocations: 0 / 0.5698 GB, free: 30.9 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.197e-05/0.3616, allocations: 1.344 kB / 0.5698 GB, free: 30.9 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.0004477/0.3621, allocations: 438.6 kB / 0.5703 GB, free: 30.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.3621, allocations: 9.938 kB / 0.5703 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.384e-05/0.3622, allocations: 10.2 kB / 0.5703 GB, free: 30.48 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.3623, allocations: 189.5 kB / 0.5705 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.297e-06/0.3623, allocations: 384 / 0.5705 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.377e-06/0.3624, allocations: 2 kB / 0.5705 GB, free: 30.27 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.3625, allocations: 46.3 kB / 0.5705 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.749e-06/0.3625, allocations: 0.6094 kB / 0.5705 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.3625, allocations: 1.812 kB / 0.5705 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.919e-06/0.3625, allocations: 0 / 0.5705 GB, free: 30.23 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.803e-05/0.3625, allocations: 22.8 kB / 0.5705 GB, free: 30.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001671/0.3627, allocations: 186.2 kB / 0.5707 GB, free: 30.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.646e-05/0.3628, allocations: 30.27 kB / 0.5707 GB, free: 29.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.887e-05/0.3628, allocations: 18.7 kB / 0.5708 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.3629, allocations: 8.484 kB / 0.5708 GB, free: 29.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.08e-05/0.3629, allocations: 40.09 kB / 0.5708 GB, free: 29.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.3629, allocations: 1.219 kB / 0.5708 GB, free: 29.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000166/0.3631, allocations: 64.75 kB / 0.5709 GB, free: 29.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.152e-05/0.3631, allocations: 53.12 kB / 0.5709 GB, free: 29.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000205/0.3633, allocations: 205.7 kB / 0.5711 GB, free: 29.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.418e-06/0.3633, allocations: 26.98 kB / 0.5711 GB, free: 29.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.323e-05/0.3634, allocations: 106.7 kB / 0.5712 GB, free: 29.58 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.22e-05/0.3634, allocations: 3.906 kB / 0.5712 GB, free: 29.58 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.3635, allocations: 38.02 kB / 0.5713 GB, free: 29.55 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.333e-05/0.3635, allocations: 324.3 kB / 0.5716 GB, free: 29.23 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.956e-05/0.3636, allocations: 54.58 kB / 0.5716 GB, free: 29.23 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.206e-05/0.3637, allocations: 54.88 kB / 0.5717 GB, free: 29.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.3638, allocations: 99.34 kB / 0.5718 GB, free: 29.18 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3638, allocations: 7.938 kB / 0.5718 GB, free: 29.18 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001765/0.364, allocations: 161.2 kB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.54e-05/0.364, allocations: 10.03 kB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.536e-05/0.364, allocations: 2.406 kB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.241e-05/0.364, allocations: 0.7188 kB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.476e-05/0.364, allocations: 0.7031 kB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.3641, allocations: 2.344 kB / 0.572 GB, free: 29.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.638e-05/0.3641, allocations: 10.12 kB / 0.572 GB, free: 29.11 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.3641, allocations: 2.266 kB / 0.572 GB, free: 29.11 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.0001429/0.3643, allocations: 129.9 kB / 0.5721 GB, free: 29 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.439e-05/0.3643, allocations: 15.69 kB / 0.5721 GB, free: 28.98 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001049/0.3644, allocations: 68.77 kB / 0.5722 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.3644, allocations: 0.7031 kB / 0.5722 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3644, allocations: 1.969 kB / 0.5722 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.3644, allocations: 0 / 0.5722 GB, free: 28.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.454e-05/0.3645, allocations: 183.1 kB / 0.5724 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.51e-07/0.3645, allocations: 1.062 kB / 0.5724 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.2e-06/0.3645, allocations: 0.7031 kB / 0.5724 GB, free: 28.75 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.3645, allocations: 9.594 kB / 0.5724 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.37e-06/0.3645, allocations: 0 / 0.5724 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/0.3645, allocations: 3.281 kB / 0.5724 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.3646, allocations: 0 / 0.5724 GB, free: 28.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.716e-05/0.3646, allocations: 86.28 kB / 0.5725 GB, free: 28.66 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.598e-05/0.3647, allocations: 92.39 kB / 0.5725 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.352e-05/0.3647, allocations: 1.656 kB / 0.5725 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.446e-05/0.3647, allocations: 2.891 kB / 0.5725 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.26e-05/0.3647, allocations: 1.766 kB / 0.5726 GB, free: 28.56 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.256e-06/0.3647, allocations: 1.062 kB / 0.5726 GB, free: 28.56 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001099/0.3648, allocations: 150 kB / 0.5727 GB, free: 28.47 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3649, allocations: 0 / 0.5727 GB, free: 28.47 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003934/0.3653, allocations: 88.22 kB / 0.5728 GB, free: 28.45 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.0004959/0.3658, allocations: 232.4 kB / 0.573 GB, free: 28.33 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0002065/0.366, allocations: 127.1 kB / 0.5731 GB, free: 28.28 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.366, allocations: 0 / 0.5731 GB, free: 28.28 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.956e-05/0.366, allocations: 15.47 kB / 0.5731 GB, free: 28.27 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001586/0.3662, allocations: 7.719 kB / 0.5731 GB, free: 28.27 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003216/0.3665, allocations: 231.1 kB / 0.5734 GB, free: 28.11 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001329/0.3666, allocations: 0.7047 MB / 0.5741 GB, free: 27.41 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.801e-05/0.3667, allocations: 2.406 kB / 0.5741 GB, free: 27.41 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.371e-05/0.3667, allocations: 8.812 kB / 0.5741 GB, free: 27.4 MB / 446.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3667, allocations: 0.7812 kB / 0.5741 GB, free: 27.4 MB / 446.1 MB Notification: Performance of Templates: time 0.00578/0.3725, allocations: 2.117 MB / 0.5761 GB, free: 27.27 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)