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.004983/0.004983, allocations: 102.1 kB / 15.73 MB, free: 6.066 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.001301/0.001301, allocations: 194.1 kB / 16.68 MB, free: 5.973 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.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.176 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002508/0.002508, allocations: 278.8 kB / 290.8 MB, free: 1.781 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.011/1.011, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002724/0.002724, allocations: 91.84 kB / 0.6809 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1557/0.1585, allocations: 86.97 MB / 0.7659 GB, free: 8.969 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001608/0.1601, allocations: 0.5217 MB / 0.7664 GB, free: 8.449 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002322/0.1624, allocations: 1.599 MB / 0.7679 GB, free: 6.832 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.74e-05/0.1625, allocations: 7.938 kB / 0.7679 GB, free: 6.824 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.1627, allocations: 59.89 kB / 0.768 GB, free: 6.766 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.125e-05/0.1628, allocations: 31.89 kB / 0.768 GB, free: 6.734 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.000913/0.1637, allocations: 239.3 kB / 0.7683 GB, free: 6.5 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.633e-05/0.1638, allocations: 39.84 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.373e-05/0.1638, allocations: 4 kB / 0.7683 GB, free: 6.457 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.222e-05/0.1639, allocations: 23.95 kB / 0.7683 GB, free: 6.434 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 6.682e-05/0.1639, allocations: 35.91 kB / 0.7684 GB, free: 6.398 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.582e-05/0.164, allocations: 4 kB / 0.7684 GB, free: 6.395 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005991/0.1646, allocations: 339.4 kB / 0.7687 GB, free: 6.062 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.209e-05/0.1646, allocations: 23.92 kB / 0.7687 GB, free: 6.039 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.573e-05/0.1647, allocations: 23.75 kB / 0.7687 GB, free: 6.016 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004602/0.1651, allocations: 299.4 kB / 0.769 GB, free: 5.723 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.1651, allocations: 4 kB / 0.769 GB, free: 5.719 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.293e-06/0.1652, allocations: 4 kB / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.1652, allocations: 0 / 0.769 GB, free: 5.715 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.0005038/0.1657, allocations: 434.4 kB / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.1657, allocations: 12.03 kB / 0.7695 GB, free: 5.23 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.751e-05/0.1658, allocations: 34.69 kB / 0.7695 GB, free: 5.188 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.062e-05/0.1658, allocations: 12.84 kB / 0.7695 GB, free: 5.176 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001741/0.166, allocations: 185.4 kB / 0.7697 GB, free: 4.957 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.166, allocations: 4.375 kB / 0.7697 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.276e-06/0.166, allocations: 4.375 kB / 0.7697 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.767e-05/0.1661, allocations: 49.81 kB / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.933e-06/0.1661, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.291e-06/0.1661, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.1661, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.28e-05/0.1662, allocations: 19.98 kB / 0.7698 GB, free: 4.875 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001892/0.1664, allocations: 181.6 kB / 0.7699 GB, free: 4.648 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.068e-05/0.1664, allocations: 38.52 kB / 0.77 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.682e-05/0.1665, allocations: 16.91 kB / 0.77 GB, free: 4.582 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1665, allocations: 8 kB / 0.77 GB, free: 4.574 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.832e-05/0.1665, allocations: 38.48 kB / 0.77 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1665, allocations: 0 / 0.77 GB, free: 4.527 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001603/0.1667, allocations: 77.52 kB / 0.7701 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.318e-05/0.1668, allocations: 51.41 kB / 0.7701 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.167, allocations: 222.7 kB / 0.7704 GB, free: 4.156 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.579e-05/0.167, allocations: 25.7 kB / 0.7704 GB, free: 4.125 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 7.005e-05/0.1671, allocations: 108.2 kB / 0.7705 GB, free: 4.016 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.018e-05/0.1671, allocations: 3.984 kB / 0.7705 GB, free: 4.012 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.356e-05/0.1671, allocations: 25.72 kB / 0.7705 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001361/0.1673, allocations: 322.8 kB / 0.7708 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.075e-05/0.1674, allocations: 55.97 kB / 0.7709 GB, free: 3.602 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.759e-05/0.1674, allocations: 59.97 kB / 0.7709 GB, free: 3.543 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001052/0.1675, allocations: 86.75 kB / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1675, allocations: 0 / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002009/0.1677, allocations: 173.4 kB / 0.7712 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.1678, allocations: 8.062 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.1678, allocations: 0 / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.197e-05/0.1678, allocations: 4 kB / 0.7712 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.327e-05/0.1678, allocations: 3.984 kB / 0.7712 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.1678, allocations: 0 / 0.7712 GB, free: 3.266 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.712e-05/0.1679, allocations: 7.891 kB / 0.7712 GB, free: 3.258 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.1679, allocations: 4 kB / 0.7712 GB, free: 3.254 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.0001589/0.168, allocations: 128.2 kB / 0.7713 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.861e-05/0.1681, allocations: 23.84 kB / 0.7714 GB, free: 3.098 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001137/0.1682, allocations: 62.23 kB / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.453e-06/0.1682, allocations: 0 / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.1682, allocations: 0 / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.603e-06/0.1682, allocations: 0 / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.1684, allocations: 181.7 kB / 0.7716 GB, free: 2.805 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1684, allocations: 7.922 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.302e-06/0.1684, allocations: 3.938 kB / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.1684, allocations: 0 / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.84e-06/0.1684, allocations: 0 / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1684, allocations: 4.031 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.1684, allocations: 4 kB / 0.7716 GB, free: 2.785 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.16e-05/0.1685, allocations: 81.03 kB / 0.7717 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 5.465e-05/0.1686, allocations: 89 kB / 0.7718 GB, free: 2.582 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.432e-05/0.1686, allocations: 4 kB / 0.7718 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.303e-05/0.1686, allocations: 0 / 0.7718 GB, free: 2.578 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.281e-05/0.1686, allocations: 7.984 kB / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1686, allocations: 4.031 kB / 0.7718 GB, free: 2.566 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001176/0.1688, allocations: 140.4 kB / 0.7719 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.1688, allocations: 0 / 0.7719 GB, free: 2.43 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003438/0.1691, allocations: 91.8 kB / 0.772 GB, free: 2.34 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.0007963/0.1699, allocations: 0.7576 MB / 0.7727 GB, free: 1.574 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002004/0.1701, allocations: 125.7 kB / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1701, allocations: 0 / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.065e-05/0.1702, allocations: 11.98 kB / 0.7729 GB, free: 1.434 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001425/0.1703, allocations: 15.81 kB / 0.7729 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2875/0.4578, allocations: 1.814 MB / 0.7747 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.458, allocations: 0.7038 MB / 0.7753 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.95e-05/0.458, allocations: 3.25 kB / 0.7754 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.43e-05/0.458, allocations: 33.11 kB / 0.7754 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of SimCode: time 5.91e-07/0.458, allocations: 0 / 0.7754 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02375/0.4818, allocations: 3.883 MB / 0.7792 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.637/8.119, allocations: 9.891 kB / 0.7792 GB, free: 12.71 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)