Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d") translateModel(Buildings.Utilities.Clustering.Validation.KMeans_1d,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|cmp",fileNamePrefix="Buildings_10_Buildings.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.001113/0.001113, allocations: 108.8 kB / 16.42 MB, free: 6.527 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.001092/0.001092, allocations: 189.5 kB / 17.36 MB, free: 5.723 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.115/1.115, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.021/2.021, allocations: 437 MB / 0.7111 GB, free: 4.414 MB / 0.5762 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.616e-05/1.617e-05, allocations: 2.5 kB / 1.019 GB, free: 9.527 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Clustering.Validation.KMeans_1d): time 0.001109/0.001135, allocations: 0.5205 MB / 1.02 GB, free: 9.008 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001845/0.002989, allocations: 1.604 MB / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.356e-05/0.003023, allocations: 0 / 1.021 GB, free: 7.387 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 0.0001131/0.003144, allocations: 27.91 kB / 1.021 GB, free: 7.359 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 1.858e-05/0.003169, allocations: 11.92 kB / 1.021 GB, free: 7.348 MB / 0.795 GB [/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/Buildings 10.1.1-maint.10.0.x/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.0007195/0.003901, allocations: 248.5 kB / 1.021 GB, free: 7.105 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.474e-05/0.003984, allocations: 27.95 kB / 1.021 GB, free: 7.078 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 2.961e-05/0.00402, allocations: 0 / 1.021 GB, free: 7.078 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 2.564e-05/0.00405, allocations: 11.98 kB / 1.021 GB, free: 7.066 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 3.524e-05/0.00409, allocations: 19.88 kB / 1.022 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.015e-05/0.004105, allocations: 0 / 1.022 GB, free: 7.047 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004429/0.004553, allocations: 339.5 kB / 1.022 GB, free: 6.715 MB / 0.795 GB Notification: Performance of combineBinaries: time 4.157e-05/0.004604, allocations: 39.52 kB / 1.022 GB, free: 6.676 MB / 0.795 GB Notification: Performance of replaceArrayConstructors: time 2.722e-05/0.004636, allocations: 39.5 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 1.005e-05/0.004651, allocations: 0 / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of FrontEnd: time 1.001e-05/0.004665, allocations: 3.984 kB / 1.022 GB, free: 6.633 MB / 0.795 GB 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.0002669/0.004935, allocations: 228.9 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of FunctionAlias: time 4.086e-05/0.004982, allocations: 15.89 kB / 1.022 GB, free: 6.293 MB / 0.795 GB Notification: Performance of Early Inline: time 5.437e-05/0.005041, allocations: 60.33 kB / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of simplify1: time 4.799e-06/0.005051, allocations: 0 / 1.022 GB, free: 6.207 MB / 0.795 GB Notification: Performance of Alias: time 0.0001765/0.005235, allocations: 92.72 kB / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of simplify2: time 2.534e-06/0.005245, allocations: 0 / 1.022 GB, free: 6.07 MB / 0.795 GB Notification: Performance of Detect States: time 0.0001575/0.005407, allocations: 38.61 kB / 1.022 GB, free: 6.02 MB / 0.795 GB Notification: Performance of Events: time 1.194e-05/0.005425, allocations: 4 kB / 1.022 GB, free: 6.016 MB / 0.795 GB Notification: Performance of Partitioning: time 2.837e-05/0.005457, allocations: 20.3 kB / 1.022 GB, free: 5.988 MB / 0.795 GB Notification: Performance of Causalize: time 4.712e-05/0.005509, allocations: 24.06 kB / 1.022 GB, free: 5.957 MB / 0.795 GB Notification: Performance of After Index Reduction Inline: time 3.783e-05/0.005553, allocations: 52.34 kB / 1.022 GB, free: 5.879 MB / 0.795 GB Notification: Performance of Inline: time 6.537e-05/0.005624, allocations: 68.53 kB / 1.022 GB, free: 5.777 MB / 0.795 GB Notification: Performance of Partitioning: time 1.329e-05/0.005643, allocations: 8.312 kB / 1.022 GB, free: 5.762 MB / 0.795 GB Notification: Performance of Cleanup: time 8.346e-06/0.005657, allocations: 11.94 kB / 1.023 GB, free: 5.75 MB / 0.795 GB Notification: Performance of Causalize: time 0.0001831/0.005844, allocations: 132.1 kB / 1.023 GB, free: 5.613 MB / 0.795 GB Notification: Performance of Tearing: time 9.869e-06/0.005862, allocations: 4 kB / 1.023 GB, free: 5.609 MB / 0.795 GB Notification: Performance of Initialization: time 3.3e-07/0.005866, allocations: 3.938 kB / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of Tearing: time 9.52e-07/0.005871, allocations: 0 / 1.023 GB, free: 5.605 MB / 0.795 GB Notification: Performance of Categorize: time 7.855e-06/0.005883, allocations: 7.922 kB / 1.023 GB, free: 5.598 MB / 0.795 GB Notification: Performance of Solve: time 2.545e-05/0.005912, allocations: 4 kB / 1.023 GB, free: 5.594 MB / 0.795 GB Notification: Performance of Jacobian: time 2.134e-06/0.00592, allocations: 4 kB / 1.023 GB, free: 5.59 MB / 0.795 GB 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.573e-05/0.005949, allocations: 21.69 kB / 1.023 GB, free: 5.582 MB / 0.795 GB Notification: Performance of SimCode: time 0.001047/0.007, allocations: 1.213 MB / 1.024 GB, free: 4.359 MB / 0.795 GB Notification: Performance of Templates: time 0.003949/0.01096, allocations: 2.08 MB / 1.026 GB, free: 2.277 MB / 0.795 GB make -j1 -f Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.makefile make -j1 -f Buildings_10_Buildings.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=Buildings_10_Buildings_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 Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d.o Buildings_10_Buildings.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=Buildings_10_Buildings_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 Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_functions.o Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_functions.c Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_functions.c:1021:42: error: use of undeclared identifier '_OMC_LIT0' tmpMeta34 = stringAppend(_OMC_LIT0,tmp33); ^ Buildings_10_Buildings.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: *** [: Buildings_10_Buildings.Utilities.Clustering.Validation.KMeans_1d_functions.o] Error 1