Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001535/0.001535, allocations: 104.3 kB / 19.77 MB, free: 2.051 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.001691/0.001691, allocations: 219.4 kB / 23.07 MB, free: 4.844 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.372/1.372, allocations: 230.7 MB / 256.9 MB, free: 7.723 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.55/2.55, allocations: 476 MB / 0.7708 GB, free: 4.637 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") [Timeout 300] "Notification: Performance of FrontEnd - Absyn->SCode: time 1.894e-05/1.894e-05, allocations: 3.594 kB / 1.118 GB, free: 41.04 MB / 0.9044 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.00134/0.001359, allocations: 0.5187 MB / 1.118 GB, free: 41.04 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.001857/0.003216, allocations: 1.608 MB / 1.12 GB, free: 40.91 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.754e-05/0.003243, allocations: 0.7656 kB / 1.12 GB, free: 40.91 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001613/0.003405, allocations: 63.19 kB / 1.12 GB, free: 40.9 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 3.042e-05/0.003435, allocations: 34.02 kB / 1.12 GB, free: 40.9 MB / 0.9044 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'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/Utilities/Clustering/KMeans.mo:96:7-96:35:writable] Warning: inertia was used before it was defined (given a value). Additional such uses may exist for the variable, but some messages were suppressed. Notification: Performance of NFTyping.typeClassSections: time 0.0007099/0.004145, allocations: 263.2 kB / 1.12 GB, free: 40.86 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 7.431e-05/0.004219, allocations: 40.36 kB / 1.12 GB, free: 40.86 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.661e-05/0.004256, allocations: 5.75 kB / 1.12 GB, free: 40.86 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 3.057e-05/0.004286, allocations: 19.45 kB / 1.12 GB, free: 40.86 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 4.973e-05/0.004336, allocations: 41.3 kB / 1.12 GB, free: 40.86 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.17e-05/0.004348, allocations: 0 / 1.12 GB, free: 40.86 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004758/0.004824, allocations: 425.8 kB / 1.121 GB, free: 40.84 MB / 0.9044 GB Notification: Performance of combineBinaries: time 6.593e-05/0.00489, allocations: 54.86 kB / 1.121 GB, free: 40.83 MB / 0.9044 GB Notification: Performance of replaceArrayConstructors: time 2.143e-05/0.004911, allocations: 36.53 kB / 1.121 GB, free: 40.81 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 1.473e-05/0.004926, allocations: 1.469 kB / 1.121 GB, free: 40.81 MB / 0.9044 GB Notification: Performance of FrontEnd: time 7.464e-06/0.004933, allocations: 1.625 kB / 1.121 GB, free: 40.81 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 (1) * Number of variables: 1 (1) Notification: Performance of [SIM] Bindings: time 0.0003587/0.005292, allocations: 290 kB / 1.121 GB, free: 40.52 MB / 0.9044 GB Notification: Performance of [SIM] FunctionAlias: time 7.733e-05/0.005369, allocations: 47.77 kB / 1.121 GB, free: 40.48 MB / 0.9044 GB Notification: Performance of [SIM] Early Inline: time 5.158e-05/0.005421, allocations: 69.02 kB / 1.121 GB, free: 40.41 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 1: time 3.246e-05/0.005453, allocations: 67.59 kB / 1.121 GB, free: 40.32 MB / 0.9044 GB Notification: Performance of [SIM] Alias: time 0.0002511/0.005704, allocations: 109.8 kB / 1.121 GB, free: 40.2 MB / 0.9044 GB Notification: Performance of [SIM] Simplify 2: time 3.333e-05/0.005738, allocations: 63.36 kB / 1.122 GB, free: 40.1 MB / 0.9044 GB Notification: Performance of [SIM] Remove Stream: time 2.128e-05/0.005759, allocations: 40.86 kB / 1.122 GB, free: 40.05 MB / 0.9044 GB Notification: Performance of [SIM] Detect States: time 5.282e-05/0.005812, allocations: 84.86 kB / 1.122 GB, free: 39.93 MB / 0.9044 GB Notification: Performance of [SIM] Events: time 1.076e-05/0.005822, allocations: 2.312 kB / 1.122 GB, free: 39.93 MB / 0.9044 GB Notification: Performance of [SIM] Partitioning: time 4.906e-05/0.005872, allocations: 17.36 kB / 1.122 GB, free: 39.91 MB / 0.9044 GB Notification: Performance of [SIM] Causalize: time 4.833e-05/0.00592, allocations: 24.53 kB / 1.122 GB, free: 39.89 MB / 0.9044 GB Notification: Performance of [SIM] After Index Reduction Inline: time 1.767e-05/0.005938, allocations: 23.27 kB / 1.122 GB, free: 39.89 MB / 0.9044 GB Notification: Performance of [INI] Simplify: time 7.694e-05/0.006014, allocations: 103.9 kB / 1.122 GB, free: 39.74 MB / 0.9044 GB Notification: Performance of [INI] Inline: time 2.439e-05/0.006039, allocations: 30.3 kB / 1.122 GB, free: 39.73 MB / 0.9044 GB Notification: Performance of [INI] Partitioning: time 6.031e-06/0.006045, allocations: 13.38 kB / 1.122 GB, free: 39.72 MB / 0.9044 GB Notification: Performance of [INI] Cleanup: time 1.117e-05/0.006056, allocations: 8.188 kB / 1.122 GB, free: 39.72 MB / 0.9044 GB Notification: Performance of [INI] Causalize: time 0.0001901/0.006246, allocations: 128.1 kB / 1.122 GB, free: 39.7 MB / 0.9044 GB Notification: Performance of [INI] Tearing: time 9.488e-06/0.006256, allocations: 3.938 kB / 1.122 GB, free: 39.69 MB / 0.9044 GB Notification: Performance of [SIM] Initialization: time 3.6e-07/0.006256, allocations: 0 / 1.122 GB, free: 39.69 MB / 0.9044 GB Notification: Performance of [SIM] DAE-Mode: time 1.015e-05/0.006266, allocations: 11.03 kB / 1.122 GB, free: 39.68 MB / 0.9044 GB Notification: Performance of [SIM] Remove Dummies: time 2.766e-06/0.006269, allocations: 5.312 kB / 1.122 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of [SIM] Tearing: time 1.433e-06/0.00627, allocations: 2.781 kB / 1.122 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of [SIM] Categorize: time 6.883e-06/0.006277, allocations: 6.625 kB / 1.122 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of [SIM] Solve: time 3.818e-05/0.006315, allocations: 6.656 kB / 1.122 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of [SIM] Jacobian: time 7.394e-06/0.006323, allocations: 4.406 kB / 1.122 GB, free: 39.67 MB / 0.9044 GB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {} * Number of discrete variables: ................. 1 (1) {cmp} * Number of clocks: ............................. 0 (0) {} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 1 (scalar:1, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 1 (scalar:1, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:1) * Number of for-loop strong components: ......... 0 (resizable: 0, generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 2.984e-05/0.006353, allocations: 12.64 kB / 1.122 GB, free: 39.67 MB / 0.9044 GB Notification: Performance of SimCode: time 0.001094/0.007447, allocations: 0.7545 MB / 1.123 GB, free: 39.46 MB / 0.9044 GB Notification: Performance of Templates: time 0.004422/0.01187, allocations: 2.09 MB / 1.125 GB, free: 39.4 MB / 0.9044 GB " [Timeout remaining time 300] make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile [Timeout 300] (rm -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; mkfifo Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe >> ../files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.sim & ./Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Clustering_Validation_KMeans_2d.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 7.685967433033511]