Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.001088/0.001088, allocations: 110.8 kB / 16.42 MB, free: 6.461 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.001048/0.001048, allocations: 189.4 kB / 17.35 MB, free: 5.734 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.127/1.127, allocations: 222.9 MB / 241 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001813/0.001813, allocations: 292.3 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.806/0.806, allocations: 169.3 MB / 0.499 GB, free: 4.457 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.669e-05/1.67e-05, allocations: 6.219 kB / 0.682 GB, free: 7.039 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.001061/0.001086, allocations: 0.5159 MB / 0.6825 GB, free: 6.527 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001796/0.002891, allocations: 1.607 MB / 0.6841 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.023e-05/0.002932, allocations: 0 / 0.6841 GB, free: 4.902 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00011/0.003048, allocations: 15.97 kB / 0.6841 GB, free: 4.887 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.064e-05/0.003077, allocations: 15.92 kB / 0.6841 GB, free: 4.871 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.0006849/0.003771, allocations: 246.4 kB / 0.6843 GB, free: 4.633 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.131e-05/0.003851, allocations: 27.91 kB / 0.6844 GB, free: 4.605 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.299e-05/0.00389, allocations: 4 kB / 0.6844 GB, free: 4.602 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.451e-05/0.00392, allocations: 11.98 kB / 0.6844 GB, free: 4.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.737e-05/0.003962, allocations: 15.92 kB / 0.6844 GB, free: 4.574 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.348e-06/0.003976, allocations: 0 / 0.6844 GB, free: 4.574 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003979/0.004378, allocations: 335.5 kB / 0.6847 GB, free: 4.246 MB / 494.1 MB Notification: Performance of combineBinaries: time 4.461e-05/0.004432, allocations: 47.56 kB / 0.6848 GB, free: 4.199 MB / 494.1 MB Notification: Performance of replaceArrayConstructors: time 1.86e-05/0.004456, allocations: 27.56 kB / 0.6848 GB, free: 4.172 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.08e-05/0.004472, allocations: 3.938 kB / 0.6848 GB, free: 4.168 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.514e-06/0.004484, allocations: 0 / 0.6848 GB, free: 4.168 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.0002671/0.004754, allocations: 240.8 kB / 0.685 GB, free: 3.832 MB / 494.1 MB Notification: Performance of FunctionAlias: time 4.373e-05/0.004804, allocations: 11.94 kB / 0.685 GB, free: 3.82 MB / 494.1 MB Notification: Performance of Early Inline: time 5.172e-05/0.004862, allocations: 60.3 kB / 0.6851 GB, free: 3.734 MB / 494.1 MB Notification: Performance of simplify1: time 4.619e-06/0.004874, allocations: 4 kB / 0.6851 GB, free: 3.73 MB / 494.1 MB Notification: Performance of Alias: time 0.0001707/0.005049, allocations: 88.67 kB / 0.6852 GB, free: 3.598 MB / 494.1 MB Notification: Performance of simplify2: time 6.322e-06/0.005063, allocations: 8 kB / 0.6852 GB, free: 3.59 MB / 494.1 MB Notification: Performance of Events: time 1.081e-05/0.005078, allocations: 4.172 kB / 0.6852 GB, free: 3.586 MB / 494.1 MB Notification: Performance of Detect States: time 4e-05/0.005123, allocations: 28.23 kB / 0.6852 GB, free: 3.543 MB / 494.1 MB Notification: Performance of Partitioning: time 2.892e-05/0.005157, allocations: 16.12 kB / 0.6852 GB, free: 3.52 MB / 494.1 MB Notification: Performance of Causalize: time 3.924e-05/0.005202, allocations: 24.05 kB / 0.6853 GB, free: 3.488 MB / 494.1 MB Notification: Performance of After Index Reduction Inline: time 3.628e-05/0.005244, allocations: 52.36 kB / 0.6853 GB, free: 3.41 MB / 494.1 MB Notification: Performance of Inline: time 5.946e-05/0.005309, allocations: 72.61 kB / 0.6854 GB, free: 3.305 MB / 494.1 MB Notification: Performance of Partitioning: time 9.317e-06/0.005324, allocations: 12.12 kB / 0.6854 GB, free: 3.285 MB / 494.1 MB Notification: Performance of Cleanup: time 5.23e-06/0.005334, allocations: 0 / 0.6854 GB, free: 3.285 MB / 494.1 MB Notification: Performance of Causalize: time 0.0001734/0.005511, allocations: 148 kB / 0.6855 GB, free: 3.133 MB / 494.1 MB Notification: Performance of Tearing: time 5.28e-06/0.005525, allocations: 0 / 0.6855 GB, free: 3.133 MB / 494.1 MB Notification: Performance of Initialization: time 3.2e-07/0.005531, allocations: 4 kB / 0.6855 GB, free: 3.129 MB / 494.1 MB Notification: Performance of Tearing: time 7.02e-07/0.005535, allocations: 0 / 0.6855 GB, free: 3.129 MB / 494.1 MB Notification: Performance of Categorize: time 5.15e-06/0.005544, allocations: 0 / 0.6855 GB, free: 3.129 MB / 494.1 MB Notification: Performance of Solve: time 2.775e-05/0.005575, allocations: 11.94 kB / 0.6855 GB, free: 3.117 MB / 494.1 MB Notification: Performance of Jacobian: time 2.265e-06/0.005582, allocations: 0 / 0.6855 GB, free: 3.117 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.73e-05/0.005613, allocations: 10.12 kB / 0.6855 GB, free: 3.113 MB / 494.1 MB Notification: Performance of SimCode: time 0.0009682/0.006586, allocations: 1.216 MB / 0.6867 GB, free: 1.887 MB / 494.1 MB Notification: Performance of Templates: time 0.2445/0.2511, allocations: 2.074 MB / 0.6888 GB, free: 14.88 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.makefile make -j1 -f BuildingSystems_BuildingSystems.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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d.o BuildingSystems_BuildingSystems.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=BuildingSystems_BuildingSystems_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 BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d_functions.o BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d_functions.c BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ BuildingSystems_BuildingSystems.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: *** [: BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1d_functions.o] Error 1