Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001169/0.001169, allocations: 106.6 kB / 16.42 MB, free: 6.461 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.001238/0.001239, allocations: 191.8 kB / 17.36 MB, free: 5.707 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.269/1.269, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.286/2.286, allocations: 461.9 MB / 0.7354 GB, free: 11.1 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.022e-05/2.024e-05, allocations: 8.188 kB / 1.055 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001154/0.001182, allocations: 0.5308 MB / 1.055 GB, free: 7.277 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.002089/0.003281, allocations: 1.602 MB / 1.057 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.581e-05/0.003317, allocations: 0 / 1.057 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001702/0.003494, allocations: 59.84 kB / 1.057 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.455e-05/0.003541, allocations: 39.94 kB / 1.057 GB, free: 5.559 MB / 0.8262 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.0.1-master/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.0007196/0.004265, allocations: 243.3 kB / 1.057 GB, free: 5.32 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.701e-05/0.00436, allocations: 39.83 kB / 1.057 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.056e-05/0.004407, allocations: 7.984 kB / 1.057 GB, free: 5.273 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.262e-05/0.004443, allocations: 15.98 kB / 1.057 GB, free: 5.258 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.731e-05/0.004505, allocations: 31.89 kB / 1.057 GB, free: 5.227 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.274e-05/0.004525, allocations: 4 kB / 1.057 GB, free: 5.223 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004953/0.00503, allocations: 331.5 kB / 1.057 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of combineBinaries: time 5.133e-05/0.00509, allocations: 47.5 kB / 1.057 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 2.148e-05/0.005117, allocations: 27.56 kB / 1.057 GB, free: 4.824 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.188e-05/0.005135, allocations: 11.88 kB / 1.057 GB, free: 4.812 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.366e-06/0.005147, allocations: 0 / 1.057 GB, free: 4.812 MB / 0.8262 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.0003802/0.005531, allocations: 228.9 kB / 1.058 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of FunctionAlias: time 4.614e-05/0.005582, allocations: 15.89 kB / 1.058 GB, free: 4.473 MB / 0.8262 GB Notification: Performance of Early Inline: time 5.883e-05/0.005647, allocations: 56.34 kB / 1.058 GB, free: 4.391 MB / 0.8262 GB Notification: Performance of simplify1: time 6.773e-06/0.00566, allocations: 7.984 kB / 1.058 GB, free: 4.383 MB / 0.8262 GB Notification: Performance of Alias: time 0.0002024/0.005866, allocations: 88.67 kB / 1.058 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of simplify2: time 2.985e-06/0.005877, allocations: 0 / 1.058 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of Events: time 1.58e-05/0.005896, allocations: 15.97 kB / 1.058 GB, free: 4.234 MB / 0.8262 GB Notification: Performance of Detect States: time 5.004e-05/0.00595, allocations: 26.23 kB / 1.058 GB, free: 4.195 MB / 0.8262 GB Notification: Performance of Partitioning: time 2.967e-05/0.005987, allocations: 12.31 kB / 1.058 GB, free: 4.176 MB / 0.8262 GB Notification: Performance of Causalize: time 4.403e-05/0.006036, allocations: 32.05 kB / 1.058 GB, free: 4.137 MB / 0.8262 GB Notification: Performance of After Index Reduction Inline: time 4.843e-05/0.00609, allocations: 52.36 kB / 1.058 GB, free: 4.059 MB / 0.8262 GB Notification: Performance of Inline: time 6.329e-05/0.006158, allocations: 68.47 kB / 1.058 GB, free: 3.957 MB / 0.8262 GB Notification: Performance of Partitioning: time 9.078e-06/0.006174, allocations: 12.31 kB / 1.058 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of Cleanup: time 5.46e-06/0.006183, allocations: 0 / 1.058 GB, free: 3.938 MB / 0.8262 GB Notification: Performance of Causalize: time 0.0002257/0.006414, allocations: 190.4 kB / 1.058 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of Tearing: time 7.313e-06/0.00643, allocations: 0 / 1.058 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of Initialization: time 4.1e-07/0.006434, allocations: 0 / 1.058 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of Tearing: time 7.91e-07/0.006439, allocations: 0 / 1.058 GB, free: 3.746 MB / 0.8262 GB Notification: Performance of Categorize: time 5.471e-06/0.006451, allocations: 4 kB / 1.058 GB, free: 3.742 MB / 0.8262 GB Notification: Performance of Solve: time 2.854e-05/0.006482, allocations: 11.94 kB / 1.058 GB, free: 3.73 MB / 0.8262 GB Notification: Performance of Jacobian: time 2.154e-06/0.006489, allocations: 0 / 1.058 GB, free: 3.73 MB / 0.8262 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 2.608e-05/0.006519, allocations: 13 kB / 1.058 GB, free: 3.723 MB / 0.8262 GB Notification: Performance of SimCode: time 0.001206/0.007728, allocations: 1.278 MB / 1.06 GB, free: 2.441 MB / 0.8262 GB Notification: Performance of Templates: time 0.004306/0.01204, allocations: 2.105 MB / 1.062 GB, free: 344 kB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.o Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d.c clang -Os -DOM_HAVE_PTHREADS -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=Buildings_latest_Buildings_Utilities_Clustering_Validation_KMeans_2d -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.o Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.c Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.c:1022:52: error: use of undeclared identifier '_OMC_LIT1' tmpMeta35 = stringAppend(tmpMeta34,_OMC_LIT1); ^ 2 errors generated. make: *** [: Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.o] Error 1