Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.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.001672/0.001672, allocations: 113.3 kB / 18.94 MB, free: 2.934 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.002153/0.002153, allocations: 214.5 kB / 22.25 MB, free: 5.082 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.478/1.478, allocations: 230.6 MB / 256 MB, free: 8.023 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.002669/0.002669, allocations: 285.4 kB / 312.7 MB, free: 2.836 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.275/1.275, allocations: 180.6 MB / 0.5369 GB, free: 13.1 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_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d",fmuType="me",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.002915/0.002915, allocations: 103.2 kB / 0.7396 GB, free: 28.05 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1807/0.1836, allocations: 95.39 MB / 0.8327 GB, free: 8.68 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001781/0.1854, allocations: 0.5242 MB / 0.8332 GB, free: 8.152 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002596/0.188, allocations: 1.679 MB / 0.8349 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.047e-05/0.188, allocations: 0 / 0.8349 GB, free: 6.457 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.000168/0.1882, allocations: 23.91 kB / 0.8349 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.736e-05/0.1882, allocations: 7.984 kB / 0.8349 GB, free: 6.426 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.00106/0.1893, allocations: 273.4 kB / 0.8352 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.423e-05/0.1894, allocations: 31.84 kB / 0.8352 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.175e-05/0.1894, allocations: 0 / 0.8352 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 3.415e-05/0.1895, allocations: 11.98 kB / 0.8352 GB, free: 6.117 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 4.656e-05/0.1895, allocations: 15.92 kB / 0.8352 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.228e-05/0.1895, allocations: 4 kB / 0.8352 GB, free: 6.098 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007673/0.1903, allocations: 463.2 kB / 0.8357 GB, free: 5.645 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.365e-05/0.1903, allocations: 19.92 kB / 0.8357 GB, free: 5.625 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.298e-05/0.1904, allocations: 19.81 kB / 0.8357 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004333/0.1908, allocations: 295.4 kB / 0.836 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.1908, allocations: 0 / 0.836 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.043e-06/0.1908, allocations: 0 / 0.836 GB, free: 5.316 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 2.58e-05/0.1908, allocations: 0 / 0.836 GB, free: 5.316 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.0004794/0.1913, allocations: 333.6 kB / 0.8363 GB, free: 4.961 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.201e-05/0.1914, allocations: 9.344 kB / 0.8363 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.672e-05/0.1914, allocations: 30.75 kB / 0.8363 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.032e-05/0.1914, allocations: 12.89 kB / 0.8363 GB, free: 4.902 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001734/0.1916, allocations: 124.9 kB / 0.8365 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.902e-06/0.1916, allocations: 384 / 0.8365 GB, free: 4.758 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.216e-05/0.1916, allocations: 4.312 kB / 0.8365 GB, free: 4.754 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001052/0.1917, allocations: 41.81 kB / 0.8365 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/0.1917, allocations: 0 / 0.8365 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.763e-06/0.1917, allocations: 0 / 0.8365 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.1917, allocations: 0 / 0.8365 GB, free: 4.707 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.853e-05/0.1918, allocations: 16 kB / 0.8365 GB, free: 4.691 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.192, allocations: 164.6 kB / 0.8367 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.406e-05/0.192, allocations: 30.5 kB / 0.8367 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.554e-05/0.192, allocations: 20.86 kB / 0.8367 GB, free: 4.426 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.84e-05/0.1921, allocations: 4 kB / 0.8367 GB, free: 4.422 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.1921, allocations: 38.48 kB / 0.8368 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 1.072e-06/0.1921, allocations: 0 / 0.8368 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001589/0.1923, allocations: 57.64 kB / 0.8368 GB, free: 4.312 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.1923, allocations: 59.53 kB / 0.8369 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001663/0.1925, allocations: 166.2 kB / 0.837 GB, free: 4.07 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.1925, allocations: 25.7 kB / 0.8371 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.396e-05/0.1926, allocations: 96.09 kB / 0.8372 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.183e-05/0.1926, allocations: 4 kB / 0.8372 GB, free: 3.938 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.24e-05/0.1926, allocations: 25.7 kB / 0.8372 GB, free: 3.906 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.000146/0.1928, allocations: 322.8 kB / 0.8375 GB, free: 3.582 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.602e-05/0.1928, allocations: 39.92 kB / 0.8375 GB, free: 3.543 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.644e-05/0.1929, allocations: 43.98 kB / 0.8376 GB, free: 3.5 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.815e-05/0.1929, allocations: 68.83 kB / 0.8376 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.1929, allocations: 0 / 0.8376 GB, free: 3.43 MB / 0.5762 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001616/0.1931, allocations: 133.5 kB / 0.8378 GB, free: 3.293 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.1931, allocations: 4 kB / 0.8378 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.796e-05/0.1931, allocations: 4 kB / 0.8378 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1932, allocations: 0 / 0.8378 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.648e-05/0.1932, allocations: 0 / 0.8378 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.732e-06/0.1932, allocations: 0 / 0.8378 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.713e-05/0.1932, allocations: 7.953 kB / 0.8378 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.345e-06/0.1932, allocations: 11.94 kB / 0.8378 GB, free: 3.266 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.000198/0.1934, allocations: 126.5 kB / 0.8379 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.417e-05/0.1934, allocations: 7.891 kB / 0.8379 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001478/0.1936, allocations: 61.48 kB / 0.838 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.1936, allocations: 0 / 0.838 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.1936, allocations: 0 / 0.838 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.1936, allocations: 0 / 0.838 GB, free: 3.055 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001522/0.1937, allocations: 144.8 kB / 0.8381 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.1937, allocations: 0 / 0.8381 GB, free: 2.871 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.207e-05/0.1938, allocations: 11.92 kB / 0.8381 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1938, allocations: 0 / 0.8381 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.845e-06/0.1938, allocations: 0 / 0.8381 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.1938, allocations: 0 / 0.8381 GB, free: 2.859 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.1938, allocations: 4 kB / 0.8381 GB, free: 2.855 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.558e-05/0.1939, allocations: 73.02 kB / 0.8382 GB, free: 2.766 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.1939, allocations: 15.92 kB / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.408e-05/0.1939, allocations: 0 / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.3e-05/0.1939, allocations: 0 / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.71e-05/0.1939, allocations: 15.92 kB / 0.8382 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.316e-06/0.1939, allocations: 0 / 0.8382 GB, free: 2.734 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001201/0.1941, allocations: 123 kB / 0.8383 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of sort global known variables: time 9e-08/0.1941, allocations: 4 kB / 0.8384 GB, free: 2.613 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.000536/0.1946, allocations: 87.8 kB / 0.8384 GB, free: 2.527 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.001042/0.1956, allocations: 0.7403 MB / 0.8392 GB, free: 1.781 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002538/0.1959, allocations: 97.64 kB / 0.8393 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.1959, allocations: 0 / 0.8393 GB, free: 1.68 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 2.29e-05/0.1959, allocations: 15.98 kB / 0.8393 GB, free: 1.664 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001941/0.1961, allocations: 3.938 kB / 0.8393 GB, free: 1.66 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001824/0.1979, allocations: 1.535 MB / 0.8408 GB, free: 48 kB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003808/0.1983, allocations: 0.7001 MB / 0.8415 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 4.586e-05/0.1984, allocations: 0 / 0.8415 GB, free: 15.32 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.381e-05/0.1984, allocations: 15.44 kB / 0.8415 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of SimCode: time 4.51e-07/0.1984, allocations: 0 / 0.8415 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03213/0.2305, allocations: 3.617 MB / 0.845 GB, free: 11.82 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.97/11.2, allocations: 10.67 kB / 0.845 GB, free: 11.82 MB / 0.5919 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Clustering_Validation_KMeans_1d.fmu > BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.45824912097305] Failed to read output from testmodel.py, exit status != 0: 11.311872318852693 11.336503383 11.142278485 Calling exit ...