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.001917/0.001917, allocations: 104.6 kB / 16.4 MB, free: 6.457 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.00207/0.00207, allocations: 193.2 kB / 17.34 MB, free: 5.715 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8202/0.8202, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001927/0.001927, allocations: 72.06 kB / 0.5735 GB, free: 27.19 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1296, allocations: 78.86 MB / 0.6505 GB, free: 3.609 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001473/0.1311, allocations: 0.4956 MB / 0.651 GB, free: 3.117 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002123/0.1333, allocations: 1.624 MB / 0.6526 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.485e-05/0.1333, allocations: 0 / 0.6526 GB, free: 1.477 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.1335, allocations: 63.84 kB / 0.6526 GB, free: 1.414 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.661e-05/0.1335, allocations: 23.97 kB / 0.6527 GB, free: 1.391 MB / 494.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.0007726/0.1343, allocations: 255.2 kB / 0.6529 GB, free: 1.141 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.077e-05/0.1344, allocations: 31.91 kB / 0.6529 GB, free: 1.109 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.159e-05/0.1344, allocations: 4 kB / 0.6529 GB, free: 1.105 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.657e-05/0.1345, allocations: 27.89 kB / 0.653 GB, free: 1.078 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.419e-05/0.1346, allocations: 35.91 kB / 0.653 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.1346, allocations: 0 / 0.653 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005389/0.1351, allocations: 335.5 kB / 0.6533 GB, free: 0.7148 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 4.838e-05/0.1352, allocations: 27.91 kB / 0.6534 GB, free: 0.6875 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.172e-05/0.1352, allocations: 27.73 kB / 0.6534 GB, free: 0.6602 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003849/0.1356, allocations: 295.3 kB / 0.6537 GB, free: 380 kB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.1356, allocations: 0 / 0.6537 GB, free: 380 kB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1356, allocations: 0 / 0.6537 GB, free: 380 kB / 494.1 MB Notification: Performance of Transformations before backend: time 4.048e-06/0.1356, allocations: 0 / 0.6537 GB, free: 380 kB / 494.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.0004567/0.1361, allocations: 438.5 kB / 0.6541 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 2.993e-05/0.1361, allocations: 8.031 kB / 0.6541 GB, free: 15.89 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.527e-05/0.1362, allocations: 30.75 kB / 0.6541 GB, free: 15.85 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.719e-05/0.1362, allocations: 16.84 kB / 0.6541 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001694/0.1364, allocations: 193.4 kB / 0.6543 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.354e-06/0.1364, allocations: 384 / 0.6543 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.961e-06/0.1364, allocations: 384 / 0.6543 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.777e-05/0.1365, allocations: 49.7 kB / 0.6544 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.242e-06/0.1365, allocations: 0 / 0.6544 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.059e-06/0.1365, allocations: 0 / 0.6544 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.266e-06/0.1365, allocations: 4 kB / 0.6544 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.219e-05/0.1366, allocations: 15.98 kB / 0.6544 GB, free: 15.53 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001857/0.1368, allocations: 197.6 kB / 0.6546 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.163e-05/0.1368, allocations: 22.58 kB / 0.6546 GB, free: 15.26 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.277e-05/0.1368, allocations: 16.91 kB / 0.6546 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.662e-05/0.1369, allocations: 8 kB / 0.6546 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.26e-05/0.1369, allocations: 38.44 kB / 0.6547 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.62e-07/0.1369, allocations: 0 / 0.6547 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001488/0.1371, allocations: 65.59 kB / 0.6547 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.1371, allocations: 63.52 kB / 0.6548 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001977/0.1373, allocations: 210.2 kB / 0.655 GB, free: 14.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.1373, allocations: 25.7 kB / 0.655 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 6.673e-05/0.1374, allocations: 104.1 kB / 0.6551 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 6.412e-06/0.1374, allocations: 0 / 0.6551 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.376e-05/0.1375, allocations: 29.7 kB / 0.6551 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001334/0.1376, allocations: 322.8 kB / 0.6554 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.033e-05/0.1377, allocations: 59.97 kB / 0.6555 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.152e-05/0.1378, allocations: 59.92 kB / 0.6556 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.945e-05/0.1379, allocations: 87.78 kB / 0.6556 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.1379, allocations: 4 kB / 0.6556 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001914/0.1381, allocations: 169.4 kB / 0.6558 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.1381, allocations: 9.875 kB / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/0.1381, allocations: 0 / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.167e-06/0.1381, allocations: 0 / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.728e-06/0.1381, allocations: 0 / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.897e-06/0.1381, allocations: 0 / 0.6558 GB, free: 13.94 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.687e-05/0.1382, allocations: 11.89 kB / 0.6558 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-06/0.1382, allocations: 8.047 kB / 0.6558 GB, free: 13.92 MB / 0.4981 GB 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.0001422/0.1383, allocations: 137.8 kB / 0.656 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.815e-05/0.1384, allocations: 11.84 kB / 0.656 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001034/0.1385, allocations: 66.17 kB / 0.656 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.1385, allocations: 0 / 0.656 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1385, allocations: 3.984 kB / 0.656 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.1385, allocations: 4 kB / 0.656 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001409/0.1386, allocations: 181.7 kB / 0.6562 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.1387, allocations: 0 / 0.6562 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.126e-06/0.1387, allocations: 7.938 kB / 0.6562 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.1387, allocations: 0 / 0.6562 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.879e-06/0.1387, allocations: 0 / 0.6562 GB, free: 13.46 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1387, allocations: 3.938 kB / 0.6562 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.42e-07/0.1387, allocations: 0 / 0.6562 GB, free: 13.45 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.511e-05/0.1388, allocations: 92.95 kB / 0.6563 GB, free: 13.34 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.472e-05/0.1389, allocations: 93.03 kB / 0.6564 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.155e-05/0.1389, allocations: 0 / 0.6564 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.278e-05/0.1389, allocations: 0 / 0.6564 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.556e-06/0.1389, allocations: 0 / 0.6564 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.1389, allocations: 0 / 0.6564 GB, free: 13.23 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001253/0.139, allocations: 152.3 kB / 0.6566 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.139, allocations: 0 / 0.6566 GB, free: 13.09 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.000318/0.1394, allocations: 87.8 kB / 0.6566 GB, free: 13 MB / 0.4981 GB 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.0008067/0.1402, allocations: 0.7515 MB / 0.6574 GB, free: 12.24 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001932/0.1404, allocations: 133.6 kB / 0.6575 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.1404, allocations: 0 / 0.6575 GB, free: 12.1 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.849e-05/0.1404, allocations: 12 kB / 0.6575 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.1406, allocations: 6.109 kB / 0.6575 GB, free: 12.09 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.1423, allocations: 1.828 MB / 0.6593 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.1427, allocations: 0.7079 MB / 0.66 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.74e-05/0.1427, allocations: 0 / 0.66 GB, free: 9.438 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/0.1428, allocations: 23.44 kB / 0.66 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of SimCode: time 3.5e-07/0.1428, allocations: 0 / 0.66 GB, free: 9.414 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02424/0.167, allocations: 3.868 MB / 0.6638 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.734/7.901, allocations: 0 / 0.6638 GB, free: 5.625 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)