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: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001123/0.001123, allocations: 102.4 kB / 15.98 MB, free: 6.297 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.00131/0.00131, allocations: 192.5 kB / 16.91 MB, free: 6.148 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.547/1.547, allocations: 222.9 MB / 240.6 MB, free: 15.37 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7143/0.7143, allocations: 115.3 MB / 406.1 MB, free: 6.379 MB / 318.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001355/0.001355, allocations: 63.88 kB / 493.2 MB, free: 0.6172 MB / 398.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.357/0.3584, allocations: 76.17 MB / 0.556 GB, free: 36.29 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.00178/0.3602, allocations: 0.57 MB / 0.5566 GB, free: 35.96 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.00201/0.3623, allocations: 1.599 MB / 0.5581 GB, free: 34.82 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.661e-05/0.3623, allocations: 1.969 kB / 0.5581 GB, free: 34.82 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001804/0.3625, allocations: 66.27 kB / 0.5582 GB, free: 34.81 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.607e-05/0.3626, allocations: 27.69 kB / 0.5582 GB, free: 34.81 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.3634, allocations: 221.8 kB / 0.5584 GB, free: 34.73 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 6.765e-05/0.3635, allocations: 34.56 kB / 0.5585 GB, free: 34.72 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.11e-05/0.3636, allocations: 1.406 kB / 0.5585 GB, free: 34.72 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.399e-05/0.3636, allocations: 23 kB / 0.5585 GB, free: 34.71 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.742e-05/0.3637, allocations: 39.34 kB / 0.5585 GB, free: 34.71 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.3637, allocations: 2.719 kB / 0.5585 GB, free: 34.71 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000538/0.3642, allocations: 293.2 kB / 0.5588 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 7.281e-05/0.3643, allocations: 27.45 kB / 0.5588 GB, free: 34.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.362e-05/0.3643, allocations: 31.2 kB / 0.5589 GB, free: 34.58 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006924/0.365, allocations: 283.3 kB / 0.5591 GB, free: 34.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.3651, allocations: 1.156 kB / 0.5591 GB, free: 34.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.3651, allocations: 0 / 0.5591 GB, free: 34.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 1.328e-05/0.3651, allocations: 0.8125 kB / 0.5591 GB, free: 34.51 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.0005931/0.3657, allocations: 434.2 kB / 0.5595 GB, free: 34.09 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.531e-05/0.3657, allocations: 9.219 kB / 0.5596 GB, free: 34.09 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.851e-05/0.3658, allocations: 35.27 kB / 0.5596 GB, free: 34.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.513e-05/0.3658, allocations: 13.72 kB / 0.5596 GB, free: 34.04 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001454/0.366, allocations: 193.5 kB / 0.5598 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.386e-06/0.366, allocations: 2.797 kB / 0.5598 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.366, allocations: 5.719 kB / 0.5598 GB, free: 33.82 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.3661, allocations: 42.64 kB / 0.5598 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.3661, allocations: 0.75 kB / 0.5598 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.058e-05/0.3661, allocations: 0.5625 kB / 0.5598 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.3662, allocations: 1.062 kB / 0.5598 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.075e-05/0.3662, allocations: 19.52 kB / 0.5599 GB, free: 33.79 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/0.3664, allocations: 190.2 kB / 0.56 GB, free: 33.58 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.744e-05/0.3664, allocations: 29.91 kB / 0.5601 GB, free: 33.55 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.666e-05/0.3665, allocations: 15.17 kB / 0.5601 GB, free: 33.54 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.801e-05/0.3665, allocations: 8.875 kB / 0.5601 GB, free: 33.54 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.363e-05/0.3666, allocations: 35.88 kB / 0.5601 GB, free: 33.5 MB / 446.1 MB Notification: Performance of pre-optimization done (n=1): time 1.002e-06/0.3666, allocations: 0 / 0.5601 GB, free: 33.5 MB / 446.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001888/0.3668, allocations: 73.7 kB / 0.5602 GB, free: 33.46 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.3668, allocations: 53.45 kB / 0.5602 GB, free: 33.39 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002/0.367, allocations: 207.6 kB / 0.5604 GB, free: 33.27 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 9.387e-06/0.367, allocations: 26.58 kB / 0.5605 GB, free: 33.24 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.998e-05/0.3671, allocations: 110.4 kB / 0.5606 GB, free: 33.14 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.021e-05/0.3671, allocations: 1.125 kB / 0.5606 GB, free: 33.14 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.3671, allocations: 29.67 kB / 0.5606 GB, free: 33.12 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 6.794e-05/0.3672, allocations: 328.3 kB / 0.5609 GB, free: 32.8 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.526e-05/0.3673, allocations: 56.39 kB / 0.561 GB, free: 32.79 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.003e-05/0.3674, allocations: 53.03 kB / 0.561 GB, free: 32.78 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001105/0.3675, allocations: 96.22 kB / 0.5611 GB, free: 32.75 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.3675, allocations: 0.7969 kB / 0.5611 GB, free: 32.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001855/0.3677, allocations: 166.3 kB / 0.5613 GB, free: 32.69 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.3677, allocations: 4.719 kB / 0.5613 GB, free: 32.69 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.474e-05/0.3677, allocations: 5.812 kB / 0.5613 GB, free: 32.69 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/0.3677, allocations: 1.094 kB / 0.5613 GB, free: 32.69 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.451e-05/0.3678, allocations: 4.5 kB / 0.5613 GB, free: 32.68 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.3678, allocations: 2.344 kB / 0.5613 GB, free: 32.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.028e-05/0.3678, allocations: 10.66 kB / 0.5613 GB, free: 32.68 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.858e-06/0.3678, allocations: 1.656 kB / 0.5613 GB, free: 32.68 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.0001584/0.368, allocations: 134.3 kB / 0.5614 GB, free: 32.56 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.524e-05/0.368, allocations: 16.45 kB / 0.5614 GB, free: 32.55 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001035/0.3681, allocations: 60.45 kB / 0.5615 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.3681, allocations: 0.9688 kB / 0.5615 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.901e-06/0.3681, allocations: 1.734 kB / 0.5615 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.3682, allocations: 1.469 kB / 0.5615 GB, free: 32.52 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.541e-05/0.3683, allocations: 182.1 kB / 0.5617 GB, free: 32.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.984e-06/0.3683, allocations: 1.25 kB / 0.5617 GB, free: 32.32 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.979e-06/0.3683, allocations: 4.641 kB / 0.5617 GB, free: 32.31 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.3683, allocations: 1.125 kB / 0.5617 GB, free: 32.31 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.082e-06/0.3683, allocations: 5.203 kB / 0.5617 GB, free: 32.31 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.896e-06/0.3683, allocations: 4.703 kB / 0.5617 GB, free: 32.3 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3683, allocations: 9.969 kB / 0.5617 GB, free: 32.3 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.96e-05/0.3684, allocations: 82.33 kB / 0.5618 GB, free: 32.23 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.44e-05/0.3684, allocations: 92.64 kB / 0.5619 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.321e-05/0.3684, allocations: 1 kB / 0.5619 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.31e-05/0.3684, allocations: 5.75 kB / 0.5619 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.365e-05/0.3685, allocations: 1.422 kB / 0.5619 GB, free: 32.12 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.325e-06/0.3685, allocations: 1.5 kB / 0.5619 GB, free: 32.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0001222/0.3686, allocations: 146.7 kB / 0.562 GB, free: 32.03 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3686, allocations: 0 / 0.562 GB, free: 32.03 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.0004312/0.369, allocations: 89.89 kB / 0.5621 GB, free: 32.02 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.0006103/0.3697, allocations: 0.7377 MB / 0.5628 GB, free: 31.39 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0001864/0.3699, allocations: 127 kB / 0.563 GB, free: 31.34 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3699, allocations: 0.7188 kB / 0.563 GB, free: 31.34 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 1.799e-05/0.3699, allocations: 14.73 kB / 0.563 GB, free: 31.33 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000157/0.3701, allocations: 7.125 kB / 0.563 GB, free: 31.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001857/0.3719, allocations: 1.825 MB / 0.5648 GB, free: 30.05 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001938/0.3721, allocations: 0.7027 MB / 0.5654 GB, free: 29.36 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.154e-05/0.3722, allocations: 2.906 kB / 0.5654 GB, free: 29.36 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.968e-05/0.3722, allocations: 27.45 kB / 0.5655 GB, free: 29.33 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3722, allocations: 1.188 kB / 0.5655 GB, free: 29.33 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0171/0.3893, allocations: 3.762 MB / 0.5691 GB, free: 28.97 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002202/0.3896, allocations: 235.7 kB / 0.5694 GB, free: 28.72 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.923/2.313, allocations: 1.188 kB / 0.5694 GB, free: 28.72 MB / 446.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)