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.001302/0.001302, 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.001598/0.001598, allocations: 221.6 kB / 23.01 MB, free: 5.047 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.449/1.449, allocations: 230.6 MB / 256.8 MB, free: 7.957 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 0.9703/0.9703, allocations: 150 MB / 463.2 MB, free: 10.47 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Clustering.Validation.KMeans_1d,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Clustering_Validation_KMeans_1d",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.002302/0.002302, allocations: 66.83 kB / 0.6412 GB, free: 10.37 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1788, allocations: 89.18 MB / 0.7283 GB, free: 1.254 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001804/0.1806, allocations: 0.5125 MB / 0.7288 GB, free: 0.7461 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002683/0.1833, allocations: 1.692 MB / 0.7305 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.536e-05/0.1833, allocations: 0 / 0.7305 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001361/0.1835, allocations: 23.86 kB / 0.7305 GB, free: 15.01 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.504e-05/0.1835, allocations: 7.984 kB / 0.7305 GB, free: 15 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.001062/0.1846, allocations: 287.1 kB / 0.7308 GB, free: 14.72 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.085e-05/0.1846, allocations: 23.91 kB / 0.7308 GB, free: 14.7 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 4.275e-05/0.1847, allocations: 7.984 kB / 0.7308 GB, free: 14.69 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 3.406e-05/0.1847, allocations: 11.98 kB / 0.7308 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.713e-05/0.1848, allocations: 15.92 kB / 0.7308 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.218e-05/0.1848, allocations: 0 / 0.7308 GB, free: 14.66 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0008248/0.1856, allocations: 495.1 kB / 0.7313 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 5.672e-05/0.1857, allocations: 23.91 kB / 0.7313 GB, free: 14.16 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.827e-05/0.1857, allocations: 15.81 kB / 0.7313 GB, free: 14.14 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004668/0.1862, allocations: 303.4 kB / 0.7316 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.1862, allocations: 0 / 0.7316 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.112e-06/0.1862, allocations: 0 / 0.7316 GB, free: 13.84 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.1862, allocations: 4 kB / 0.7316 GB, free: 13.84 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.0004314/0.1866, allocations: 329.6 kB / 0.732 GB, free: 13.49 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.692e-05/0.1866, allocations: 8.031 kB / 0.732 GB, free: 13.48 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.719e-05/0.1867, allocations: 34.69 kB / 0.732 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.1867, allocations: 8.891 kB / 0.732 GB, free: 13.43 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001522/0.1868, allocations: 135.2 kB / 0.7321 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.28e-06/0.1869, allocations: 4.375 kB / 0.7321 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.046e-05/0.1869, allocations: 384 / 0.7321 GB, free: 13.27 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.484e-05/0.187, allocations: 37.83 kB / 0.7322 GB, free: 13.23 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.445e-06/0.187, allocations: 3.938 kB / 0.7322 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.703e-06/0.187, allocations: 0 / 0.7322 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.187, allocations: 0 / 0.7322 GB, free: 13.22 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.343e-05/0.187, allocations: 19.98 kB / 0.7322 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001872/0.1872, allocations: 140.8 kB / 0.7323 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.621e-05/0.1873, allocations: 38.52 kB / 0.7324 GB, free: 12.98 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.754e-05/0.1873, allocations: 16.91 kB / 0.7324 GB, free: 12.96 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.194e-05/0.1873, allocations: 4 kB / 0.7324 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.1873, allocations: 34.5 kB / 0.7324 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 9.52e-07/0.1873, allocations: 0 / 0.7324 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.0001573/0.1875, allocations: 57.64 kB / 0.7325 GB, free: 12.85 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.1875, allocations: 55.34 kB / 0.7325 GB, free: 12.78 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001689/0.1877, allocations: 177.6 kB / 0.7327 GB, free: 12.6 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.1877, allocations: 25.7 kB / 0.7327 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 6.253e-05/0.1878, allocations: 96.12 kB / 0.7328 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 8.245e-06/0.1878, allocations: 0 / 0.7328 GB, free: 12.47 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.268e-05/0.1878, allocations: 25.7 kB / 0.7328 GB, free: 12.44 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.188, allocations: 318.8 kB / 0.7331 GB, free: 12.12 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.199e-05/0.188, allocations: 43.97 kB / 0.7332 GB, free: 12.08 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.685e-05/0.1881, allocations: 43.86 kB / 0.7332 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.942e-05/0.1882, allocations: 76.47 kB / 0.7333 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1882, allocations: 4 kB / 0.7333 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001611/0.1883, allocations: 133.5 kB / 0.7334 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.802e-05/0.1883, allocations: 4 kB / 0.7334 GB, free: 11.82 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.54e-05/0.1884, allocations: 4 kB / 0.7334 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.359e-05/0.1884, allocations: 0 / 0.7334 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.174e-05/0.1884, allocations: 0 / 0.7334 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.1884, allocations: 3.984 kB / 0.7334 GB, free: 11.81 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.766e-05/0.1884, allocations: 11.89 kB / 0.7335 GB, free: 11.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.604e-06/0.1884, allocations: 0 / 0.7335 GB, free: 11.8 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.0001665/0.1886, allocations: 133.8 kB / 0.7336 GB, free: 11.66 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.494e-05/0.1886, allocations: 11.84 kB / 0.7336 GB, free: 11.64 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001113/0.1887, allocations: 53.5 kB / 0.7336 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1887, allocations: 0 / 0.7336 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1887, allocations: 0 / 0.7336 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1887, allocations: 0 / 0.7336 GB, free: 11.58 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001181/0.1888, allocations: 144.7 kB / 0.7338 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1889, allocations: 0 / 0.7338 GB, free: 11.4 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.003e-06/0.1889, allocations: 7.906 kB / 0.7338 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.1889, allocations: 4 kB / 0.7338 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.639e-06/0.1889, allocations: 0 / 0.7338 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1889, allocations: 0 / 0.7338 GB, free: 11.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.518e-06/0.1889, allocations: 7.984 kB / 0.7338 GB, free: 11.38 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.898e-05/0.189, allocations: 73.08 kB / 0.7339 GB, free: 11.29 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 1.899e-05/0.189, allocations: 15.83 kB / 0.7339 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.176e-05/0.189, allocations: 0 / 0.7339 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.234e-05/0.189, allocations: 4.031 kB / 0.7339 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.487e-05/0.189, allocations: 4 kB / 0.7339 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.475e-06/0.189, allocations: 0 / 0.7339 GB, free: 11.27 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 9.576e-05/0.1891, allocations: 125.9 kB / 0.734 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6e-08/0.1891, allocations: 0 / 0.734 GB, free: 11.14 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003304/0.1894, allocations: 87.8 kB / 0.7341 GB, free: 11.06 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.0008196/0.1903, allocations: 0.7481 MB / 0.7348 GB, free: 10.3 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001708/0.1904, allocations: 93.66 kB / 0.7349 GB, free: 10.21 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.1904, allocations: 4 kB / 0.7349 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.37e-05/0.1905, allocations: 8.094 kB / 0.7349 GB, free: 10.2 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001444/0.1906, allocations: 9.875 kB / 0.7349 GB, free: 10.19 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001515/0.1921, allocations: 1.531 MB / 0.7364 GB, free: 8.582 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003214/0.1924, allocations: 0.6924 MB / 0.7371 GB, free: 7.863 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 2.206e-05/0.1925, allocations: 3.984 kB / 0.7371 GB, free: 7.859 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.772e-05/0.1925, allocations: 23.44 kB / 0.7371 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of SimCode: time 4.71e-07/0.1925, allocations: 0 / 0.7371 GB, free: 7.836 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03402/0.2265, allocations: 3.699 MB / 0.7407 GB, free: 4.277 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.6/11.82, allocations: 6.969 kB / 0.7408 GB, free: 4.273 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.756060510175303] Failed to read output from testmodel.py, exit status != 0: 11.934751363005489 11.96350326 11.771974711 Calling exit ...