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.001572/0.001572, allocations: 113.3 kB / 17.04 MB, free: 5.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.001555/0.001555, allocations: 196 kB / 17.98 MB, free: 5.031 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.279/1.279, 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.6642/0.6642, allocations: 115.1 MB / 407 MB, free: 6.285 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001228/0.001228, allocations: 63.91 kB / 494.8 MB, free: 15.84 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.323/0.3242, allocations: 76.14 MB / 0.5576 GB, free: 36.62 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001492/0.3258, allocations: 0.513 MB / 0.5581 GB, free: 36.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001576/0.3274, allocations: 1.602 MB / 0.5596 GB, free: 35.2 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.573e-05/0.3274, allocations: 1.375 kB / 0.5596 GB, free: 35.2 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001514/0.3276, allocations: 62.22 kB / 0.5597 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.991e-05/0.3276, allocations: 32.52 kB / 0.5597 GB, free: 35.19 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.0006872/0.3283, allocations: 243.2 kB / 0.5599 GB, free: 35.09 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.515e-05/0.3284, allocations: 34.77 kB / 0.56 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.021e-05/0.3284, allocations: 7.766 kB / 0.56 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.215e-05/0.3284, allocations: 21.92 kB / 0.56 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.546e-05/0.3285, allocations: 42.81 kB / 0.56 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.007e-05/0.3285, allocations: 4.594 kB / 0.5601 GB, free: 35.06 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004597/0.329, allocations: 329 kB / 0.5604 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.689e-05/0.329, allocations: 30.22 kB / 0.5604 GB, free: 34.95 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.559e-05/0.3291, allocations: 25.84 kB / 0.5604 GB, free: 34.93 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003623/0.3294, allocations: 292.6 kB / 0.5607 GB, free: 34.85 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.16e-06/0.3294, allocations: 5.891 kB / 0.5607 GB, free: 34.85 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3295, allocations: 0 / 0.5607 GB, free: 34.85 MB / 446.1 MB Notification: Performance of Transformations before backend: time 6.211e-06/0.3295, allocations: 0 / 0.5607 GB, free: 34.85 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.0003336/0.3298, allocations: 429.5 kB / 0.5611 GB, free: 34.44 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.063e-05/0.3298, allocations: 10.17 kB / 0.5611 GB, free: 34.44 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.41e-05/0.3299, allocations: 13.31 kB / 0.5611 GB, free: 34.43 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001141/0.33, allocations: 192.2 kB / 0.5613 GB, free: 34.21 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.866e-06/0.33, allocations: 3.172 kB / 0.5613 GB, free: 34.21 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.484e-06/0.33, allocations: 4.312 kB / 0.5613 GB, free: 34.21 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.629e-05/0.3301, allocations: 42.39 kB / 0.5614 GB, free: 34.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.672e-06/0.3301, allocations: 0.8438 kB / 0.5614 GB, free: 34.18 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.791e-06/0.3301, allocations: 0 / 0.5614 GB, free: 34.18 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3301, allocations: 2.312 kB / 0.5614 GB, free: 34.18 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.829e-05/0.3302, allocations: 21.98 kB / 0.5614 GB, free: 34.17 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001228/0.3303, allocations: 182.9 kB / 0.5616 GB, free: 33.97 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.262e-05/0.3303, allocations: 25.64 kB / 0.5616 GB, free: 33.95 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.797e-05/0.3304, allocations: 18.09 kB / 0.5616 GB, free: 33.94 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.017e-05/0.3304, allocations: 10.12 kB / 0.5616 GB, free: 33.94 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.368e-05/0.3304, allocations: 40 kB / 0.5617 GB, free: 33.89 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 9.32e-07/0.3304, allocations: 0 / 0.5617 GB, free: 33.89 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001288/0.3306, allocations: 73.12 kB / 0.5617 GB, free: 33.85 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.228e-05/0.3306, allocations: 53 kB / 0.5618 GB, free: 33.79 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.3307, allocations: 204.2 kB / 0.562 GB, free: 33.66 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 5.851e-06/0.3308, allocations: 25.7 kB / 0.562 GB, free: 33.63 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.438e-05/0.3308, allocations: 106 kB / 0.5621 GB, free: 33.54 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.558e-06/0.3308, allocations: 2.531 kB / 0.5621 GB, free: 33.54 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.484e-05/0.3308, allocations: 37.33 kB / 0.5621 GB, free: 33.51 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.134e-05/0.3309, allocations: 324.1 kB / 0.5624 GB, free: 33.19 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.643e-05/0.331, allocations: 53.2 kB / 0.5625 GB, free: 33.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.641e-05/0.331, allocations: 53.89 kB / 0.5625 GB, free: 33.18 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.372e-05/0.3311, allocations: 102.6 kB / 0.5626 GB, free: 33.14 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3311, allocations: 0 / 0.5626 GB, free: 33.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001464/0.3313, allocations: 160.8 kB / 0.5628 GB, free: 33.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.3313, allocations: 8.688 kB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.3313, allocations: 3.141 kB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.3313, allocations: 1.219 kB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.123e-05/0.3313, allocations: 4.75 kB / 0.5628 GB, free: 33.08 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.3313, allocations: 5.875 kB / 0.5628 GB, free: 33.07 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.376e-05/0.3314, allocations: 10.62 kB / 0.5628 GB, free: 33.07 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.3314, allocations: 1.5 kB / 0.5628 GB, free: 33.07 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 8.446e-05/0.3315, allocations: 131.4 kB / 0.563 GB, free: 32.95 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.212e-05/0.3315, allocations: 11.8 kB / 0.563 GB, free: 32.95 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.82e-05/0.3316, allocations: 75.2 kB / 0.563 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3316, allocations: 0 / 0.563 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3316, allocations: 4.688 kB / 0.563 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.3316, allocations: 1.281 kB / 0.563 GB, free: 32.9 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.525e-05/0.3317, allocations: 178.3 kB / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3317, allocations: 0 / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.91e-06/0.3317, allocations: 5.531 kB / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3317, allocations: 6 kB / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.609e-06/0.3317, allocations: 0 / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3317, allocations: 1.656 kB / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3317, allocations: 1.281 kB / 0.5632 GB, free: 32.7 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.177e-05/0.3318, allocations: 79.3 kB / 0.5633 GB, free: 32.63 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.333e-05/0.3318, allocations: 98.77 kB / 0.5634 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.147e-05/0.3318, allocations: 0 / 0.5634 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.297e-05/0.3319, allocations: 0.75 kB / 0.5634 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.977e-06/0.3319, allocations: 1.312 kB / 0.5634 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.175e-06/0.3319, allocations: 1.969 kB / 0.5634 GB, free: 32.52 MB / 446.1 MB Notification: Performance of sorting global known variables: time 9.807e-05/0.332, allocations: 152.9 kB / 0.5635 GB, free: 32.43 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.332, allocations: 1.438 kB / 0.5635 GB, free: 32.43 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0002998/0.3323, allocations: 89.86 kB / 0.5636 GB, free: 32.41 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.0003843/0.3327, allocations: 228.2 kB / 0.5639 GB, free: 32.29 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001544/0.3328, allocations: 126.4 kB / 0.564 GB, free: 32.24 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3329, allocations: 1.938 kB / 0.564 GB, free: 32.24 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.59e-05/0.3329, allocations: 11.16 kB / 0.564 GB, free: 32.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.333, allocations: 5.578 kB / 0.564 GB, free: 32.24 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002577/0.3333, allocations: 216.3 kB / 0.5642 GB, free: 32.09 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001214/0.3334, allocations: 0.7094 MB / 0.5649 GB, free: 31.39 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.577e-05/0.3334, allocations: 2.281 kB / 0.5649 GB, free: 31.39 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.153e-05/0.3334, allocations: 9.375 kB / 0.5649 GB, free: 31.38 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3334, allocations: 1.156 kB / 0.5649 GB, free: 31.38 MB / 446.1 MB Notification: Performance of Templates: time 0.004626/0.3381, allocations: 2.116 MB / 0.567 GB, free: 31.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 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)