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.0006166/0.0006166, allocations: 85.05 kB / 9.985 MB, free: 0.7031 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008947/0.001511, allocations: 452 kB / 10.43 MB, free: 268 kB / 10.45 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.0006582/0.0006582, allocations: 161.1 kB / 11.33 MB, free: 2.84 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008857/0.001544, allocations: 483.5 kB / 11.8 MB, free: 2.363 MB / 13.93 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 0.9295/0.9295, allocations: 177.2 MB / 189.7 MB, free: 5.258 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.105/1.034, allocations: 53.67 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.682/0.682, allocations: 120.1 MB / 364.2 MB, free: 2.566 MB / 346.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.07661/0.7586, allocations: 38.16 MB / 402.4 MB, free: 12.28 MB / 394.7 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.453e-06/1.453e-06, allocations: 0 / 403.7 MB, free: 11 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.641e-05/1.786e-05, allocations: 6.25 kB / 403.7 MB, free: 11 MB / 394.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001312/0.00133, allocations: 0.5753 MB / 404.3 MB, free: 10.42 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.004907/0.006237, allocations: 1.664 MB / 405.9 MB, free: 8.734 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.862e-05/0.006275, allocations: 7.938 kB / 405.9 MB, free: 8.727 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 9.195e-05/0.006367, allocations: 23.95 kB / 406 MB, free: 8.703 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 2.615e-05/0.006393, allocations: 15.92 kB / 406 MB, free: 8.688 MB / 394.7 MB [/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.0007279/0.007121, allocations: 247 kB / 406.2 MB, free: 8.445 MB / 394.7 MB Notification: Performance of NFFlatten.flatten: time 7.376e-05/0.007195, allocations: 19.92 kB / 406.2 MB, free: 8.426 MB / 394.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.473e-05/0.00723, allocations: 11.94 kB / 406.2 MB, free: 8.414 MB / 394.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.306e-05/0.007283, allocations: 11.98 kB / 406.3 MB, free: 8.402 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.768e-05/0.00732, allocations: 15.92 kB / 406.3 MB, free: 8.387 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 1.248e-05/0.007333, allocations: 0 / 406.3 MB, free: 8.387 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006807/0.008014, allocations: 475.1 kB / 406.7 MB, free: 7.922 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 5.085e-05/0.008064, allocations: 19.94 kB / 406.8 MB, free: 7.902 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 1.727e-05/0.008082, allocations: 7.938 kB / 406.8 MB, free: 7.895 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003569/0.008439, allocations: 279.2 kB / 407 MB, free: 7.621 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.022e-05/0.008449, allocations: 4 kB / 407 MB, free: 7.617 MB / 394.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.00845, allocations: 0 / 407 MB, free: 7.617 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.123e-05/0.008461, allocations: 0 / 407 MB, free: 7.617 MB / 394.7 MB 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.0003646/0.008826, allocations: 343.8 kB / 407.4 MB, free: 7.258 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.178e-05/0.008857, allocations: 8.031 kB / 407.4 MB, free: 7.25 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.951e-05/0.008887, allocations: 4.938 kB / 407.4 MB, free: 7.246 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001338/0.009021, allocations: 129.7 kB / 407.5 MB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.009029, allocations: 384 / 407.5 MB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.016e-05/0.009039, allocations: 384 / 407.5 MB, free: 7.094 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.968e-05/0.009109, allocations: 37.09 kB / 407.5 MB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.393e-06/0.009115, allocations: 192 / 407.5 MB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.591e-06/0.009121, allocations: 384 / 407.5 MB, free: 7.051 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.009128, allocations: 3.938 kB / 407.6 MB, free: 7.047 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.718e-06/0.009137, allocations: 7.938 kB / 407.6 MB, free: 7.039 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.147e-05/0.009229, allocations: 74.64 kB / 407.6 MB, free: 6.949 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.633e-05/0.009265, allocations: 26.53 kB / 407.7 MB, free: 6.914 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.214e-05/0.009277, allocations: 8.859 kB / 407.7 MB, free: 6.902 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.381e-05/0.009311, allocations: 4.062 kB / 407.7 MB, free: 6.898 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.994e-05/0.009331, allocations: 30.56 kB / 407.7 MB, free: 6.859 MB / 394.7 MB Notification: Performance of pre-optimization done (n=1): time 7.52e-07/0.009332, allocations: 0 / 407.7 MB, free: 6.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=1): time 8.993e-05/0.009422, allocations: 45.62 kB / 407.7 MB, free: 6.809 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.903e-05/0.009451, allocations: 51.41 kB / 407.8 MB, free: 6.746 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001009/0.009552, allocations: 154.5 kB / 407.9 MB, free: 6.582 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.209e-05/0.009564, allocations: 25.7 kB / 408 MB, free: 6.551 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.363e-05/0.009597, allocations: 92.08 kB / 408.1 MB, free: 6.457 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.039e-05/0.009608, allocations: 128 / 408.1 MB, free: 6.457 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.481e-05/0.009643, allocations: 29.69 kB / 408.1 MB, free: 6.422 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 8.773e-05/0.00973, allocations: 326.8 kB / 408.4 MB, free: 6.094 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.98e-05/0.00975, allocations: 14.83 kB / 408.4 MB, free: 6.078 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.085e-05/0.009761, allocations: 4 kB / 408.4 MB, free: 6.074 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.531e-05/0.009806, allocations: 31.72 kB / 408.5 MB, free: 6.039 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.009808, allocations: 0 / 408.5 MB, free: 6.039 MB / 394.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 7.089e-05/0.009879, allocations: 65.56 kB / 408.5 MB, free: 5.969 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.108e-05/0.00989, allocations: 4 kB / 408.5 MB, free: 5.965 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.319e-05/0.009904, allocations: 4 kB / 408.5 MB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.009916, allocations: 0 / 408.5 MB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.267e-05/0.009928, allocations: 4.062 kB / 408.5 MB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.745e-06/0.009931, allocations: 0 / 408.5 MB, free: 5.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.221e-05/0.009953, allocations: 11.89 kB / 408.5 MB, free: 5.945 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/0.009961, allocations: 0 / 408.5 MB, free: 5.945 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 9 (labels[1],labels[2],labels[3],labels[4],labels[5],cluster_size[1],cluster_size[2],cluster_size[3],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 7.878e-05/0.01004, allocations: 132.6 kB / 408.7 MB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.191e-06/0.01005, allocations: 0 / 408.7 MB, free: 5.805 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.894e-05/0.01011, allocations: 45.44 kB / 408.7 MB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.01012, allocations: 0 / 408.7 MB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.152e-06/0.01012, allocations: 0 / 408.7 MB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.064e-06/0.01012, allocations: 32 / 408.7 MB, free: 5.758 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.5e-05/0.01018, allocations: 81.81 kB / 408.8 MB, free: 5.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-07/0.01018, allocations: 3.938 kB / 408.8 MB, free: 5.656 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.587e-06/0.01019, allocations: 4 kB / 408.8 MB, free: 5.652 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.776e-06/0.0102, allocations: 7.953 kB / 408.8 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.0102, allocations: 0 / 408.8 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.406e-06/0.0102, allocations: 0 / 408.8 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.072e-06/0.0102, allocations: 0 / 408.8 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.0102, allocations: 0 / 408.8 MB, free: 5.645 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.059e-05/0.01025, allocations: 70.72 kB / 408.9 MB, free: 5.555 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.599e-06/0.01026, allocations: 4 kB / 408.9 MB, free: 5.551 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.809e-06/0.01027, allocations: 4.031 kB / 408.9 MB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.638e-06/0.01028, allocations: 0 / 408.9 MB, free: 5.547 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.383e-06/0.01029, allocations: 3.938 kB / 408.9 MB, free: 5.543 MB / 394.7 MB Notification: Performance of sorting global known variables: time 3.274e-05/0.01032, allocations: 32.81 kB / 408.9 MB, free: 5.508 MB / 394.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01032, allocations: 0 / 408.9 MB, free: 5.508 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0002656/0.01058, allocations: 87.8 kB / 409 MB, free: 5.422 MB / 394.7 MB 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.0004808/0.01106, allocations: 259.5 kB / 409.3 MB, free: 5.156 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 9.519e-05/0.01116, allocations: 66.52 kB / 409.3 MB, free: 5.082 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.787e-06/0.01116, allocations: 0 / 409.3 MB, free: 5.082 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 1.094e-05/0.01117, allocations: 16.8 kB / 409.4 MB, free: 5.062 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.915e-05/0.01124, allocations: 11.84 kB / 409.4 MB, free: 5.051 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001947/0.01144, allocations: 162.3 kB / 409.5 MB, free: 4.863 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.292e-05/0.01147, allocations: 59.53 kB / 409.6 MB, free: 4.785 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 1.536e-05/0.01149, allocations: 8 kB / 409.6 MB, free: 4.777 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.01152, allocations: 51.36 kB / 409.6 MB, free: 4.727 MB / 394.7 MB Notification: Performance of SimCode: time 3.61e-07/0.01152, allocations: 0 / 409.6 MB, free: 4.727 MB / 394.7 MB Notification: Performance of Templates: time 0.01076/0.02228, allocations: 2.543 MB / 412.2 MB, free: 2.18 MB / 394.7 MB " [Timeout remaining time 660] make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile [Timeout 660] (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 & ./IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d -abortSlowSimulation -alarm=240 -lv LOG_STATS > IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.1665315311402082]