Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001199/0.001205, allocations: 112.7 kB / 17.1 MB, free: 5.969 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.001348/0.001348, allocations: 196.2 kB / 18.03 MB, free: 5.055 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.55/1.55, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8084/0.8084, allocations: 115.3 MB / 407.2 MB, free: 6.133 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.851e-05/2.85e-05, allocations: 2.281 kB / 0.5583 GB, free: 32.27 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001719/0.001755, allocations: 0.5153 MB / 0.5588 GB, free: 31.98 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002682/0.00445, allocations: 1.601 MB / 0.5603 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.747e-05/0.004515, allocations: 2.438 kB / 0.5603 GB, free: 30.85 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000289/0.00481, allocations: 60.81 kB / 0.5604 GB, free: 30.84 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 5.001e-05/0.00487, allocations: 30.09 kB / 0.5604 GB, free: 30.84 MB / 446.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/IBPSA 4.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.001165/0.00607, allocations: 252.1 kB / 0.5607 GB, free: 30.74 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.00622, allocations: 41.25 kB / 0.5607 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.44e-05/0.006281, allocations: 4.828 kB / 0.5607 GB, free: 30.73 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.475e-05/0.006332, allocations: 19.8 kB / 0.5607 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.992e-05/0.006409, allocations: 28.02 kB / 0.5607 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.67e-05/0.006433, allocations: 1.75 kB / 0.5607 GB, free: 30.72 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006184/0.007057, allocations: 339.8 kB / 0.5611 GB, free: 30.61 MB / 446.1 MB Notification: Performance of combineBinaries: time 7.547e-05/0.007145, allocations: 43.95 kB / 0.5611 GB, free: 30.58 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 2.595e-05/0.007179, allocations: 31.14 kB / 0.5611 GB, free: 30.56 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.947e-05/0.007204, allocations: 9.469 kB / 0.5611 GB, free: 30.55 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.564e-05/0.007228, allocations: 1.969 kB / 0.5612 GB, free: 30.55 MB / 446.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.0003932/0.007628, allocations: 218.2 kB / 0.5614 GB, free: 30.3 MB / 446.1 MB Notification: Performance of FunctionAlias: time 6.569e-05/0.0077, allocations: 14.34 kB / 0.5614 GB, free: 30.29 MB / 446.1 MB Notification: Performance of Early Inline: time 7.672e-05/0.007784, allocations: 54.41 kB / 0.5614 GB, free: 30.22 MB / 446.1 MB Notification: Performance of simplify1: time 8.295e-06/0.007799, allocations: 2.406 kB / 0.5614 GB, free: 30.22 MB / 446.1 MB Notification: Performance of Alias: time 0.000279/0.008084, allocations: 104.1 kB / 0.5615 GB, free: 30.1 MB / 446.1 MB Notification: Performance of simplify2: time 4.589e-06/0.008097, allocations: 1.531 kB / 0.5615 GB, free: 30.1 MB / 446.1 MB Notification: Performance of Events: time 1.599e-05/0.008119, allocations: 2.484 kB / 0.5615 GB, free: 30.1 MB / 446.1 MB Notification: Performance of Detect States: time 6.129e-05/0.008186, allocations: 31.31 kB / 0.5616 GB, free: 30.06 MB / 446.1 MB Notification: Performance of Partitioning: time 3.889e-05/0.008231, allocations: 12.41 kB / 0.5616 GB, free: 30.05 MB / 446.1 MB Notification: Performance of Causalize: time 5.858e-05/0.008295, allocations: 34.34 kB / 0.5616 GB, free: 30.02 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 4.688e-05/0.008349, allocations: 54.86 kB / 0.5617 GB, free: 29.95 MB / 446.1 MB Notification: Performance of Inline: time 8.356e-05/0.008439, allocations: 68.78 kB / 0.5617 GB, free: 29.87 MB / 446.1 MB Notification: Performance of Partitioning: time 1.188e-05/0.008457, allocations: 12.48 kB / 0.5617 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Cleanup: time 1.062e-05/0.008473, allocations: 6.094 kB / 0.5617 GB, free: 29.85 MB / 446.1 MB Notification: Performance of Causalize: time 0.0002872/0.008766, allocations: 182.8 kB / 0.5619 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Tearing: time 1.043e-05/0.008787, allocations: 3.938 kB / 0.5619 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Initialization: time 3.61e-07/0.008795, allocations: 1.969 kB / 0.5619 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Tearing: time 2.103e-06/0.008802, allocations: 0.5 kB / 0.5619 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Categorize: time 8.476e-06/0.008815, allocations: 1.156 kB / 0.5619 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Solve: time 3.792e-05/0.008858, allocations: 5.844 kB / 0.5619 GB, free: 29.79 MB / 446.1 MB Notification: Performance of Jacobian: time 4.429e-06/0.008867, allocations: 3.938 kB / 0.5619 GB, free: 29.79 MB / 446.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.9e-05/0.008912, allocations: 20.77 kB / 0.562 GB, free: 29.77 MB / 446.1 MB Notification: Performance of SimCode: time 0.001479/0.0104, allocations: 1.261 MB / 0.5632 GB, free: 28.91 MB / 446.1 MB Notification: Performance of Templates: time 0.007089/0.0175, allocations: 2.112 MB / 0.5652 GB, free: 28.75 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile make -j1 -f IBPSA_latest_IBPSA.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=IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d.o IBPSA_latest_IBPSA.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=IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.o IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.c IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ IBPSA_latest_IBPSA.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: *** [: IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.o] Error 1