/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 208 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

number of points = 7381
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1449
RA = 129.051, Dec = 21.6971
tmin = 614908801, tmax = 615168001
emin = 100.0, emax = 100000.0
irfs = P8R3_SOURCE_V2
ROI = 12
zmax = 90

Fitting strategies:
Fix sources to their catalog values = True
Leave variable source normalizations free = True
Perform pre-fit where ALL sources are frozen to catalog values = False
Perform secondary fit with a free spectral index = True
Remove all catalog sources = False
Remove weak (TS < 2) catalog sources = False
Freeze Galactic component = False

Likelihood fit parameters:
Statistic: UNBINNED
Optimizer: MINUIT

Catalog: 4FGL

Repository Job = True

LAT data Source:
Data catalog

Updating database...

UPDATE lightcurve_data_v2 SET job_id='588496', job_status='RUN', time_executed='2021-08-30 02:20:14.737409', time_epoch_executed='1630315214.74' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588496

Creating custom pfile directory:
/scratch/kocevski/588496/pfiles/

Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStop>=614908801.0 && nMetStart<615168001.0' /Data/Flight/Reprocess/P305

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT1 --filter 'nMetStart>564945418 && nMetStop>=614908801.0 && nMetStart<615168001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588496/ft1_4FGL_J0836.2+2141_daily_bin1449.fits


Retrieving the FT1 file...

Issuing command:
/afs/slac.stanford.edu/g/glast/ground/bin/datacat find --group FT2 --filter 'nMetStop>=614908801.0 && nMetStart<615168001.0' /Data/Flight/Level1/LPA

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588496/ft1_4FGL_J0836.2+2141_daily_bin1449.fits outfile=/scratch/kocevski/588496/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1449.fits ra=129.051 dec=21.6971 rad=12.0 tmin=614908801.0 tmax=615168001.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 4.94
user 3.32
sys 1.59

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits sctable="SC_DATA" filter="IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))" roicut=no evfile=/scratch/kocevski/588496/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 1.85
user 0.33
sys 1.49

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/588496/ltcube_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits dcostheta=0.025 binsz=1.0 phibins=0 tmin=0.0 tmax=0.0 file_version="1" zmin=0.0 zmax=90.0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Working on file /scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits
.....................!
real 13.19
user 11.28
sys 1.86

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/588496/ltcube_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits outfile=/scratch/kocevski/588496/expmap_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits irfs="P8R3_SOURCE_V2" evtype="INDEF" srcrad=30.0 nlong=88 nlat=88 nenergies=10 submap=no nlongmin=0 nlongmax=0 nlatmin=0 nlatmax=0 chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

The exposure maps generated by this tool are meant
to be used for *unbinned* likelihood analysis only.
Do not use them for binned analyses.
Computing the ExposureMap using /scratch/kocevski/588496/ltcube_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits
.....................!
real 192.69
user 185.94
sys 6.34

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 163 point sources and 0 extended sources

Setting source of interest to:
4FGL J0836.2+2141 @ 129.051 21.6971

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits scfile=/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits outfile=/scratch/kocevski/588496/cmap_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.88
user 0.38
sys 1.48

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits scfile=/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits outfile=/scratch/kocevski/588496/cmap_HighResolution_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=129.051 yref=21.6971 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 1.87
user 0.36
sys 1.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/588496/Model_4FGL_J0836.2+2141_daily_bin1449.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits.....................!
real 64.68
user 61.53
sys 2.92

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits', '/scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits', expMap='/scratch/kocevski/588496/expmap_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits', expCube='/scratch/kocevski/588496/ltcube_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588496/Model_4FGL_J0836.2+2141_daily_bin1449.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0836.2+2141'

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.336e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/588496/ft1_filtered_4FGL_J0836.2+2141_daily_bin1449.fits
Spacecraft file(s): /scratch/kocevski/588496/ft2_4FGL_J0836.2+2141_daily_bin1449.fits
Exposure map: /scratch/kocevski/588496/expmap_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits
Exposure cube: /scratch/kocevski/588496/ltcube_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588496/Model_4FGL_J0836.2+2141_daily_bin1449.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6587.82524611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6587.63646286

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.5888       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10583E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    30.082       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    37.676       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    1.2957       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10241E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.1423       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10202E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.831       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    48.360       1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    19.428       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.2438       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0073       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6587.636     FROM MIGRAD    STATUS=CONVERGED    455 CALLS     2266 TOTAL
                     EDM=   .94E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.5889        15.957        .20133E-05   -.36363E-04
   2  Prefactor     .10000E-03    24.601        .26791E-07** at limit **
   3  Prefactor     .10000E-03    95.141        .10400E-05** at limit **
   4  norm          30.050        78.291        .16723E-05   -.26964E-04
   5  Prefactor     .10000E-03    13.185        .10525E-06** at limit **
   6  Prefactor     .10000E-03    10.923       -.32446E-07** at limit **
   7  Prefactor     37.671        36.123        .57711E-06   -.52394E-04
   8  Prefactor     .10000E-03    18.109        .51641E-06** at limit **
   9  norm          .10000E-03    .60383       -.53634E-06** at limit **
  10  Prefactor     1.2956        12.293        .14980E-04   -.27120E-03
  11  Prefactor     .10000E-03    12.594        .12547E-05** at limit **
  12  Prefactor     .10000E-03    16.296        .20897E-06** at limit **
  13  norm          1.1424        .78374       -.14104E-06   -.23470E-02
  14  Prefactor     .10000E-03    11.206       -.11866E-05** at limit **
  15  Prefactor     18.830        21.716        .56732E-06   -.20209E-03
  16  norm          .10000E-03    2.8717        .11194E-06** at limit **
  17  norm          48.322        54.758        .23118E-05   -.67996E-04
  18  norm          .10000E-03    1.5686        .38352E-06** at limit **
  19  Prefactor     19.447        65.808       -.20633E-05   -.63256E-04
  20  Normalizat    1.2441        .19632       -.49093E-05   -.86696E-03
  21  Prefactor     1.0071        .15723        .18020E-05   -.47515E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.58893
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 30.0502
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.6705
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.29555
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 1.1424
  Prefactor  = 0.000100003
  Prefactor  = 18.8297
  norm       = 0.0001
  norm       = 48.3217
  norm       = 0.0001
  Prefactor  = 19.4469
  Normalizat = 1.24415
  Prefactor  = 1.00711
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.636     FROM HESSE     STATUS=OK           307 CALLS     2573 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.5889        15.966        .93952E-03   -1.5279    
   2  Prefactor     .10000E-03    24.663        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    96.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          30.050        78.472        .73050E-04   -1.4611    
   5  Prefactor     .10000E-03    13.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.933        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     37.671        36.130        .65296E-04   -1.4480    
   8  Prefactor     .10000E-03    18.172        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    5.8192        .11795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     1.2956        12.535        .19429E-02   -1.5480    
  11  Prefactor     .10000E-03    13.055        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    16.324        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.1424        .77029        .56735E-04   -1.5494    
  14  Prefactor     .10000E-03    11.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.830        21.772        .46148E-03   -1.4840    
  16  norm          .10000E-03    2.8769        .13434E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          48.322        54.752        .57663E-04   -1.4317    
  18  norm          .10000E-03    6.3683        .19672E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     19.447        65.812        .90868E-04   -1.4826    
  20  Normalizat    1.2441        .23075        .26153E-03   -.85249    
  21  Prefactor     1.0071        .18697        .23551E-03   -.92493    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.07387e-09
Minuit parameter uncertainties:
  1  15.9808
  2  3.52913e-05
  3  0.000865751
  4  78.7438
  5  4.20325e-05
  6  2.61427e-05
  7  36.1511
  8  9.27607e-05
  9  5.25249e-05
  10  8.06157
  11  0.000348767
  12  0.000134363
  13  0.770297
  14  0.00034573
  15  21.7813
  16  1.48285e-05
  17  54.8089
  18  3.84389e-05
  19  66.0595
  20  0.230938
  21  0.18709
Done.

MINUIT Return Code (Fixed Index): 0
logL (Fixed Index) = 6587.636461

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  1.296e+00  8.062e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.731e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.007e+00  1.871e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.244e+00  2.309e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.03
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.92e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588496/likelihoodResults_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.57513124
delta logL = 0.0613297527398

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.56895872
delta logL = 0.0675022750129

Fit tolerance = 1e-08

Performing likelihood fit...
 **********
 **   14 **SET NOWARN 
 **********

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.5664       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0701       1.0000          .0000       10.000    
     3 'Normalizat'    1.2484       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0023       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5210E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6587.569     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      295 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5664        7.3106        .25481E-03    .90572E-04
   2  Index         2.0704        1.3198        .13648E-01    .18476E-04
   3  Normalizat    1.2485        .22122        .26113E-03   -.17893E-04
   4  Prefactor     1.0022        .18248        .23599E-03    .85268E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56636
  Index      = 2.07039
  Normalizat = 1.24849
  Prefactor  = 1.00221
 **********
 **   18 **HESSE 
 **********

 FCN=   6587.569     FROM HESSE     STATUS=OK            25 CALLS      320 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5664        7.4260        .10192E-04   -1.5388    
   2  Index         2.0704        1.3408        .54590E-03   -.62602    
   3  Normalizat    1.2485        .22144        .10445E-04   -.85117    
   4  Prefactor     1.0022        .18264        .94397E-05   -.92656    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.3453e-10
Minuit parameter uncertainties:
  1  7.42864
  2  1.36652
  3  0.221609
  4  0.182758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588496': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6587.56895859
delta logL = 0.0675024100692

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.566e+00  7.429e+00  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  2.070e+00  1.367e+00  0.000e+00  1.000e+01 (-1.000e+00)
300        Scale:  5.085e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
518    Prefactor:  1.002e+00  1.828e-01  0.000e+00  1.000e+01 ( 1.000e+00)
519        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
520        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
517   Normalization:  1.248e+00  2.216e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.03
Ra Dec: 129.051 21.697

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/588496/cmap_HighResolution_614908801_615168001_4FGL_J0836.2+2141_daily_bin1449.png

Cleaning up...

** Nuclear option initiated! **
rmdir /scratch/kocevski/588496

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.92e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-08-30 02:30:38.940613', job_id='588496', GAL2='1.00', fit_tolerance='1e-08', EG2='1.25', EG='1.24', time_epoch_completed='1630315838.94', return_code2='0', ts='0.03', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='6.75e-02', ts2='0.17', photon_index_error='0.00', photon_index='2.73' WHERE bin_id='1449' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:30:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0294>
Subject: Job 588496: <4FGL_J0836.2+2141_daily_bin1449> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1449> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:16:07 2021
Job was executed on host(s) <bullet0294>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:16:09 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 30 02:16:09 2021
Terminated at Mon Aug 30 02:30:39 2021
Results reported at Mon Aug 30 02:30:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1449 129.051 21.6971 614908801 615168001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0836.2+2141 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   640.29 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             300.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   870 sec.
    Turnaround time :                            872 sec.

The output (if any) is above this job summary.

