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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin13
RA = 62.4629, Dec = -3.9865
tmin = 242697601, tmax = 242956801
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='277728', job_status='RUN', time_executed='2021-08-20 06:12:42.805357', time_epoch_executed='1629465162.81' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='13'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277728

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277728/ft1_4FGL_J0409.8-0359_daily_bin13.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277728/ft1_4FGL_J0409.8-0359_daily_bin13.fits outfile=/scratch/kocevski/277728/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin13.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=242697601.0 tmax=242956801.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.10
user 1.26
sys 0.82

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277728/ft1_filtered_4FGL_J0409.8-0359_daily_bin13.fits" evtable="EVENTS" scfile=/scratch/kocevski/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits sctable="SC_DATA" outfile=/scratch/kocevski/277728/ltcube_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.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/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits
.....................!
real 13.59
user 12.13
sys 1.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277728/ft1_filtered_4FGL_J0409.8-0359_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits sctable="SC_DATA" expcube=/scratch/kocevski/277728/ltcube_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.fits outfile=/scratch/kocevski/277728/expmap_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.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/277728/ltcube_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.fits
.....................!
real 191.40
user 185.39
sys 5.69

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/277728/ft1_filtered_4FGL_J0409.8-0359_daily_bin13.fits scfile=/scratch/kocevski/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits outfile=/scratch/kocevski/277728/cmap_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.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.17
user 0.37
sys 0.78

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277728/ft1_filtered_4FGL_J0409.8-0359_daily_bin13.fits scfile=/scratch/kocevski/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits outfile=/scratch/kocevski/277728/cmap_HighResolution_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.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.09
user 0.37
sys 0.71

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277728/ft1_filtered_4FGL_J0409.8-0359_daily_bin13.fits evtable="EVENTS" scfile=/scratch/kocevski/277728/ft2_4FGL_J0409.8-0359_daily_bin13.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277728/Model_4FGL_J0409.8-0359_daily_bin13.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/277728/ft1_filtered_4FGL_J0409.8-0359_daily_bin13.fits.....................!
real 133.81
user 131.50
sys 2.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.917       1.0000         .10000E-03   10000.    
     2 'norm      '    2.4019       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.4689       1.0000         .10000E-03   10000.    
     5 'Prefactor '    32.672       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    9.2785       1.0000         .10000E-03   10000.    
     8 'norm      '    4.8766       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.898       1.0000         .10000E-03   10000.    
    11 'norm      '    2.5592       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.1074       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    6.0958       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.7887       1.0000         .10000E-03   10000.    
    18 'norm      '    3.4079       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0647       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92456       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=   10488.67     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1788 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.917        12.902        .11027E-06   -.14279E-05
   2  norm          2.4019        1.2208       -.31549E-07   -.34749E-03
   3  Prefactor     .10000E-03    15.850        .75995E-07** at limit **
   4  Prefactor     2.4690        3.8752       -.97107E-06   -.55906E-03
   5  Prefactor     32.669        16.265       -.18840E-05    .59229E-05
   6  norm          .10000E-03    3.6826       -.24702E-07** at limit **
   7  Prefactor     9.2734        29.648       -.12173E-04   -.12544E-04
   8  norm          4.8768        4.0177       -.88485E-07   -.38249E-03
   9  norm          .10000E-03    6.9706       -.30257E-05** at limit **
  10  norm          19.894        20.643       -.36655E-05   -.18665E-04
  11  norm          2.5593        1.2110       -.54812E-06   -.12106E-02
  12  Prefactor     4.1073        2.0329       -.84385E-06   -.77758E-03
  13  Prefactor     .10000E-03    11.781        .32555E-06** at limit **
  14  Prefactor     6.1109        57.889        .52382E-04    .19155E-04
  15  Prefactor     .10000E-03    6.6722        .25493E-05** at limit **
  16  norm          .10000E-03    .51448        .47609E-08** at limit **
  17  Prefactor     8.7890        11.693        .26028E-07   -.12657E-04
  18  norm          3.4080        1.9744       -.61485E-06   -.94001E-03
  19  Normalizat    1.0646        .16277       -.13962E-05    .72283E-04
  20  Prefactor     .92461        .79846E-01    .11210E-05   -.28754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.9173
  norm       = 2.40191
  Prefactor  = 0.0001
  Prefactor  = 2.46903
  Prefactor  = 32.6687
  norm       = 0.0001
  Prefactor  = 9.27341
  norm       = 4.87677
  norm       = 0.0001
  norm       = 19.8943
  norm       = 2.55926
  Prefactor  = 4.10728
  Prefactor  = 0.0001
  Prefactor  = 6.1109
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.78902
  norm       = 3.40803
  Normalizat = 1.06461
  Prefactor  = 0.924611
 **********
 **   18 **HESSE 
 **********

 FCN=   10488.67     FROM HESSE     STATUS=OK           295 CALLS     2083 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.917        12.928        .10737E-03   -1.4962    
   2  norm          2.4019        1.2196        .77202E-04   -1.5398    
   3  Prefactor     .10000E-03    15.868        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.4690        3.8771        .24523E-03   -1.5394    
   5  Prefactor     32.669        16.275        .70103E-04   -1.4564    
   6  norm          .10000E-03    3.6830        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     9.2734        29.532        .13157E-03   -1.5099    
   8  norm          4.8768        4.0076        .17430E-03   -1.5266    
   9  norm          .10000E-03    7.0683        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.894        20.600        .89790E-04   -1.4816    
  11  norm          2.5593        1.2025        .67405E-04   -1.5388    
  12  Prefactor     4.1073        2.0202        .84580E-04   -1.5303    
  13  Prefactor     .10000E-03    11.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     6.1109        57.430        .16261E-03   -1.5214    
  15  Prefactor     .10000E-03    6.9262        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    .52028        .71716E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.7890        11.694        .13521E-03   -1.5115    
  18  norm          3.4080        1.9759        .10381E-03   -1.5339    
  19  Normalizat    1.0646        .18146        .33295E-03   -.90896    
  20  Prefactor     .92461        .89527E-01    .17675E-03   -.95286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17016e-10
Minuit parameter uncertainties:
  1  12.9308
  2  1.2196
  3  1.5965e-05
  4  3.87747
  5  16.2774
  6  1.81321e-07
  7  29.5782
  8  4.00778
  9  3.78329e-06
  10  20.607
  11  1.20251
  12  2.02022
  13  1.38417e-05
  14  37.5144
  15  7.97459e-05
  16  3.06489e-07
  17  11.6968
  18  1.97597
  19  0.181564
  20  0.0895417
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  1.813e-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.246e-01  8.954e-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:  1.065e+00  1.816e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.12e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277728/likelihoodResults_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.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) = 10488.6663425
delta logL = -0.00126913001623

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10488.6650734
delta logL = -1.80862116395e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6761       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92461       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=   10488.67     FROM MIGRAD    STATUS=CONVERGED     76 CALLS      214 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10004E-03    4.0363        .18142E-02** at limit **
   2  alpha         1.6370        4.1723        .17763E-01    .75418E-06
   3  Normalizat    1.0646        .17373        .33295E-03   -.61896E-03
   4  Prefactor     .92461        .87188E-01    .17675E-03   -.22537E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100039
  alpha      = 1.63701
  Normalizat = 1.0646
  Prefactor  = 0.924614
 **********
 **   18 **HESSE 
 **********

 FCN=   10488.67     FROM HESSE     STATUS=OK            23 CALLS      237 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10004E-03    3.6950        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6370        4.1813        .35527E-02   -.35245    
   3  Normalizat    1.0646        .17381        .66590E-04   -.90897    
   4  Prefactor     .92461        .87228E-01    .35351E-04   -.95286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10603e-08
Minuit parameter uncertainties:
  1  0.000754963
  2  319.863
  3  0.173898
  4  0.087241
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277728': 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) = 10488.6650734
delta logL = 1.52340362547e-08

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  7.550e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.637e+00  3.199e+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.246e-01  8.724e-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:  1.065e+00  1.739e-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/277728/cmap_HighResolution_242697601_242956801_4FGL_J0409.8-0359_daily_bin13.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.12e-05', job_status='DONE', photon_flux_upper_limit='1.55e-08', time_completed='2021-08-20 06:24:34.966969', job_id='277728', GAL2='0.92', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1629465874.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='1.52e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='13' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:24:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 277728: <4FGL_J0409.8-0359_daily_bin13> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin13> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 06:10:25 2021
Job was executed on host(s) <bullet0282>, 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:24:35 2021
Results reported at Fri Aug 20 06:24:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin13 62.4629 -3.9865 242697601 242956801 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 :                                   721.20 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             324.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   849 sec.
    Turnaround time :                            850 sec.

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

