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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin23
RA = 62.4629, Dec = -3.9865
tmin = 245289601, tmax = 245548801
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='277743', job_status='RUN', time_executed='2021-08-20 06:13:01.768554', time_epoch_executed='1629465181.77' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='23'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277743

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277743/ft1_4FGL_J0409.8-0359_daily_bin23.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277743/ft1_4FGL_J0409.8-0359_daily_bin23.fits outfile=/scratch/kocevski/277743/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin23.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=245289601.0 tmax=245548801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.32
user 1.28
sys 3.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277743/ft1_filtered_4FGL_J0409.8-0359_daily_bin23.fits" evtable="EVENTS" scfile=/scratch/kocevski/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits sctable="SC_DATA" outfile=/scratch/kocevski/277743/ltcube_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.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/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits
.....................!
real 16.27
user 12.74
sys 3.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277743/ft1_filtered_4FGL_J0409.8-0359_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits sctable="SC_DATA" expcube=/scratch/kocevski/277743/ltcube_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.fits outfile=/scratch/kocevski/277743/expmap_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.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/277743/ltcube_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.fits
.....................!
real 195.30
user 187.15
sys 7.83

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/277743/ft1_filtered_4FGL_J0409.8-0359_daily_bin23.fits scfile=/scratch/kocevski/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits outfile=/scratch/kocevski/277743/cmap_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.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 3.30
user 0.37
sys 2.91

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277743/ft1_filtered_4FGL_J0409.8-0359_daily_bin23.fits scfile=/scratch/kocevski/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits outfile=/scratch/kocevski/277743/cmap_HighResolution_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.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 3.32
user 0.37
sys 2.93

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277743/ft1_filtered_4FGL_J0409.8-0359_daily_bin23.fits evtable="EVENTS" scfile=/scratch/kocevski/277743/ft2_4FGL_J0409.8-0359_daily_bin23.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277743/Model_4FGL_J0409.8-0359_daily_bin23.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/277743/ft1_filtered_4FGL_J0409.8-0359_daily_bin23.fits.....................!
real 136.03
user 130.95
sys 4.85

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .43497       1.0000         .10000E-03   10000.    
     2 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    41.355       1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.9134       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    7.0706       1.0000         .10000E-03   10000.    
     7 'Prefactor '    29.132       1.0000         .10000E-03   10000.    
     8 'norm      '    .90252       1.0000         .10000E-03   10000.    
     9 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10521E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8885       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .99581E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.0507       1.0000         .10000E-03   10000.    
    14 'Prefactor '    24.562       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.5873       1.0000         .10000E-03   10000.    
    16 'norm      '    .78696E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.425       1.0000         .10000E-03   10000.    
    18 'norm      '    2.0571       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .83107       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.1945       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=   10313.68     FROM MIGRAD    STATUS=CONVERGED    441 CALLS     2122 TOTAL
                     EDM=   .38E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .32012        11.230        .33733E-06   -.51067E-04
   2  norm          .10000E-03    .36365        .71967E-07** at limit **
   3  Prefactor     41.327        43.781       -.39738E-05   -.21985E-03
   4  Prefactor     6.9124        5.8974        .13644E-05   -.46393E-03
   5  Prefactor     .10000E-03    4.6565       -.11585E-06** at limit **
   6  norm          7.0702        7.9168       -.37432E-06   -.87919E-04
   7  Prefactor     29.126        21.918       -.95954E-07   -.75590E-04
   8  norm          .90215        4.1649        .29815E-05   -.29948E-03
   9  norm          .10000E-03    2.6079       -.56105E-08** at limit **
  10  norm          .10000E-03    46.366       -.23912E-06** at limit **
  11  norm          1.8884        1.0004       -.67573E-07   -.10537E-02
  12  Prefactor     .96524E-01    .84322        .43287E-06   -.72725E-03
  13  Prefactor     5.0795        20.715        .46389E-06   -.16759E-04
  14  Prefactor     24.544        35.385       -.26758E-05   -.26452E-03
  15  Prefactor     6.5818        8.6494       -.50632E-06   -.29397E-03
  16  norm          .63548E-01    1.2098       -.26957E-07    .56164E-04
  17  Prefactor     15.420        17.493        .21278E-07   -.91513E-05
  18  norm          2.0568        1.9643        .24764E-06   -.19443E-03
  19  Normalizat    .83128        .17976       -.10933E-05   -.13339E-03
  20  Prefactor     1.1946        .89398E-01    .19241E-06   -.35415E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.320122
  norm       = 0.0001
  Prefactor  = 41.3272
  Prefactor  = 6.91236
  Prefactor  = 0.0001
  norm       = 7.07018
  Prefactor  = 29.1265
  norm       = 0.902155
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.88836
  Prefactor  = 0.096524
  Prefactor  = 5.07949
  Prefactor  = 24.5443
  Prefactor  = 6.58184
  norm       = 0.0635481
  Prefactor  = 15.4204
  norm       = 2.05681
  Normalizat = 0.831278
  Prefactor  = 1.19456
 **********
 **   18 **HESSE 
 **********

 FCN=   10313.68     FROM HESSE     STATUS=OK           307 CALLS     2429 TOTAL
                     EDM=   .79E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .32012        12.890        .10045       -1.5595    
   2  norm          .10000E-03    .37689        .11952E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     41.327        45.676        .62334E-04   -1.4421    
   4  Prefactor     6.9124        6.0091        .76293E-03   -1.5182    
   5  Prefactor     .10000E-03    4.6594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          7.0702        7.9224        .15086E-03   -1.5176    
   7  Prefactor     29.126        21.902        .74229E-04   -1.4628    
   8  norm          .90215        4.3356        .39338E-03   -1.5518    
   9  norm          .10000E-03    2.6223        .16013E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    47.895        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8884        .98924        .66591E-04   -1.5433    
  12  Prefactor     .96524E-01    2.1641        .16590E-02   -1.5646    
  13  Prefactor     5.0795        30.306        .17892E-03   -1.5257    
  14  Prefactor     24.544        35.415        .80826E-04   -1.4717    
  15  Prefactor     6.5818        8.6825        .15636E-03   -1.5195    
  16  norm          .63548E-01    43.862        .18503E-02   -1.5658    
  17  Prefactor     15.420        17.501        .10198E-03   -1.4922    
  18  norm          2.0568        1.9513        .13141E-03   -1.5421    
  19  Normalizat    .83128        .19735        .38400E-03   -.98919    
  20  Prefactor     1.1946        .98601E-01    .16969E-03   -.86499    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.88348e-08
Minuit parameter uncertainties:
  1  4.06307
  2  2.23223e-08
  3  45.7143
  4  6.00958
  5  1.04417e-05
  6  7.92353
  7  21.908
  8  3.95567
  9  5.19128e-07
  10  1.08051e-05
  11  0.989251
  12  0.913655
  13  24.833
  14  35.445
  15  8.68421
  16  3.33889
  17  17.507
  18  1.95139
  19  0.197524
  20  0.0986158
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  7.070e+00  7.924e+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

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.195e+00  9.862e-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.313e-01  1.975e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.53
Ra Dec: 62.463 -3.986
Photon Index (Fixed Index): 1.68 +/- 0.00
Photon Flux (Fixed Index): 5.08e-09 +/- 5.69e-09
Energy Flux (Fixed Index): 6.93e-06 +/- 7.77e-06

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

Saving results to:
/scratch/kocevski/277743/likelihoodResults_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.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) = 10313.6747068
delta logL = 0.000848536434205

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10313.6747016
delta logL = 0.000853680801811

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.0702       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6237       1.0000          .0000       5.0000    
     3 'Normalizat'    .83146       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1945       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.

 FCN=   10313.67     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      199 TOTAL
                     EDM=   .85E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.0775        10.053        .37717E-02   -.43652E-04
   2  alpha         1.6238        1.4686        .44917       -.14523E-04
   3  Normalizat    .83140        .16642        .86700E-01    .20536E-05
   4  Prefactor     1.1946        .86554E-01    .34762E-01   -.77364E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 7.07752
  alpha      = 1.62383
  Normalizat = 0.831401
  Prefactor  = 1.19458
 **********
 **   18 **HESSE 
 **********

 FCN=   10313.67     FROM HESSE     STATUS=OK            33 CALLS      232 TOTAL
                     EDM=   .47E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.0775        7.9445        .15087E-03   -1.5176    
   2  alpha         1.6238        1.2229        .52627E-01   -.35807    
   3  Normalizat    .83140        .17937        .38397E-03   -.98914    
   4  Prefactor     1.1946        .93988E-01    .16969E-03   -.86498    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.7216e-12
Minuit parameter uncertainties:
  1  7.94568
  2  1.28675
  3  0.179503
  4  0.0940008
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277743': 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) = 10313.6747008
delta logL = 0.000854532230733

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  7.078e+00  7.946e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.624e+00  1.287e+00  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:  1.195e+00  9.400e-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.314e-01  1.795e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.53
Ra Dec: 62.463 -3.986
Photon Index (Free Index): 1.62 +/- 1.29
Photon Flux (Free Index): 4.86e-09 +/- 7.29e-09
Energy Flux (Free Index): 7.16e-06 +/- 1.02e-05

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/277743/cmap_HighResolution_245289601_245548801_4FGL_J0409.8-0359_daily_bin23.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.46e-05', comment='SUCCESS', photon_flux='5.08e-09', energy_flux2='7.16e-06', photon_flux_error='5.69e-09', dlogl='8.55e-04', energy_flux='6.93e-06', photon_flux2='4.86e-09', job_status='DONE', time_completed='2021-08-20 06:26:03.455378', photon_index_error2='1.29', photon_index2='1.62', ts='2.53', fit_tolerance='1e-08', GAL='1.19', photon_index_error='0.00', photon_flux_upper_limit='2.54e-08', energy_flux_error2='1.02e-05', EG='0.83', time_epoch_completed='1629465963.46', return_code='0', job_id='277743', GAL2='1.19', EG2='0.83', return_code2='0', energy_flux_error='7.77e-06', photon_flux_error2='7.29e-09', ts2='2.53', photon_index='1.68' WHERE bin_id='23' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:26:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0297>
Subject: Job 277743: <4FGL_J0409.8-0359_daily_bin23> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin23> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 06:10:26 2021
Job was executed on host(s) <bullet0297>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:10:27 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:27 2021
Terminated at Fri Aug 20 06:26:04 2021
Results reported at Fri Aug 20 06:26:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin23 62.4629 -3.9865 245289601 245548801 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 :                                   823.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            938 sec.

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

