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.001381/0.001381, allocations: 108 kB / 16.42 MB, free: 5.977 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.00152/0.00152, allocations: 189.1 kB / 17.36 MB, free: 5.57 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.49/1.49, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00236/0.00236, allocations: 284.4 kB / 291.5 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.031/1.031, allocations: 169.3 MB / 0.499 GB, free: 4.418 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.748e-05/3.751e-05, allocations: 2.281 kB / 0.682 GB, free: 7.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.002386/0.002435, allocations: 0.5117 MB / 0.6825 GB, free: 6.562 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.002929/0.005378, allocations: 1.607 MB / 0.6841 GB, free: 4.938 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.044e-05/0.005441, allocations: 0 / 0.6841 GB, free: 4.938 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002104/0.005658, allocations: 59.86 kB / 0.6841 GB, free: 4.879 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.473e-05/0.005711, allocations: 35.88 kB / 0.6842 GB, free: 4.844 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.00103/0.006781, allocations: 252.7 kB / 0.6844 GB, free: 4.602 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001205/0.006911, allocations: 43.83 kB / 0.6844 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.055e-05/0.006968, allocations: 0 / 0.6844 GB, free: 4.559 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.491e-05/0.007018, allocations: 19.97 kB / 0.6845 GB, free: 4.539 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.19e-05/0.007095, allocations: 31.89 kB / 0.6845 GB, free: 4.508 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.579e-05/0.007116, allocations: 4 kB / 0.6845 GB, free: 4.504 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006286/0.007751, allocations: 339.5 kB / 0.6848 GB, free: 4.172 MB / 494.1 MB Notification: Performance of combineBinaries: time 6.372e-05/0.007825, allocations: 39.56 kB / 0.6849 GB, free: 4.133 MB / 494.1 MB Notification: Performance of replaceArrayConstructors: time 2.567e-05/0.007857, allocations: 31.56 kB / 0.6849 GB, free: 4.102 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.819e-05/0.007882, allocations: 7.938 kB / 0.6849 GB, free: 4.094 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.279e-05/0.007899, 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.0003904/0.008294, allocations: 224.9 kB / 0.6851 GB, free: 3.773 MB / 494.1 MB Notification: Performance of FunctionAlias: time 6.34e-05/0.008364, allocations: 19.81 kB / 0.6851 GB, free: 3.754 MB / 494.1 MB Notification: Performance of Early Inline: time 8.252e-05/0.008453, allocations: 52.36 kB / 0.6852 GB, free: 3.676 MB / 494.1 MB Notification: Performance of simplify1: time 9.357e-06/0.008469, allocations: 11.98 kB / 0.6852 GB, free: 3.664 MB / 494.1 MB Notification: Performance of Alias: time 0.0002468/0.008721, allocations: 92.61 kB / 0.6853 GB, free: 3.527 MB / 494.1 MB Notification: Performance of simplify2: time 5.24e-06/0.008735, allocations: 3.984 kB / 0.6853 GB, free: 3.523 MB / 494.1 MB Notification: Performance of Detect States: time 7.062e-05/0.008811, allocations: 28.23 kB / 0.6853 GB, free: 3.48 MB / 494.1 MB Notification: Performance of Events: time 1.506e-05/0.008832, allocations: 4 kB / 0.6853 GB, free: 3.477 MB / 494.1 MB Notification: Performance of Partitioning: time 4.427e-05/0.008881, allocations: 16.31 kB / 0.6853 GB, free: 3.453 MB / 494.1 MB Notification: Performance of Causalize: time 5.886e-05/0.008946, allocations: 28.11 kB / 0.6854 GB, free: 3.418 MB / 494.1 MB Notification: Performance of After Index Reduction Inline: time 5.055e-05/0.009006, allocations: 56.23 kB / 0.6854 GB, free: 3.336 MB / 494.1 MB Notification: Performance of Inline: time 8.599e-05/0.009098, allocations: 64.48 kB / 0.6855 GB, free: 3.238 MB / 494.1 MB Notification: Performance of Partitioning: time 1.439e-05/0.009118, allocations: 16.31 kB / 0.6855 GB, free: 3.215 MB / 494.1 MB Notification: Performance of Cleanup: time 6.943e-06/0.009131, allocations: 4 kB / 0.6855 GB, free: 3.211 MB / 494.1 MB Notification: Performance of Causalize: time 0.0002726/0.009408, allocations: 179.9 kB / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Tearing: time 1.275e-05/0.009431, allocations: 0 / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Initialization: time 7.52e-07/0.009437, allocations: 0 / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Tearing: time 1.332e-06/0.009443, allocations: 0 / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Categorize: time 9.127e-06/0.009456, allocations: 0 / 0.6857 GB, free: 3.027 MB / 494.1 MB Notification: Performance of Solve: time 3.759e-05/0.0095, allocations: 11.98 kB / 0.6857 GB, free: 3.016 MB / 494.1 MB Notification: Performance of Jacobian: time 9.929e-06/0.009516, 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 3.55e-05/0.009555, allocations: 12.88 kB / 0.6857 GB, free: 3.008 MB / 494.1 MB Notification: Performance of SimCode: time 0.001545/0.01111, allocations: 1.286 MB / 0.6869 GB, free: 1.715 MB / 494.1 MB Notification: Performance of Templates: time 0.4621/0.4732, allocations: 2.09 MB / 0.689 GB, free: 14.9 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