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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 115.9 kB / 16.43 MB, free: 6.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 182 kB / 17.36 MB, free: 5.746 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.147/1.147, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.22/2.22, allocations: 469.8 MB / 0.7431 GB, free: 3.391 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.029e-05/1.031e-05, allocations: 4.531 kB / 1.066 GB, free: 13.71 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001024/0.001043, allocations: 0.5285 MB / 1.066 GB, free: 13.19 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001809/0.002863, allocations: 1.606 MB / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.3e-05/0.002897, allocations: 0 / 1.068 GB, free: 11.56 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0001399/0.003042, allocations: 59.84 kB / 1.068 GB, free: 11.5 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 2.915e-05/0.003082, allocations: 27.95 kB / 1.068 GB, free: 11.48 MB / 0.8419 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.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.0-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.0006428/0.00373, allocations: 257.1 kB / 1.068 GB, free: 11.23 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 6.44e-05/0.003805, allocations: 35.97 kB / 1.068 GB, free: 11.2 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 2.987e-05/0.003841, allocations: 4 kB / 1.068 GB, free: 11.19 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 3.341e-05/0.003879, allocations: 23.95 kB / 1.068 GB, free: 11.17 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.305e-05/0.003938, allocations: 31.91 kB / 1.068 GB, free: 11.14 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.05e-05/0.003954, allocations: 3.938 kB / 1.068 GB, free: 11.13 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004102/0.004368, allocations: 327.5 kB / 1.069 GB, free: 10.81 MB / 0.8419 GB Notification: Performance of combineBinaries: time 4.625e-05/0.004426, allocations: 51.58 kB / 1.069 GB, free: 10.76 MB / 0.8419 GB Notification: Performance of replaceArrayConstructors: time 1.97e-05/0.004451, allocations: 35.48 kB / 1.069 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 9.558e-06/0.004465, allocations: 0 / 1.069 GB, free: 10.73 MB / 0.8419 GB Notification: Performance of FrontEnd: time 6.402e-06/0.004476, allocations: 3.938 kB / 1.069 GB, free: 10.72 MB / 0.8419 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 Bindings: time 0.0002616/0.004743, allocations: 220.9 kB / 1.069 GB, free: 10.41 MB / 0.8419 GB Notification: Performance of FunctionAlias: time 4.118e-05/0.00479, allocations: 11.88 kB / 1.069 GB, free: 10.39 MB / 0.8419 GB Notification: Performance of Early Inline: time 4.792e-05/0.004845, allocations: 52.36 kB / 1.069 GB, free: 10.32 MB / 0.8419 GB Notification: Performance of simplify1: time 2.473e-05/0.004876, allocations: 36.42 kB / 1.069 GB, free: 10.25 MB / 0.8419 GB Notification: Performance of Alias: time 0.0001701/0.005052, allocations: 84.66 kB / 1.069 GB, free: 10.12 MB / 0.8419 GB Notification: Performance of simplify2: time 2.545e-05/0.005086, allocations: 40.42 kB / 1.069 GB, free: 10.06 MB / 0.8419 GB Notification: Performance of Detect States: time 4.226e-05/0.005133, allocations: 24.2 kB / 1.069 GB, free: 10.02 MB / 0.8419 GB Notification: Performance of Events: time 1.08e-05/0.00515, allocations: 8.125 kB / 1.069 GB, free: 10.01 MB / 0.8419 GB Notification: Performance of Partitioning: time 3.264e-05/0.005188, allocations: 20.11 kB / 1.069 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of Causalize: time 3.589e-05/0.005229, allocations: 20.06 kB / 1.069 GB, free: 9.957 MB / 0.8419 GB Notification: Performance of After Index Reduction Inline: time 4.033e-05/0.005275, allocations: 56.34 kB / 1.069 GB, free: 9.875 MB / 0.8419 GB Notification: Performance of Inline: time 6.49e-05/0.005345, allocations: 64.66 kB / 1.069 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of Partitioning: time 7.985e-06/0.005359, allocations: 12.12 kB / 1.069 GB, free: 9.758 MB / 0.8419 GB Notification: Performance of Cleanup: time 9.898e-06/0.005374, allocations: 7.938 kB / 1.069 GB, free: 9.75 MB / 0.8419 GB Notification: Performance of Causalize: time 0.0001974/0.005575, allocations: 169.8 kB / 1.069 GB, free: 9.578 MB / 0.8419 GB Notification: Performance of Tearing: time 7.815e-06/0.005591, allocations: 4 kB / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of Initialization: time 3.11e-07/0.005595, allocations: 0 / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of Tearing: time 8.72e-07/0.0056, allocations: 0 / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of Categorize: time 4.519e-06/0.005608, allocations: 0 / 1.069 GB, free: 9.574 MB / 0.8419 GB Notification: Performance of Solve: time 2.342e-05/0.005635, allocations: 7.938 kB / 1.069 GB, free: 9.566 MB / 0.8419 GB Notification: Performance of Jacobian: time 2.124e-06/0.005641, allocations: 0 / 1.069 GB, free: 9.566 MB / 0.8419 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) {NOT YET AVAILABLE} * Number of discrete variables: ................. 1 (1) {cmp} * 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 (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 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 3.38e-05/0.005679, allocations: 31.48 kB / 1.069 GB, free: 9.543 MB / 0.8419 GB Notification: Performance of SimCode: time 0.00108/0.006763, allocations: 1.354 MB / 1.071 GB, free: 8.18 MB / 0.8419 GB Notification: Performance of Templates: time 0.003989/0.01077, allocations: 2.103 MB / 1.073 GB, free: 6.074 MB / 0.8419 GB make -j1 -f Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile (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=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.pipe 2>&1) 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Clustering.Validation.KMeans_2d.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches