Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/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_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d") translateModel(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.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.001211/0.001211, allocations: 114.8 kB / 16.43 MB, free: 6.504 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.001516/0.001516, allocations: 187.2 kB / 17.36 MB, free: 5.715 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.329/1.329, allocations: 222.9 MB / 241 MB, free: 15.15 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.8161/0.8161, allocations: 143 MB / 434.2 MB, free: 12 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.016e-05/2.016e-05, allocations: 3.594 kB / 0.5961 GB, free: 12.38 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d): time 0.00113/0.001158, allocations: 0.5164 MB / 0.5966 GB, free: 11.88 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.002921, allocations: 1.613 MB / 0.5982 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.108e-05/0.002963, allocations: 3.938 kB / 0.5982 GB, free: 10.25 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001535/0.003124, allocations: 25.16 kB / 0.5982 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 2.721e-05/0.003157, allocations: 11.98 kB / 0.5982 GB, free: 10.21 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.0007622/0.003925, allocations: 243.8 kB / 0.5984 GB, free: 9.98 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.196e-05/0.004015, allocations: 29.47 kB / 0.5985 GB, free: 9.953 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.069e-05/0.004061, allocations: 4 kB / 0.5985 GB, free: 9.949 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.987e-05/0.004096, allocations: 11.97 kB / 0.5985 GB, free: 9.938 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.804e-05/0.004143, allocations: 16.67 kB / 0.5985 GB, free: 9.922 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.242e-05/0.004161, allocations: 5.438 kB / 0.5985 GB, free: 9.918 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003785/0.004544, allocations: 331.5 kB / 0.5988 GB, free: 9.594 MB / 446.1 MB Notification: Performance of combineBinaries: time 5.06e-05/0.004605, allocations: 47.42 kB / 0.5989 GB, free: 9.547 MB / 446.1 MB Notification: Performance of replaceArrayConstructors: time 1.745e-05/0.004627, allocations: 24.69 kB / 0.5989 GB, free: 9.523 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 1.934e-05/0.004651, allocations: 0 / 0.5989 GB, free: 9.523 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.194e-05/0.004667, allocations: 7.938 kB / 0.5989 GB, free: 9.516 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.0003229/0.004995, allocations: 233.7 kB / 0.5991 GB, free: 9.191 MB / 446.1 MB Notification: Performance of FunctionAlias: time 5.325e-05/0.005054, allocations: 7.891 kB / 0.5991 GB, free: 9.184 MB / 446.1 MB Notification: Performance of Early Inline: time 5.032e-05/0.00511, allocations: 65.8 kB / 0.5992 GB, free: 9.094 MB / 446.1 MB Notification: Performance of simplify1: time 4.97e-06/0.00512, allocations: 0 / 0.5992 GB, free: 9.094 MB / 446.1 MB Notification: Performance of Alias: time 0.0002126/0.005337, allocations: 94.88 kB / 0.5993 GB, free: 8.957 MB / 446.1 MB Notification: Performance of simplify2: time 2.595e-06/0.005348, allocations: 0 / 0.5993 GB, free: 8.957 MB / 446.1 MB Notification: Performance of Events: time 1.104e-05/0.005363, allocations: 0 / 0.5993 GB, free: 8.957 MB / 446.1 MB Notification: Performance of Detect States: time 4.718e-05/0.005415, allocations: 39.97 kB / 0.5993 GB, free: 8.906 MB / 446.1 MB Notification: Performance of Partitioning: time 3.064e-05/0.005452, allocations: 13.59 kB / 0.5993 GB, free: 8.887 MB / 446.1 MB Notification: Performance of Causalize: time 3.863e-05/0.005495, allocations: 32.05 kB / 0.5994 GB, free: 8.848 MB / 446.1 MB Notification: Performance of After Index Reduction Inline: time 2.932e-05/0.005531, allocations: 49.81 kB / 0.5994 GB, free: 8.773 MB / 446.1 MB Notification: Performance of Inline: time 5.787e-05/0.005594, allocations: 69.78 kB / 0.5995 GB, free: 8.672 MB / 446.1 MB Notification: Performance of Partitioning: time 7.735e-06/0.005607, allocations: 12.12 kB / 0.5995 GB, free: 8.652 MB / 446.1 MB Notification: Performance of Cleanup: time 7.695e-06/0.005621, allocations: 5.062 kB / 0.5995 GB, free: 8.648 MB / 446.1 MB Notification: Performance of Causalize: time 0.0001731/0.005798, allocations: 143.4 kB / 0.5996 GB, free: 8.512 MB / 446.1 MB Notification: Performance of Tearing: time 9.318e-06/0.005815, allocations: 0 / 0.5996 GB, free: 8.512 MB / 446.1 MB Notification: Performance of Initialization: time 5.11e-07/0.00582, allocations: 0 / 0.5996 GB, free: 8.512 MB / 446.1 MB Notification: Performance of Tearing: time 1.323e-06/0.005826, allocations: 1.531 kB / 0.5996 GB, free: 8.512 MB / 446.1 MB Notification: Performance of Categorize: time 8.456e-06/0.005838, allocations: 11.88 kB / 0.5996 GB, free: 8.5 MB / 446.1 MB Notification: Performance of Solve: time 3.293e-05/0.005876, allocations: 7.938 kB / 0.5997 GB, free: 8.492 MB / 446.1 MB Notification: Performance of Jacobian: time 2.575e-06/0.005884, allocations: 0 / 0.5997 GB, free: 8.492 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.978e-05/0.005928, allocations: 18.94 kB / 0.5997 GB, free: 8.477 MB / 446.1 MB Notification: Performance of SimCode: time 0.001044/0.006977, allocations: 1.198 MB / 0.6008 GB, free: 7.281 MB / 446.1 MB Notification: Performance of Templates: time 0.004482/0.01147, allocations: 2.08 MB / 0.6029 GB, free: 5.242 MB / 446.1 MB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.makefile make -j1 -f BuildSysPro_BuildSysPro.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=BuildSysPro_BuildSysPro_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 BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d.o BuildSysPro_BuildSysPro.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=BuildSysPro_BuildSysPro_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 BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.o BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.c BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ BuildSysPro_BuildSysPro.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: *** [: BuildSysPro_BuildSysPro.IBPSA.Utilities.Clustering.Validation.KMeans_1d_functions.o] Error 1