Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.6.0/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/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(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.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.001163/0.001163, allocations: 106.2 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.001213/0.001213, allocations: 185.9 kB / 17.35 MB, free: 5.738 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.295/1.295, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/Building/BuildingEnvelope/HeatTransfer/package.mo:2:1-40:17:writable] Warning: Soil_case_nappe was referenced in the package.order file, but was not found in package.mo, Soil_case_nappe/package.mo or Soil_case_nappe.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.6.0/package.mo): time 0.832/0.832, allocations: 143.1 MB / 434.3 MB, free: 11.96 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.337e-05/2.338e-05, allocations: 3.594 kB / 0.5961 GB, free: 12.45 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d): time 0.001174/0.001206, allocations: 0.5223 MB / 0.5966 GB, free: 11.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001821/0.003039, allocations: 1.612 MB / 0.5982 GB, free: 10.32 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.751e-05/0.00309, allocations: 5.281 kB / 0.5982 GB, free: 10.31 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00019/0.003285, allocations: 59.84 kB / 0.5982 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.73e-05/0.003319, allocations: 28.8 kB / 0.5983 GB, free: 10.23 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/BuildSysPro 3.6.0/IBPSA/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.0007283/0.004058, allocations: 248.5 kB / 0.5985 GB, free: 9.984 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 9.201e-05/0.00416, allocations: 42.64 kB / 0.5985 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.181e-05/0.004207, allocations: 0 / 0.5985 GB, free: 9.945 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.224e-05/0.004243, allocations: 19.97 kB / 0.5986 GB, free: 9.926 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.565e-05/0.004304, allocations: 33.17 kB / 0.5986 GB, free: 9.895 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.474e-05/0.004323, allocations: 4 kB / 0.5986 GB, free: 9.891 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003816/0.004709, allocations: 327.5 kB / 0.5989 GB, free: 9.57 MB / 446.1 MB Notification: Performance of combineBinaries: time 4.948e-05/0.004769, allocations: 52.62 kB / 0.599 GB, free: 9.52 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 1.39e-05/0.004788, allocations: 27.66 kB / 0.599 GB, free: 9.492 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.041e-05/0.004805, allocations: 5.062 kB / 0.599 GB, free: 9.488 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.438e-06/0.004818, allocations: 0 / 0.599 GB, free: 9.488 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.0003105/0.005133, allocations: 232.7 kB / 0.5992 GB, free: 9.164 MB / 446.1 MB Notification: Performance of FunctionAlias: time 5.193e-05/0.005191, allocations: 15.89 kB / 0.5992 GB, free: 9.148 MB / 446.1 MB Notification: Performance of Early Inline: time 4.599e-05/0.005244, allocations: 53.8 kB / 0.5993 GB, free: 9.07 MB / 446.1 MB Notification: Performance of simplify1: time 7.975e-06/0.005257, allocations: 3.984 kB / 0.5993 GB, free: 9.066 MB / 446.1 MB Notification: Performance of Alias: time 0.000208/0.00547, allocations: 99.3 kB / 0.5994 GB, free: 8.926 MB / 446.1 MB Notification: Performance of simplify2: time 2.354e-06/0.005481, allocations: 0 / 0.5994 GB, free: 8.926 MB / 446.1 MB Notification: Performance of Events: time 1.154e-05/0.005497, allocations: 4 kB / 0.5994 GB, free: 8.922 MB / 446.1 MB Notification: Performance of Detect States: time 5.564e-05/0.005558, allocations: 33.53 kB / 0.5994 GB, free: 8.875 MB / 446.1 MB Notification: Performance of Partitioning: time 3.037e-05/0.005594, allocations: 13.03 kB / 0.5994 GB, free: 8.855 MB / 446.1 MB Notification: Performance of Causalize: time 4.023e-05/0.005638, allocations: 29.42 kB / 0.5995 GB, free: 8.82 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 2.802e-05/0.005672, allocations: 48.36 kB / 0.5995 GB, free: 8.746 MB / 446.1 MB Notification: Performance of Inline: time 5.359e-05/0.005733, allocations: 66.02 kB / 0.5996 GB, free: 8.648 MB / 446.1 MB Notification: Performance of Partitioning: time 8.806e-06/0.005747, allocations: 13.16 kB / 0.5996 GB, free: 8.629 MB / 446.1 MB Notification: Performance of Cleanup: time 8.015e-06/0.00576, allocations: 7.938 kB / 0.5996 GB, free: 8.621 MB / 446.1 MB Notification: Performance of Causalize: time 0.0002041/0.005968, allocations: 178 kB / 0.5997 GB, free: 8.461 MB / 446.1 MB Notification: Performance of Tearing: time 9.448e-06/0.005986, allocations: 3.938 kB / 0.5998 GB, free: 8.457 MB / 446.1 MB Notification: Performance of Initialization: time 5.21e-07/0.005991, allocations: 0 / 0.5998 GB, free: 8.457 MB / 446.1 MB Notification: Performance of Tearing: time 1.803e-06/0.005997, allocations: 3.984 kB / 0.5998 GB, free: 8.453 MB / 446.1 MB Notification: Performance of Categorize: time 7.905e-06/0.006009, allocations: 0.7188 kB / 0.5998 GB, free: 8.453 MB / 446.1 MB Notification: Performance of Solve: time 3.124e-05/0.006044, allocations: 11.92 kB / 0.5998 GB, free: 8.441 MB / 446.1 MB Notification: Performance of Jacobian: time 2.785e-06/0.006052, allocations: 1.375 kB / 0.5998 GB, free: 8.441 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.086e-05/0.006087, allocations: 20.5 kB / 0.5998 GB, free: 8.426 MB / 446.1 MB Notification: Performance of SimCode: time 0.001038/0.007129, allocations: 1.277 MB / 0.601 GB, free: 7.156 MB / 446.1 MB Notification: Performance of Templates: time 0.004502/0.01164, allocations: 2.112 MB / 0.6031 GB, free: 5.086 MB / 446.1 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.makefile make -j1 -f BuildSysPro_BuildSysPro.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=BuildSysPro_BuildSysPro_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 BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d.o BuildSysPro_BuildSysPro.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=BuildSysPro_BuildSysPro_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 BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.o BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.c BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ BuildSysPro_BuildSysPro.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: *** [: BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_2d_functions.o] Error 1