/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 110 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 = 7394
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin11
RA = 62.4629, Dec = -3.9865
tmin = 242179201, tmax = 242438401
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='277725', job_status='RUN', time_executed='2021-08-20 06:12:36.758169', time_epoch_executed='1629465156.76' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='11'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277725

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277725/ft1_4FGL_J0409.8-0359_daily_bin11.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277725/ft1_4FGL_J0409.8-0359_daily_bin11.fits outfile=/scratch/kocevski/277725/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin11.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=242179201.0 tmax=242438401.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 2.05
user 1.25
sys 0.79

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.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/277725/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin11.fits evtable="EVENTS" outfile="/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.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.19
user 0.33
sys 0.85

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits" evtable="EVENTS" scfile=/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits sctable="SC_DATA" outfile=/scratch/kocevski/277725/ltcube_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.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/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits
.....................!
real 13.33
user 12.13
sys 1.13

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits sctable="SC_DATA" expcube=/scratch/kocevski/277725/ltcube_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.fits outfile=/scratch/kocevski/277725/expmap_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.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/277725/ltcube_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.fits
.....................!
real 192.92
user 186.72
sys 5.88

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 143 point sources and 0 extended sources

Setting source of interest to:
4FGL J0409.8-0359 @ 62.4629 -3.9865

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits scfile=/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits outfile=/scratch/kocevski/277725/cmap_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.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=62.4629 yref=-3.9865 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.22
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits scfile=/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits outfile=/scratch/kocevski/277725/cmap_HighResolution_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.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=62.4629 yref=-3.9865 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.23
user 0.39
sys 0.83

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits evtable="EVENTS" scfile=/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277725/Model_4FGL_J0409.8-0359_daily_bin11.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/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits.....................!
real 105.56
user 103.33
sys 2.01

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits', '/scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits', expMap='/scratch/kocevski/277725/expmap_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.fits', expCube='/scratch/kocevski/277725/ltcube_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277725/Model_4FGL_J0409.8-0359_daily_bin11.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0409.8-0359'

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  2.695e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/277725/ft1_filtered_4FGL_J0409.8-0359_daily_bin11.fits
Spacecraft file(s): /scratch/kocevski/277725/ft2_4FGL_J0409.8-0359_daily_bin11.fits
Exposure map: /scratch/kocevski/277725/expmap_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.fits
Exposure cube: /scratch/kocevski/277725/ltcube_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277725/Model_4FGL_J0409.8-0359_daily_bin11.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) = 7983.59553546

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .45746E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .14379E-02   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .67536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.721       1.0000         .10000E-03   10000.    
     6 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6144       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .83011E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.3724       1.0000         .10000E-03   10000.    
    14 'Prefactor '    104.96       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.5564       1.0000         .10000E-03   10000.    
    16 'norm      '    .10505E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.9966       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .90277       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .96554       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   7983.500     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     1899 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    7.9603        .65608E-07** at limit **
   2  norm          .10009E-03    .47763        .23165E-07** at limit **
   3  Prefactor     .10000E-03    10.919       -.30684E-07** at limit **
   4  Prefactor     .66920        2.9464       -.45141E-06   -.20387E-03
   5  Prefactor     12.717        14.266        .62051E-05   -.29437E-03
   6  norm          .10000E-03    5.2680       -.65283E-08** at limit **
   7  Prefactor     .10000E-03    105.32        .15926E-05** at limit **
   8  norm          .10000E-03    1.1791        .22546E-07** at limit **
   9  norm          .10000E-03    4.5400        .32047E-07** at limit **
  10  norm          .10000E-03    13.135       -.13115E-07** at limit **
  11  norm          2.6128        1.2108       -.13957E-06    .86252E-03
  12  Prefactor     .10046E-03    .64428       -.45553E-06** at limit **
  13  Prefactor     4.3660        16.640        .26444E-05    .18388E-04
  14  Prefactor     104.98        47.103        .48204E-05    .13680E-03
  15  Prefactor     2.5560        4.9525       -.94767E-06   -.49143E-03
  16  norm          .10000E-03    1.6340       -.43664E-06** at limit **
  17  Prefactor     .10000E-03    9.8387        .30377E-07** at limit **
  18  norm          1.9964        1.7214       -.18818E-06   -.30982E-03
  19  Normalizat    .90276        .18122       -.35274E-06    .16593E-03
  20  Prefactor     .96551        .88085E-01   -.33595E-06    .44945E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100041
  norm       = 0.000100095
  Prefactor  = 0.0001
  Prefactor  = 0.669201
  Prefactor  = 12.7174
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.61284
  Prefactor  = 0.000100456
  Prefactor  = 4.36599
  Prefactor  = 104.977
  Prefactor  = 2.55602
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.9964
  Normalizat = 0.902762
  Prefactor  = 0.965509
 **********
 **   18 **HESSE 
 **********

 FCN=   7983.500     FROM HESSE     STATUS=OK           317 CALLS     2216 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    14.213        .88500E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10009E-03    1.6875        .21148E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.925        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .66920        10.832        .29039E-02   -1.5544    
   5  Prefactor     12.717        13.907        .11231E-03   -1.4995    
   6  norm          .10000E-03    5.2733        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    106.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1844        .94721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.5924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    13.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6128        1.2045        .60462E-04   -1.5385    
  12  Prefactor     .10046E-03    2.4171        .23134E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     4.3660        15.422        .19262E-03   -1.5290    
  14  Prefactor     104.98        48.874        .39250E-04   -1.3655    
  15  Prefactor     2.5560        5.0175        .25535E-03   -1.5388    
  16  norm          .10000E-03    3.1427        .20505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    9.8601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.9964        1.7144        .10413E-03   -1.5425    
  19  Normalizat    .90276        .20655        .33308E-03   -.96363    
  20  Prefactor     .96551        .10092        .16406E-03   -.93888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.13973e-10
Minuit parameter uncertainties:
  1  0.00151885
  2  0.00080018
  3  1.99284e-05
  4  5.38555
  5  13.9109
  6  1.13056e-06
  7  0.000215549
  8  4.01195e-07
  9  5.92594e-06
  10  2.68985e-05
  11  1.20447
  12  0.00209904
  13  15.4364
  14  48.8927
  15  5.01832
  16  7.32998e-05
  17  4.9952e-06
  18  1.7144
  19  0.206728
  20  0.10094
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  1.131e-06  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.655e-01  1.009e-01  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  9.028e-01  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 62.463 -3.986
Photon Flux Upper Limit: 1.98e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277725/likelihoodResults_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.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) = 7983.50059839
delta logL = -0.000901188993339

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7983.49969721
delta logL = -1.20498953038e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6824       1.0000          .0000       5.0000    
     3 'Normalizat'    .90275       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96551       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+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=   7983.379     FROM MIGRAD    STATUS=CONVERGED    148 CALLS      291 TOTAL
                     EDM=   .51E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54743E-01    .98598E-01    .92821E-02   -.53698E-02
   2  alpha         5.0000        3.6152        .50000    ** at limit **
   3  Normalizat    .87507        .19758        .33308E-03   -.72359E-05
   4  Prefactor     .97198        .99317E-01    .16406E-03   -.26817E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0547431
  alpha      = 5
  Normalizat = 0.875071
  Prefactor  = 0.971985
 **********
 **   18 **HESSE 
 **********

 FCN=   7983.379     FROM HESSE     STATUS=OK            31 CALLS      322 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54743E-01    .11693        .36805E-03   -1.5755    
   2  alpha         5.0000        3.7270        .12357        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .87507        .20025        .13323E-04   -.97342    
   4  Prefactor     .97198        .99589E-01    .65624E-05   -.93669    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16088e-08
Minuit parameter uncertainties:
  1  0.116931
  2  6.78096e-07
  3  0.200417
  4  0.0996073
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277725': 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) = 7983.37880159
delta logL = 0.120895609934

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  5.474e-02  1.169e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  5.000e+00  6.781e-07  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.720e-01  9.961e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  8.751e-01  2.004e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 62.463 -3.986

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/277725/cmap_HighResolution_242179201_242438401_4FGL_J0409.8-0359_daily_bin11.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='1.98e-08', time_completed='2021-08-20 06:23:19.362783', job_id='277725', GAL2='0.97', fit_tolerance='1e-08', EG2='0.88', EG='0.90', time_epoch_completed='1629465799.36', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='1.21e-01', ts2='0.26', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='11' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:23:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 277725: <4FGL_J0409.8-0359_daily_bin11> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin11> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 06:10:24 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:10:26 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 06:10:26 2021
Terminated at Fri Aug 20 06:23:20 2021
Results reported at Fri Aug 20 06:23:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin11 62.4629 -3.9865 242179201 242438401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0409.8-0359 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   652.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             288.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   773 sec.
    Turnaround time :                            776 sec.

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

