Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Examples.Factorial.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 103 kB / 15.71 MB, free: 460 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.001861/0.001861, allocations: 169.1 kB / 16.58 MB, free: 6.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.91/1.91, allocations: 205.4 MB / 222.8 MB, free: 5.879 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.806/1.806, allocations: 292.7 MB / 0.5505 GB, free: 14.54 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005789/0.000579, allocations: 14.69 kB / 0.6744 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3028/0.3034, allocations: 116.3 MB / 0.7879 GB, free: 11.96 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001714/0.3052, allocations: 1.228 MB / 0.7891 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003367/0.3055, allocations: 120.6 kB / 0.7892 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.048e-05/0.3056, allocations: 0 / 0.7892 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.769e-05/0.3056, allocations: 0 / 0.7892 GB, free: 10.6 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.3e-05/0.3057, allocations: 3.938 kB / 0.7892 GB, free: 10.59 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.000192/0.3059, allocations: 15.98 kB / 0.7893 GB, free: 10.58 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 6.722e-05/0.3059, allocations: 27.92 kB / 0.7893 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001014/0.306, allocations: 11.98 kB / 0.7893 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 3.974e-05/0.3061, allocations: 11.92 kB / 0.7893 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.173e-05/0.3061, allocations: 19.92 kB / 0.7893 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.29e-05/0.3062, allocations: 0 / 0.7893 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.669e-05/0.3062, allocations: 4 kB / 0.7893 GB, free: 10.5 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.28e-05/0.3063, allocations: 15.92 kB / 0.7893 GB, free: 10.49 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 2.681e-05/0.3063, allocations: 29.64 kB / 0.7894 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 7.845e-05/0.3064, allocations: 19.97 kB / 0.7894 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3064, allocations: 0 / 0.7894 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.563e-06/0.3064, allocations: 0 / 0.7894 GB, free: 10.43 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.461e-06/0.3064, allocations: 0 / 0.7894 GB, free: 10.43 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005601/0.307, allocations: 343.5 kB / 0.7897 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.307, allocations: 12.03 kB / 0.7897 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.871e-05/0.307, allocations: 4 kB / 0.7897 GB, free: 10.04 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001685/0.3072, allocations: 175 kB / 0.7899 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3073, allocations: 0 / 0.7899 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.055e-05/0.3073, allocations: 0 / 0.7899 GB, free: 9.824 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001937/0.3075, allocations: 65.67 kB / 0.79 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.3075, allocations: 0 / 0.79 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.638e-06/0.3075, allocations: 0 / 0.79 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3075, allocations: 0 / 0.79 GB, free: 9.754 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001846/0.3077, allocations: 51.89 kB / 0.79 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000391/0.3081, allocations: 277.9 kB / 0.7903 GB, free: 9.383 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002941/0.3084, allocations: 58.53 kB / 0.7903 GB, free: 9.316 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.246e-05/0.3085, allocations: 32.91 kB / 0.7904 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001134/0.3086, allocations: 81.11 kB / 0.7904 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.3087, allocations: 42.48 kB / 0.7905 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.3087, allocations: 0 / 0.7905 GB, free: 9.133 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004015/0.3091, allocations: 105.6 kB / 0.7906 GB, free: 9.023 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.407e-05/0.3091, allocations: 51.41 kB / 0.7906 GB, free: 8.961 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.087e-05/0.3092, allocations: 102.2 kB / 0.7907 GB, free: 8.852 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.365e-05/0.3092, allocations: 25.7 kB / 0.7907 GB, free: 8.82 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 4.355e-05/0.3093, allocations: 84.08 kB / 0.7908 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.655e-05/0.3093, allocations: 15.84 kB / 0.7908 GB, free: 8.719 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-06/0.3093, allocations: 4 kB / 0.7908 GB, free: 8.715 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001223/0.3094, allocations: 318.8 kB / 0.7912 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-05/0.3095, allocations: 23.98 kB / 0.7912 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.2e-05/0.3096, allocations: 23.98 kB / 0.7912 GB, free: 8.348 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.563e-05/0.3097, allocations: 36.03 kB / 0.7912 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.3097, allocations: 0 / 0.7912 GB, free: 8.312 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002075/0.3099, allocations: 85.56 kB / 0.7913 GB, free: 8.223 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.31, allocations: 8 kB / 0.7913 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.549e-06/0.31, allocations: 0 / 0.7913 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.31, allocations: 0 / 0.7913 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.05e-05/0.3101, allocations: 15.98 kB / 0.7913 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.3101, allocations: 0 / 0.7913 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.245e-05/0.3102, allocations: 7.984 kB / 0.7913 GB, free: 8.191 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.3102, allocations: 7.938 kB / 0.7914 GB, free: 8.184 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac.y,rea2Int.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.3103, allocations: 117.8 kB / 0.7915 GB, free: 8.059 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/0.3104, allocations: 4 kB / 0.7915 GB, free: 8.055 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003388/0.3107, allocations: 89.08 kB / 0.7916 GB, free: 7.957 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-06/0.3107, allocations: 4 kB / 0.7916 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3107, allocations: 0 / 0.7916 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3108, allocations: 4 kB / 0.7916 GB, free: 7.949 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003094/0.3111, allocations: 165.6 kB / 0.7917 GB, free: 7.738 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.3111, allocations: 4 kB / 0.7917 GB, free: 7.734 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.171e-05/0.3112, allocations: 11.98 kB / 0.7917 GB, free: 7.723 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.3112, allocations: 4 kB / 0.7917 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.725e-06/0.3112, allocations: 0 / 0.7917 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.3112, allocations: 0 / 0.7917 GB, free: 7.719 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3112, allocations: 4 kB / 0.7917 GB, free: 7.715 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000248/0.3114, allocations: 187.4 kB / 0.7919 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.023e-05/0.3115, allocations: 81.02 kB / 0.792 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.3115, allocations: 0 / 0.792 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.559e-05/0.3116, allocations: 15.98 kB / 0.792 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.384e-05/0.3117, allocations: 7.984 kB / 0.792 GB, free: 7.395 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-06/0.3117, allocations: 4 kB / 0.792 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.804e-05/0.3117, allocations: 83.22 kB / 0.7921 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.3117, allocations: 0 / 0.7921 GB, free: 7.309 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002234/0.312, allocations: 8 kB / 0.7921 GB, free: 7.301 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (fac.y,rea2Int.y) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001688/0.3121, allocations: 107.2 kB / 0.7922 GB, free: 7.184 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002203/0.3124, allocations: 55.95 kB / 0.7923 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.3124, allocations: 0 / 0.7923 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.019e-05/0.3125, allocations: 32.3 kB / 0.7923 GB, free: 7.098 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002727/0.3128, allocations: 11.95 kB / 0.7923 GB, free: 7.086 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003093/0.3131, allocations: 142.4 kB / 0.7924 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002545/0.3133, allocations: 0.677 MB / 0.7931 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.949e-05/0.3134, allocations: 15.42 kB / 0.7931 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.3134, allocations: 0 / 0.7931 GB, free: 6.199 MB / 0.6075 GB Notification: Performance of Templates: time 0.002131/0.3155, allocations: 0.7224 MB / 0.7938 GB, free: 5.473 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.Factorial.makefile clang++ NOTFOUND -Winvalid-pch -O0 -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/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Utilities.Math.Examples.FactorialCalcHelperMain.o OMCppBuildings_8_Buildings.Utilities.Math.Examples.FactorialCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Utilities.Math.Examples.FactorialCalcHelperMain.o] Error 1