Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/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_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d") translateModel(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.01409/0.01409, allocations: 100.7 kB / 15.87 MB, free: 5.867 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.002033/0.002033, allocations: 191.8 kB / 16.79 MB, free: 5.809 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.738/1.738, allocations: 222.9 MB / 240.5 MB, free: 4.582 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003543/0.003542, allocations: 286.9 kB / 290.9 MB, free: 2.195 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.816/1.816, allocations: 169.2 MB / 0.4983 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002657/0.002657, allocations: 94.64 kB / 0.5951 GB, free: 28.4 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3978/0.4005, allocations: 86.99 MB / 0.6801 GB, free: 1.152 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_2d): time 0.003173/0.4038, allocations: 0.5695 MB / 0.6806 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.004347/0.4082, allocations: 1.638 MB / 0.6822 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.192e-05/0.4083, allocations: 0 / 0.6822 GB, free: 14.93 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.4086, allocations: 55.91 kB / 0.6823 GB, free: 14.88 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.4087, allocations: 39.88 kB / 0.6823 GB, free: 14.84 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‘. Notification: Performance of NFTyping.typeClassSections: time 0.00132/0.41, allocations: 195.6 kB / 0.6825 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.524e-05/0.4101, allocations: 23.97 kB / 0.6825 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.289e-05/0.4102, allocations: 4 kB / 0.6825 GB, free: 14.62 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.171e-05/0.4103, allocations: 27.89 kB / 0.6826 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001004/0.4104, allocations: 39.91 kB / 0.6826 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.972e-05/0.4104, allocations: 0 / 0.6826 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009039/0.4113, allocations: 275.6 kB / 0.6829 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.16e-05/0.4115, allocations: 27.92 kB / 0.6829 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.968e-05/0.4115, allocations: 27.67 kB / 0.6829 GB, free: 14.23 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005272/0.4121, allocations: 203.9 kB / 0.6831 GB, free: 14.03 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.4121, allocations: 0 / 0.6831 GB, free: 14.03 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.4121, allocations: 0 / 0.6831 GB, free: 14.03 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.4121, allocations: 0 / 0.6831 GB, free: 14.03 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 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0006622/0.4128, allocations: 435 kB / 0.6835 GB, free: 13.56 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.933e-05/0.4129, allocations: 12.03 kB / 0.6835 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.214e-05/0.4129, allocations: 16.69 kB / 0.6836 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002631/0.4132, allocations: 184.8 kB / 0.6837 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.09e-05/0.4132, allocations: 4.375 kB / 0.6837 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.603e-05/0.4132, allocations: 384 / 0.6837 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001454/0.4134, allocations: 45.94 kB / 0.6838 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.4134, allocations: 0 / 0.6838 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.711e-05/0.4134, allocations: 4 kB / 0.6838 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.4135, allocations: 0 / 0.6838 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.076e-05/0.4135, allocations: 23.98 kB / 0.6838 GB, free: 13.23 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002809/0.4138, allocations: 185.6 kB / 0.684 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.342e-05/0.4139, allocations: 30.56 kB / 0.684 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.289e-05/0.4139, allocations: 12.92 kB / 0.684 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.959e-05/0.414, allocations: 4 kB / 0.684 GB, free: 12.94 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.253e-05/0.414, allocations: 42.42 kB / 0.6841 GB, free: 12.89 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.453e-06/0.414, allocations: 0 / 0.6841 GB, free: 12.89 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002749/0.4143, allocations: 77.48 kB / 0.6841 GB, free: 12.81 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.316e-05/0.4144, allocations: 51.41 kB / 0.6842 GB, free: 12.75 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000341/0.4148, allocations: 207.5 kB / 0.6844 GB, free: 12.54 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.4148, allocations: 29.7 kB / 0.6844 GB, free: 12.5 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003193/0.4151, allocations: 112 kB / 0.6845 GB, free: 12.39 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.564e-05/0.4152, allocations: 0 / 0.6845 GB, free: 12.39 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/0.4153, allocations: 29.7 kB / 0.6846 GB, free: 12.35 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002857/0.4155, allocations: 327 kB / 0.6849 GB, free: 12.02 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001014/0.4157, allocations: 51.98 kB / 0.6849 GB, free: 11.97 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002251/0.4159, allocations: 61.8 kB / 0.685 GB, free: 11.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001796/0.4161, allocations: 88.72 kB / 0.6851 GB, free: 11.82 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.4161, allocations: 0 / 0.6851 GB, free: 11.82 MB / 494.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0003241/0.4164, allocations: 167.1 kB / 0.6852 GB, free: 11.66 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/0.4165, allocations: 7.938 kB / 0.6852 GB, free: 11.65 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.4165, allocations: 4 kB / 0.6852 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.466e-05/0.4165, allocations: 3.984 kB / 0.6852 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.216e-05/0.4166, allocations: 0 / 0.6852 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.005e-05/0.4166, allocations: 4.062 kB / 0.6852 GB, free: 11.64 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.361e-05/0.4166, allocations: 11.84 kB / 0.6853 GB, free: 11.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.4167, allocations: 0 / 0.6853 GB, free: 11.62 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 (cluster_size[3],cluster_size[2],cluster_size[1],labels[6],labels[5],labels[4],labels[3],labels[2],labels[1],cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002964/0.417, allocations: 127.1 kB / 0.6854 GB, free: 11.49 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000174/0.4172, allocations: 11.84 kB / 0.6854 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001697/0.4173, allocations: 70.17 kB / 0.6855 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.165e-06/0.4174, allocations: 0 / 0.6855 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.4174, allocations: 4.031 kB / 0.6855 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.999e-06/0.4174, allocations: 0 / 0.6855 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002026/0.4176, allocations: 189.5 kB / 0.6856 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.404e-06/0.4176, allocations: 7.938 kB / 0.6856 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.33e-06/0.4176, allocations: 0 / 0.6856 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.86e-06/0.4176, allocations: 3.938 kB / 0.6856 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.4177, allocations: 4 kB / 0.6856 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4177, allocations: 0 / 0.6856 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4177, allocations: 0 / 0.6856 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001314/0.4178, allocations: 84.97 kB / 0.6857 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.4179, allocations: 88.95 kB / 0.6858 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.284e-05/0.418, allocations: 0 / 0.6858 GB, free: 10.95 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.167e-05/0.418, allocations: 3.984 kB / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.888e-05/0.418, allocations: 4 kB / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.194e-05/0.418, allocations: 0 / 0.6858 GB, free: 10.94 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000205/0.4183, allocations: 148.4 kB / 0.686 GB, free: 10.79 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.81e-07/0.4183, allocations: 0 / 0.686 GB, free: 10.79 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0006692/0.419, allocations: 83.98 kB / 0.686 GB, free: 10.71 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (cmp) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000884/0.4198, allocations: 233.6 kB / 0.6863 GB, free: 10.49 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002945/0.4202, allocations: 125.7 kB / 0.6864 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.4202, allocations: 0 / 0.6864 GB, free: 10.36 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.687e-05/0.4202, allocations: 16 kB / 0.6864 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002491/0.4205, allocations: 11.94 kB / 0.6864 GB, free: 10.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006251/0.4211, allocations: 257.4 kB / 0.6867 GB, free: 10.05 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007847/0.4219, allocations: 0.7083 MB / 0.6874 GB, free: 9.316 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.379e-05/0.4219, allocations: 7.438 kB / 0.6874 GB, free: 9.309 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.422, allocations: 0 / 0.6874 GB, free: 9.309 MB / 494.1 MB Notification: Performance of Templates: time 0.007903/0.4299, allocations: 2.374 MB / 0.6897 GB, free: 6.938 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2d.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2dCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2dCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_2dCalcHelperMain.o] Error 1