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.001105/0.001105, allocations: 108.1 kB / 17.04 MB, free: 6.078 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.001142/0.001142, allocations: 196 kB / 17.98 MB, free: 5.16 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.297/1.297, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7332/0.7332, allocations: 115.1 MB / 406.9 MB, free: 6.352 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 67.89 kB / 494.8 MB, free: 15.9 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3165/0.3178, allocations: 76.14 MB / 0.5576 GB, free: 36.76 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001494/0.3194, allocations: 0.5042 MB / 0.5581 GB, free: 36.47 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001663/0.321, allocations: 1.605 MB / 0.5596 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.934e-05/0.3211, allocations: 0.75 kB / 0.5596 GB, free: 35.34 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001622/0.3213, allocations: 64.28 kB / 0.5597 GB, free: 35.33 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.297e-05/0.3213, allocations: 27.64 kB / 0.5597 GB, free: 35.33 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.0008515/0.3222, allocations: 247.5 kB / 0.5599 GB, free: 35.23 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.659e-05/0.3223, allocations: 34.45 kB / 0.56 GB, free: 35.22 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.765e-05/0.3223, allocations: 4.359 kB / 0.56 GB, free: 35.22 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.239e-05/0.3224, allocations: 24.5 kB / 0.56 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.203e-05/0.3224, allocations: 39 kB / 0.56 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.27e-05/0.3225, allocations: 1.219 kB / 0.56 GB, free: 35.21 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000538/0.323, allocations: 331.4 kB / 0.5604 GB, free: 35.11 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.058e-05/0.3231, allocations: 27.17 kB / 0.5604 GB, free: 35.1 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.687e-05/0.3231, allocations: 32.42 kB / 0.5604 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003719/0.3235, allocations: 296.5 kB / 0.5607 GB, free: 34.99 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.3235, allocations: 0 / 0.5607 GB, free: 34.99 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3235, allocations: 0 / 0.5607 GB, free: 34.99 MB / 446.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.3235, allocations: 0 / 0.5607 GB, free: 34.99 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.0003313/0.3238, allocations: 429.1 kB / 0.5611 GB, free: 34.58 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.019e-05/0.3239, allocations: 10.19 kB / 0.5611 GB, free: 34.58 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.3239, allocations: 12.97 kB / 0.5611 GB, free: 34.57 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/0.324, allocations: 194 kB / 0.5613 GB, free: 34.36 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.835e-06/0.324, allocations: 1.812 kB / 0.5613 GB, free: 34.36 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.3241, allocations: 5.438 kB / 0.5613 GB, free: 34.35 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.742e-05/0.3241, allocations: 46.09 kB / 0.5614 GB, free: 34.31 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.3242, allocations: 0.9844 kB / 0.5614 GB, free: 34.31 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.3242, allocations: 6.344 kB / 0.5614 GB, free: 34.31 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.417e-06/0.3242, allocations: 0 / 0.5614 GB, free: 34.31 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.891e-05/0.3242, allocations: 18.77 kB / 0.5614 GB, free: 34.31 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001199/0.3243, allocations: 186.4 kB / 0.5616 GB, free: 34.11 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.719e-05/0.3244, allocations: 25.8 kB / 0.5616 GB, free: 34.08 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.938e-05/0.3244, allocations: 18.61 kB / 0.5616 GB, free: 34.07 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.058e-05/0.3244, allocations: 8.234 kB / 0.5616 GB, free: 34.07 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.514e-05/0.3245, allocations: 41.19 kB / 0.5617 GB, free: 34.02 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.3245, allocations: 0.9844 kB / 0.5617 GB, free: 34.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001265/0.3246, allocations: 69.23 kB / 0.5617 GB, free: 33.98 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.673e-05/0.3246, allocations: 52.12 kB / 0.5618 GB, free: 33.92 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.3248, allocations: 208.2 kB / 0.562 GB, free: 33.8 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 6.072e-06/0.3248, allocations: 25.7 kB / 0.562 GB, free: 33.77 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.582e-05/0.3248, allocations: 105.4 kB / 0.5621 GB, free: 33.67 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.417e-06/0.3248, allocations: 1.094 kB / 0.5621 GB, free: 33.67 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.3249, allocations: 36.61 kB / 0.5621 GB, free: 33.64 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.39e-05/0.3249, allocations: 322.8 kB / 0.5624 GB, free: 33.33 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.24e-05/0.325, allocations: 54.66 kB / 0.5625 GB, free: 33.32 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.92e-05/0.3251, allocations: 58.06 kB / 0.5625 GB, free: 33.31 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.621e-05/0.3252, allocations: 100.2 kB / 0.5626 GB, free: 33.28 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.3252, allocations: 0 / 0.5626 GB, free: 33.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001502/0.3253, allocations: 162.4 kB / 0.5628 GB, free: 33.22 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.208e-05/0.3253, allocations: 14.25 kB / 0.5628 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.3254, allocations: 1.672 kB / 0.5628 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.066e-05/0.3254, allocations: 1.062 kB / 0.5628 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.185e-05/0.3254, allocations: 2.188 kB / 0.5628 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.137e-06/0.3254, allocations: 0 / 0.5628 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.468e-05/0.3254, allocations: 9.469 kB / 0.5628 GB, free: 33.21 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.3254, allocations: 2.266 kB / 0.5628 GB, free: 33.21 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 9.573e-05/0.3255, allocations: 130.2 kB / 0.563 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.33e-05/0.3256, allocations: 10.66 kB / 0.563 GB, free: 33.09 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001038/0.3257, allocations: 74.83 kB / 0.563 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.284e-06/0.3257, allocations: 1 kB / 0.563 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.3257, allocations: 3.938 kB / 0.563 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.3257, allocations: 0.6562 kB / 0.563 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.487e-05/0.3258, allocations: 183.5 kB / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3258, allocations: 0.6094 kB / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.668e-06/0.3258, allocations: 1.625 kB / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.747e-06/0.3258, allocations: 6.703 kB / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.638e-06/0.3258, allocations: 0 / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3258, allocations: 2.078 kB / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3258, allocations: 0 / 0.5632 GB, free: 32.84 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.306e-05/0.3259, allocations: 82.34 kB / 0.5633 GB, free: 32.77 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.233e-05/0.3259, allocations: 92.92 kB / 0.5634 GB, free: 32.66 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.3259, allocations: 3.219 kB / 0.5634 GB, free: 32.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.364e-05/0.326, allocations: 7.938 kB / 0.5634 GB, free: 32.65 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.07e-05/0.326, allocations: 5.562 kB / 0.5634 GB, free: 32.65 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.434e-06/0.326, allocations: 0.5938 kB / 0.5634 GB, free: 32.65 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.19e-05/0.3261, allocations: 151.2 kB / 0.5636 GB, free: 32.56 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3261, allocations: 1.156 kB / 0.5636 GB, free: 32.56 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003201/0.3264, allocations: 88.7 kB / 0.5636 GB, free: 32.54 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.0004151/0.3268, allocations: 226.3 kB / 0.5639 GB, free: 32.43 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001541/0.327, allocations: 125.5 kB / 0.564 GB, free: 32.38 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.327, allocations: 1.25 kB / 0.564 GB, free: 32.38 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.707e-05/0.327, allocations: 16.09 kB / 0.564 GB, free: 32.38 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001418/0.3272, allocations: 9.906 kB / 0.564 GB, free: 32.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002501/0.3274, allocations: 212.6 kB / 0.5642 GB, free: 32.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001076/0.3275, allocations: 0.7083 MB / 0.5649 GB, free: 31.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.564e-05/0.3276, allocations: 1.188 kB / 0.5649 GB, free: 31.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.099e-05/0.3276, allocations: 10.16 kB / 0.5649 GB, free: 31.51 MB / 446.1 MB Notification: Performance of SimCode: time 2.3e-07/0.3276, allocations: 0 / 0.5649 GB, free: 31.51 MB / 446.1 MB Notification: Performance of Templates: time 0.005049/0.3326, allocations: 2.113 MB / 0.567 GB, free: 31.41 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 -s gbode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)