/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 200 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 = 7448
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0836.2+2141_daily_bin1395
RA = 129.051, Dec = 21.6971
tmin = 600912001, tmax = 601171201
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='588402', job_status='RUN', time_executed='2021-08-30 02:19:31.960975', time_epoch_executed='1630315171.96' WHERE source_name='4FGL J0836.2+2141' and cadence='daily' and bin_id='1395'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/588402

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/588402/ft1_4FGL_J0836.2+2141_daily_bin1395.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/588402/ft1_4FGL_J0836.2+2141_daily_bin1395.fits outfile=/scratch/kocevski/588402/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1395.fits ra=129.051 dec=21.6971 rad=12.0 tmin=600912001.0 tmax=601171201.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 3.56
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.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/588402/ft1_filteredMKT_4FGL_J0836.2+2141_daily_bin1395.fits evtable="EVENTS" outfile="/scratch/kocevski/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.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 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits" evtable="EVENTS" scfile=/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits sctable="SC_DATA" outfile=/scratch/kocevski/588402/ltcube_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.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/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits
.....................!
real 11.83
user 11.52
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits sctable="SC_DATA" expcube=/scratch/kocevski/588402/ltcube_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.fits outfile=/scratch/kocevski/588402/expmap_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.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/588402/ltcube_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.fits
.....................!
real 194.25
user 189.37
sys 4.52

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/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits scfile=/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits outfile=/scratch/kocevski/588402/cmap_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.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 0.54
user 0.38
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits scfile=/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits outfile=/scratch/kocevski/588402/cmap_HighResolution_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.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 0.54
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits evtable="EVENTS" scfile=/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/588402/Model_4FGL_J0836.2+2141_daily_bin1395.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/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits.....................!
real 60.10
user 58.79
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits', '/scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits', expMap='/scratch/kocevski/588402/expmap_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.fits', expCube='/scratch/kocevski/588402/ltcube_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/588402/Model_4FGL_J0836.2+2141_daily_bin1395.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/588402/ft1_filtered_4FGL_J0836.2+2141_daily_bin1395.fits
Spacecraft file(s): /scratch/kocevski/588402/ft2_4FGL_J0836.2+2141_daily_bin1395.fits
Exposure map: /scratch/kocevski/588402/expmap_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.fits
Exposure cube: /scratch/kocevski/588402/ltcube_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/588402/Model_4FGL_J0836.2+2141_daily_bin1395.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) = 6159.93420631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11943E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    65.801       1.0000         .10000E-03   10000.    
     4 'norm      '    .10197E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.3708       1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.880       1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.3518       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10593       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.6766       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4065       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .36711       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    51.075       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9912       1.0000         .10000E-03   10000.    
    17 'norm      '    .67525E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .91176       1.0000         .10000E-01   10.000    
    21 'Prefactor '    1.0322       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=   6159.906     FROM MIGRAD    STATUS=CONVERGED    444 CALLS     2251 TOTAL
                     EDM=   .40E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    80.838        .71041E-05** at limit **
   2  Prefactor     .10000E-03    14.986        .31376E-06** at limit **
   3  Prefactor     65.834        57.759       -.34204E-05   -.39434E-04
   4  norm          .10000E-03    62.497       -.64514E-05** at limit **
   5  Prefactor     2.3445        324.46        .60679E-05   -.17238E-04
   6  Prefactor     20.852        66.308        .23038E-05   -.52801E-04
   7  Prefactor     7.3538        18.294       -.90939E-07   -.82158E-05
   8  Prefactor     .10000E-03    12.805        .24368E-06** at limit **
   9  norm          .10412        .83965       -.40370E-06   -.79302E-04
  10  Prefactor     2.6759        16.501        .61201E-05   -.31911E-04
  11  Prefactor     8.4070        8.3040       -.16068E-06   -.19547E-04
  12  Prefactor     .10000E-03    35.488        .12186E-05** at limit **
  13  norm          .36710        .66099        .36241E-06   -.50497E-04
  14  Prefactor     .10000E-03    5.1985        .65458E-07** at limit **
  15  Prefactor     51.077        24.021        .24533E-06   -.20201E-04
  16  norm          5.9907        5.7125       -.34681E-06    .15154E-04
  17  norm          .10000E-03    108.75        .13811E-05** at limit **
  18  norm          .10000E-03    .77423        .83361E-09** at limit **
  19  Prefactor     .10000E-03    14.041       -.64501E-06** at limit **
  20  Normalizat    .91176        .19437       -.20348E-05   -.11666E-03
  21  Prefactor     1.0322        .14853       -.20984E-07   -.22869E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 65.834
  norm       = 0.0001
  Prefactor  = 2.34451
  Prefactor  = 20.8523
  Prefactor  = 7.35378
  Prefactor  = 0.0001
  norm       = 0.104123
  Prefactor  = 2.67594
  Prefactor  = 8.40696
  Prefactor  = 0.0001
  norm       = 0.3671
  Prefactor  = 0.0001
  Prefactor  = 51.0772
  norm       = 5.99071
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.911763
  Prefactor  = 1.03217
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.906     FROM HESSE     STATUS=OK           317 CALLS     2568 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    84.085        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    14.998        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     65.834        58.127        .49476E-04   -1.4083    
   4  norm          .10000E-03    62.275        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     2.3445        277.63        .26610E-03   -1.5402    
   6  Prefactor     20.852        60.995        .87655E-04   -1.4794    
   7  Prefactor     7.3538        18.288        .14792E-03   -1.5166    
   8  Prefactor     .10000E-03    12.820        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10412        4.0887        .12085E-02   -1.5643    
  10  Prefactor     2.6759        18.006        .12454E-02   -1.5381    
  11  Prefactor     8.4070        8.3338        .13826E-03   -1.5128    
  12  Prefactor     .10000E-03    35.703        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .36710        .65524        .21431E-03   -1.5587    
  14  Prefactor     .10000E-03    5.2103        .17471E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     51.077        24.123        .56116E-04   -1.4277    
  16  norm          5.9907        5.7113        .16405E-03   -1.5218    
  17  norm          .10000E-03    113.53        .42000E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .77573        .67434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    14.040        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .91176        .22312        .27081E-03   -.96048    
  21  Prefactor     1.0322        .17245        .21250E-03   -.91665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89076e-08
Minuit parameter uncertainties:
  1  0.000353002
  2  3.70553e-06
  3  58.1774
  4  0.000131915
  5  51.2704
  6  61.1779
  7  18.3021
  8  8.41824e-06
  9  1.30442
  10  13.8886
  11  8.3349
  12  2.07455e-05
  13  0.655257
  14  7.75363e-07
  15  24.1275
  16  5.71186
  17  2.53026e-06
  18  3.49077e-07
  19  7.86786e-06
  20  0.223349
  21  0.172542
Done.

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

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  2.676e+00  1.389e+01  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.032e+00  1.725e-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:  9.118e-01  2.233e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.05
Ra Dec: 129.051 21.697
Photon Flux Upper Limit: 1.40e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/588402/likelihoodResults_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.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): 102
logL (Free Index) = 6159.62415873
delta logL = 0.281657153888

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6159.01039145
delta logL = 0.895424441524

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .63751E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    9.9999       1.0000          .0000       10.000    
     3 'Normalizat'    .82424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0862       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.

 FCN=   6159.010     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      357 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .63712E-03    .23214E-01    .40459E-03** at limit **
   2  Index        10.0000        7.1391        .50000    ** at limit **
   3  Normalizat    .82433        .88413E-01    .64088E-01    .17335E-04
   4  Prefactor     1.0861        .70837E-01    .38136E-01    .12361E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000637119
  Index      = 10
  Normalizat = 0.824334
  Prefactor  = 1.08615
 **********
 **   18 **HESSE 
 **********

 FCN=   6159.010     FROM HESSE     STATUS=OK            37 CALLS      394 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .63712E-03    .63454E-03    .17873E-04   -1.5703    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index        10.0000        1.3372        .45339        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .82433        .22144        .28349E-03   -.99172    
   4  Prefactor     1.0861        .17890        .20785E-03   -.89911    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.89009e-09
Minuit parameter uncertainties:
  1  0.000634538
  2  4.42139e-05
  3  0.221686
  4  0.178994
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/588402': 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) = 6159.01038893
delta logL = 0.895426960378

Extracting fit parameters...

4FGL J0836.2+2141
   Spectrum: PowerLaw
298    Prefactor:  6.371e-04  6.345e-04  1.000e-04  1.000e+04 ( 1.000e-12)
299        Index:  1.000e+01  4.421e-05  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.086e+00  1.790e-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:  8.243e-01  2.217e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.03
Ra Dec: 129.051 21.697
Photon Index (Free Index): 10.00 +/- 0.00
Photon Flux (Free Index): 8.44e-08 +/- 8.15e-08
Energy Flux (Free Index): 9.44e-06 +/- 9.17e-06

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/588402/cmap_HighResolution_600912001_601171201_4FGL_J0836.2+2141_daily_bin1395.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', energy_flux2='9.44e-06', dlogl='8.95e-01', photon_flux2='8.44e-08', job_status='DONE', time_completed='2021-08-30 02:29:26.861365', photon_index_error2='0.00', photon_index2='10.00', ts='0.05', fit_tolerance='1e-08', GAL='1.03', photon_index_error='0.00', photon_flux_upper_limit='1.40e-07', energy_flux_error2='9.17e-06', EG='0.91', time_epoch_completed='1630315766.86', return_code='0', job_id='588402', GAL2='1.09', EG2='0.82', return_code2='0', photon_flux_error2='8.15e-08', ts2='2.03', photon_index='2.73' WHERE bin_id='1395' AND source_name='4FGL J0836.2+2141' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 30 02:29:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 588402: <4FGL_J0836.2+2141_daily_bin1395> in cluster <slac> Done

Job <4FGL_J0836.2+2141_daily_bin1395> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 30 02:16:01 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 30 02:16:02 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:02 2021
Terminated at Mon Aug 30 02:29:27 2021
Results reported at Mon Aug 30 02:29:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0836.2+2141_daily_bin1395 129.051 21.6971 600912001 601171201 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 :                                   591.41 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             241.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            806 sec.

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

