Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001241/0.001241, allocations: 107.5 kB / 16.42 MB, free: 6.527 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.001416/0.001416, allocations: 187.2 kB / 17.36 MB, free: 5.727 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.24/1.24, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.294/2.294, allocations: 461.9 MB / 0.7354 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.989e-05/1.99e-05, allocations: 6.219 kB / 1.055 GB, free: 7.758 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001236/0.001264, allocations: 0.5269 MB / 1.055 GB, free: 7.234 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001975/0.003249, allocations: 1.61 MB / 1.057 GB, free: 5.605 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.581e-05/0.003296, allocations: 3.938 kB / 1.057 GB, free: 5.602 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001396/0.003441, allocations: 19.97 kB / 1.057 GB, free: 5.582 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 2.279e-05/0.003481, allocations: 11.92 kB / 1.057 GB, free: 5.57 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.0008378/0.004323, allocations: 241.7 kB / 1.057 GB, free: 5.336 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.052e-05/0.004412, allocations: 35.83 kB / 1.057 GB, free: 5.301 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.552e-05/0.004454, allocations: 4 kB / 1.057 GB, free: 5.297 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.998e-05/0.004488, allocations: 11.98 kB / 1.057 GB, free: 5.285 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.855e-05/0.004533, allocations: 15.92 kB / 1.057 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.00455, allocations: 0 / 1.057 GB, free: 5.27 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005016/0.005057, allocations: 335.5 kB / 1.057 GB, free: 4.941 MB / 0.8262 GB Notification: Performance of combineBinaries: time 5.189e-05/0.005118, allocations: 43.56 kB / 1.057 GB, free: 4.898 MB / 0.8262 GB Notification: Performance of replaceArrayConstructors: time 1.717e-05/0.005141, allocations: 27.56 kB / 1.057 GB, free: 4.871 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.081e-05/0.005156, allocations: 3.938 kB / 1.057 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of FrontEnd: time 8.656e-06/0.00517, allocations: 4 kB / 1.057 GB, free: 4.863 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.0002956/0.00547, allocations: 236.8 kB / 1.058 GB, free: 4.531 MB / 0.8262 GB Notification: Performance of FunctionAlias: time 4.904e-05/0.005524, allocations: 11.89 kB / 1.058 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of Early Inline: time 6.126e-05/0.005592, allocations: 56.36 kB / 1.058 GB, free: 4.438 MB / 0.8262 GB Notification: Performance of simplify1: time 5.09e-06/0.005603, allocations: 3.938 kB / 1.058 GB, free: 4.434 MB / 0.8262 GB Notification: Performance of Alias: time 0.000203/0.00581, allocations: 84.72 kB / 1.058 GB, free: 4.305 MB / 0.8262 GB Notification: Performance of simplify2: time 4.679e-06/0.005823, allocations: 4 kB / 1.058 GB, free: 4.301 MB / 0.8262 GB Notification: Performance of Events: time 1.034e-05/0.005837, allocations: 4 kB / 1.058 GB, free: 4.297 MB / 0.8262 GB Notification: Performance of Detect States: time 5.295e-05/0.005893, allocations: 38.55 kB / 1.058 GB, free: 4.246 MB / 0.8262 GB Notification: Performance of Partitioning: time 3.269e-05/0.005932, allocations: 20.12 kB / 1.058 GB, free: 4.219 MB / 0.8262 GB Notification: Performance of Causalize: time 4.457e-05/0.005981, allocations: 28.05 kB / 1.058 GB, free: 4.184 MB / 0.8262 GB Notification: Performance of After Index Reduction Inline: time 3.794e-05/0.006025, allocations: 48.36 kB / 1.058 GB, free: 4.109 MB / 0.8262 GB Notification: Performance of Inline: time 6.833e-05/0.0061, allocations: 76.66 kB / 1.058 GB, free: 4 MB / 0.8262 GB Notification: Performance of Partitioning: time 1.058e-05/0.006116, allocations: 8.125 kB / 1.058 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of Cleanup: time 5.47e-06/0.006125, allocations: 0 / 1.058 GB, free: 3.984 MB / 0.8262 GB Notification: Performance of Causalize: time 0.0001922/0.006321, allocations: 148 kB / 1.058 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of Tearing: time 6.633e-06/0.006336, allocations: 0 / 1.058 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of Initialization: time 4.2e-07/0.00634, allocations: 0 / 1.058 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of Tearing: time 1.072e-06/0.006345, allocations: 0 / 1.058 GB, free: 3.832 MB / 0.8262 GB Notification: Performance of Categorize: time 7.695e-06/0.00636, allocations: 11.94 kB / 1.058 GB, free: 3.82 MB / 0.8262 GB Notification: Performance of Solve: time 2.956e-05/0.006393, allocations: 4 kB / 1.058 GB, free: 3.816 MB / 0.8262 GB Notification: Performance of Jacobian: time 2.826e-06/0.0064, allocations: 0 / 1.058 GB, free: 3.816 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.875e-05/0.006433, allocations: 12.59 kB / 1.058 GB, free: 3.812 MB / 0.8262 GB Notification: Performance of SimCode: time 0.001125/0.007562, allocations: 1.21 MB / 1.059 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of Templates: time 0.004386/0.01196, allocations: 2.071 MB / 1.061 GB, free: 0.5195 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile make -j1 -f Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d -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_1d.o Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d.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_1d -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_1d_functions.o Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_functions.c Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ Buildings_latest_Buildings.Utilities.Clustering.Validation.KMeans_1d_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_1d_functions.o] Error 1