Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.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 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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009003/0.0009004, allocations: 99.58 kB / 16.02 MB, free: 76 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.0009893/0.0009893, allocations: 182.4 kB / 16.92 MB, free: 6.918 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.371/1.371, allocations: 223.2 MB / 240.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001869/0.001869, allocations: 278.8 kB / 292.3 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9704/0.9704, allocations: 169.5 MB / 0.501 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004276/0.0004276, allocations: 17.55 kB / 0.5993 GB, free: 28.36 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1679/0.1683, allocations: 88.55 MB / 0.6858 GB, free: 15.1 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.0006698/0.169, allocations: 309.4 kB / 0.6861 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002491/0.1693, allocations: 47.86 kB / 0.6861 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.018e-05/0.1693, allocations: 2.531 kB / 0.6861 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.047e-05/0.1694, allocations: 0 / 0.6861 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.699e-06/0.1694, allocations: 0 / 0.6861 GB, free: 14.75 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001777/0.1695, allocations: 7.938 kB / 0.6861 GB, free: 14.74 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.908e-05/0.1696, allocations: 11.92 kB / 0.6861 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.041e-05/0.1696, allocations: 64 / 0.6861 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.522e-05/0.1697, allocations: 4 kB / 0.6861 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.106e-05/0.1697, allocations: 0.5 kB / 0.6861 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.097e-05/0.1697, allocations: 0.625 kB / 0.6862 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.104e-05/0.1698, allocations: 15.98 kB / 0.6862 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-06/0.1698, allocations: 0.5 kB / 0.6862 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.932e-05/0.1698, allocations: 30.45 kB / 0.6862 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.346e-05/0.1699, allocations: 7.969 kB / 0.6862 GB, free: 14.66 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1699, allocations: 1.188 kB / 0.6862 GB, free: 14.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.1699, allocations: 0 / 0.6862 GB, free: 14.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.456e-06/0.1699, allocations: 0 / 0.6862 GB, free: 14.66 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002557/0.1702, allocations: 316.1 kB / 0.6865 GB, free: 14.3 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1702, allocations: 8.938 kB / 0.6865 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.446e-05/0.1703, allocations: 4.938 kB / 0.6865 GB, free: 14.29 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.012e-05/0.1704, allocations: 162.1 kB / 0.6867 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.182e-05/0.1704, allocations: 8.312 kB / 0.6867 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.128e-06/0.1704, allocations: 4.359 kB / 0.6867 GB, free: 14.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.085e-05/0.1705, allocations: 30.27 kB / 0.6867 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.1705, allocations: 1.156 kB / 0.6867 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.118e-05/0.1705, allocations: 3.938 kB / 0.6867 GB, free: 14.05 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1705, allocations: 7.406 kB / 0.6867 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.925e-05/0.1706, allocations: 4 kB / 0.6867 GB, free: 14.04 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000143/0.1707, allocations: 153.7 kB / 0.6869 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.188e-05/0.1708, allocations: 18.58 kB / 0.6869 GB, free: 13.81 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.769e-05/0.1708, allocations: 8.859 kB / 0.6869 GB, free: 13.8 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001479/0.1709, allocations: 85.16 kB / 0.687 GB, free: 13.7 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.171, allocations: 31.19 kB / 0.687 GB, free: 13.66 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.171, allocations: 0.625 kB / 0.687 GB, free: 13.66 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001307/0.1711, allocations: 51.98 kB / 0.6871 GB, free: 13.61 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.1711, allocations: 55.39 kB / 0.6871 GB, free: 13.54 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.106e-05/0.1712, allocations: 89.86 kB / 0.6872 GB, free: 13.44 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.1712, allocations: 25.7 kB / 0.6872 GB, free: 13.41 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.517e-05/0.1712, allocations: 80.14 kB / 0.6873 GB, free: 13.33 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.939e-05/0.1713, allocations: 8.875 kB / 0.6873 GB, free: 13.32 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.156e-05/0.1713, allocations: 13.72 kB / 0.6873 GB, free: 13.3 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001146/0.1714, allocations: 311.6 kB / 0.6876 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.119e-05/0.1714, allocations: 5.719 kB / 0.6876 GB, free: 12.98 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.805e-06/0.1714, allocations: 4 kB / 0.6876 GB, free: 12.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.115e-05/0.1715, allocations: 16.78 kB / 0.6876 GB, free: 12.96 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1715, allocations: 0.6562 kB / 0.6876 GB, free: 12.96 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 6.518e-05/0.1716, allocations: 39.58 kB / 0.6877 GB, free: 12.92 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.1716, allocations: 5.719 kB / 0.6877 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1716, allocations: 3.984 kB / 0.6877 GB, free: 12.91 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.1716, allocations: 7.938 kB / 0.6877 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.59e-05/0.1717, allocations: 0 / 0.6877 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.1717, allocations: 2.656 kB / 0.6877 GB, free: 12.9 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.81e-05/0.1717, allocations: 7.984 kB / 0.6877 GB, free: 12.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.899e-06/0.1717, allocations: 7.938 kB / 0.6877 GB, free: 12.89 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: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 6.953e-05/0.1718, allocations: 107.2 kB / 0.6878 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.661e-06/0.1718, allocations: 0 / 0.6878 GB, free: 12.77 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.459e-05/0.1719, allocations: 53.56 kB / 0.6879 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.1719, allocations: 0.5312 kB / 0.6879 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.1719, allocations: 0 / 0.6879 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.1719, allocations: 1.125 kB / 0.6879 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.63e-05/0.172, allocations: 149.7 kB / 0.688 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.172, allocations: 0 / 0.688 GB, free: 12.52 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.288e-05/0.172, allocations: 8.922 kB / 0.688 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.443e-06/0.172, allocations: 3.938 kB / 0.688 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1721, allocations: 4.188 kB / 0.688 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1721, allocations: 4 kB / 0.688 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.1721, allocations: 0 / 0.688 GB, free: 12.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.24e-05/0.1721, allocations: 69.06 kB / 0.6881 GB, free: 12.41 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.913e-05/0.1722, allocations: 81.09 kB / 0.6882 GB, free: 12.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.059e-05/0.1722, allocations: 3.938 kB / 0.6882 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-06/0.1722, allocations: 0 / 0.6882 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.671e-05/0.1723, allocations: 0 / 0.6882 GB, free: 12.31 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.437e-06/0.1723, allocations: 8.031 kB / 0.6882 GB, free: 12.3 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.637e-05/0.1723, allocations: 75.28 kB / 0.6883 GB, free: 12.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1723, allocations: 0 / 0.6883 GB, free: 12.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001739/0.1725, allocations: 4 kB / 0.6883 GB, free: 12.23 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: 2 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001463/0.1726, allocations: 107.2 kB / 0.6884 GB, free: 12.11 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.58e-05/0.1727, allocations: 8 kB / 0.6884 GB, free: 12.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1727, allocations: 0 / 0.6884 GB, free: 12.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.192e-05/0.1727, allocations: 8.062 kB / 0.6884 GB, free: 12.09 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001258/0.1729, allocations: 3.938 kB / 0.6884 GB, free: 12.09 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001846/0.1731, allocations: 112.4 kB / 0.6885 GB, free: 11.95 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.1733, allocations: 0.6731 MB / 0.6892 GB, free: 11.25 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.571e-05/0.1733, allocations: 7.438 kB / 0.6892 GB, free: 11.24 MB / 494.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1733, allocations: 0 / 0.6892 GB, free: 11.24 MB / 494.1 MB Notification: Performance of Templates: time 0.001594/0.1749, allocations: 444.2 kB / 0.6896 GB, free: 10.81 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.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 OMCppBuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FactorialCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FactorialCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.FactorialCalcHelperMain.o] Error 1