Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.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.0009142/0.0009142, allocations: 84.8 kB / 20.75 MB, free: 3.738 MB / 18.57 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.0009911/0.0009911, allocations: 161 kB / 24.17 MB, free: 332 kB / 18.57 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.9067/0.9067, allocations: 177.1 MB / 204.6 MB, free: 5.465 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 1.915/1.915, allocations: 389.6 MB / 0.6354 GB, free: 12.28 MB / 0.6042 GB " [Timeout remaining time 178] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/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(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.343e-06/1.343e-06, allocations: 0 / 0.7751 GB, free: 5.398 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.41e-05/1.544e-05, allocations: 5.266 kB / 0.7752 GB, free: 5.395 MB / 0.7292 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001073/0.001088, allocations: 0.5795 MB / 0.7757 GB, free: 4.836 MB / 0.7292 GB Notification: Performance of NFInst.instExpressions: time 0.001687/0.002775, allocations: 1.661 MB / 0.7773 GB, free: 3.168 MB / 0.7292 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.301e-05/0.002808, allocations: 3.938 kB / 0.7773 GB, free: 3.164 MB / 0.7292 GB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.002985, allocations: 60.83 kB / 0.7774 GB, free: 3.105 MB / 0.7292 GB Notification: Performance of NFTyping.typeBindings: time 2.915e-05/0.003014, allocations: 32.55 kB / 0.7774 GB, free: 3.074 MB / 0.7292 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.0006039/0.003618, allocations: 261.7 kB / 0.7777 GB, free: 2.824 MB / 0.7292 GB Notification: Performance of NFFlatten.flatten: time 7.273e-05/0.003691, allocations: 35.14 kB / 0.7777 GB, free: 2.793 MB / 0.7292 GB Notification: Performance of NFFlatten.resolveConnections: time 3.318e-05/0.003724, allocations: 2.266 kB / 0.7777 GB, free: 2.793 MB / 0.7292 GB Notification: Performance of NFEvalConstants.evaluate: time 4.656e-05/0.00377, allocations: 24.83 kB / 0.7777 GB, free: 2.77 MB / 0.7292 GB Notification: Performance of NFSimplifyModel.simplify: time 4.706e-05/0.003817, allocations: 37.7 kB / 0.7778 GB, free: 2.734 MB / 0.7292 GB Notification: Performance of NFPackage.collectConstants: time 1.367e-05/0.003831, allocations: 0 / 0.7778 GB, free: 2.734 MB / 0.7292 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000555/0.004386, allocations: 484.7 kB / 0.7782 GB, free: 2.262 MB / 0.7292 GB Notification: Performance of NFScalarize.scalarize: time 4.404e-05/0.00443, allocations: 24.75 kB / 0.7783 GB, free: 2.238 MB / 0.7292 GB Notification: Performance of NFVerifyModel.verify: time 1.598e-05/0.004446, allocations: 7.938 kB / 0.7783 GB, free: 2.23 MB / 0.7292 GB Notification: Performance of NFConvertDAE.convert: time 0.0003164/0.004762, allocations: 366.2 kB / 0.7786 GB, free: 1.875 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 1.893e-06/0.004764, allocations: 0 / 0.7786 GB, free: 1.875 MB / 0.7292 GB Notification: Performance of FrontEnd: time 7.81e-07/0.004765, allocations: 0 / 0.7786 GB, free: 1.875 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 2.876e-06/0.004768, allocations: 0 / 0.7786 GB, free: 1.875 MB / 0.7292 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.00027/0.005038, allocations: 335.9 kB / 0.7789 GB, free: 1.523 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.00507, allocations: 17.33 kB / 0.779 GB, free: 1.508 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.215e-05/0.005092, allocations: 4.938 kB / 0.779 GB, free: 1.504 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001077/0.005199, allocations: 134.5 kB / 0.7791 GB, free: 1.348 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.943e-06/0.005206, allocations: 3.938 kB / 0.7791 GB, free: 1.348 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.119e-06/0.005211, allocations: 384 / 0.7791 GB, free: 1.348 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.46e-05/0.005266, allocations: 41.08 kB / 0.7791 GB, free: 1.301 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.005273, allocations: 192 / 0.7791 GB, free: 1.301 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.359e-06/0.005277, allocations: 384 / 0.7791 GB, free: 1.301 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.611e-06/0.005283, allocations: 7.875 kB / 0.7791 GB, free: 1.293 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.232e-06/0.005289, allocations: 0 / 0.7791 GB, free: 1.293 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.885e-05/0.005368, allocations: 70.7 kB / 0.7792 GB, free: 1.207 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 2.47e-05/0.005393, allocations: 22.55 kB / 0.7792 GB, free: 1.176 MB / 0.7292 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.989e-06/0.005403, allocations: 9.766 kB / 0.7792 GB, free: 1.164 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.005435, allocations: 8.047 kB / 0.7792 GB, free: 1.156 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.957e-05/0.005454, allocations: 35.53 kB / 0.7793 GB, free: 1.113 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=1): time 5.31e-07/0.005455, allocations: 0 / 0.7793 GB, free: 1.113 MB / 0.7292 GB Notification: Performance of matching and sorting (n=1): time 7.137e-05/0.005526, allocations: 31.17 kB / 0.7793 GB, free: 1.078 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.445e-05/0.005551, allocations: 55.39 kB / 0.7794 GB, free: 1.012 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.005651, allocations: 191.4 kB / 0.7795 GB, free: 0.8125 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 8.767e-06/0.00566, allocations: 25.7 kB / 0.7796 GB, free: 0.7812 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 3.168e-05/0.005691, allocations: 105.1 kB / 0.7797 GB, free: 0.6758 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 7.074e-06/0.005699, allocations: 0 / 0.7797 GB, free: 0.6758 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.654e-05/0.005725, allocations: 25.69 kB / 0.7797 GB, free: 0.6445 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 7.109e-05/0.005796, allocations: 331.8 kB / 0.78 GB, free: 320 kB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.247e-05/0.005819, allocations: 18.83 kB / 0.78 GB, free: 300 kB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.127e-05/0.00583, allocations: 8.5 kB / 0.78 GB, free: 292 kB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.512e-05/0.005865, allocations: 46.5 kB / 0.7801 GB, free: 244 kB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.422e-06/0.005866, allocations: 0.6562 kB / 0.7801 GB, free: 244 kB / 0.7292 GB Notification: Performance of matching and sorting (n=16) (initialization): time 6.074e-05/0.005927, allocations: 74.75 kB / 0.7802 GB, free: 164 kB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 9.408e-06/0.005937, allocations: 4 kB / 0.7802 GB, free: 160 kB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.348e-06/0.005946, allocations: 0 / 0.7802 GB, free: 160 kB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.012e-05/0.005956, allocations: 0.7188 kB / 0.7802 GB, free: 160 kB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.467e-06/0.005966, allocations: 3.938 kB / 0.7802 GB, free: 156 kB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.044e-06/0.005968, allocations: 1.5 kB / 0.7802 GB, free: 156 kB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.481e-05/0.005982, allocations: 11.89 kB / 0.7802 GB, free: 144 kB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.005989, allocations: 0 / 0.7802 GB, free: 144 kB / 0.7292 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 (labels[1],labels[2],labels[3],labels[4],labels[5],labels[6],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 5.628e-05/0.006045, allocations: 118.3 kB / 0.7803 GB, free: 16 kB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.67e-06/0.00605, allocations: 7.984 kB / 0.7803 GB, free: 8 kB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.14e-05/0.006122, allocations: 42.25 kB / 0.7803 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-06/0.006123, allocations: 0.7812 kB / 0.7803 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.173e-06/0.006124, allocations: 0 / 0.7803 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.006127, allocations: 0 / 0.7803 GB, free: 15.96 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.364e-05/0.00618, allocations: 82.78 kB / 0.7804 GB, free: 15.86 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.006182, allocations: 4 kB / 0.7804 GB, free: 15.86 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.166e-06/0.006185, allocations: 4.562 kB / 0.7804 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.41e-07/0.006186, allocations: 0 / 0.7804 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.186e-06/0.006189, allocations: 0.5312 kB / 0.7804 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.006191, allocations: 4.656 kB / 0.7804 GB, free: 15.85 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.006192, allocations: 3.938 kB / 0.7804 GB, free: 15.84 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 3.991e-05/0.006232, allocations: 75.77 kB / 0.7805 GB, free: 15.75 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.006243, allocations: 15.89 kB / 0.7805 GB, free: 15.74 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.333e-06/0.00625, allocations: 4.859 kB / 0.7805 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-06/0.006257, allocations: 0 / 0.7805 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.565e-06/0.006264, allocations: 0 / 0.7805 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.253e-06/0.006265, allocations: 1.312 kB / 0.7805 GB, free: 15.73 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 2.883e-05/0.006294, allocations: 42 kB / 0.7806 GB, free: 15.69 MB / 0.7448 GB Notification: Performance of sort global known variables: time 5e-08/0.006294, allocations: 0 / 0.7806 GB, free: 15.69 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001887/0.006483, allocations: 92.92 kB / 0.7807 GB, free: 15.6 MB / 0.7448 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.0003922/0.006875, allocations: 261.6 kB / 0.7809 GB, free: 15.38 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 9.788e-05/0.006973, allocations: 71.34 kB / 0.781 GB, free: 15.3 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.006976, allocations: 0 / 0.781 GB, free: 15.3 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.731e-06/0.006982, allocations: 9.984 kB / 0.781 GB, free: 15.29 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 6.19e-05/0.007043, allocations: 15.86 kB / 0.781 GB, free: 15.27 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000205/0.007248, allocations: 192.4 kB / 0.7812 GB, free: 15.05 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.486e-05/0.007283, allocations: 67.2 kB / 0.7812 GB, free: 14.97 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.573e-05/0.007299, allocations: 3.984 kB / 0.7812 GB, free: 14.96 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.316e-05/0.007332, allocations: 51.38 kB / 0.7813 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of SimCode: time 5.01e-07/0.007333, allocations: 5.344 kB / 0.7813 GB, free: 14.91 MB / 0.7448 GB Notification: Performance of Templates: time 0.003887/0.01122, allocations: 2.59 MB / 0.7838 GB, free: 12.44 MB / 0.7448 GB " [Timeout remaining time 300] make -j1 -f Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & (cd run_cvode && ../Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s cvode) > Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 240] (rm -f Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_gbode.pipe ; mkfifo Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_gbode.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_gbode.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_gbode.sim & (cd run_gbode && ../Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s gbode -gbm=radauIIA3) > Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_gbode.pipe 2>&1) [Timeout 240] (rm -f Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_ida.pipe ; mkfifo Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_ida.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_ida.pipe >> /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_ida.sim & (cd run_ida && ../Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=240 -lv LOG_STATS -inputPath=.. -s ida) > Buildings_13_Buildings.Utilities.Clustering.Validation.KMeans_2d_ida.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 4.788815954700112]