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.001557/0.001557, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001754/0.001754, allocations: 198.9 kB / 16.79 MB, free: 6.863 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.892/1.892, allocations: 222.9 MB / 240.4 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002364/0.002364, allocations: 274.6 kB / 290.9 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.126/1.126, allocations: 169.2 MB / 0.4984 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00171/0.00171, allocations: 89.61 kB / 0.5951 GB, free: 28.39 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2317/0.2334, allocations: 86.99 MB / 0.6801 GB, free: 1.207 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Clustering.Validation.KMeans_1d): time 0.002602/0.2361, allocations: 0.577 MB / 0.6806 GB, free: 0.6406 MB / 478.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.239, allocations: 1.639 MB / 0.6822 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.271e-05/0.2391, allocations: 1.719 kB / 0.6822 GB, free: 14.98 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001883/0.2393, allocations: 15.97 kB / 0.6822 GB, free: 14.97 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.517e-05/0.2394, allocations: 11.92 kB / 0.6823 GB, free: 14.96 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.001064/0.2404, allocations: 193.7 kB / 0.6824 GB, free: 14.77 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 7.752e-05/0.2405, allocations: 24.44 kB / 0.6825 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.703e-05/0.2406, allocations: 0 / 0.6825 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.057e-05/0.2406, allocations: 21.05 kB / 0.6825 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.047e-05/0.2407, allocations: 15.92 kB / 0.6825 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.466e-05/0.2407, allocations: 0.9375 kB / 0.6825 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006683/0.2414, allocations: 275.6 kB / 0.6828 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.635e-05/0.2415, allocations: 27.92 kB / 0.6828 GB, free: 14.41 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.687e-05/0.2415, allocations: 15.81 kB / 0.6828 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000439/0.242, allocations: 192 kB / 0.683 GB, free: 14.21 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.242, allocations: 0 / 0.683 GB, free: 14.21 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.242, allocations: 0 / 0.683 GB, free: 14.21 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.242, allocations: 0 / 0.683 GB, free: 14.21 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.0006504/0.2427, allocations: 407.1 kB / 0.6834 GB, free: 13.77 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.2427, allocations: 15.97 kB / 0.6834 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.008e-05/0.2428, allocations: 4.844 kB / 0.6834 GB, free: 13.75 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.243, allocations: 180.3 kB / 0.6836 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.243, allocations: 4.375 kB / 0.6836 GB, free: 13.53 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.243, allocations: 4.375 kB / 0.6836 GB, free: 13.52 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.2432, allocations: 41.94 kB / 0.6836 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.2432, allocations: 4 kB / 0.6836 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.2432, allocations: 0 / 0.6836 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2432, allocations: 0 / 0.6836 GB, free: 13.47 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.259e-05/0.2432, allocations: 19.92 kB / 0.6836 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002102/0.2435, allocations: 169.7 kB / 0.6838 GB, free: 13.24 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.138e-05/0.2435, allocations: 26.58 kB / 0.6838 GB, free: 13.2 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.325e-05/0.2436, allocations: 20.91 kB / 0.6839 GB, free: 13.18 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.005e-05/0.2436, allocations: 7.938 kB / 0.6839 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.621e-05/0.2436, allocations: 34.5 kB / 0.6839 GB, free: 13.13 MB / 494.1 MB Notification: Performance of pre-optimization done (n=1): time 1.473e-06/0.2436, allocations: 0 / 0.6839 GB, free: 13.13 MB / 494.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001729/0.2438, allocations: 57.59 kB / 0.6839 GB, free: 13.07 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.2439, allocations: 59.34 kB / 0.684 GB, free: 13 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001683/0.244, allocations: 172.3 kB / 0.6842 GB, free: 12.82 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.313e-05/0.2441, allocations: 25.7 kB / 0.6842 GB, free: 12.79 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.476e-05/0.2441, allocations: 96.12 kB / 0.6843 GB, free: 12.69 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.221e-05/0.2441, allocations: 0 / 0.6843 GB, free: 12.69 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.272e-05/0.2442, allocations: 29.7 kB / 0.6843 GB, free: 12.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001168/0.2443, allocations: 314.8 kB / 0.6846 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.573e-05/0.2444, allocations: 39.98 kB / 0.6847 GB, free: 12.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.683e-05/0.2444, allocations: 51.84 kB / 0.6847 GB, free: 12.25 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.438e-05/0.2445, allocations: 72.86 kB / 0.6848 GB, free: 12.18 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2445, allocations: 0 / 0.6848 GB, free: 12.18 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001652/0.2447, allocations: 125.5 kB / 0.6849 GB, free: 12.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.2447, allocations: 11.94 kB / 0.6849 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.2448, allocations: 0 / 0.6849 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.493e-05/0.2448, allocations: 0 / 0.6849 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.652e-05/0.2448, allocations: 0 / 0.6849 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.2448, allocations: 0 / 0.6849 GB, free: 12.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.085e-05/0.2449, allocations: 11.84 kB / 0.6849 GB, free: 12.02 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.195e-05/0.2449, allocations: 3.984 kB / 0.6849 GB, free: 12.02 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: 9 (cluster_size[3],cluster_size[2],cluster_size[1],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.0001807/0.2451, allocations: 135.1 kB / 0.685 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.671e-05/0.2451, allocations: 11.84 kB / 0.6851 GB, free: 11.87 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.2452, allocations: 49.56 kB / 0.6851 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.043e-06/0.2452, allocations: 0 / 0.6851 GB, free: 11.81 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.2452, allocations: 4 kB / 0.6851 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.409e-06/0.2452, allocations: 4 kB / 0.6851 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001326/0.2454, allocations: 169.7 kB / 0.6853 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.2454, allocations: 0 / 0.6853 GB, free: 11.59 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.835e-06/0.2454, allocations: 4.031 kB / 0.6853 GB, free: 11.58 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.2454, allocations: 7.875 kB / 0.6853 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-06/0.2454, allocations: 0 / 0.6853 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.2454, allocations: 4 kB / 0.6853 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.452e-06/0.2454, allocations: 0 / 0.6853 GB, free: 11.57 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.85e-05/0.2455, allocations: 88.94 kB / 0.6854 GB, free: 11.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.2456, allocations: 84.95 kB / 0.6855 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.2456, allocations: 3.969 kB / 0.6855 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.132e-05/0.2456, allocations: 4 kB / 0.6855 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.473e-05/0.2456, allocations: 4 kB / 0.6855 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.196e-06/0.2457, allocations: 0 / 0.6855 GB, free: 11.35 MB / 494.1 MB Notification: Performance of sorting global known variables: time 9.663e-05/0.2458, allocations: 123.7 kB / 0.6856 GB, free: 11.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2458, allocations: 0 / 0.6856 GB, free: 11.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003864/0.2462, allocations: 83.98 kB / 0.6857 GB, free: 11.15 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.0006436/0.2468, allocations: 223.5 kB / 0.6859 GB, free: 10.95 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001847/0.247, allocations: 101.7 kB / 0.686 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.247, allocations: 0 / 0.686 GB, free: 10.84 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.879e-05/0.247, allocations: 15.92 kB / 0.686 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001563/0.2472, allocations: 6.188 kB / 0.686 GB, free: 10.82 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003481/0.2476, allocations: 212.8 kB / 0.6862 GB, free: 10.58 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.2479, allocations: 0.6887 MB / 0.6869 GB, free: 9.863 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.901e-05/0.2479, allocations: 11.44 kB / 0.6869 GB, free: 9.852 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2479, allocations: 0 / 0.6869 GB, free: 9.852 MB / 494.1 MB Notification: Performance of Templates: time 0.005594/0.2535, allocations: 2.247 MB / 0.6891 GB, free: 7.602 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++ -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_1dCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1dCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Clustering.Validation.KMeans_1dCalcHelperMain.o] Error 1