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.01068/0.01068, allocations: 99.83 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.002415/0.002415, allocations: 188.9 kB / 16.79 MB, free: 5.809 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.832/1.832, allocations: 205.1 MB / 222.6 MB, free: 4.734 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.781/1.781, allocations: 292.3 MB / 0.5491 GB, free: 13.65 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.001535/0.001535, allocations: 64.44 kB / 0.6715 GB, free: 26.52 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3543/0.3559, allocations: 114.6 MB / 0.7833 GB, free: 13.99 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003757/0.3597, allocations: 1.571 MB / 0.7849 GB, free: 12.4 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004914/0.3602, allocations: 117.6 kB / 0.785 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.622e-05/0.3603, allocations: 0 / 0.785 GB, free: 12.29 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 4.717e-05/0.3604, allocations: 7.922 kB / 0.785 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 5.589e-05/0.3604, allocations: 4 kB / 0.785 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002472/0.3607, allocations: 15.98 kB / 0.785 GB, free: 12.26 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.627e-05/0.3608, allocations: 31.86 kB / 0.785 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.3609, allocations: 11.98 kB / 0.785 GB, free: 12.21 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 5.698e-05/0.361, allocations: 12 kB / 0.7851 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 6.614e-05/0.361, allocations: 11.92 kB / 0.7851 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.3611, allocations: 0 / 0.7851 GB, free: 12.19 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.705e-05/0.3611, allocations: 15.98 kB / 0.7851 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.3612, allocations: 4 kB / 0.7851 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.508e-05/0.3612, allocations: 19.91 kB / 0.7851 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.526e-05/0.3613, allocations: 27.91 kB / 0.7851 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3613, allocations: 0 / 0.7851 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.002e-06/0.3613, allocations: 0 / 0.7851 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.16e-06/0.3613, allocations: 0 / 0.7851 GB, free: 12.12 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.0005639/0.3619, allocations: 347.7 kB / 0.7855 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.369e-05/0.362, allocations: 15.97 kB / 0.7855 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.503e-05/0.362, allocations: 0.9375 kB / 0.7855 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001403/0.3621, allocations: 168.3 kB / 0.7856 GB, free: 11.52 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.42e-05/0.3622, allocations: 8.375 kB / 0.7856 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.415e-05/0.3622, allocations: 384 / 0.7856 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002115/0.3624, allocations: 58.23 kB / 0.7857 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.3624, allocations: 192 / 0.7857 GB, free: 11.45 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.3624, allocations: 7.922 kB / 0.7857 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3625, allocations: 0 / 0.7857 GB, free: 11.44 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002037/0.3627, allocations: 43.95 kB / 0.7858 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004585/0.3631, allocations: 268.9 kB / 0.786 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003555/0.3635, allocations: 58.48 kB / 0.7861 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.3636, allocations: 28.89 kB / 0.7861 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001566/0.3638, allocations: 81.11 kB / 0.7862 GB, free: 10.89 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.964e-05/0.3638, allocations: 34.56 kB / 0.7862 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.3638, allocations: 0 / 0.7862 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004253/0.3643, allocations: 93.56 kB / 0.7863 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.473e-05/0.3643, allocations: 51.41 kB / 0.7863 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.818e-05/0.3644, allocations: 101.8 kB / 0.7864 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.3645, allocations: 29.7 kB / 0.7865 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.311e-05/0.3645, allocations: 92.05 kB / 0.7866 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.889e-05/0.3646, allocations: 7.922 kB / 0.7866 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.894e-05/0.3646, allocations: 13.72 kB / 0.7866 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.3648, allocations: 318.8 kB / 0.7869 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.598e-05/0.3649, allocations: 19.98 kB / 0.7869 GB, free: 10.08 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.341e-05/0.365, allocations: 19.97 kB / 0.7869 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001758/0.3651, allocations: 48.77 kB / 0.787 GB, free: 10.01 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.3652, allocations: 7.875 kB / 0.787 GB, free: 10 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002218/0.3654, allocations: 81.55 kB / 0.787 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/0.3654, allocations: 4 kB / 0.7871 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.3654, allocations: 0 / 0.7871 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.492e-05/0.3654, allocations: 0 / 0.7871 GB, free: 9.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.821e-05/0.3655, allocations: 11.98 kB / 0.7871 GB, free: 9.898 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.3655, allocations: 4 kB / 0.7871 GB, free: 9.895 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.418e-05/0.3656, allocations: 4 kB / 0.7871 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.3656, allocations: 7.984 kB / 0.7871 GB, free: 9.883 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 (rea2Int.y,fac.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001129/0.3657, allocations: 116.6 kB / 0.7872 GB, free: 9.762 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.516e-05/0.3658, allocations: 4 kB / 0.7872 GB, free: 9.758 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003011/0.3661, allocations: 81.59 kB / 0.7873 GB, free: 9.668 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.024e-06/0.3661, allocations: 4 kB / 0.7873 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.3661, allocations: 0 / 0.7873 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.076e-06/0.3661, allocations: 0 / 0.7873 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001915/0.3663, allocations: 169.5 kB / 0.7874 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.3663, allocations: 48 / 0.7874 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.736e-05/0.3664, allocations: 15.97 kB / 0.7875 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.933e-06/0.3664, allocations: 0 / 0.7875 GB, free: 9.434 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.022e-05/0.3664, allocations: 4 kB / 0.7875 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.133e-06/0.3664, allocations: 0 / 0.7875 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.3664, allocations: 0 / 0.7875 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.3667, allocations: 183.3 kB / 0.7876 GB, free: 9.234 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.3668, allocations: 77.11 kB / 0.7877 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.3668, allocations: 4 kB / 0.7877 GB, free: 9.137 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.306e-05/0.3669, allocations: 8 kB / 0.7877 GB, free: 9.129 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.923e-05/0.367, allocations: 7.984 kB / 0.7877 GB, free: 9.121 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.23e-06/0.367, allocations: 4 kB / 0.7877 GB, free: 9.117 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.668e-05/0.367, allocations: 83.27 kB / 0.7878 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1e-07/0.367, allocations: 0 / 0.7878 GB, free: 9.035 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002151/0.3673, allocations: 8 kB / 0.7878 GB, free: 9.027 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 (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.000191/0.3675, allocations: 99.25 kB / 0.7879 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002337/0.3677, allocations: 43.95 kB / 0.788 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.3677, allocations: 7.938 kB / 0.788 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 9.823e-05/0.3678, allocations: 31.91 kB / 0.788 GB, free: 8.836 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.3681, allocations: 11.17 kB / 0.788 GB, free: 8.828 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003733/0.3685, allocations: 137 kB / 0.7881 GB, free: 8.66 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004081/0.3689, allocations: 0.6809 MB / 0.7888 GB, free: 7.953 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.117e-05/0.369, allocations: 7.438 kB / 0.7888 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of SimCode: time 2.2e-07/0.369, allocations: 0 / 0.7888 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of Templates: time 0.002605/0.3716, allocations: 0.723 MB / 0.7895 GB, free: 7.219 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++ -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 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