Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_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.004914/0.004914, allocations: 95.97 kB / 15.73 MB, free: 6.055 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.001201/0.001202, allocations: 202.7 kB / 16.68 MB, free: 5.977 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.363/1.363, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002222/0.002222, allocations: 286.8 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9493/0.9493, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001757/0.001757, allocations: 99.86 kB / 0.6809 GB, free: 48 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1476/0.1494, allocations: 86.97 MB / 0.7659 GB, free: 9 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00164/0.151, allocations: 0.5147 MB / 0.7664 GB, free: 8.488 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002038/0.1531, allocations: 1.603 MB / 0.7679 GB, free: 6.867 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.623e-05/0.1532, allocations: 3.938 kB / 0.7679 GB, free: 6.863 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.1533, allocations: 63.89 kB / 0.768 GB, free: 6.801 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.668e-05/0.1534, allocations: 31.89 kB / 0.768 GB, free: 6.77 MB / 0.5606 GB [/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/BuildingSystems 2.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.0008883/0.1543, allocations: 249.5 kB / 0.7683 GB, free: 6.527 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.001e-05/0.1544, allocations: 27.95 kB / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.1544, allocations: 4 kB / 0.7683 GB, free: 6.496 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.457e-05/0.1545, allocations: 23.91 kB / 0.7683 GB, free: 6.473 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.943e-05/0.1545, allocations: 43.89 kB / 0.7684 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.083e-05/0.1546, allocations: 0 / 0.7684 GB, free: 6.43 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000529/0.1551, allocations: 335.4 kB / 0.7687 GB, free: 6.102 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.084e-05/0.1552, allocations: 27.92 kB / 0.7687 GB, free: 6.074 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.078e-05/0.1552, allocations: 23.75 kB / 0.7687 GB, free: 6.051 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.000402/0.1556, allocations: 299.4 kB / 0.769 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.1556, allocations: 0 / 0.769 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of FrontEnd: time 3.757e-06/0.1556, allocations: 0 / 0.769 GB, free: 5.758 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.306e-06/0.1556, allocations: 3.938 kB / 0.769 GB, free: 5.754 MB / 0.5606 GB 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.0004355/0.1561, allocations: 438.4 kB / 0.7694 GB, free: 5.277 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.413e-05/0.1561, allocations: 8.031 kB / 0.7695 GB, free: 5.27 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.1562, allocations: 38.75 kB / 0.7695 GB, free: 5.223 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.888e-05/0.1562, allocations: 12.84 kB / 0.7695 GB, free: 5.211 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.1564, allocations: 193.4 kB / 0.7697 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.055e-06/0.1564, allocations: 4.375 kB / 0.7697 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.154e-06/0.1564, allocations: 384 / 0.7697 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.65e-05/0.1565, allocations: 41.81 kB / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.104e-06/0.1565, allocations: 0 / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.113e-06/0.1565, allocations: 0 / 0.7697 GB, free: 4.934 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/0.1565, allocations: 4 kB / 0.7697 GB, free: 4.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.098e-05/0.1565, allocations: 15.98 kB / 0.7698 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001685/0.1567, allocations: 189.6 kB / 0.7699 GB, free: 4.68 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 4.608e-05/0.1568, allocations: 34.58 kB / 0.77 GB, free: 4.637 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.247e-05/0.1568, allocations: 16.91 kB / 0.77 GB, free: 4.617 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.1568, allocations: 4 kB / 0.77 GB, free: 4.613 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1569, allocations: 42.5 kB / 0.77 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.1569, allocations: 0 / 0.77 GB, free: 4.562 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001454/0.157, allocations: 73.52 kB / 0.7701 GB, free: 4.484 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.1571, allocations: 51.41 kB / 0.7701 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001804/0.1573, allocations: 222.8 kB / 0.7704 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.1573, allocations: 29.69 kB / 0.7704 GB, free: 4.16 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.322e-05/0.1573, allocations: 100.1 kB / 0.7705 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.366e-06/0.1573, allocations: 0 / 0.7705 GB, free: 4.059 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.328e-05/0.1574, allocations: 33.7 kB / 0.7705 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 9.287e-05/0.1575, allocations: 322.8 kB / 0.7708 GB, free: 3.695 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.416e-05/0.1576, allocations: 55.97 kB / 0.7709 GB, free: 3.641 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.025e-05/0.1576, allocations: 51.98 kB / 0.7709 GB, free: 3.59 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.212e-05/0.1577, allocations: 100.8 kB / 0.771 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1577, allocations: 0 / 0.771 GB, free: 3.488 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001722/0.1579, allocations: 167.3 kB / 0.7712 GB, free: 3.32 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.379e-05/0.1579, allocations: 8 kB / 0.7712 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/0.1579, allocations: 0 / 0.7712 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.002e-05/0.158, allocations: 0 / 0.7712 GB, free: 3.312 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.122e-05/0.158, allocations: 4 kB / 0.7712 GB, free: 3.309 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.158, allocations: 3.984 kB / 0.7712 GB, free: 3.305 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.941e-05/0.158, allocations: 11.89 kB / 0.7712 GB, free: 3.293 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.286e-06/0.158, allocations: 0 / 0.7712 GB, free: 3.293 MB / 0.5606 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.0001292/0.1582, allocations: 134.5 kB / 0.7713 GB, free: 3.152 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.503e-05/0.1582, allocations: 11.84 kB / 0.7713 GB, free: 3.141 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.1583, allocations: 66.23 kB / 0.7714 GB, free: 3.07 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.1583, allocations: 3.938 kB / 0.7714 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.1583, allocations: 0 / 0.7714 GB, free: 3.066 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1583, allocations: 4 kB / 0.7714 GB, free: 3.062 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000109/0.1585, allocations: 173.7 kB / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.1585, allocations: 0 / 0.7716 GB, free: 2.844 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.061e-05/0.1585, allocations: 19.95 kB / 0.7716 GB, free: 2.824 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.1585, allocations: 3.984 kB / 0.7716 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.66e-06/0.1585, allocations: 0 / 0.7716 GB, free: 2.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.705e-06/0.1585, allocations: 4 kB / 0.7716 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1585, allocations: 0 / 0.7716 GB, free: 2.816 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.133e-05/0.1586, allocations: 81.03 kB / 0.7717 GB, free: 2.719 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 3.541e-05/0.1586, allocations: 89 kB / 0.7718 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.1587, allocations: 0 / 0.7718 GB, free: 2.613 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.323e-05/0.1587, allocations: 4.031 kB / 0.7718 GB, free: 2.609 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.087e-05/0.1587, allocations: 3.984 kB / 0.7718 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.746e-06/0.1587, allocations: 0 / 0.7718 GB, free: 2.605 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001049/0.1588, allocations: 148.4 kB / 0.7719 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of sort global known variables: time 2.435e-06/0.1588, allocations: 0 / 0.7719 GB, free: 2.461 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003229/0.1591, allocations: 91.73 kB / 0.772 GB, free: 2.371 MB / 0.5606 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.0006862/0.1598, allocations: 0.7519 MB / 0.7727 GB, free: 1.609 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001669/0.16, allocations: 121.7 kB / 0.7729 GB, free: 1.484 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.16, allocations: 4.094 kB / 0.7729 GB, free: 1.48 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.793e-05/0.16, allocations: 19.92 kB / 0.7729 GB, free: 1.461 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001441/0.1602, allocations: 7.75 kB / 0.7729 GB, free: 1.453 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2914/0.4516, allocations: 1.813 MB / 0.7747 GB, free: 13.92 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.4517, allocations: 0.7024 MB / 0.7753 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.21e-05/0.4518, allocations: 2.656 kB / 0.7753 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.414e-05/0.4518, allocations: 26.81 kB / 0.7754 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of SimCode: time 8.41e-07/0.4518, allocations: 0 / 0.7754 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02097/0.4728, allocations: 3.892 MB / 0.7792 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.372/7.844, allocations: 2.375 kB / 0.7792 GB, free: 12.8 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)