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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001686/0.001686, allocations: 97.88 kB / 19.73 MB, free: 2.117 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002166/0.002166, allocations: 216.5 kB / 23.03 MB, free: 4.922 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.482/1.482, allocations: 230.6 MB / 256.8 MB, free: 7.793 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002532/0.002532, allocations: 299.5 kB / 313.5 MB, free: 2.613 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.255/1.255, allocations: 180.6 MB / 0.5377 GB, free: 14.57 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00281/0.00281, allocations: 91.61 kB / 0.7402 GB, free: 28.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1794/0.1822, allocations: 95.39 MB / 0.8334 GB, free: 8.355 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.00181/0.184, allocations: 0.5151 MB / 0.8339 GB, free: 7.84 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.00266/0.1867, allocations: 1.609 MB / 0.8355 GB, free: 6.215 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.51e-05/0.1867, allocations: 3.938 kB / 0.8355 GB, free: 6.211 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0002147/0.1869, allocations: 59.84 kB / 0.8355 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 4.706e-05/0.187, allocations: 35.89 kB / 0.8355 GB, free: 6.117 MB / 0.5762 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.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 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.0009996/0.188, allocations: 264.8 kB / 0.8358 GB, free: 5.859 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.486e-05/0.1881, allocations: 31.91 kB / 0.8358 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.187e-05/0.1881, allocations: 0 / 0.8358 GB, free: 5.828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.108e-05/0.1881, allocations: 23.97 kB / 0.8359 GB, free: 5.805 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.283e-05/0.1882, allocations: 47.88 kB / 0.8359 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.1882, allocations: 0 / 0.8359 GB, free: 5.758 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008158/0.189, allocations: 463.2 kB / 0.8363 GB, free: 5.305 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.9e-05/0.1891, allocations: 31.92 kB / 0.8364 GB, free: 5.273 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.35e-05/0.1891, allocations: 19.75 kB / 0.8364 GB, free: 5.254 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004321/0.1896, allocations: 299.4 kB / 0.8367 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1896, allocations: 0 / 0.8367 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.703e-06/0.1896, allocations: 0 / 0.8367 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.8e-06/0.1896, allocations: 0 / 0.8367 GB, free: 4.961 MB / 0.5762 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.0004992/0.1901, allocations: 369.3 kB / 0.837 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1901, allocations: 13.94 kB / 0.837 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.602e-05/0.1901, allocations: 192 / 0.837 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.876e-05/0.1902, allocations: 34.69 kB / 0.8371 GB, free: 4.516 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.155e-05/0.1902, allocations: 12.84 kB / 0.8371 GB, free: 4.504 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001588/0.1904, allocations: 135 kB / 0.8372 GB, free: 4.348 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.132e-05/0.1904, allocations: 4.375 kB / 0.8372 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.203e-06/0.1904, allocations: 384 / 0.8372 GB, free: 4.344 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001/0.1905, allocations: 37.64 kB / 0.8373 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.1905, allocations: 0 / 0.8373 GB, free: 4.301 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.478e-06/0.1905, allocations: 4 kB / 0.8373 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.1905, allocations: 0 / 0.8373 GB, free: 4.297 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.122e-05/0.1905, allocations: 15.98 kB / 0.8373 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001886/0.1907, allocations: 164.6 kB / 0.8374 GB, free: 4.078 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.272e-05/0.1908, allocations: 30.5 kB / 0.8375 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.185e-05/0.1908, allocations: 16.92 kB / 0.8375 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 4.01e-05/0.1908, allocations: 19.86 kB / 0.8375 GB, free: 4 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.743e-05/0.1909, allocations: 30.56 kB / 0.8375 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.162e-06/0.1909, allocations: 0 / 0.8375 GB, free: 3.961 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001569/0.191, allocations: 69.58 kB / 0.8376 GB, free: 3.887 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.964e-05/0.1911, allocations: 55.41 kB / 0.8376 GB, free: 3.82 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.1913, allocations: 212 kB / 0.8378 GB, free: 3.602 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.461e-05/0.1913, allocations: 25.7 kB / 0.8379 GB, free: 3.57 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 7.38e-05/0.1914, allocations: 112.1 kB / 0.838 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.317e-06/0.1914, allocations: 0 / 0.838 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.696e-05/0.1914, allocations: 33.83 kB / 0.838 GB, free: 3.418 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000144/0.1916, allocations: 326.8 kB / 0.8383 GB, free: 3.09 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.763e-05/0.1916, allocations: 51.98 kB / 0.8384 GB, free: 3.039 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.021e-05/0.1917, allocations: 55.97 kB / 0.8384 GB, free: 2.984 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001018/0.1918, allocations: 83.08 kB / 0.8385 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1918, allocations: 0 / 0.8385 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001968/0.192, allocations: 177.4 kB / 0.8387 GB, free: 2.723 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/0.192, allocations: 4 kB / 0.8387 GB, free: 2.719 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.514e-05/0.192, allocations: 4 kB / 0.8387 GB, free: 2.715 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.192, allocations: 3.938 kB / 0.8387 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.135e-05/0.192, allocations: 0 / 0.8387 GB, free: 2.711 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.049e-06/0.192, allocations: 4.062 kB / 0.8387 GB, free: 2.707 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.703e-05/0.1921, allocations: 11.91 kB / 0.8387 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.097e-06/0.1921, allocations: 4 kB / 0.8387 GB, free: 2.691 MB / 0.5762 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.0001763/0.1923, allocations: 134.5 kB / 0.8388 GB, free: 2.551 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.827e-05/0.1923, allocations: 11.89 kB / 0.8388 GB, free: 2.539 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.1924, allocations: 62.19 kB / 0.8389 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.588e-06/0.1924, allocations: 3.984 kB / 0.8389 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1924, allocations: 0 / 0.8389 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.1924, allocations: 0 / 0.8389 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.1925, allocations: 152.8 kB / 0.8391 GB, free: 2.277 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.1925, allocations: 7.875 kB / 0.8391 GB, free: 2.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.312e-06/0.1925, allocations: 4 kB / 0.8391 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.1925, allocations: 0 / 0.8391 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.48e-06/0.1925, allocations: 0 / 0.8391 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.82e-07/0.1925, allocations: 0 / 0.8391 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1925, allocations: 0 / 0.8391 GB, free: 2.266 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.739e-05/0.1926, allocations: 88.97 kB / 0.8391 GB, free: 2.16 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.015e-05/0.1927, allocations: 19.83 kB / 0.8392 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.1927, allocations: 0 / 0.8392 GB, free: 2.141 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.319e-05/0.1927, allocations: 4.031 kB / 0.8392 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.878e-06/0.1927, allocations: 0 / 0.8392 GB, free: 2.137 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.569e-06/0.1927, allocations: 4 kB / 0.8392 GB, free: 2.133 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001259/0.1928, allocations: 151.2 kB / 0.8393 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1928, allocations: 0 / 0.8393 GB, free: 1.984 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000326/0.1932, allocations: 87.8 kB / 0.8394 GB, free: 1.898 MB / 0.5762 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.0008646/0.194, allocations: 0.7542 MB / 0.8401 GB, free: 1.141 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001897/0.1942, allocations: 113.7 kB / 0.8402 GB, free: 1.023 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1942, allocations: 4 kB / 0.8403 GB, free: 1.02 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.791e-05/0.1942, allocations: 11.98 kB / 0.8403 GB, free: 1.008 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001465/0.1944, allocations: 10.28 kB / 0.8403 GB, free: 1 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.1962, allocations: 1.83 MB / 0.8421 GB, free: 15.09 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.887e-05/0.1963, allocations: 88.34 kB / 0.8421 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 1.699e-05/0.1963, allocations: 4 kB / 0.8421 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.644e-05/0.1964, allocations: 31.42 kB / 0.8422 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of SimCode: time 2.7e-07/0.1964, allocations: 0 / 0.8422 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.2237, allocations: 4.067 MB / 0.8461 GB, free: 11.04 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.39/11.61, allocations: 12.05 kB / 0.8462 GB, free: 11.04 MB / 0.5919 GB " [Timeout remaining time 648] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_2d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.992389018996619] Failed to read output from testmodel.py, exit status != 0: 11.778104661032557 11.808604052 11.613599271 Calling exit ...