Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009653/0.0009653, allocations: 92.16 kB / 16.02 MB, free: 80 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.001551/0.001551, allocations: 172.9 kB / 16.92 MB, free: 6.652 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.342/1.342, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001629/0.001629, allocations: 273.7 kB / 292.3 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9403/0.9403, allocations: 169.5 MB / 0.501 GB, free: 14.15 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004489/0.0004489, allocations: 13.34 kB / 0.5993 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.201/0.2015, allocations: 88.55 MB / 0.6858 GB, free: 15.09 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.001859/0.2034, allocations: 1.243 MB / 0.687 GB, free: 13.83 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003567/0.2038, allocations: 116.5 kB / 0.6871 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.84e-05/0.2038, allocations: 1.344 kB / 0.6871 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.2039, allocations: 3.938 kB / 0.6871 GB, free: 13.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 2.695e-05/0.204, allocations: 7.922 kB / 0.6871 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002063/0.2042, allocations: 21.17 kB / 0.6871 GB, free: 13.68 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 9.353e-05/0.2043, allocations: 59.78 kB / 0.6872 GB, free: 13.62 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.2044, allocations: 26.78 kB / 0.6872 GB, free: 13.6 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.579e-05/0.2045, allocations: 23.91 kB / 0.6872 GB, free: 13.58 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.348e-05/0.2045, allocations: 26.28 kB / 0.6873 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.2046, allocations: 0 / 0.6873 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.816e-05/0.2046, allocations: 8 kB / 0.6873 GB, free: 13.55 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 3.869e-05/0.2047, allocations: 15.92 kB / 0.6873 GB, free: 13.53 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.81e-05/0.2048, allocations: 45.52 kB / 0.6873 GB, free: 13.48 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.499e-05/0.2049, allocations: 48.12 kB / 0.6874 GB, free: 13.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.2049, allocations: 0 / 0.6874 GB, free: 13.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2049, allocations: 2 kB / 0.6874 GB, free: 13.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2049, allocations: 0 / 0.6874 GB, free: 13.43 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0005315/0.2054, allocations: 377.6 kB / 0.6877 GB, free: 13.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.549e-05/0.2055, allocations: 8.031 kB / 0.6877 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.2055, allocations: 12.83 kB / 0.6878 GB, free: 13 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001687/0.2057, allocations: 181.3 kB / 0.6879 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.116e-05/0.2057, allocations: 384 / 0.6879 GB, free: 12.78 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.2057, allocations: 12.31 kB / 0.6879 GB, free: 12.77 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003019/0.206, allocations: 98.11 kB / 0.688 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.206, allocations: 192 / 0.688 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.499e-05/0.2061, allocations: 3.938 kB / 0.688 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.21e-06/0.2061, allocations: 0 / 0.688 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003427/0.2064, allocations: 108.2 kB / 0.6881 GB, free: 12.57 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006443/0.2071, allocations: 343.7 kB / 0.6885 GB, free: 12.18 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002189/0.2073, allocations: 66.53 kB / 0.6885 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002527/0.2076, allocations: 56.91 kB / 0.6886 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.979e-05/0.2076, allocations: 96 / 0.6886 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.2076, allocations: 34.5 kB / 0.6886 GB, free: 12.01 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 8.72e-07/0.2077, allocations: 4 kB / 0.6886 GB, free: 12 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006/0.2083, allocations: 169.6 kB / 0.6888 GB, free: 11.83 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.869e-05/0.2083, allocations: 51.41 kB / 0.6888 GB, free: 11.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.215e-05/0.2084, allocations: 117.8 kB / 0.6889 GB, free: 11.64 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.575e-05/0.2084, allocations: 29.7 kB / 0.689 GB, free: 11.61 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.436e-05/0.2085, allocations: 92.03 kB / 0.6891 GB, free: 11.52 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.174e-05/0.2085, allocations: 7.906 kB / 0.6891 GB, free: 11.51 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.413e-05/0.2086, allocations: 9.719 kB / 0.6891 GB, free: 11.49 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.2087, allocations: 326.8 kB / 0.6894 GB, free: 11.16 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001794/0.2089, allocations: 39.97 kB / 0.6894 GB, free: 11.12 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001509/0.209, allocations: 55.89 kB / 0.6895 GB, free: 11.07 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002979/0.2093, allocations: 97.05 kB / 0.6896 GB, free: 10.97 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.2094, allocations: 0 / 0.6896 GB, free: 10.97 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000402/0.2098, allocations: 133.5 kB / 0.6897 GB, free: 10.84 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.482e-05/0.2098, allocations: 4 kB / 0.6897 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.2098, allocations: 3.938 kB / 0.6897 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.162e-05/0.2098, allocations: 0 / 0.6897 GB, free: 10.83 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00013/0.2099, allocations: 23.98 kB / 0.6897 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.21, allocations: 0 / 0.6897 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.204e-05/0.2101, allocations: 15.98 kB / 0.6897 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.971e-05/0.2101, allocations: 0 / 0.6897 GB, free: 10.79 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 prepare postOptimizeDAE: time 0.0001043/0.2102, allocations: 126.4 kB / 0.6899 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.8e-05/0.2102, allocations: 7.906 kB / 0.6899 GB, free: 10.65 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000399/0.2106, allocations: 133.5 kB / 0.69 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.2106, allocations: 7.984 kB / 0.69 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/0.2107, allocations: 0 / 0.69 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.2107, allocations: 0 / 0.69 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001875/0.2109, allocations: 185.5 kB / 0.6902 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.2109, allocations: 0 / 0.6902 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.855e-05/0.211, allocations: 23.98 kB / 0.6902 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.211, allocations: 0 / 0.6902 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.086e-06/0.211, allocations: 0 / 0.6902 GB, free: 10.25 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.211, allocations: 4 kB / 0.6902 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.368e-06/0.211, allocations: 3.984 kB / 0.6902 GB, free: 10.24 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004072/0.2114, allocations: 227.9 kB / 0.6904 GB, free: 10 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.2115, allocations: 85.02 kB / 0.6905 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.409e-05/0.2115, allocations: 0 / 0.6905 GB, free: 9.898 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001094/0.2116, allocations: 15.98 kB / 0.6905 GB, free: 9.883 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.273e-05/0.2117, allocations: 11.92 kB / 0.6905 GB, free: 9.871 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.2117, allocations: 4 kB / 0.6905 GB, free: 9.867 MB / 494.1 MB Notification: Performance of sorting global known variables: time 4.806e-05/0.2117, allocations: 91.27 kB / 0.6906 GB, free: 9.777 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2117, allocations: 0 / 0.6906 GB, free: 9.777 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002248/0.212, allocations: 12 kB / 0.6906 GB, free: 9.766 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000153/0.2121, allocations: 105.9 kB / 0.6907 GB, free: 9.656 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003751/0.2125, allocations: 103.8 kB / 0.6908 GB, free: 9.555 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.2125, allocations: 0 / 0.6908 GB, free: 9.555 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.2127, allocations: 47.97 kB / 0.6909 GB, free: 9.508 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003114/0.213, allocations: 14.23 kB / 0.6909 GB, free: 9.496 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003775/0.2134, allocations: 199.1 kB / 0.6911 GB, free: 9.273 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004147/0.2138, allocations: 0.6887 MB / 0.6918 GB, free: 8.559 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.3e-05/0.2139, allocations: 11.44 kB / 0.6918 GB, free: 8.547 MB / 494.1 MB Notification: Performance of SimCode: time 3.8e-07/0.2139, allocations: 0 / 0.6918 GB, free: 8.547 MB / 494.1 MB Notification: Performance of Templates: time 0.002376/0.2163, allocations: 0.924 MB / 0.6927 GB, free: 7.629 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.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.Math.Examples.AverageCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.AverageCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.AverageCalcHelperMain.o] Error 1