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.001299/0.001299, allocations: 109.6 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.001186/0.001186, allocations: 189.2 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8213/0.8213, allocations: 126.7 MB / 417.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001912/0.001912, allocations: 73.34 kB / 0.5735 GB, free: 27.06 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1314, allocations: 78.87 MB / 0.6505 GB, free: 3.621 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001524/0.133, allocations: 0.4971 MB / 0.651 GB, free: 3.125 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002208/0.1352, allocations: 1.624 MB / 0.6526 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.523e-05/0.1352, allocations: 4 kB / 0.6526 GB, free: 1.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001218/0.1354, allocations: 15.92 kB / 0.6526 GB, free: 1.465 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.576e-05/0.1354, allocations: 11.92 kB / 0.6526 GB, free: 1.453 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.000787/0.1362, allocations: 243.3 kB / 0.6529 GB, free: 1.215 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.207e-05/0.1363, allocations: 23.92 kB / 0.6529 GB, free: 1.191 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.142e-05/0.1363, allocations: 3.984 kB / 0.6529 GB, free: 1.188 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.085e-05/0.1363, allocations: 19.92 kB / 0.6529 GB, free: 1.168 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.864e-05/0.1364, allocations: 15.92 kB / 0.6529 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.084e-05/0.1364, allocations: 0 / 0.6529 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005632/0.137, allocations: 343.5 kB / 0.6532 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 5.262e-05/0.137, allocations: 15.92 kB / 0.6533 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.717e-05/0.1371, allocations: 15.88 kB / 0.6533 GB, free: 0.7852 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003923/0.1375, allocations: 275.5 kB / 0.6535 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1375, allocations: 4 kB / 0.6535 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.1375, allocations: 0 / 0.6535 GB, free: 0.5117 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.298e-06/0.1375, allocations: 0 / 0.6535 GB, free: 0.5117 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.000449/0.138, allocations: 414.7 kB / 0.6539 GB, free: 60 kB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.442e-05/0.138, allocations: 12.03 kB / 0.6539 GB, free: 48 kB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.138, allocations: 30.75 kB / 0.654 GB, free: 8 kB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.695e-05/0.1381, allocations: 8.828 kB / 0.654 GB, free: 0 / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.1383, allocations: 187.6 kB / 0.6542 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.668e-06/0.1383, allocations: 4.359 kB / 0.6542 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.446e-06/0.1383, allocations: 4.375 kB / 0.6542 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.623e-05/0.1384, allocations: 33.83 kB / 0.6542 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.891e-06/0.1384, allocations: 8 kB / 0.6542 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.33e-06/0.1384, allocations: 0 / 0.6542 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.1384, allocations: 0 / 0.6542 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.982e-05/0.1384, allocations: 15.98 kB / 0.6542 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001855/0.1386, allocations: 173.6 kB / 0.6544 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.398e-05/0.1387, allocations: 26.52 kB / 0.6544 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.46e-05/0.1387, allocations: 16.91 kB / 0.6544 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.785e-05/0.1388, allocations: 4 kB / 0.6544 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.1388, allocations: 42.5 kB / 0.6545 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1388, allocations: 0 / 0.6545 GB, free: 15.38 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1): time 0.0001354/0.1389, allocations: 57.64 kB / 0.6545 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.139, allocations: 55.41 kB / 0.6546 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000169/0.1392, allocations: 177.9 kB / 0.6548 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.493e-05/0.1392, allocations: 25.7 kB / 0.6548 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 5.847e-05/0.1393, allocations: 96.12 kB / 0.6549 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.1393, allocations: 8.062 kB / 0.6549 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.659e-05/0.1393, allocations: 29.7 kB / 0.6549 GB, free: 14.89 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000142/0.1395, allocations: 314.8 kB / 0.6552 GB, free: 14.58 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.966e-05/0.1395, allocations: 39.98 kB / 0.6552 GB, free: 14.54 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.985e-05/0.1396, allocations: 47.97 kB / 0.6553 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.185e-05/0.1397, allocations: 64.84 kB / 0.6554 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.1397, allocations: 0 / 0.6554 GB, free: 14.43 MB / 0.4981 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001569/0.1399, allocations: 129.5 kB / 0.6555 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1399, allocations: 8 kB / 0.6555 GB, free: 14.29 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.042e-05/0.1399, allocations: 4.062 kB / 0.6555 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1399, allocations: 0 / 0.6555 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.659e-06/0.14, allocations: 3.938 kB / 0.6555 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.14, allocations: 0 / 0.6555 GB, free: 14.28 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.475e-05/0.14, allocations: 11.94 kB / 0.6555 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-06/0.14, allocations: 0 / 0.6555 GB, free: 14.27 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: 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.0001368/0.1401, allocations: 123.3 kB / 0.6556 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.809e-05/0.1402, allocations: 15.84 kB / 0.6556 GB, free: 14.12 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001039/0.1403, allocations: 57.56 kB / 0.6557 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.1403, allocations: 0 / 0.6557 GB, free: 14.06 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.219e-06/0.1403, allocations: 4 kB / 0.6557 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-06/0.1403, allocations: 0 / 0.6557 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.1405, allocations: 169.7 kB / 0.6559 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.1405, allocations: 0 / 0.6559 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.975e-06/0.1405, allocations: 3.938 kB / 0.6559 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.312e-06/0.1405, allocations: 3.938 kB / 0.6559 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.1405, allocations: 0 / 0.6559 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.926e-06/0.1405, allocations: 7.938 kB / 0.6559 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1405, allocations: 4.031 kB / 0.6559 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.827e-05/0.1406, allocations: 81.06 kB / 0.656 GB, free: 13.72 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.082e-05/0.1407, allocations: 88.98 kB / 0.656 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.096e-05/0.1407, allocations: 0 / 0.656 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.131e-05/0.1407, allocations: 0 / 0.656 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.116e-05/0.1407, allocations: 4 kB / 0.656 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.505e-06/0.1407, allocations: 0 / 0.656 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.000107/0.1408, allocations: 125.7 kB / 0.6562 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.81e-07/0.1408, allocations: 4 kB / 0.6562 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0003054/0.1411, allocations: 87.8 kB / 0.6562 GB, free: 13.4 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.0008054/0.142, allocations: 0.7389 MB / 0.657 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0001596/0.1421, allocations: 97.66 kB / 0.6571 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1421, allocations: 4 kB / 0.6571 GB, free: 12.55 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.771e-05/0.1422, allocations: 12 kB / 0.6571 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001311/0.1423, allocations: 4.281 kB / 0.6571 GB, free: 12.54 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001458/0.1438, allocations: 1.54 MB / 0.6586 GB, free: 10.92 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003433/0.1441, allocations: 0.6965 MB / 0.6593 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.755e-05/0.1442, allocations: 0 / 0.6593 GB, free: 10.2 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.831e-05/0.1442, allocations: 27.36 kB / 0.6593 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1442, allocations: 0 / 0.6593 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02406/0.1683, allocations: 3.479 MB / 0.6627 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.833/8.001, allocations: 4.594 kB / 0.6627 GB, free: 6.77 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)