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.001654/0.001654, allocations: 114.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.001747/0.001747, allocations: 214.6 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.431/1.431, allocations: 230.6 MB / 256 MB, free: 8.016 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.002573/0.002573, allocations: 285.2 kB / 312.7 MB, free: 2.805 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.207/1.207, allocations: 180.6 MB / 0.5369 GB, free: 12.96 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="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"}) [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.002987/0.002987, allocations: 103.9 kB / 0.7396 GB, free: 28.67 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1849, allocations: 95.38 MB / 0.8327 GB, free: 8.648 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001826/0.1867, allocations: 0.5225 MB / 0.8332 GB, free: 8.125 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.002622/0.1893, allocations: 1.679 MB / 0.8349 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.704e-05/0.1894, allocations: 7.938 kB / 0.8349 GB, free: 6.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001902/0.1895, allocations: 63.89 kB / 0.8349 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.08e-05/0.1896, allocations: 35.89 kB / 0.835 GB, free: 6.324 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.0009476/0.1905, allocations: 267.2 kB / 0.8352 GB, free: 6.062 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 8.691e-05/0.1906, allocations: 27.91 kB / 0.8352 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.1907, allocations: 11.92 kB / 0.8352 GB, free: 6.023 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 4.681e-05/0.1907, allocations: 23.97 kB / 0.8353 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.863e-05/0.1908, allocations: 51.86 kB / 0.8353 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.867e-05/0.1908, allocations: 4 kB / 0.8353 GB, free: 5.945 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007382/0.1916, allocations: 463.2 kB / 0.8358 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.338e-05/0.1916, allocations: 19.92 kB / 0.8358 GB, free: 5.473 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.446e-05/0.1916, allocations: 27.75 kB / 0.8358 GB, free: 5.445 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0004534/0.1921, allocations: 303.3 kB / 0.8361 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.1921, allocations: 0 / 0.8361 GB, free: 5.148 MB / 0.5762 GB Notification: Performance of FrontEnd: time 8.737e-06/0.1921, allocations: 7.984 kB / 0.8361 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 9.638e-06/0.1921, allocations: 0 / 0.8361 GB, free: 5.141 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.0004829/0.1926, allocations: 369.3 kB / 0.8365 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.1926, allocations: 13.34 kB / 0.8365 GB, free: 4.738 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.349e-05/0.1927, allocations: 30.75 kB / 0.8365 GB, free: 4.699 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.1927, allocations: 12.84 kB / 0.8365 GB, free: 4.688 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001532/0.1929, allocations: 128.2 kB / 0.8366 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.004e-05/0.1929, allocations: 4.375 kB / 0.8366 GB, free: 4.535 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.316e-05/0.1929, allocations: 4.359 kB / 0.8366 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.193, allocations: 37.83 kB / 0.8367 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.193, allocations: 0 / 0.8367 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.733e-06/0.193, allocations: 4 kB / 0.8367 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.193, allocations: 0 / 0.8367 GB, free: 4.484 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.404e-05/0.1931, allocations: 23.92 kB / 0.8367 GB, free: 4.461 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001931/0.1933, allocations: 164.6 kB / 0.8369 GB, free: 4.258 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.923e-05/0.1933, allocations: 26.56 kB / 0.8369 GB, free: 4.223 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.273e-05/0.1933, allocations: 12.92 kB / 0.8369 GB, free: 4.207 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.1934, allocations: 7.984 kB / 0.8369 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.1934, allocations: 42.5 kB / 0.8369 GB, free: 4.148 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=1): time 9.91e-07/0.1934, allocations: 4 kB / 0.837 GB, free: 4.145 MB / 0.5762 GB Notification: Performance of matching and sorting (n=1): time 0.0001534/0.1936, allocations: 65.58 kB / 0.837 GB, free: 4.074 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.1936, allocations: 51.41 kB / 0.8371 GB, free: 4.012 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002006/0.1938, allocations: 211.4 kB / 0.8373 GB, free: 3.793 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.34e-05/0.1938, allocations: 25.7 kB / 0.8373 GB, free: 3.762 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.537e-05/0.1939, allocations: 108.1 kB / 0.8374 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 9.307e-06/0.1939, allocations: 128 / 0.8374 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.375e-05/0.1939, allocations: 33.7 kB / 0.8374 GB, free: 3.613 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1941, allocations: 326.8 kB / 0.8377 GB, free: 3.285 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.553e-05/0.1942, allocations: 51.98 kB / 0.8378 GB, free: 3.234 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.811e-05/0.1942, allocations: 55.97 kB / 0.8378 GB, free: 3.18 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001043/0.1943, allocations: 86.94 kB / 0.8379 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.1943, allocations: 0 / 0.8379 GB, free: 3.094 MB / 0.5762 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001947/0.1945, allocations: 169.4 kB / 0.8381 GB, free: 2.922 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.1945, allocations: 7.938 kB / 0.8381 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/0.1946, allocations: 8.062 kB / 0.8381 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.227e-05/0.1946, allocations: 0 / 0.8381 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.202e-05/0.1946, allocations: 0 / 0.8381 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.1946, allocations: 0 / 0.8381 GB, free: 2.906 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.122e-05/0.1946, allocations: 15.84 kB / 0.8381 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.1946, allocations: 0 / 0.8381 GB, free: 2.891 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.0001902/0.1948, allocations: 134.5 kB / 0.8382 GB, free: 2.75 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.691e-05/0.1948, allocations: 11.89 kB / 0.8383 GB, free: 2.738 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000124/0.195, allocations: 70.12 kB / 0.8383 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-06/0.195, allocations: 0 / 0.8383 GB, free: 2.664 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.684e-06/0.195, allocations: 7.984 kB / 0.8383 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.195, allocations: 0 / 0.8383 GB, free: 2.656 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001367/0.1951, allocations: 148.7 kB / 0.8385 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1951, allocations: 0 / 0.8385 GB, free: 2.469 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.164e-06/0.1951, allocations: 3.938 kB / 0.8385 GB, free: 2.465 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.1951, allocations: 4 kB / 0.8385 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.129e-06/0.1951, allocations: 0 / 0.8385 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1951, allocations: 0 / 0.8385 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1951, allocations: 0 / 0.8385 GB, free: 2.461 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001014/0.1952, allocations: 89.06 kB / 0.8386 GB, free: 2.355 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.428e-05/0.1952, allocations: 19.83 kB / 0.8386 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.416e-05/0.1953, allocations: 0 / 0.8386 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.257e-05/0.1953, allocations: 0 / 0.8386 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.225e-05/0.1953, allocations: 3.938 kB / 0.8386 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.205e-06/0.1953, allocations: 0 / 0.8386 GB, free: 2.332 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001256/0.1954, allocations: 155.2 kB / 0.8387 GB, free: 2.18 MB / 0.5762 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1954, allocations: 4 kB / 0.8387 GB, free: 2.176 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0003637/0.1958, allocations: 87.8 kB / 0.8388 GB, free: 2.09 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.0008511/0.1966, allocations: 0.7442 MB / 0.8395 GB, free: 1.34 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0001959/0.1968, allocations: 117.7 kB / 0.8397 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.1968, allocations: 0 / 0.8397 GB, free: 1.219 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.766e-05/0.1968, allocations: 15.92 kB / 0.8397 GB, free: 1.203 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001585/0.197, allocations: 6.578 kB / 0.8397 GB, free: 1.199 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001835/0.1988, allocations: 1.82 MB / 0.8415 GB, free: 15.3 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.1992, allocations: 0.704 MB / 0.8421 GB, free: 14.57 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 2.082e-05/0.1992, allocations: 8.031 kB / 0.8422 GB, free: 14.56 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.188e-05/0.1992, allocations: 27.36 kB / 0.8422 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of SimCode: time 3.01e-07/0.1992, allocations: 0 / 0.8422 GB, free: 14.53 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03089/0.2301, allocations: 4.006 MB / 0.8461 GB, free: 10.67 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.77, allocations: 2.75 kB / 0.8461 GB, free: 10.67 MB / 0.5919 GB " [Timeout remaining time 649] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.961314190000849] Failed to read output from testmodel.py, exit status != 0: 10.871957221999764 10.895235221 10.698819134 Calling exit ...