Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001064/0.001064, allocations: 111 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.001037/0.001037, allocations: 185.5 kB / 17.35 MB, free: 5.75 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.111/1.111, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.033/2.033, allocations: 437 MB / 0.7111 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.156e-05/1.156e-05, allocations: 2.281 kB / 1.019 GB, free: 9.531 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_2d): time 0.001028/0.001048, allocations: 0.5207 MB / 1.02 GB, free: 9.012 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001741/0.002799, allocations: 1.608 MB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.072e-05/0.00283, allocations: 0 / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001376/0.002973, allocations: 67.84 kB / 1.021 GB, free: 7.32 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 2.812e-05/0.003008, allocations: 27.95 kB / 1.021 GB, free: 7.293 MB / 0.795 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 10.1.1-maint.10.0.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.0006197/0.003638, allocations: 252.1 kB / 1.022 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.864e-05/0.003715, allocations: 43.84 kB / 1.022 GB, free: 7.004 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 2.759e-05/0.003749, allocations: 4 kB / 1.022 GB, free: 7 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.845e-05/0.003792, allocations: 27.95 kB / 1.022 GB, free: 6.973 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 4.487e-05/0.003841, allocations: 27.91 kB / 1.022 GB, free: 6.945 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.009e-05/0.003856, allocations: 0 / 1.022 GB, free: 6.945 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004011/0.004261, allocations: 327.5 kB / 1.022 GB, free: 6.625 MB / 0.795 GB Notification: Performance of combineBinaries: time 4.318e-05/0.004313, allocations: 51.5 kB / 1.022 GB, free: 6.574 MB / 0.795 GB Notification: Performance of replaceArrayConstructors: time 1.811e-05/0.004336, allocations: 27.56 kB / 1.022 GB, free: 6.547 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 8.005e-06/0.00435, allocations: 7.938 kB / 1.022 GB, free: 6.539 MB / 0.795 GB Notification: Performance of FrontEnd: time 7.333e-06/0.004361, allocations: 4 kB / 1.022 GB, free: 6.535 MB / 0.795 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.0002586/0.004623, allocations: 228.9 kB / 1.022 GB, free: 6.211 MB / 0.795 GB Notification: Performance of FunctionAlias: time 3.819e-05/0.004667, allocations: 19.83 kB / 1.022 GB, free: 6.191 MB / 0.795 GB Notification: Performance of Early Inline: time 4.989e-05/0.004722, allocations: 48.42 kB / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of simplify1: time 4.388e-06/0.004732, allocations: 0 / 1.022 GB, free: 6.117 MB / 0.795 GB Notification: Performance of Alias: time 0.0001702/0.004906, allocations: 96.84 kB / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of simplify2: time 2.665e-06/0.004917, allocations: 0 / 1.022 GB, free: 5.977 MB / 0.795 GB Notification: Performance of Detect States: time 4.406e-05/0.004965, allocations: 36.66 kB / 1.022 GB, free: 5.93 MB / 0.795 GB Notification: Performance of Events: time 1.05e-05/0.004981, allocations: 3.984 kB / 1.022 GB, free: 5.926 MB / 0.795 GB Notification: Performance of Partitioning: time 2.343e-05/0.005008, allocations: 16.12 kB / 1.022 GB, free: 5.902 MB / 0.795 GB Notification: Performance of Causalize: time 3.867e-05/0.005051, allocations: 24.05 kB / 1.022 GB, free: 5.871 MB / 0.795 GB Notification: Performance of After Index Reduction Inline: time 4.654e-05/0.005105, allocations: 56.55 kB / 1.023 GB, free: 5.789 MB / 0.795 GB Notification: Performance of Inline: time 5.567e-05/0.005165, allocations: 64.48 kB / 1.023 GB, free: 5.691 MB / 0.795 GB Notification: Performance of Partitioning: time 7.964e-06/0.005181, allocations: 16.06 kB / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of Cleanup: time 4.959e-06/0.005189, allocations: 0 / 1.023 GB, free: 5.668 MB / 0.795 GB Notification: Performance of Causalize: time 0.0002142/0.005407, allocations: 187.9 kB / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of Tearing: time 6.161e-06/0.005422, allocations: 0 / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of Initialization: time 2.81e-07/0.005426, allocations: 0 / 1.023 GB, free: 5.477 MB / 0.795 GB Notification: Performance of Tearing: time 7.92e-07/0.005432, allocations: 4 kB / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of Categorize: time 4.298e-06/0.00544, allocations: 0 / 1.023 GB, free: 5.473 MB / 0.795 GB Notification: Performance of Solve: time 2.55e-05/0.005468, allocations: 11.92 kB / 1.023 GB, free: 5.461 MB / 0.795 GB Notification: Performance of Jacobian: time 2.204e-06/0.005475, allocations: 0 / 1.023 GB, free: 5.461 MB / 0.795 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.511e-05/0.005504, allocations: 18.5 kB / 1.023 GB, free: 5.453 MB / 0.795 GB Notification: Performance of SimCode: time 0.0009993/0.006507, allocations: 1.298 MB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of Templates: time 0.003853/0.01037, allocations: 2.1 MB / 1.026 GB, free: 2.051 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.makefile make -j1 -f Buildings_10_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_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d.o Buildings_10_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_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.o Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.c Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ Buildings_10_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_10_Buildings.Utilities.Clustering.Validation.KMeans_2d_functions.o] Error 1