Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.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.001669/0.001669, allocations: 117.7 kB / 17.1 MB, free: 6 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.001501/0.001501, allocations: 192.9 kB / 18.03 MB, free: 5.082 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.601/1.601, allocations: 222.9 MB / 241.7 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.8687/0.8687, allocations: 115.3 MB / 407.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.417e-05/3.42e-05, allocations: 2.281 kB / 0.5583 GB, free: 32.32 MB / 446.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.001883/0.001926, allocations: 0.5132 MB / 0.5588 GB, free: 32.03 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.002701/0.004641, allocations: 1.603 MB / 0.5603 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.688e-05/0.004701, allocations: 0 / 0.5603 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.004916, allocations: 20.98 kB / 0.5603 GB, free: 30.89 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 3.378e-05/0.004957, allocations: 7.531 kB / 0.5604 GB, free: 30.89 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.001186/0.006167, allocations: 254.2 kB / 0.5606 GB, free: 30.79 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001149/0.006292, allocations: 25.62 kB / 0.5606 GB, free: 30.78 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.915e-05/0.006357, allocations: 1.344 kB / 0.5606 GB, free: 30.78 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.91e-05/0.006404, allocations: 10.2 kB / 0.5606 GB, free: 30.78 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.785e-05/0.006469, allocations: 23.14 kB / 0.5607 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.48e-05/0.006489, allocations: 3.938 kB / 0.5607 GB, free: 30.77 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005967/0.007092, allocations: 328.9 kB / 0.561 GB, free: 30.67 MB / 446.1 MB Notification: Performance of combineBinaries: time 7.682e-05/0.007179, allocations: 46.41 kB / 0.561 GB, free: 30.64 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 2.584e-05/0.007212, allocations: 32.12 kB / 0.561 GB, free: 30.62 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.642e-05/0.007236, allocations: 2.781 kB / 0.561 GB, free: 30.62 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.49e-05/0.007257, allocations: 3.938 kB / 0.5611 GB, free: 30.61 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.000408/0.007671, allocations: 221.6 kB / 0.5613 GB, free: 30.35 MB / 446.1 MB Notification: Performance of FunctionAlias: time 6.766e-05/0.007747, allocations: 13.39 kB / 0.5613 GB, free: 30.34 MB / 446.1 MB Notification: Performance of Early Inline: time 8.463e-05/0.007837, allocations: 55.39 kB / 0.5613 GB, free: 30.28 MB / 446.1 MB Notification: Performance of simplify1: time 8.185e-06/0.007853, allocations: 4.578 kB / 0.5613 GB, free: 30.28 MB / 446.1 MB Notification: Performance of Alias: time 0.000301/0.008159, allocations: 89.66 kB / 0.5614 GB, free: 30.17 MB / 446.1 MB Notification: Performance of simplify2: time 6.031e-06/0.008174, allocations: 6.359 kB / 0.5614 GB, free: 30.16 MB / 446.1 MB Notification: Performance of Events: time 1.728e-05/0.008196, allocations: 1.469 kB / 0.5614 GB, free: 30.16 MB / 446.1 MB Notification: Performance of Detect States: time 8.568e-05/0.008287, allocations: 42.97 kB / 0.5615 GB, free: 30.12 MB / 446.1 MB Notification: Performance of Partitioning: time 4.325e-05/0.008339, allocations: 12.84 kB / 0.5615 GB, free: 30.1 MB / 446.1 MB Notification: Performance of Causalize: time 6.475e-05/0.00841, allocations: 36.42 kB / 0.5615 GB, free: 30.07 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 4.501e-05/0.008461, allocations: 48.98 kB / 0.5616 GB, free: 30.01 MB / 446.1 MB Notification: Performance of Inline: time 8.776e-05/0.008555, allocations: 72.23 kB / 0.5616 GB, free: 29.93 MB / 446.1 MB Notification: Performance of Partitioning: time 1.252e-05/0.008574, allocations: 10.97 kB / 0.5616 GB, free: 29.91 MB / 446.1 MB Notification: Performance of Cleanup: time 9.468e-06/0.00859, allocations: 0.8125 kB / 0.5616 GB, free: 29.91 MB / 446.1 MB Notification: Performance of Causalize: time 0.0002682/0.008863, allocations: 145.4 kB / 0.5618 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Tearing: time 1.243e-05/0.008884, allocations: 0.9375 kB / 0.5618 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Initialization: time 6.21e-07/0.008891, allocations: 1.125 kB / 0.5618 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Tearing: time 2.304e-06/0.008898, allocations: 0 / 0.5618 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Categorize: time 9.568e-06/0.008914, allocations: 9.469 kB / 0.5618 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Solve: time 4.188e-05/0.008961, allocations: 8.094 kB / 0.5618 GB, free: 29.86 MB / 446.1 MB Notification: Performance of Jacobian: time 3.717e-06/0.00897, allocations: 0 / 0.5618 GB, free: 29.86 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 4.99e-05/0.009026, allocations: 27.72 kB / 0.5618 GB, free: 29.84 MB / 446.1 MB Notification: Performance of SimCode: time 0.001556/0.01059, allocations: 1.197 MB / 0.563 GB, free: 28.97 MB / 446.1 MB Notification: Performance of Templates: time 0.00665/0.01725, allocations: 2.082 MB / 0.565 GB, free: 28.83 MB / 446.1 MB make -j1 -f IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile make -j1 -f IBPSA_latest_IBPSA.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=IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d.o IBPSA_latest_IBPSA.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=IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.o IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.c IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ IBPSA_latest_IBPSA.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: *** [: IBPSA_latest_IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.o] Error 1