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.0008754/0.0008755, allocations: 98.58 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009319/0.000932, allocations: 182.8 kB / 16.92 MB, free: 6.688 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.33/1.33, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7023/0.7023, allocations: 115.5 MB / 407.6 MB, free: 2.688 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003378/0.0003378, allocations: 12 kB / 495.9 MB, free: 6.266 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1411, allocations: 77.53 MB / 0.56 GB, free: 8.949 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.0006551/0.1418, allocations: 242.3 kB / 0.5603 GB, free: 8.711 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.002335/0.1442, allocations: 1.613 MB / 0.5618 GB, free: 7.082 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.85e-05/0.1442, allocations: 3.938 kB / 0.5618 GB, free: 7.078 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001735/0.1444, allocations: 59.91 kB / 0.5619 GB, free: 7.02 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 3.81e-05/0.1445, allocations: 27.95 kB / 0.5619 GB, free: 6.992 MB / 430.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‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007755/0.1452, allocations: 203.5 kB / 0.5621 GB, free: 6.793 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 6.632e-05/0.1453, allocations: 27.95 kB / 0.5621 GB, free: 6.766 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.429e-05/0.1454, allocations: 0 / 0.5621 GB, free: 6.766 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.09e-05/0.1454, allocations: 23.92 kB / 0.5622 GB, free: 6.742 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.465e-05/0.1455, allocations: 39.94 kB / 0.5622 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.1455, allocations: 0 / 0.5622 GB, free: 6.703 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005595/0.1461, allocations: 275.5 kB / 0.5625 GB, free: 6.434 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 5.716e-05/0.1461, allocations: 27.86 kB / 0.5625 GB, free: 6.406 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 5.261e-05/0.1462, allocations: 53.45 kB / 0.5625 GB, free: 6.348 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004698/0.1467, allocations: 287.4 kB / 0.5628 GB, free: 6.066 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.1467, allocations: 0 / 0.5628 GB, free: 6.066 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1467, allocations: 0 / 0.5628 GB, free: 6.066 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.786e-06/0.1467, allocations: 7.938 kB / 0.5628 GB, free: 6.059 MB / 430.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.0004411/0.1472, allocations: 425.5 kB / 0.5632 GB, free: 5.598 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.1472, allocations: 8.031 kB / 0.5632 GB, free: 5.59 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.123e-05/0.1472, allocations: 34.69 kB / 0.5633 GB, free: 5.547 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.482e-05/0.1473, allocations: 8.844 kB / 0.5633 GB, free: 5.539 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00016/0.1474, allocations: 188.1 kB / 0.5635 GB, free: 5.316 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.735e-06/0.1475, allocations: 384 / 0.5635 GB, free: 5.316 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.1475, allocations: 4.375 kB / 0.5635 GB, free: 5.312 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.1476, allocations: 49.8 kB / 0.5635 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.521e-06/0.1476, allocations: 0 / 0.5635 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-06/0.1476, allocations: 0 / 0.5635 GB, free: 5.258 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.1476, allocations: 4 kB / 0.5635 GB, free: 5.254 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.314e-05/0.1477, allocations: 15.98 kB / 0.5635 GB, free: 5.238 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001773/0.1478, allocations: 193.5 kB / 0.5637 GB, free: 5 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.722e-05/0.1479, allocations: 34.52 kB / 0.5637 GB, free: 4.957 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.388e-05/0.1479, allocations: 16.91 kB / 0.5638 GB, free: 4.938 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.609e-05/0.148, allocations: 4 kB / 0.5638 GB, free: 4.934 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.148, allocations: 38.5 kB / 0.5638 GB, free: 4.887 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 9.02e-07/0.148, allocations: 0 / 0.5638 GB, free: 4.887 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001485/0.1482, allocations: 65.58 kB / 0.5639 GB, free: 4.816 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.1482, allocations: 55.34 kB / 0.5639 GB, free: 4.75 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001972/0.1484, allocations: 211.9 kB / 0.5641 GB, free: 4.535 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.172e-05/0.1484, allocations: 29.7 kB / 0.5642 GB, free: 4.5 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.754e-05/0.1485, allocations: 100.1 kB / 0.5642 GB, free: 4.398 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.1485, allocations: 7.906 kB / 0.5643 GB, free: 4.391 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.31e-05/0.1486, allocations: 25.7 kB / 0.5643 GB, free: 4.359 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001155/0.1487, allocations: 322.8 kB / 0.5646 GB, free: 4.035 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.471e-05/0.1487, allocations: 55.97 kB / 0.5646 GB, free: 3.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.242e-05/0.1488, allocations: 51.98 kB / 0.5647 GB, free: 3.93 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.1489, allocations: 97.89 kB / 0.5648 GB, free: 3.832 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.589e-06/0.1489, allocations: 4.031 kB / 0.5648 GB, free: 3.828 MB / 430.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001826/0.1491, allocations: 169.3 kB / 0.5649 GB, free: 3.656 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1492, allocations: 8 kB / 0.565 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.531e-05/0.1492, allocations: 0 / 0.565 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.187e-06/0.1492, allocations: 0 / 0.565 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.147e-05/0.1492, allocations: 0 / 0.565 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.1492, allocations: 0 / 0.565 GB, free: 3.648 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.999e-05/0.1492, allocations: 7.906 kB / 0.565 GB, free: 3.641 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.478e-06/0.1493, allocations: 3.984 kB / 0.565 GB, free: 3.637 MB / 430.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.0001359/0.1494, allocations: 136.1 kB / 0.5651 GB, free: 3.496 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.57e-05/0.1494, allocations: 11.75 kB / 0.5651 GB, free: 3.484 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001045/0.1495, allocations: 66.23 kB / 0.5652 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.1495, allocations: 0 / 0.5652 GB, free: 3.418 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1496, allocations: 3.938 kB / 0.5652 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.1496, allocations: 0 / 0.5652 GB, free: 3.414 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001247/0.1497, allocations: 181.7 kB / 0.5653 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1497, allocations: 0 / 0.5653 GB, free: 3.188 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.205e-06/0.1497, allocations: 11.88 kB / 0.5654 GB, free: 3.176 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.837e-06/0.1497, allocations: 4.031 kB / 0.5654 GB, free: 3.172 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1497, allocations: 7.922 kB / 0.5654 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.1497, allocations: 0 / 0.5654 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.1497, allocations: 0 / 0.5654 GB, free: 3.164 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.814e-05/0.1498, allocations: 77.03 kB / 0.5654 GB, free: 3.07 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.245e-05/0.1499, allocations: 88.86 kB / 0.5655 GB, free: 2.965 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.24e-05/0.1499, allocations: 4 kB / 0.5655 GB, free: 2.961 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.416e-05/0.1499, allocations: 0 / 0.5655 GB, free: 2.961 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.118e-05/0.1499, allocations: 8.031 kB / 0.5655 GB, free: 2.953 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.15, allocations: 0 / 0.5655 GB, free: 2.953 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000122/0.1501, allocations: 150.2 kB / 0.5657 GB, free: 2.809 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1501, allocations: 0 / 0.5657 GB, free: 2.809 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003421/0.1504, allocations: 83.98 kB / 0.5658 GB, free: 2.727 MB / 430.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.0007349/0.1512, allocations: 0.7567 MB / 0.5665 GB, free: 1.969 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001691/0.1514, allocations: 125.7 kB / 0.5666 GB, free: 1.84 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1514, allocations: 0 / 0.5666 GB, free: 1.84 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.703e-05/0.1514, allocations: 12.06 kB / 0.5666 GB, free: 1.828 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001492/0.1515, allocations: 11.94 kB / 0.5666 GB, free: 1.816 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.1532, allocations: 1.814 MB / 0.5684 GB, free: 15.92 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000229/0.1534, allocations: 0.7043 MB / 0.5691 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 1.969e-05/0.1535, allocations: 4.031 kB / 0.5691 GB, free: 15.19 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.787e-05/0.1535, allocations: 27.42 kB / 0.5691 GB, free: 15.16 MB / 446.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1535, allocations: 4 kB / 0.5691 GB, free: 15.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1868/0.3403, allocations: 3.606 MB / 0.5727 GB, free: 11.68 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001934/0.3405, allocations: 247.2 kB / 0.5729 GB, free: 11.41 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.988/2.328, allocations: 0 / 0.5729 GB, free: 11.41 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)