Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 109.5 kB / 17.03 MB, free: 5.699 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.001158/0.001158, allocations: 194.9 kB / 17.97 MB, free: 5.078 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.274/1.274, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6785/0.6785, allocations: 115.1 MB / 406.9 MB, free: 6.383 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001257/0.001257, allocations: 59.91 kB / 494.8 MB, free: 15.88 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3101/0.3114, allocations: 76.15 MB / 0.5576 GB, free: 36.61 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001699/0.3131, allocations: 0.5038 MB / 0.558 GB, free: 36.33 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001805/0.315, allocations: 1.605 MB / 0.5596 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.2e-05/0.315, allocations: 1.562 kB / 0.5596 GB, free: 35.19 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001358/0.3151, allocations: 24.94 kB / 0.5596 GB, free: 35.18 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.217e-05/0.3152, allocations: 12.77 kB / 0.5596 GB, free: 35.18 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.0007504/0.3159, allocations: 245.6 kB / 0.5599 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 5.499e-05/0.316, allocations: 20.45 kB / 0.5599 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.289e-05/0.316, allocations: 4.016 kB / 0.5599 GB, free: 35.08 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.817e-05/0.3161, allocations: 18.69 kB / 0.5599 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.561e-05/0.3161, allocations: 15.02 kB / 0.5599 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.3161, allocations: 0.75 kB / 0.5599 GB, free: 35.07 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004561/0.3166, allocations: 328.9 kB / 0.5603 GB, free: 34.97 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 4.422e-05/0.3166, allocations: 25.73 kB / 0.5603 GB, free: 34.96 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 2.751e-05/0.3167, allocations: 17.94 kB / 0.5603 GB, free: 34.95 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003464/0.317, allocations: 280.4 kB / 0.5606 GB, free: 34.87 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.317, allocations: 2.219 kB / 0.5606 GB, free: 34.87 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.317, allocations: 0 / 0.5606 GB, free: 34.87 MB / 446.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3171, allocations: 0 / 0.5606 GB, free: 34.87 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.0003017/0.3174, allocations: 407.9 kB / 0.561 GB, free: 34.47 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.067e-05/0.3174, allocations: 9.906 kB / 0.561 GB, free: 34.47 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.117e-05/0.3174, allocations: 10.77 kB / 0.561 GB, free: 34.46 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.3176, allocations: 180.4 kB / 0.5611 GB, free: 34.26 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.395e-06/0.3176, allocations: 384 / 0.5611 GB, free: 34.26 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-06/0.3176, allocations: 1.688 kB / 0.5611 GB, free: 34.26 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.157e-05/0.3177, allocations: 44.45 kB / 0.5612 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.722e-06/0.3177, allocations: 0 / 0.5612 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-06/0.3177, allocations: 1.5 kB / 0.5612 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.3177, allocations: 1.438 kB / 0.5612 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.903e-05/0.3177, allocations: 20.02 kB / 0.5612 GB, free: 34.22 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000127/0.3179, allocations: 174.9 kB / 0.5614 GB, free: 34.02 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.689e-05/0.3179, allocations: 27.91 kB / 0.5614 GB, free: 33.99 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.946e-05/0.3179, allocations: 18.44 kB / 0.5614 GB, free: 33.98 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.955e-05/0.318, allocations: 6.656 kB / 0.5614 GB, free: 33.98 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.317e-05/0.318, allocations: 41.38 kB / 0.5615 GB, free: 33.93 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.318, allocations: 1.078 kB / 0.5615 GB, free: 33.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001266/0.3181, allocations: 59.78 kB / 0.5615 GB, free: 33.9 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.242e-05/0.3182, allocations: 53.03 kB / 0.5616 GB, free: 33.84 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.3183, allocations: 172.3 kB / 0.5617 GB, free: 33.71 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 7.133e-06/0.3183, allocations: 27.33 kB / 0.5618 GB, free: 33.68 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.266e-05/0.3183, allocations: 94.8 kB / 0.5619 GB, free: 33.59 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.556e-06/0.3184, allocations: 0 / 0.5619 GB, free: 33.59 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.506e-05/0.3184, allocations: 25.78 kB / 0.5619 GB, free: 33.57 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.271e-05/0.3185, allocations: 321.5 kB / 0.5622 GB, free: 33.26 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.131e-05/0.3185, allocations: 42.33 kB / 0.5622 GB, free: 33.25 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.334e-05/0.3186, allocations: 37.17 kB / 0.5623 GB, free: 33.25 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.472e-05/0.3186, allocations: 83.06 kB / 0.5623 GB, free: 33.21 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.3187, allocations: 1.312 kB / 0.5623 GB, free: 33.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001266/0.3188, allocations: 122 kB / 0.5625 GB, free: 33.17 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.3188, allocations: 11.16 kB / 0.5625 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.419e-05/0.3188, allocations: 3.891 kB / 0.5625 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.467e-05/0.3188, allocations: 0 / 0.5625 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.254e-05/0.3189, allocations: 2.094 kB / 0.5625 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3189, allocations: 0.6875 kB / 0.5625 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.169e-05/0.3189, allocations: 9.688 kB / 0.5625 GB, free: 33.16 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/0.3189, allocations: 1.953 kB / 0.5625 GB, free: 33.16 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.96e-05/0.319, allocations: 125.9 kB / 0.5626 GB, free: 33.04 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.319, allocations: 12.62 kB / 0.5626 GB, free: 33.03 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.002e-05/0.3191, allocations: 61.69 kB / 0.5627 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.3191, allocations: 3.281 kB / 0.5627 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.978e-06/0.3191, allocations: 0.6094 kB / 0.5627 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3191, allocations: 1.406 kB / 0.5627 GB, free: 32.99 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.548e-05/0.3192, allocations: 165.6 kB / 0.5628 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.11e-07/0.3192, allocations: 1.125 kB / 0.5628 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.499e-06/0.3192, allocations: 0.7031 kB / 0.5628 GB, free: 32.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.3192, allocations: 5.594 kB / 0.5629 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.92e-06/0.3193, allocations: 1.406 kB / 0.5629 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.185e-06/0.3193, allocations: 1.703 kB / 0.5629 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.3193, allocations: 0 / 0.5629 GB, free: 32.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.036e-05/0.3193, allocations: 83.56 kB / 0.5629 GB, free: 32.72 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.102e-05/0.3194, allocations: 92.38 kB / 0.563 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.075e-05/0.3194, allocations: 0.6094 kB / 0.563 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.283e-05/0.3194, allocations: 2.812 kB / 0.563 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.39e-05/0.3194, allocations: 3.141 kB / 0.563 GB, free: 32.61 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.495e-06/0.3194, allocations: 5.062 kB / 0.563 GB, free: 32.61 MB / 446.1 MB Notification: Performance of sorting global known variables: time 6.712e-05/0.3195, allocations: 128.5 kB / 0.5632 GB, free: 32.52 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3195, allocations: 0 / 0.5632 GB, free: 32.52 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0003008/0.3198, allocations: 85.25 kB / 0.5632 GB, free: 32.51 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.0003903/0.3202, allocations: 221 kB / 0.5634 GB, free: 32.4 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001317/0.3203, allocations: 101.6 kB / 0.5635 GB, free: 32.36 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3203, allocations: 1.125 kB / 0.5635 GB, free: 32.36 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.447e-05/0.3204, allocations: 14.75 kB / 0.5636 GB, free: 32.35 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001282/0.3205, allocations: 14.94 kB / 0.5636 GB, free: 32.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002031/0.3207, allocations: 158.6 kB / 0.5637 GB, free: 32.22 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001003/0.3208, allocations: 0.695 MB / 0.5644 GB, free: 31.52 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.574e-05/0.3208, allocations: 2.5 kB / 0.5644 GB, free: 31.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.139e-05/0.3209, allocations: 10.45 kB / 0.5644 GB, free: 31.52 MB / 446.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3209, allocations: 0 / 0.5644 GB, free: 31.52 MB / 446.1 MB Notification: Performance of Templates: time 0.004567/0.3254, allocations: 2.087 MB / 0.5665 GB, free: 31.41 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)