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.005521/0.005521, allocations: 102.4 kB / 15.73 MB, free: 6.484 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.001331/0.001331, allocations: 196.3 kB / 16.68 MB, free: 6.375 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.252/1.252, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001944/0.001944, allocations: 278.6 kB / 290.8 MB, free: 1.918 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9069/0.9069, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001708/0.001708, allocations: 99.31 kB / 0.6809 GB, free: 4 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1589/0.1607, allocations: 86.97 MB / 0.7659 GB, free: 8.953 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001672/0.1624, allocations: 0.5103 MB / 0.7664 GB, free: 8.445 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.002055/0.1644, allocations: 1.607 MB / 0.7679 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.1645, allocations: 0 / 0.7679 GB, free: 6.82 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001659/0.1647, allocations: 63.86 kB / 0.768 GB, free: 6.758 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 3.567e-05/0.1647, allocations: 35.94 kB / 0.768 GB, free: 6.723 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.00085/0.1656, allocations: 241.2 kB / 0.7683 GB, free: 6.488 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.092e-05/0.1657, allocations: 27.91 kB / 0.7683 GB, free: 6.461 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.083e-05/0.1657, allocations: 11.97 kB / 0.7683 GB, free: 6.449 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.515e-05/0.1658, allocations: 23.92 kB / 0.7683 GB, free: 6.426 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.637e-05/0.1658, allocations: 43.89 kB / 0.7684 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.011e-05/0.1659, allocations: 0 / 0.7684 GB, free: 6.383 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000509/0.1664, allocations: 331.5 kB / 0.7687 GB, free: 6.059 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.77e-05/0.1664, allocations: 27.92 kB / 0.7687 GB, free: 6.031 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.075e-05/0.1665, allocations: 27.73 kB / 0.7687 GB, free: 6.004 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0003842/0.1668, allocations: 295.5 kB / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 2.445e-06/0.1669, allocations: 0 / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.062e-06/0.1669, allocations: 0 / 0.769 GB, free: 5.715 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.989e-06/0.1669, allocations: 4 kB / 0.769 GB, free: 5.711 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.0005115/0.1674, allocations: 430.9 kB / 0.7694 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.543e-05/0.1674, allocations: 8.031 kB / 0.7694 GB, free: 5.234 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.902e-05/0.1675, allocations: 34.75 kB / 0.7695 GB, free: 5.191 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.1675, allocations: 8.844 kB / 0.7695 GB, free: 5.184 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001579/0.1677, allocations: 197.2 kB / 0.7697 GB, free: 4.953 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.074e-06/0.1677, allocations: 4.375 kB / 0.7697 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.1677, allocations: 384 / 0.7697 GB, free: 4.949 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.893e-05/0.1678, allocations: 45.75 kB / 0.7697 GB, free: 4.898 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.1678, allocations: 4 kB / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.362e-06/0.1678, allocations: 0 / 0.7697 GB, free: 4.895 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.149e-06/0.1678, allocations: 3.984 kB / 0.7697 GB, free: 4.891 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.192e-05/0.1679, allocations: 19.98 kB / 0.7698 GB, free: 4.871 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000239/0.1681, allocations: 185.6 kB / 0.7699 GB, free: 4.641 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 3.974e-05/0.1681, allocations: 34.56 kB / 0.77 GB, free: 4.598 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.437e-05/0.1682, allocations: 16.92 kB / 0.77 GB, free: 4.578 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.226e-05/0.1682, allocations: 8 kB / 0.77 GB, free: 4.57 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.165e-05/0.1682, allocations: 46.42 kB / 0.77 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 8.22e-07/0.1682, allocations: 0 / 0.77 GB, free: 4.516 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001431/0.1684, allocations: 65.53 kB / 0.7701 GB, free: 4.445 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.1684, allocations: 51.41 kB / 0.7701 GB, free: 4.383 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.1686, allocations: 214.7 kB / 0.7703 GB, free: 4.164 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.1686, allocations: 25.7 kB / 0.7704 GB, free: 4.133 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.479e-05/0.1687, allocations: 108.2 kB / 0.7705 GB, free: 4.023 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.684e-06/0.1687, allocations: 4 kB / 0.7705 GB, free: 4.02 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.381e-05/0.1688, allocations: 33.7 kB / 0.7705 GB, free: 3.98 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001071/0.1689, allocations: 322.8 kB / 0.7708 GB, free: 3.656 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.389e-05/0.1689, allocations: 51.98 kB / 0.7709 GB, free: 3.605 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.15e-05/0.169, allocations: 55.97 kB / 0.7709 GB, free: 3.551 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.723e-05/0.1691, allocations: 94.69 kB / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1691, allocations: 0 / 0.771 GB, free: 3.457 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001636/0.1693, allocations: 165.4 kB / 0.7712 GB, free: 3.289 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.301e-05/0.1693, allocations: 8.062 kB / 0.7712 GB, free: 3.281 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.379e-05/0.1693, allocations: 7.984 kB / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.1694, allocations: 0 / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.188e-05/0.1694, allocations: 0 / 0.7712 GB, free: 3.273 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1694, allocations: 3.984 kB / 0.7712 GB, free: 3.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.983e-05/0.1694, allocations: 15.75 kB / 0.7712 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.276e-06/0.1694, allocations: 0 / 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.0001468/0.1696, allocations: 128.3 kB / 0.7713 GB, free: 3.121 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.613e-05/0.1696, allocations: 15.83 kB / 0.7713 GB, free: 3.105 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001074/0.1697, allocations: 70.19 kB / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1697, allocations: 0 / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.477e-06/0.1697, allocations: 0 / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.304e-06/0.1697, allocations: 0 / 0.7714 GB, free: 3.031 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001224/0.1699, allocations: 185.6 kB / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.1699, allocations: 0 / 0.7716 GB, free: 2.801 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.288e-06/0.1699, allocations: 3.938 kB / 0.7716 GB, free: 2.797 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.1699, allocations: 4 kB / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-06/0.1699, allocations: 0 / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.1699, allocations: 32 / 0.7716 GB, free: 2.793 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1699, allocations: 4 kB / 0.7716 GB, free: 2.789 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.001e-05/0.17, allocations: 84.88 kB / 0.7717 GB, free: 2.688 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 4.095e-05/0.1701, allocations: 84.95 kB / 0.7718 GB, free: 2.586 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.733e-05/0.1701, allocations: 11.98 kB / 0.7718 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.356e-05/0.1701, allocations: 0 / 0.7718 GB, free: 2.574 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.446e-05/0.1701, allocations: 4 kB / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.615e-06/0.1701, allocations: 0 / 0.7718 GB, free: 2.57 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.0001124/0.1702, allocations: 152.4 kB / 0.7719 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.51e-07/0.1702, allocations: 0 / 0.7719 GB, free: 2.422 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003336/0.1706, allocations: 87.94 kB / 0.772 GB, free: 2.336 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.0007511/0.1713, allocations: 0.7489 MB / 0.7727 GB, free: 1.578 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001675/0.1715, allocations: 129.6 kB / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1715, allocations: 0 / 0.7729 GB, free: 1.445 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.75e-05/0.1716, allocations: 15.98 kB / 0.7729 GB, free: 1.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001404/0.1717, allocations: 7.75 kB / 0.7729 GB, free: 1.422 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2863/0.458, allocations: 1.799 MB / 0.7746 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001538/0.4582, allocations: 0.7046 MB / 0.7753 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.357e-05/0.4582, allocations: 3.359 kB / 0.7753 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.229e-05/0.4583, allocations: 28.41 kB / 0.7754 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of SimCode: time 5.81e-07/0.4583, allocations: 3.875 kB / 0.7754 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02207/0.4804, allocations: 3.883 MB / 0.7791 GB, free: 12.74 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.276/7.757, allocations: 7.625 kB / 0.7792 GB, free: 12.73 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1)