Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.002054/0.002054, allocations: 119 kB / 19.69 MB, free: 2.199 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.002845/0.002845, allocations: 222.1 kB / 23.01 MB, free: 5.043 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.497/1.497, allocations: 230.6 MB / 256.8 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 1.004/1.004, allocations: 150 MB / 463.2 MB, free: 10.5 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_2d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002115/0.002115, allocations: 65.92 kB / 0.6412 GB, free: 10.41 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1813/0.1835, allocations: 89.17 MB / 0.7283 GB, free: 1.305 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001704/0.1852, allocations: 0.5089 MB / 0.7288 GB, free: 0.7969 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002582/0.1877, allocations: 1.692 MB / 0.7305 GB, free: 15.09 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.921e-05/0.1878, allocations: 4 kB / 0.7305 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.000188/0.188, allocations: 63.78 kB / 0.7305 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.128e-05/0.188, allocations: 31.94 kB / 0.7306 GB, free: 14.99 MB / 0.5606 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'. Notification: Performance of NFTyping.typeClassSections: time 0.001078/0.1891, allocations: 283 kB / 0.7308 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 9.377e-05/0.1892, allocations: 31.91 kB / 0.7309 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.917e-05/0.1892, allocations: 0 / 0.7309 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 4.208e-05/0.1893, allocations: 23.95 kB / 0.7309 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 9.049e-05/0.1894, allocations: 47.89 kB / 0.7309 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.249e-05/0.1894, allocations: 0 / 0.7309 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008408/0.1902, allocations: 499.1 kB / 0.7314 GB, free: 14.12 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.178e-05/0.1903, allocations: 27.91 kB / 0.7314 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.693e-05/0.1903, allocations: 27.69 kB / 0.7315 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004855/0.1908, allocations: 303.4 kB / 0.7318 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.1908, allocations: 0 / 0.7318 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.764e-06/0.1908, allocations: 3.938 kB / 0.7318 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.1908, allocations: 0 / 0.7318 GB, free: 13.77 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.0005609/0.1914, allocations: 365.3 kB / 0.7321 GB, free: 13.38 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.817e-05/0.1914, allocations: 16.03 kB / 0.7321 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.891e-05/0.1915, allocations: 38.75 kB / 0.7322 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.64e-05/0.1915, allocations: 12.84 kB / 0.7322 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.1917, allocations: 127.6 kB / 0.7323 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.056e-05/0.1917, allocations: 384 / 0.7323 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-06/0.1917, allocations: 4.375 kB / 0.7323 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.1918, allocations: 37.83 kB / 0.7323 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.086e-05/0.1918, allocations: 3.984 kB / 0.7323 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.315e-06/0.1918, allocations: 0 / 0.7323 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.1918, allocations: 3.984 kB / 0.7323 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.678e-05/0.1919, allocations: 23.94 kB / 0.7324 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002212/0.1921, allocations: 164.6 kB / 0.7325 GB, free: 12.88 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.255e-05/0.1922, allocations: 30.58 kB / 0.7325 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.811e-05/0.1922, allocations: 16.91 kB / 0.7326 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 4.027e-05/0.1922, allocations: 4 kB / 0.7326 GB, free: 12.82 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.952e-05/0.1923, allocations: 38.44 kB / 0.7326 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.61e-07/0.1923, allocations: 4 kB / 0.7326 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.000191/0.1925, allocations: 77.52 kB / 0.7327 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.713e-05/0.1925, allocations: 51.41 kB / 0.7327 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.1927, allocations: 206.8 kB / 0.7329 GB, free: 12.41 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.988e-05/0.1928, allocations: 25.7 kB / 0.733 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 8.69e-05/0.1928, allocations: 108.1 kB / 0.7331 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.32e-05/0.1929, allocations: 3.984 kB / 0.7331 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.378e-05/0.1929, allocations: 33.7 kB / 0.7331 GB, free: 12.23 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001665/0.1931, allocations: 327 kB / 0.7334 GB, free: 11.9 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.496e-05/0.1932, allocations: 55.97 kB / 0.7335 GB, free: 11.84 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.462e-05/0.1932, allocations: 55.92 kB / 0.7335 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001164/0.1933, allocations: 91.17 kB / 0.7336 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1933, allocations: 0 / 0.7336 GB, free: 11.7 MB / 0.5606 GB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0002109/0.1936, allocations: 173.4 kB / 0.7338 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.708e-05/0.1936, allocations: 4 kB / 0.7338 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.908e-05/0.1936, allocations: 4 kB / 0.7338 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.524e-05/0.1936, allocations: 3.938 kB / 0.7338 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.705e-05/0.1936, allocations: 4.062 kB / 0.7338 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1936, allocations: 0 / 0.7338 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.367e-05/0.1937, allocations: 11.89 kB / 0.7338 GB, free: 11.5 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/0.1937, allocations: 0 / 0.7338 GB, free: 11.5 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.0002336/0.1939, allocations: 129.8 kB / 0.7339 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.901e-05/0.1939, allocations: 15.84 kB / 0.7339 GB, free: 11.34 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001414/0.1941, allocations: 70.11 kB / 0.734 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.1941, allocations: 4.031 kB / 0.734 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.1941, allocations: 0 / 0.734 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.1941, allocations: 0 / 0.734 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001717/0.1943, allocations: 152.7 kB / 0.7341 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1943, allocations: 0 / 0.7341 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-06/0.1943, allocations: 3.938 kB / 0.7341 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.969e-06/0.1943, allocations: 4 kB / 0.7342 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-06/0.1943, allocations: 0 / 0.7342 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1943, allocations: 4 kB / 0.7342 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1943, allocations: 0 / 0.7342 GB, free: 11.06 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001338/0.1944, allocations: 96.95 kB / 0.7342 GB, free: 10.95 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.995e-05/0.1944, allocations: 11.89 kB / 0.7343 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.1944, allocations: 0 / 0.7343 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.434e-05/0.1945, allocations: 0 / 0.7343 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.036e-05/0.1945, allocations: 0 / 0.7343 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-06/0.1945, allocations: 0 / 0.7343 GB, free: 10.94 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00014/0.1946, allocations: 148.4 kB / 0.7344 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1946, allocations: 7.875 kB / 0.7344 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.000405/0.195, allocations: 91.83 kB / 0.7345 GB, free: 10.7 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.0009666/0.196, allocations: 0.7532 MB / 0.7352 GB, free: 9.938 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002381/0.1962, allocations: 113.7 kB / 0.7353 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.1962, allocations: 0 / 0.7353 GB, free: 9.82 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.223e-05/0.1962, allocations: 11.94 kB / 0.7354 GB, free: 9.809 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000163/0.1964, allocations: 9.703 kB / 0.7354 GB, free: 9.801 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002089/0.1985, allocations: 1.814 MB / 0.7371 GB, free: 7.898 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004077/0.1989, allocations: 0.7118 MB / 0.7378 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.17e-05/0.1989, allocations: 0 / 0.7378 GB, free: 7.16 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.249e-05/0.199, allocations: 31.45 kB / 0.7379 GB, free: 7.133 MB / 0.5606 GB Notification: Performance of SimCode: time 3.4e-07/0.199, allocations: 4 kB / 0.7379 GB, free: 7.129 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0331/0.2321, allocations: 4.078 MB / 0.7418 GB, free: 3.188 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.37, allocations: 9.234 kB / 0.7419 GB, free: 3.184 MB / 0.5606 GB " [Timeout remaining time 649] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.sim & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.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 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_2d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.309003205999034] Failed to read output from testmodel.py, exit status != 0: 11.478059802000644 11.50271456 11.307226493 Calling exit ...