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: "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.001096/0.001096, allocations: 107.1 kB / 16.41 MB, free: 6.48 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.001045/0.001046, allocations: 191.9 kB / 17.34 MB, free: 5.75 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.307/1.307, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7483/0.7483, allocations: 122.9 MB / 414.1 MB, free: 15.84 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0012/0.0012, allocations: 60.38 kB / 0.5679 GB, free: 29.1 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1236, allocations: 77.94 MB / 0.644 GB, free: 9.578 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001445/0.1251, allocations: 0.5049 MB / 0.6445 GB, free: 9.074 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.127, allocations: 1.604 MB / 0.6461 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.619e-05/0.1271, allocations: 4 kB / 0.6461 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1272, allocations: 19.92 kB / 0.6461 GB, free: 7.43 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.413e-05/0.1273, allocations: 15.92 kB / 0.6461 GB, free: 7.414 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.0007645/0.128, allocations: 241.1 kB / 0.6464 GB, free: 7.18 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.24e-05/0.1281, allocations: 23.89 kB / 0.6464 GB, free: 7.156 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.355e-05/0.1281, allocations: 4 kB / 0.6464 GB, free: 7.152 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.873e-05/0.1282, allocations: 19.92 kB / 0.6464 GB, free: 7.133 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.759e-05/0.1282, allocations: 19.92 kB / 0.6464 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.031e-05/0.1282, allocations: 0 / 0.6464 GB, free: 7.113 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004959/0.1287, allocations: 335.5 kB / 0.6467 GB, free: 6.785 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.28e-05/0.1288, allocations: 15.98 kB / 0.6468 GB, free: 6.77 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.526e-05/0.1288, allocations: 19.81 kB / 0.6468 GB, free: 6.75 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003477/0.1292, allocations: 279.5 kB / 0.647 GB, free: 6.477 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.1292, allocations: 0 / 0.647 GB, free: 6.477 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1292, allocations: 0 / 0.647 GB, free: 6.477 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.279e-06/0.1292, allocations: 0 / 0.647 GB, free: 6.477 MB / 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.0003989/0.1296, allocations: 416.7 kB / 0.6474 GB, free: 6.023 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.395e-05/0.1297, allocations: 8.625 kB / 0.6474 GB, free: 6.016 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.132e-05/0.1297, allocations: 34.73 kB / 0.6475 GB, free: 5.973 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.671e-05/0.1297, allocations: 12.84 kB / 0.6475 GB, free: 5.961 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.1299, allocations: 192 kB / 0.6477 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.464e-06/0.1299, allocations: 384 / 0.6477 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-06/0.1299, allocations: 384 / 0.6477 GB, free: 5.734 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.337e-05/0.13, allocations: 45.8 kB / 0.6477 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.302e-06/0.13, allocations: 0 / 0.6477 GB, free: 5.684 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-06/0.13, allocations: 4 kB / 0.6477 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.397e-06/0.13, allocations: 0 / 0.6477 GB, free: 5.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.791e-05/0.13, allocations: 19.98 kB / 0.6477 GB, free: 5.66 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001461/0.1302, allocations: 173.7 kB / 0.6479 GB, free: 5.441 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.803e-05/0.1302, allocations: 26.52 kB / 0.6479 GB, free: 5.406 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.979e-05/0.1303, allocations: 12.92 kB / 0.6479 GB, free: 5.391 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.856e-05/0.1303, allocations: 7.984 kB / 0.648 GB, free: 5.383 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.1303, allocations: 38.5 kB / 0.648 GB, free: 5.336 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.052e-06/0.1303, allocations: 0 / 0.648 GB, free: 5.336 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001275/0.1305, allocations: 57.64 kB / 0.648 GB, free: 5.273 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.1305, allocations: 51.41 kB / 0.6481 GB, free: 5.211 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001359/0.1307, allocations: 184.3 kB / 0.6483 GB, free: 5.023 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.2e-05/0.1307, allocations: 25.7 kB / 0.6483 GB, free: 4.992 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.227e-05/0.1307, allocations: 92.12 kB / 0.6484 GB, free: 4.898 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.1307, allocations: 11.89 kB / 0.6484 GB, free: 4.887 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.1308, allocations: 25.84 kB / 0.6484 GB, free: 4.855 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.561e-05/0.1309, allocations: 318.8 kB / 0.6487 GB, free: 4.535 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.997e-05/0.1309, allocations: 39.98 kB / 0.6488 GB, free: 4.496 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.924e-05/0.131, allocations: 39.97 kB / 0.6488 GB, free: 4.457 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.544e-05/0.1311, allocations: 64.84 kB / 0.6489 GB, free: 4.391 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.1311, allocations: 4 kB / 0.6489 GB, free: 4.387 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001332/0.1312, allocations: 125.5 kB / 0.649 GB, free: 4.258 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.136e-05/0.1312, allocations: 7.938 kB / 0.649 GB, free: 4.25 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.1313, allocations: 4.062 kB / 0.649 GB, free: 4.246 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.237e-06/0.1313, allocations: 7.938 kB / 0.649 GB, free: 4.238 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.203e-05/0.1313, allocations: 4 kB / 0.649 GB, free: 4.234 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.828e-06/0.1313, allocations: 0 / 0.649 GB, free: 4.234 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.415e-05/0.1313, allocations: 7.953 kB / 0.649 GB, free: 4.227 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.852e-06/0.1313, allocations: 0 / 0.649 GB, free: 4.227 MB / 494.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 0.0001188/0.1315, allocations: 129.8 kB / 0.6491 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.506e-05/0.1315, allocations: 7.891 kB / 0.6491 GB, free: 4.082 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.912e-05/0.1316, allocations: 61.56 kB / 0.6492 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.263e-06/0.1316, allocations: 0 / 0.6492 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.517e-06/0.1316, allocations: 0 / 0.6492 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.044e-06/0.1316, allocations: 0 / 0.6492 GB, free: 4.012 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.849e-05/0.1317, allocations: 169.7 kB / 0.6494 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1317, allocations: 0 / 0.6494 GB, free: 3.797 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.34e-06/0.1317, allocations: 7.875 kB / 0.6494 GB, free: 3.789 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.1317, allocations: 0 / 0.6494 GB, free: 3.789 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.698e-06/0.1317, allocations: 3.938 kB / 0.6494 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.1317, allocations: 0 / 0.6494 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.1318, allocations: 0 / 0.6494 GB, free: 3.785 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.407e-05/0.1318, allocations: 89.03 kB / 0.6495 GB, free: 3.68 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.5e-05/0.1319, allocations: 89 kB / 0.6495 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.169e-05/0.1319, allocations: 0 / 0.6495 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.226e-05/0.1319, allocations: 0 / 0.6495 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.496e-06/0.1319, allocations: 0 / 0.6495 GB, free: 3.574 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.225e-06/0.1319, allocations: 0 / 0.6495 GB, free: 3.574 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.234e-05/0.132, allocations: 129.1 kB / 0.6497 GB, free: 3.449 MB / 494.1 MB Notification: Performance of sort global known variables: time 2e-07/0.132, allocations: 4.031 kB / 0.6497 GB, free: 3.445 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003028/0.1323, allocations: 83.8 kB / 0.6498 GB, free: 3.363 MB / 494.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.0006493/0.133, allocations: 0.7451 MB / 0.6505 GB, free: 2.609 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001512/0.1332, allocations: 105.7 kB / 0.6506 GB, free: 2.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1332, allocations: 0 / 0.6506 GB, free: 2.5 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.492e-05/0.1332, allocations: 8 kB / 0.6506 GB, free: 2.492 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.1333, allocations: 10.53 kB / 0.6506 GB, free: 2.484 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001202/0.1345, allocations: 1.543 MB / 0.6521 GB, free: 0.8633 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002137/0.1348, allocations: 0.6924 MB / 0.6528 GB, free: 148 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.898e-05/0.1348, allocations: 7.984 kB / 0.6528 GB, free: 140 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.857e-05/0.1348, allocations: 19.42 kB / 0.6528 GB, free: 120 kB / 494.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1348, allocations: 0 / 0.6528 GB, free: 120 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01785/0.1527, allocations: 3.48 MB / 0.6562 GB, free: 12.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.411/7.563, allocations: 0 / 0.6562 GB, free: 12.72 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d_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_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1)