/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 219 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 = 7431
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin352
RA = 62.4629, Dec = -3.9865
tmin = 330566401, tmax = 330825601
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='279607', job_status='RUN', time_executed='2021-08-20 06:19:17.667099', time_epoch_executed='1629465557.67' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='352'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279607

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279607/ft1_4FGL_J0409.8-0359_daily_bin352.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279607/ft1_4FGL_J0409.8-0359_daily_bin352.fits outfile=/scratch/kocevski/279607/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin352.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=330566401.0 tmax=330825601.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.99
user 3.77
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.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/279607/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin352.fits evtable="EVENTS" outfile="/scratch/kocevski/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.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.58
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits" evtable="EVENTS" scfile=/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits sctable="SC_DATA" outfile=/scratch/kocevski/279607/ltcube_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.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/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits
.....................!
real 14.94
user 14.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits sctable="SC_DATA" expcube=/scratch/kocevski/279607/ltcube_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.fits outfile=/scratch/kocevski/279607/expmap_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.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/279607/ltcube_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.fits
.....................!
real 190.32
user 185.17
sys 4.76

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/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits scfile=/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits outfile=/scratch/kocevski/279607/cmap_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.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 0.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits scfile=/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits outfile=/scratch/kocevski/279607/cmap_HighResolution_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.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 0.54
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits evtable="EVENTS" scfile=/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279607/Model_4FGL_J0409.8-0359_daily_bin352.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/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits.....................!
real 93.49
user 92.08
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits', '/scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits', expMap='/scratch/kocevski/279607/expmap_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.fits', expCube='/scratch/kocevski/279607/ltcube_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/279607/Model_4FGL_J0409.8-0359_daily_bin352.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/279607/ft1_filtered_4FGL_J0409.8-0359_daily_bin352.fits
Spacecraft file(s): /scratch/kocevski/279607/ft2_4FGL_J0409.8-0359_daily_bin352.fits
Exposure map: /scratch/kocevski/279607/expmap_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.fits
Exposure cube: /scratch/kocevski/279607/ltcube_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/279607/Model_4FGL_J0409.8-0359_daily_bin352.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) = 6861.43048927

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.9943       1.0000         .10000E-03   10000.    
     3 'Prefactor '    14.841       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4589       1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.4870       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    4.7398       1.0000         .10000E-03   10000.    
    10 'norm      '    .13064E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1876       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.0033       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.120       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.0268       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.727       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .68397       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .98863       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=   6861.429     FROM MIGRAD    STATUS=CONVERGED    415 CALLS     2014 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.9071        .34260E-07** at limit **
   2  norm          4.9945        1.9039        .51572E-07    .48542E-05
   3  Prefactor     14.848        32.439        .57607E-06    .14455E-03
   4  Prefactor     2.4591        6.4047        .63672E-05   -.41400E-03
   5  Prefactor     3.4845        26.245       -.47098E-07    .16708E-04
   6  norm          .10000E-03    4.7177        .29237E-08** at limit **
   7  Prefactor     .10000E-03    21.115        .13167E-07** at limit **
   8  norm          .10000E-03    1.1266       -.18838E-08** at limit **
   9  norm          4.7407        8.7624        .23751E-06   -.10168E-03
  10  norm          .10000E-03    59.625       -.17380E-05** at limit **
  11  norm          1.1875        .93959        .18106E-07    .66648E-04
  12  Prefactor     3.0006        1.6666        .83073E-07    .51084E-03
  13  Prefactor     34.084        27.564        .24536E-05   -.53294E-03
  14  Prefactor     .10000E-03    24.398       -.31723E-06** at limit **
  15  Prefactor     .10000E-03    5.0010       -.85501E-08** at limit **
  16  norm          1.0290        2.6263       -.22265E-05   -.17706E-02
  17  Prefactor     15.729        20.768        .80811E-07   -.74937E-05
  18  norm          .10000E-03    .51740        .17076E-09** at limit **
  19  Normalizat    .68405        .19468       -.33729E-05    .17829E-03
  20  Prefactor     .98854        .95282E-01    .10209E-05    .45650E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.99454
  Prefactor  = 14.8476
  Prefactor  = 2.45911
  Prefactor  = 3.48454
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 4.74073
  norm       = 0.0001
  norm       = 1.18748
  Prefactor  = 3.00057
  Prefactor  = 34.0838
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.02897
  Prefactor  = 15.7289
  norm       = 0.0001
  Normalizat = 0.684051
  Prefactor  = 0.988543
 **********
 **   18 **HESSE 
 **********

 FCN=   6861.429     FROM HESSE     STATUS=OK           289 CALLS     2303 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.9132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.9945        1.9030        .66720E-04   -1.5261    
   3  Prefactor     14.848        32.436        .10397E-03   -1.4937    
   4  Prefactor     2.4591        6.4581        .13041E-02   -1.5394    
   5  Prefactor     3.4845        26.335        .21653E-03   -1.5335    
   6  norm          .10000E-03    4.7181        .17572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.178        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    1.1280        .85848E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          4.7407        8.7661        .18482E-03   -1.5272    
  10  norm          .10000E-03    61.070        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1875        .91988        .67710E-04   -1.5490    
  12  Prefactor     3.0006        1.6590        .75508E-04   -1.5362    
  13  Prefactor     34.084        27.668        .68603E-04   -1.4540    
  14  Prefactor     .10000E-03    24.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    5.0415        .18077E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.0290        2.7018        .19230E-03   -1.5505    
  17  Prefactor     15.729        20.778        .10099E-03   -1.4915    
  18  norm          .10000E-03    .52079        .58167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .68405        .21345        .36988E-03   -1.0453    
  20  Prefactor     .98854        .10693        .15947E-03   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.63422e-09
Minuit parameter uncertainties:
  1  3.79332e-06
  2  1.903
  3  32.4742
  4  6.45996
  5  19.1703
  6  4.61107e-07
  7  5.83092e-05
  8  6.22323e-07
  9  8.76845
  10  0.00025388
  11  0.919888
  12  1.65906
  13  27.6787
  14  0.000186923
  15  6.70758e-07
  16  2.70211
  17  20.7874
  18  3.18308e-07
  19  0.213706
  20  0.106949
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  4.611e-07  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.885e-01  1.069e-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:  6.841e-01  2.137e-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.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.71e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279607/likelihoodResults_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.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) = 6861.43011686
delta logL = -0.00100078376636

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6861.42911608
delta logL = -7.72161001805e-10

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6767       1.0000          .0000       5.0000    
     3 'Normalizat'    .68406       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98854       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=   6861.429     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      229 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    1078.9        .17572E-02** at limit **
   2  alpha         1.6553        2.7237        .17761        .30897E-06
   3  Normalizat    .68405        .16044        .36988E-03    .46986E-03
   4  Prefactor     .98854        .82644E-01    .15947E-03    .73423E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100011
  alpha      = 1.65535
  Normalizat = 0.684054
  Prefactor  = 0.988542
 **********
 **   18 **HESSE 
 **********

 FCN=   6861.429     FROM HESSE     STATUS=OK            23 CALLS      252 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    4.7238        .35144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6553        3.2594        .71045E-02   -.34464    
   3  Normalizat    .68405        .19947        .14795E-04   -1.0453    
   4  Prefactor     .98854        .10278        .31894E-04   -.93112    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31575e-09
Minuit parameter uncertainties:
  1  0.000459397
  2  388.058
  3  0.19968
  4  0.102801
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279607': 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) = 6861.42911607
delta logL = 3.10592440655e-09

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  4.594e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.655e+00  3.881e+02  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.885e-01  1.028e-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:  6.841e-01  1.997e-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 -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/279607/cmap_HighResolution_330566401_330825601_4FGL_J0409.8-0359_daily_bin352.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.71e-05', job_status='DONE', photon_flux_upper_limit='1.99e-08', time_completed='2021-08-20 06:29:08.461720', job_id='279607', GAL2='0.99', fit_tolerance='1e-08', EG2='0.68', EG='0.68', time_epoch_completed='1629466148.46', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='3.11e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='352' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:29:08 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 279607: <4FGL_J0409.8-0359_daily_bin352> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin352> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 06:15:28 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:15:29 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:15:29 2021
Terminated at Fri Aug 20 06:29:09 2021
Results reported at Fri Aug 20 06:29:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin352 62.4629 -3.9865 330566401 330825601 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 :                                   587.31 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   819 sec.
    Turnaround time :                            821 sec.

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

