Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 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.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.002379/0.002379, allocations: 104.1 kB / 15.88 MB, free: 4 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.00235/0.00235, allocations: 196.1 kB / 16.79 MB, free: 6.832 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.792/2.792, allocations: 222.9 MB / 240.5 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003458/0.003458, allocations: 291 kB / 290.9 MB, free: 2.145 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.838/1.838, allocations: 169.2 MB / 0.4983 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004125/0.004124, allocations: 96.31 kB / 0.5951 GB, free: 28.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3879/0.3921, allocations: 86.98 MB / 0.6801 GB, free: 1.172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.007274/0.3996, allocations: 1.568 MB / 0.6816 GB, free: 15.61 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008498/0.4005, allocations: 120.5 kB / 0.6817 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.823e-05/0.4006, allocations: 4.562 kB / 0.6817 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 7.045e-05/0.4008, allocations: 0 / 0.6817 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001103/0.4009, allocations: 5.656 kB / 0.6817 GB, free: 15.48 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004195/0.4013, allocations: 19.98 kB / 0.6818 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001466/0.4015, allocations: 27.92 kB / 0.6818 GB, free: 15.43 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001823/0.4017, allocations: 12.52 kB / 0.6818 GB, free: 15.42 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.537e-05/0.4018, allocations: 16.56 kB / 0.6818 GB, free: 15.4 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.841e-05/0.4019, allocations: 15.92 kB / 0.6818 GB, free: 15.39 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.558e-05/0.4019, allocations: 5.812 kB / 0.6818 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001072/0.402, allocations: 8 kB / 0.6818 GB, free: 15.38 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.901e-05/0.4021, allocations: 7.984 kB / 0.6818 GB, free: 15.37 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 4.886e-05/0.4021, allocations: 7.938 kB / 0.6818 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001748/0.4023, allocations: 24.23 kB / 0.6819 GB, free: 15.34 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.4024, allocations: 2.844 kB / 0.6819 GB, free: 15.34 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4024, allocations: 0 / 0.6819 GB, free: 15.34 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.155e-05/0.4024, allocations: 0 / 0.6819 GB, free: 15.34 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0008427/0.4032, allocations: 343.5 kB / 0.6822 GB, free: 14.95 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.242e-05/0.4033, allocations: 8.031 kB / 0.6822 GB, free: 14.94 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.46e-05/0.4034, allocations: 9.625 kB / 0.6822 GB, free: 14.93 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002827/0.4037, allocations: 164.4 kB / 0.6824 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.037e-05/0.4038, allocations: 5.25 kB / 0.6824 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.477e-05/0.4038, allocations: 384 / 0.6824 GB, free: 14.73 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003426/0.4042, allocations: 58.84 kB / 0.6824 GB, free: 14.67 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.022e-05/0.4042, allocations: 4.656 kB / 0.6824 GB, free: 14.66 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.336e-05/0.4042, allocations: 12.94 kB / 0.6825 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.117e-06/0.4042, allocations: 0 / 0.6825 GB, free: 14.65 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002743/0.4045, allocations: 40.95 kB / 0.6825 GB, free: 14.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007051/0.4052, allocations: 264.9 kB / 0.6827 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004632/0.4057, allocations: 66.41 kB / 0.6828 GB, free: 14.23 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000132/0.4059, allocations: 28.84 kB / 0.6828 GB, free: 14.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001876/0.4061, allocations: 81.09 kB / 0.6829 GB, free: 14.1 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.508e-05/0.4061, allocations: 38.56 kB / 0.6829 GB, free: 14.05 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.883e-06/0.4061, allocations: 0 / 0.6829 GB, free: 14.05 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0006259/0.4068, allocations: 93.62 kB / 0.683 GB, free: 13.96 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.486e-05/0.4069, allocations: 51.41 kB / 0.6831 GB, free: 13.89 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000141/0.407, allocations: 97.86 kB / 0.6832 GB, free: 13.79 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.674e-05/0.4071, allocations: 25.7 kB / 0.6832 GB, free: 13.76 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001086/0.4072, allocations: 96.06 kB / 0.6833 GB, free: 13.66 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.512e-05/0.4072, allocations: 7.906 kB / 0.6833 GB, free: 13.65 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.322e-05/0.4073, allocations: 13.72 kB / 0.6833 GB, free: 13.63 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002691/0.4076, allocations: 318.8 kB / 0.6836 GB, free: 13.31 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.4078, allocations: 19.97 kB / 0.6836 GB, free: 13.29 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00013/0.4079, allocations: 15.98 kB / 0.6837 GB, free: 13.28 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000284/0.4082, allocations: 52.81 kB / 0.6837 GB, free: 13.22 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.194e-06/0.4082, allocations: 3.938 kB / 0.6837 GB, free: 13.22 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003677/0.4086, allocations: 70.12 kB / 0.6838 GB, free: 13.14 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.42e-05/0.4087, allocations: 4 kB / 0.6838 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.4087, allocations: 0 / 0.6838 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.633e-05/0.4087, allocations: 0 / 0.6838 GB, free: 13.14 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001359/0.4089, allocations: 11.98 kB / 0.6838 GB, free: 13.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.515e-05/0.4089, allocations: 7.922 kB / 0.6838 GB, free: 13.12 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.395e-05/0.409, allocations: 15.98 kB / 0.6838 GB, free: 13.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.409, allocations: 0 / 0.6838 GB, free: 13.11 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 (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.0001954/0.4092, allocations: 119.1 kB / 0.6839 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.648e-05/0.4093, allocations: 3.906 kB / 0.6839 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004618/0.4098, allocations: 85.14 kB / 0.684 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.4098, allocations: 0 / 0.684 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.48e-05/0.4098, allocations: 4 kB / 0.684 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.4099, allocations: 7.922 kB / 0.684 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003645/0.4102, allocations: 165.6 kB / 0.6842 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.4103, allocations: 0 / 0.6842 GB, free: 12.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001096/0.4104, allocations: 11.98 kB / 0.6842 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.06e-06/0.4104, allocations: 0 / 0.6842 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.4104, allocations: 0 / 0.6842 GB, free: 12.65 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4104, allocations: 3.938 kB / 0.6842 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.625e-06/0.4104, allocations: 3.984 kB / 0.6842 GB, free: 12.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004729/0.4109, allocations: 171.5 kB / 0.6844 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-05/0.411, allocations: 81.11 kB / 0.6844 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.679e-05/0.4111, allocations: 0 / 0.6844 GB, free: 12.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.4112, allocations: 7.984 kB / 0.6845 GB, free: 12.35 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.532e-05/0.4113, allocations: 11.92 kB / 0.6845 GB, free: 12.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.454e-06/0.4114, allocations: 0 / 0.6845 GB, free: 12.34 MB / 494.1 MB Notification: Performance of sorting global known variables: time 8.589e-05/0.4114, allocations: 83.28 kB / 0.6845 GB, free: 12.26 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4115, allocations: 4 kB / 0.6845 GB, free: 12.25 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004265/0.4119, allocations: 11.91 kB / 0.6846 GB, free: 12.24 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.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.000314/0.4122, allocations: 103.2 kB / 0.6847 GB, free: 12.13 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003669/0.4126, allocations: 47.89 kB / 0.6847 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4126, allocations: 0 / 0.6847 GB, free: 12.08 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001521/0.4128, allocations: 23.98 kB / 0.6847 GB, free: 12.06 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00059/0.4134, allocations: 7.938 kB / 0.6847 GB, free: 12.05 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006778/0.4141, allocations: 149.4 kB / 0.6849 GB, free: 11.88 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005528/0.4147, allocations: 0.6809 MB / 0.6855 GB, free: 11.17 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.462e-05/0.4147, allocations: 7.438 kB / 0.6855 GB, free: 11.16 MB / 494.1 MB Notification: Performance of SimCode: time 1.052e-06/0.4147, allocations: 0 / 0.6855 GB, free: 11.16 MB / 494.1 MB Notification: Performance of Templates: time 0.004017/0.4188, allocations: 0.7284 MB / 0.6863 GB, free: 10.43 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile make -j1 -f BuildingSystems_BuildingSystems.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 OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.FactorialCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.FactorialCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.Math.Examples.FactorialCalcHelperMain.o] Error 1