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.00164/0.001641, allocations: 99.31 kB / 16.64 MB, free: 6.809 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.001816/0.001816, allocations: 189.9 kB / 17.56 MB, free: 5.941 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.445/1.445, allocations: 222.9 MB / 241.3 MB, free: 15.44 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8838/0.8838, allocations: 125.4 MB / 416.7 MB, free: 13.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 63.91 kB / 0.4943 GB, free: 4.816 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.335/0.337, allocations: 78.56 MB / 0.571 GB, free: 31.49 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001642/0.3386, allocations: 0.5734 MB / 0.5716 GB, free: 31.15 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001877/0.3405, allocations: 1.599 MB / 0.5731 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.05e-05/0.3406, allocations: 0 / 0.5731 GB, free: 30.02 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.3408, allocations: 58.09 kB / 0.5732 GB, free: 30.01 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.073e-05/0.3408, allocations: 35.92 kB / 0.5732 GB, free: 30 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.0007967/0.3416, allocations: 229.3 kB / 0.5734 GB, free: 29.91 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.615e-05/0.3417, allocations: 26.11 kB / 0.5734 GB, free: 29.91 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.138e-05/0.3418, allocations: 2.078 kB / 0.5735 GB, free: 29.91 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.556e-05/0.3418, allocations: 34.3 kB / 0.5735 GB, free: 29.9 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.686e-05/0.3419, allocations: 36.31 kB / 0.5735 GB, free: 29.9 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.3419, allocations: 1.469 kB / 0.5735 GB, free: 29.9 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000462/0.3424, allocations: 289.4 kB / 0.5738 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.662e-05/0.3424, allocations: 27.47 kB / 0.5738 GB, free: 29.8 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.002e-05/0.3425, allocations: 30.92 kB / 0.5739 GB, free: 29.77 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003132/0.3428, allocations: 198.9 kB / 0.574 GB, free: 29.74 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.3428, allocations: 1.156 kB / 0.574 GB, free: 29.74 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3428, allocations: 0 / 0.574 GB, free: 29.74 MB / 446.1 MB Notification: Performance of Transformations before backend: time 9.608e-06/0.3428, allocations: 0 / 0.574 GB, free: 29.74 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.0003776/0.3432, allocations: 441.8 kB / 0.5745 GB, free: 29.31 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.338e-05/0.3432, allocations: 9.5 kB / 0.5745 GB, free: 29.31 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.468e-05/0.3433, allocations: 13.5 kB / 0.5745 GB, free: 29.3 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.3434, allocations: 186.7 kB / 0.5747 GB, free: 29.1 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.891e-06/0.3434, allocations: 5.125 kB / 0.5747 GB, free: 29.09 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.3434, allocations: 1.469 kB / 0.5747 GB, free: 29.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.97e-05/0.3435, allocations: 47.95 kB / 0.5747 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.3435, allocations: 0 / 0.5747 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.3436, allocations: 0 / 0.5747 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.057e-06/0.3436, allocations: 1.062 kB / 0.5747 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.371e-05/0.3436, allocations: 19.56 kB / 0.5747 GB, free: 29.05 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001398/0.3438, allocations: 189.2 kB / 0.5749 GB, free: 28.85 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.085e-05/0.3438, allocations: 27.3 kB / 0.5749 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.202e-05/0.3438, allocations: 14.02 kB / 0.575 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.11e-05/0.3439, allocations: 7.719 kB / 0.575 GB, free: 28.82 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.44e-05/0.3439, allocations: 41.98 kB / 0.575 GB, free: 28.77 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 8.81e-07/0.3439, allocations: 0 / 0.575 GB, free: 28.77 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.000151/0.344, allocations: 69.36 kB / 0.5751 GB, free: 28.73 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.89e-05/0.3441, allocations: 51.41 kB / 0.5751 GB, free: 28.67 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.3443, allocations: 212.6 kB / 0.5753 GB, free: 28.54 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.694e-06/0.3443, allocations: 25.7 kB / 0.5753 GB, free: 28.51 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.141e-05/0.3443, allocations: 106.9 kB / 0.5754 GB, free: 28.41 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.508e-06/0.3443, allocations: 5.344 kB / 0.5755 GB, free: 28.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.034e-05/0.3444, allocations: 28.33 kB / 0.5755 GB, free: 28.39 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.52e-05/0.3444, allocations: 324.6 kB / 0.5758 GB, free: 28.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.279e-05/0.3445, allocations: 57.33 kB / 0.5758 GB, free: 28.06 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.788e-05/0.3446, allocations: 61.06 kB / 0.5759 GB, free: 28.05 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.583e-05/0.3447, allocations: 95.97 kB / 0.576 GB, free: 28.02 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.3447, allocations: 0.875 kB / 0.576 GB, free: 28.02 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001696/0.3449, allocations: 161.5 kB / 0.5761 GB, free: 27.96 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.3449, allocations: 10.31 kB / 0.5762 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3449, allocations: 2.797 kB / 0.5762 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3449, allocations: 1.375 kB / 0.5762 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.267e-05/0.3449, allocations: 2.016 kB / 0.5762 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.931e-06/0.3449, allocations: 1.375 kB / 0.5762 GB, free: 27.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.371e-05/0.345, allocations: 13 kB / 0.5762 GB, free: 27.95 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.345, allocations: 2.953 kB / 0.5762 GB, free: 27.95 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.0001322/0.3451, allocations: 133.8 kB / 0.5763 GB, free: 27.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.486e-05/0.3452, allocations: 16.73 kB / 0.5763 GB, free: 27.82 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001036/0.3453, allocations: 68.47 kB / 0.5764 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.3453, allocations: 1.281 kB / 0.5764 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.3453, allocations: 0.9062 kB / 0.5764 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.3453, allocations: 0.8438 kB / 0.5764 GB, free: 27.77 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.743e-05/0.3454, allocations: 177.6 kB / 0.5766 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3454, allocations: 1.047 kB / 0.5766 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.531e-06/0.3454, allocations: 2.547 kB / 0.5766 GB, free: 27.58 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.3454, allocations: 7.922 kB / 0.5766 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.581e-06/0.3454, allocations: 3.984 kB / 0.5766 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3454, allocations: 1.406 kB / 0.5766 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.3454, allocations: 0 / 0.5766 GB, free: 27.57 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.996e-05/0.3455, allocations: 89.47 kB / 0.5767 GB, free: 27.49 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.189e-05/0.3455, allocations: 92.69 kB / 0.5768 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.406e-05/0.3455, allocations: 0.5625 kB / 0.5768 GB, free: 27.39 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.431e-05/0.3456, allocations: 6.719 kB / 0.5768 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.507e-05/0.3456, allocations: 0.5156 kB / 0.5768 GB, free: 27.38 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.955e-06/0.3456, allocations: 1.359 kB / 0.5768 GB, free: 27.38 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001029/0.3457, allocations: 151.2 kB / 0.5769 GB, free: 27.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3457, allocations: 0 / 0.5769 GB, free: 27.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00035/0.3461, allocations: 85.2 kB / 0.577 GB, free: 27.28 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.0004672/0.3465, allocations: 220 kB / 0.5772 GB, free: 27.16 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.000169/0.3467, allocations: 125.8 kB / 0.5773 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.3467, allocations: 4.969 kB / 0.5773 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.785e-05/0.3468, allocations: 15.14 kB / 0.5773 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00014/0.3469, allocations: 2.062 kB / 0.5773 GB, free: 27.11 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003088/0.3472, allocations: 259.9 kB / 0.5776 GB, free: 26.91 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000122/0.3473, allocations: 0.7072 MB / 0.5783 GB, free: 26.21 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.543e-05/0.3474, allocations: 13.86 kB / 0.5783 GB, free: 26.2 MB / 446.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3474, allocations: 0.8125 kB / 0.5783 GB, free: 26.2 MB / 446.1 MB Notification: Performance of Templates: time 0.004427/0.3518, allocations: 2.376 MB / 0.5806 GB, free: 25.52 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)