Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.00143/0.00143, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.001769/0.001769, allocations: 212.2 kB / 23.77 MB, free: 4.559 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.538/1.538, allocations: 230.6 MB / 257.5 MB, free: 7.824 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.013/1.013, allocations: 150 MB / 463.9 MB, free: 10.25 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_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",fmuType="cs",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.00237/0.00237, allocations: 70.64 kB / 0.6419 GB, free: 9.977 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1789/0.1813, allocations: 89.17 MB / 0.729 GB, free: 0.875 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.002258/0.1835, allocations: 0.5128 MB / 0.7295 GB, free: 372 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.00289/0.1864, allocations: 1.603 MB / 0.7311 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.67e-05/0.1864, allocations: 3.938 kB / 0.7311 GB, free: 14.74 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001469/0.1866, allocations: 31.91 kB / 0.7311 GB, free: 14.71 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.198e-05/0.1866, allocations: 4 kB / 0.7311 GB, free: 14.7 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.00106/0.1877, allocations: 279.2 kB / 0.7314 GB, free: 14.43 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.978e-05/0.1878, allocations: 19.92 kB / 0.7314 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.465e-05/0.1878, allocations: 4 kB / 0.7314 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.715e-05/0.1878, allocations: 19.92 kB / 0.7314 GB, free: 14.39 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 5.179e-05/0.1879, allocations: 19.91 kB / 0.7314 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.404e-05/0.1879, allocations: 0 / 0.7314 GB, free: 14.37 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008783/0.1888, allocations: 491.2 kB / 0.7319 GB, free: 13.89 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 6.411e-05/0.1888, allocations: 15.92 kB / 0.7319 GB, free: 13.87 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.918e-05/0.1889, allocations: 11.88 kB / 0.7319 GB, free: 13.86 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00052/0.1894, allocations: 303.4 kB / 0.7322 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.1894, allocations: 0 / 0.7322 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.452e-06/0.1894, allocations: 4 kB / 0.7322 GB, free: 13.56 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 5.69e-06/0.1894, allocations: 0 / 0.7322 GB, free: 13.56 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.0004713/0.1899, allocations: 337.5 kB / 0.7326 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1899, allocations: 12.03 kB / 0.7326 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.285e-05/0.1899, allocations: 192 / 0.7326 GB, free: 13.19 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.691e-05/0.19, allocations: 30.75 kB / 0.7326 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.571e-05/0.19, allocations: 4.891 kB / 0.7326 GB, free: 13.14 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001553/0.1901, allocations: 134.4 kB / 0.7327 GB, free: 12.99 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.31e-06/0.1901, allocations: 4.375 kB / 0.7327 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.111e-05/0.1902, allocations: 384 / 0.7327 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.146e-05/0.1902, allocations: 45.58 kB / 0.7328 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.124e-06/0.1903, allocations: 0 / 0.7328 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.041e-06/0.1903, allocations: 0 / 0.7328 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.487e-06/0.1903, allocations: 0 / 0.7328 GB, free: 12.93 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.06e-05/0.1903, allocations: 15.98 kB / 0.7328 GB, free: 12.92 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001697/0.1905, allocations: 148.7 kB / 0.7329 GB, free: 12.73 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.576e-05/0.1905, allocations: 26.58 kB / 0.733 GB, free: 12.7 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.213e-05/0.1905, allocations: 12.92 kB / 0.733 GB, free: 12.68 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.489e-05/0.1906, allocations: 15.92 kB / 0.733 GB, free: 12.66 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.1906, allocations: 34.5 kB / 0.733 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1906, allocations: 3.938 kB / 0.733 GB, free: 12.62 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001654/0.1908, allocations: 61.64 kB / 0.7331 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.508e-05/0.1908, allocations: 51.41 kB / 0.7331 GB, free: 12.49 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001622/0.191, allocations: 173.2 kB / 0.7333 GB, free: 12.31 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.191, allocations: 25.7 kB / 0.7333 GB, free: 12.28 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.284e-05/0.191, allocations: 96.12 kB / 0.7334 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.436e-06/0.1911, allocations: 0 / 0.7334 GB, free: 12.18 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.311e-05/0.1911, allocations: 25.72 kB / 0.7334 GB, free: 12.15 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001412/0.1912, allocations: 318.8 kB / 0.7337 GB, free: 11.83 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.798e-05/0.1913, allocations: 43.98 kB / 0.7338 GB, free: 11.79 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.607e-05/0.1913, allocations: 36.11 kB / 0.7338 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.391e-05/0.1914, allocations: 80.78 kB / 0.7339 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1914, allocations: 3.938 kB / 0.7339 GB, free: 11.67 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000157/0.1916, allocations: 127.7 kB / 0.734 GB, free: 11.54 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.359e-05/0.1916, allocations: 9.719 kB / 0.734 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.455e-05/0.1916, allocations: 0 / 0.734 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.1916, allocations: 0 / 0.734 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.242e-05/0.1917, allocations: 0 / 0.734 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1917, allocations: 4 kB / 0.734 GB, free: 11.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.459e-05/0.1917, allocations: 7.891 kB / 0.734 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.1917, allocations: 3.984 kB / 0.734 GB, free: 11.52 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: 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.0001861/0.1919, allocations: 133 kB / 0.7342 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.981e-05/0.1919, allocations: 15.84 kB / 0.7342 GB, free: 11.36 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001151/0.192, allocations: 61.44 kB / 0.7342 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-06/0.192, allocations: 0 / 0.7342 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.192, allocations: 0 / 0.7342 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.192, allocations: 0 / 0.7342 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.1921, allocations: 140.7 kB / 0.7344 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.1922, allocations: 3.938 kB / 0.7344 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.338e-06/0.1922, allocations: 4 kB / 0.7344 GB, free: 11.11 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.1922, allocations: 8.031 kB / 0.7344 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.839e-06/0.1922, allocations: 0 / 0.7344 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.1922, allocations: 0 / 0.7344 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1922, allocations: 0 / 0.7344 GB, free: 11.1 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001008/0.1923, allocations: 81.02 kB / 0.7345 GB, free: 11 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.845e-05/0.1923, allocations: 19.81 kB / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.212e-05/0.1923, allocations: 0 / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.179e-05/0.1923, allocations: 0 / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.324e-05/0.1923, allocations: 0 / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.578e-06/0.1923, allocations: 4 kB / 0.7345 GB, free: 10.98 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.194e-05/0.1924, allocations: 115.2 kB / 0.7346 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1924, allocations: 4.031 kB / 0.7346 GB, free: 10.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003521/0.1928, allocations: 95.73 kB / 0.7347 GB, free: 10.77 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.0008894/0.1937, allocations: 0.7482 MB / 0.7354 GB, free: 10.02 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001774/0.1938, allocations: 101.6 kB / 0.7355 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1938, allocations: 0 / 0.7355 GB, free: 9.914 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.748e-05/0.1939, allocations: 8 kB / 0.7355 GB, free: 9.906 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001488/0.194, allocations: 5.562 kB / 0.7355 GB, free: 9.902 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.1957, allocations: 1.527 MB / 0.737 GB, free: 8.297 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.657e-05/0.1957, allocations: 79.27 kB / 0.7371 GB, free: 8.199 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.232e-05/0.1958, allocations: 4 kB / 0.7371 GB, free: 8.195 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.774e-05/0.1958, allocations: 19.42 kB / 0.7371 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.1958, allocations: 160 / 0.7371 GB, free: 8.176 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02535/0.2212, allocations: 3.779 MB / 0.7408 GB, free: 4.555 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.7, allocations: 9.797 kB / 0.7408 GB, free: 4.547 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d.fmu > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 15.666584334918298] Failed to read output from testmodel.py, exit status != 0: 11.867139106965624 11.883660295 11.691176952 Calling exit ...