Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001078/0.001078, allocations: 107.5 kB / 16.42 MB, free: 6.477 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.001071/0.001071, allocations: 187.2 kB / 17.35 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.129/1.129, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001877/0.001877, allocations: 287.8 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8129/0.8129, allocations: 169.3 MB / 0.499 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.071e-05/1.072e-05, allocations: 2.281 kB / 0.682 GB, free: 7.066 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.001054/0.001072, allocations: 0.5231 MB / 0.6825 GB, free: 6.547 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001812/0.002894, allocations: 1.595 MB / 0.6841 GB, free: 4.934 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.646e-05/0.002932, allocations: 4 kB / 0.6841 GB, free: 4.93 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001665/0.003104, allocations: 63.83 kB / 0.6841 GB, free: 4.867 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.052e-05/0.003141, allocations: 27.91 kB / 0.6842 GB, free: 4.84 MB / 494.1 MB [/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/BuildingSystems 2.0.0-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.0006572/0.003809, allocations: 243.3 kB / 0.6844 GB, free: 4.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.523e-05/0.003892, allocations: 43.83 kB / 0.6844 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.223e-05/0.00393, allocations: 3.984 kB / 0.6844 GB, free: 4.555 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.942e-05/0.003964, allocations: 19.97 kB / 0.6845 GB, free: 4.535 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.004021, allocations: 35.91 kB / 0.6845 GB, free: 4.5 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.668e-06/0.004036, allocations: 0 / 0.6845 GB, free: 4.5 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004416/0.004482, allocations: 339.5 kB / 0.6848 GB, free: 4.168 MB / 494.1 MB Notification: Performance of combineBinaries: time 4.63e-05/0.004538, allocations: 39.58 kB / 0.6849 GB, free: 4.129 MB / 494.1 MB Notification: Performance of replaceArrayConstructors: time 1.778e-05/0.004561, allocations: 27.56 kB / 0.6849 GB, free: 4.102 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.323e-05/0.004579, allocations: 7.938 kB / 0.6849 GB, free: 4.094 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.875e-06/0.004591, allocations: 0 / 0.6849 GB, free: 4.094 MB / 494.1 MB 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.0002871/0.004882, allocations: 236.8 kB / 0.6851 GB, free: 3.762 MB / 494.1 MB Notification: Performance of FunctionAlias: time 5.151e-05/0.004939, allocations: 15.83 kB / 0.6851 GB, free: 3.746 MB / 494.1 MB Notification: Performance of Early Inline: time 5.677e-05/0.005002, allocations: 68.38 kB / 0.6852 GB, free: 3.652 MB / 494.1 MB Notification: Performance of simplify1: time 4.528e-06/0.005013, allocations: 7.875 kB / 0.6852 GB, free: 3.645 MB / 494.1 MB Notification: Performance of Alias: time 0.0001772/0.005194, allocations: 84.69 kB / 0.6853 GB, free: 3.516 MB / 494.1 MB Notification: Performance of simplify2: time 2.735e-06/0.005206, allocations: 4 kB / 0.6853 GB, free: 3.512 MB / 494.1 MB Notification: Performance of Events: time 8.546e-06/0.005219, allocations: 0 / 0.6853 GB, free: 3.512 MB / 494.1 MB Notification: Performance of Detect States: time 4.795e-05/0.005272, allocations: 34.77 kB / 0.6853 GB, free: 3.465 MB / 494.1 MB Notification: Performance of Partitioning: time 2.775e-05/0.005305, allocations: 12.12 kB / 0.6853 GB, free: 3.445 MB / 494.1 MB Notification: Performance of Causalize: time 4.087e-05/0.005351, allocations: 24.11 kB / 0.6854 GB, free: 3.414 MB / 494.1 MB Notification: Performance of After Index Reduction Inline: time 3.793e-05/0.005395, allocations: 52.3 kB / 0.6854 GB, free: 3.336 MB / 494.1 MB Notification: Performance of Inline: time 8.576e-05/0.005486, allocations: 72.66 kB / 0.6855 GB, free: 3.23 MB / 494.1 MB Notification: Performance of Partitioning: time 1.018e-05/0.005502, allocations: 12.12 kB / 0.6855 GB, free: 3.211 MB / 494.1 MB Notification: Performance of Cleanup: time 6.442e-06/0.005512, allocations: 4 kB / 0.6855 GB, free: 3.207 MB / 494.1 MB Notification: Performance of Causalize: time 0.0002337/0.005749, allocations: 171.9 kB / 0.6857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of Tearing: time 3.456e-06/0.005761, allocations: 0 / 0.6857 GB, free: 3.031 MB / 494.1 MB Notification: Performance of Initialization: time 3.1e-07/0.005767, allocations: 4 kB / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Tearing: time 6.82e-07/0.005772, allocations: 0 / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Categorize: time 5.51e-06/0.005781, allocations: 3.984 kB / 0.6857 GB, free: 3.023 MB / 494.1 MB Notification: Performance of Solve: time 2.606e-05/0.00581, allocations: 7.984 kB / 0.6857 GB, free: 3.016 MB / 494.1 MB Notification: Performance of Jacobian: time 3.616e-06/0.005819, allocations: 3.938 kB / 0.6857 GB, free: 3.012 MB / 494.1 MB 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.432e-05/0.005847, allocations: 10.14 kB / 0.6857 GB, free: 3.008 MB / 494.1 MB Notification: Performance of SimCode: time 0.001131/0.006982, allocations: 1.286 MB / 0.6869 GB, free: 1.715 MB / 494.1 MB Notification: Performance of Templates: time 0.2313/0.2383, allocations: 2.105 MB / 0.689 GB, free: 14.87 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile make -j1 -f BuildingSystems_BuildingSystems.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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.o BuildingSystems_BuildingSystems.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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_functions.o BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_functions.c BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ BuildingSystems_BuildingSystems.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: *** [: BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d_functions.o] Error 1