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.0009317/0.0009317, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001083/0.001083, allocations: 193.9 kB / 16.53 MB, free: 6.664 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.279/1.279, allocations: 222.9 MB / 240.2 MB, free: 4.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002164/0.002164, allocations: 286.6 kB / 290.7 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8815/0.8815, allocations: 169.3 MB / 0.4982 GB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002029/0.002029, allocations: 94.52 kB / 0.5953 GB, free: 27.99 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1684/0.1704, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.002091/0.1725, allocations: 0.5067 MB / 0.6808 GB, free: 96 kB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002565/0.1751, allocations: 1.6 MB / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.807e-05/0.1752, allocations: 0 / 0.6823 GB, free: 14.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001762/0.1754, allocations: 67.84 kB / 0.6824 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.261e-05/0.1755, allocations: 28.61 kB / 0.6824 GB, free: 14.38 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/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.0009485/0.1764, allocations: 252.2 kB / 0.6827 GB, free: 14.14 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.98e-05/0.1765, allocations: 33.34 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.168e-05/0.1765, allocations: 4 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.929e-05/0.1766, allocations: 31.89 kB / 0.6827 GB, free: 14.07 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.925e-05/0.1766, allocations: 35.91 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.309e-05/0.1767, allocations: 0.5625 kB / 0.6828 GB, free: 14.04 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000543/0.1772, allocations: 291.6 kB / 0.683 GB, free: 13.75 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.31e-05/0.1773, allocations: 24.44 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.213e-05/0.1773, allocations: 27.75 kB / 0.6831 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004817/0.1778, allocations: 291.5 kB / 0.6834 GB, free: 13.42 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.1779, allocations: 4 kB / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1779, allocations: 0 / 0.6834 GB, free: 13.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.1779, allocations: 0 / 0.6834 GB, free: 13.41 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.0006023/0.1785, allocations: 431 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.1785, allocations: 8.031 kB / 0.6838 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.568e-05/0.1786, allocations: 38.69 kB / 0.6838 GB, free: 12.89 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.107e-05/0.1786, allocations: 16.75 kB / 0.6838 GB, free: 12.88 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002102/0.1789, allocations: 193.3 kB / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-06/0.1789, allocations: 384 / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.688e-06/0.1789, allocations: 384 / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.598e-05/0.179, allocations: 45.75 kB / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.783e-06/0.179, allocations: 0 / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.572e-06/0.179, allocations: 0 / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.179, allocations: 0 / 0.6841 GB, free: 12.6 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.067e-05/0.179, allocations: 19.98 kB / 0.6841 GB, free: 12.58 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001703/0.1792, allocations: 185.7 kB / 0.6843 GB, free: 12.35 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.515e-05/0.1793, allocations: 22.58 kB / 0.6843 GB, free: 12.32 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.547e-05/0.1793, allocations: 20.91 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.1793, allocations: 7.938 kB / 0.6843 GB, free: 12.29 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.1794, allocations: 38.5 kB / 0.6844 GB, free: 12.24 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.012e-06/0.1794, allocations: 3.938 kB / 0.6844 GB, free: 12.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001536/0.1795, allocations: 73.48 kB / 0.6844 GB, free: 12.16 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.877e-05/0.1796, allocations: 51.41 kB / 0.6845 GB, free: 12.09 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001802/0.1798, allocations: 206.9 kB / 0.6847 GB, free: 11.88 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.189e-05/0.1798, allocations: 25.7 kB / 0.6847 GB, free: 11.85 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.686e-05/0.1798, allocations: 108 kB / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.937e-06/0.1799, allocations: 0 / 0.6848 GB, free: 11.74 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.3e-05/0.1799, allocations: 33.7 kB / 0.6848 GB, free: 11.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001041/0.18, allocations: 323 kB / 0.6851 GB, free: 11.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.166e-05/0.1801, allocations: 59.97 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.173e-05/0.1801, allocations: 55.92 kB / 0.6853 GB, free: 11.27 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.554e-05/0.1802, allocations: 94.73 kB / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.1803, allocations: 0 / 0.6853 GB, free: 11.17 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001709/0.1804, allocations: 169.3 kB / 0.6855 GB, free: 11 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.1804, allocations: 4 kB / 0.6855 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.542e-05/0.1805, allocations: 7.938 kB / 0.6855 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.436e-05/0.1805, allocations: 0 / 0.6855 GB, free: 10.99 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.324e-05/0.1805, allocations: 3.984 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.1805, allocations: 64 / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.011e-05/0.1806, allocations: 15.84 kB / 0.6855 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.226e-06/0.1806, allocations: 0 / 0.6855 GB, free: 10.97 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: 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.0001407/0.1807, allocations: 132.4 kB / 0.6857 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.682e-05/0.1807, allocations: 15.75 kB / 0.6857 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.1809, allocations: 66.23 kB / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.1809, allocations: 0 / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1809, allocations: 0 / 0.6857 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.1809, allocations: 4.031 kB / 0.6857 GB, free: 10.74 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000118/0.181, allocations: 185.6 kB / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.181, allocations: 0 / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.238e-06/0.181, allocations: 7.922 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.181, allocations: 0 / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.181, allocations: 4 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.181, allocations: 0 / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.1811, allocations: 4 kB / 0.6859 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001126/0.1812, allocations: 88.97 kB / 0.686 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.777e-05/0.1812, allocations: 88.86 kB / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.75e-05/0.1813, allocations: 0 / 0.6861 GB, free: 10.29 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.268e-05/0.1813, allocations: 8 kB / 0.6861 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.562e-05/0.1813, allocations: 3.984 kB / 0.6861 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.735e-06/0.1813, allocations: 0 / 0.6861 GB, free: 10.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001546/0.1815, allocations: 144.4 kB / 0.6863 GB, free: 10.13 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.1815, allocations: 0 / 0.6863 GB, free: 10.13 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003623/0.1819, allocations: 83.98 kB / 0.6863 GB, free: 10.05 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.0007355/0.1826, allocations: 0.7627 MB / 0.6871 GB, free: 9.277 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001732/0.1828, allocations: 125.7 kB / 0.6872 GB, free: 9.148 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1828, allocations: 0 / 0.6872 GB, free: 9.148 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.717e-05/0.1828, allocations: 15.98 kB / 0.6872 GB, free: 9.133 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001423/0.183, allocations: 4 kB / 0.6872 GB, free: 9.129 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001588/0.1846, allocations: 1.811 MB / 0.689 GB, free: 7.242 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002447/0.1848, allocations: 0.7002 MB / 0.6897 GB, free: 6.516 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.701e-05/0.1849, allocations: 0 / 0.6897 GB, free: 6.516 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.18e-05/0.1849, allocations: 31.42 kB / 0.6897 GB, free: 6.484 MB / 494.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1849, allocations: 0 / 0.6897 GB, free: 6.484 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04872/0.2336, allocations: 3.844 MB / 0.6935 GB, free: 2.738 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.47/7.704, allocations: 12.61 kB / 0.6935 GB, free: 2.73 MB / 494.1 MB (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)