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.001345/0.001345, allocations: 108.3 kB / 19.7 MB, free: 1.918 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.001573/0.001573, allocations: 215.2 kB / 22.99 MB, free: 4.977 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.515/1.515, allocations: 230.6 MB / 256.8 MB, free: 7.785 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.9992/0.9992, allocations: 149.9 MB / 463 MB, free: 10.35 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.002148/0.002148, allocations: 62.59 kB / 0.641 GB, free: 10.16 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1767/0.1789, allocations: 89.17 MB / 0.7281 GB, free: 1.055 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001735/0.1806, allocations: 0.5111 MB / 0.7286 GB, free: 0.5469 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.002369/0.183, allocations: 1.607 MB / 0.7302 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.734e-05/0.183, allocations: 0 / 0.7302 GB, free: 14.92 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.0001304/0.1831, allocations: 27.89 kB / 0.7302 GB, free: 14.89 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 2.589e-05/0.1831, allocations: 11.92 kB / 0.7302 GB, free: 14.88 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.0009089/0.1841, allocations: 279.2 kB / 0.7305 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 7.005e-05/0.1841, allocations: 23.91 kB / 0.7305 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 3.32e-05/0.1842, allocations: 4 kB / 0.7305 GB, free: 14.58 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 2.912e-05/0.1842, allocations: 11.98 kB / 0.7305 GB, free: 14.57 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 4.147e-05/0.1842, allocations: 19.91 kB / 0.7306 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 1.056e-05/0.1842, allocations: 0 / 0.7306 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007482/0.185, allocations: 455.1 kB / 0.731 GB, free: 14.11 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 4.812e-05/0.185, allocations: 19.92 kB / 0.731 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 2.362e-05/0.1851, allocations: 11.88 kB / 0.731 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0004201/0.1855, allocations: 299.4 kB / 0.7313 GB, free: 13.78 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.1855, allocations: 7.938 kB / 0.7313 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.292e-06/0.1855, allocations: 0 / 0.7313 GB, free: 13.77 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 8.596e-06/0.1855, allocations: 0 / 0.7313 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.0004259/0.1859, allocations: 333.6 kB / 0.7316 GB, free: 13.42 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.1859, allocations: 8.031 kB / 0.7316 GB, free: 13.41 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.122e-05/0.186, allocations: 34.75 kB / 0.7317 GB, free: 13.37 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.512e-05/0.186, allocations: 8.891 kB / 0.7317 GB, free: 13.36 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001575/0.1862, allocations: 130.3 kB / 0.7318 GB, free: 13.21 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.1862, allocations: 4.375 kB / 0.7318 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.214e-05/0.1862, allocations: 4.375 kB / 0.7318 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9e-05/0.1863, allocations: 37.81 kB / 0.7318 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-06/0.1863, allocations: 4 kB / 0.7319 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.831e-06/0.1863, allocations: 0 / 0.7319 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1863, allocations: 0 / 0.7319 GB, free: 13.15 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.443e-05/0.1863, allocations: 23.92 kB / 0.7319 GB, free: 13.13 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001901/0.1865, allocations: 140.8 kB / 0.732 GB, free: 12.95 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 5.504e-05/0.1866, allocations: 30.56 kB / 0.732 GB, free: 12.91 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.467e-05/0.1866, allocations: 12.92 kB / 0.7321 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 3.794e-05/0.1866, allocations: 7.984 kB / 0.7321 GB, free: 12.89 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.128e-05/0.1867, allocations: 38.5 kB / 0.7321 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=1): time 1.483e-06/0.1867, allocations: 0 / 0.7321 GB, free: 12.84 MB / 0.5606 GB Notification: Performance of matching and sorting (n=1): time 0.000161/0.1868, allocations: 65.58 kB / 0.7322 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.506e-05/0.1869, allocations: 51.41 kB / 0.7322 GB, free: 12.71 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001679/0.187, allocations: 173.2 kB / 0.7324 GB, free: 12.53 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.833e-05/0.1871, allocations: 25.83 kB / 0.7324 GB, free: 12.5 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.64e-05/0.1871, allocations: 100.1 kB / 0.7325 GB, free: 12.4 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 7.264e-06/0.1871, allocations: 3.938 kB / 0.7325 GB, free: 12.39 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.32e-05/0.1872, allocations: 25.7 kB / 0.7325 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.1873, allocations: 322.8 kB / 0.7328 GB, free: 12.04 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.475e-05/0.1874, allocations: 35.98 kB / 0.7329 GB, free: 12 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.034e-05/0.1874, allocations: 39.98 kB / 0.7329 GB, free: 11.96 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.625e-05/0.1875, allocations: 70.34 kB / 0.733 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.1875, allocations: 4 kB / 0.733 GB, free: 11.89 MB / 0.5606 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001691/0.1877, allocations: 129.5 kB / 0.7331 GB, free: 11.76 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.1877, allocations: 6.031 kB / 0.7331 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.349e-05/0.1877, allocations: 8.062 kB / 0.7331 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.1877, allocations: 0 / 0.7331 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.027e-05/0.1877, allocations: 0 / 0.7331 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.988e-06/0.1877, allocations: 0 / 0.7331 GB, free: 11.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.862e-05/0.1878, allocations: 15.89 kB / 0.7331 GB, free: 11.73 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.502e-06/0.1878, allocations: 0 / 0.7331 GB, free: 11.73 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.0001403/0.1879, allocations: 121.8 kB / 0.7332 GB, free: 11.6 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.523e-05/0.1879, allocations: 11.84 kB / 0.7333 GB, free: 11.59 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.188, allocations: 65.42 kB / 0.7333 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-06/0.188, allocations: 4.031 kB / 0.7333 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.188, allocations: 0 / 0.7333 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.974e-06/0.188, allocations: 4 kB / 0.7333 GB, free: 11.51 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001258/0.1882, allocations: 140.7 kB / 0.7335 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.1882, allocations: 0 / 0.7335 GB, free: 11.33 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.804e-06/0.1882, allocations: 3.938 kB / 0.7335 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.372e-06/0.1882, allocations: 0 / 0.7335 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.258e-06/0.1882, allocations: 0 / 0.7335 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.1882, allocations: 4 kB / 0.7335 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.41e-07/0.1882, allocations: 0 / 0.7335 GB, free: 11.32 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.773e-05/0.1883, allocations: 73.08 kB / 0.7335 GB, free: 11.23 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 2.124e-05/0.1883, allocations: 27.84 kB / 0.7336 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.1883, allocations: 4 kB / 0.7336 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.175e-05/0.1883, allocations: 0 / 0.7336 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.072e-05/0.1883, allocations: 3.984 kB / 0.7336 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-06/0.1883, allocations: 0 / 0.7336 GB, free: 11.2 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.000108/0.1884, allocations: 125.8 kB / 0.7337 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/0.1884, allocations: 0 / 0.7337 GB, free: 11.07 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0003162/0.1888, allocations: 91.73 kB / 0.7338 GB, free: 10.98 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.0008321/0.1896, allocations: 0.7467 MB / 0.7345 GB, free: 10.24 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0001787/0.1898, allocations: 89.67 kB / 0.7346 GB, free: 10.15 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.1898, allocations: 4 kB / 0.7346 GB, free: 10.14 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 2.143e-05/0.1898, allocations: 15.92 kB / 0.7346 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001378/0.1899, allocations: 2.188 kB / 0.7346 GB, free: 10.13 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001553/0.1915, allocations: 1.531 MB / 0.7361 GB, free: 8.52 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.17e-05/0.1916, allocations: 79.27 kB / 0.7362 GB, free: 8.422 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.823e-05/0.1916, allocations: 4 kB / 0.7362 GB, free: 8.418 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.448e-05/0.1916, allocations: 19.61 kB / 0.7362 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of SimCode: time 4.01e-07/0.1916, allocations: 0 / 0.7362 GB, free: 8.398 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03142/0.223, allocations: 4.115 MB / 0.7402 GB, free: 4.422 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.16/11.38, allocations: 6.984 kB / 0.7402 GB, free: 4.418 MB / 0.5606 GB " [Timeout remaining time 649] (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.158204719424248] Failed to read output from testmodel.py, exit status != 0: 11.492592706810683 11.508775366 11.320203027 Calling exit ...