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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin1490
RA = 62.4629, Dec = -3.9865
tmin = 625536001, tmax = 625795201
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='285546', job_status='RUN', time_executed='2021-08-20 06:38:58.351282', time_epoch_executed='1629466738.35' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='1490'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/285546

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/285546/ft1_4FGL_J0409.8-0359_daily_bin1490.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/285546/ft1_4FGL_J0409.8-0359_daily_bin1490.fits outfile=/scratch/kocevski/285546/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin1490.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=625536001.0 tmax=625795201.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.97
user 3.39
sys 0.55

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/285546/ft1_filtered_4FGL_J0409.8-0359_daily_bin1490.fits" evtable="EVENTS" scfile=/scratch/kocevski/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits sctable="SC_DATA" outfile=/scratch/kocevski/285546/ltcube_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.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/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits
.....................!
real 12.51
user 11.73
sys 0.74

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/285546/ft1_filtered_4FGL_J0409.8-0359_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits sctable="SC_DATA" expcube=/scratch/kocevski/285546/ltcube_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.fits outfile=/scratch/kocevski/285546/expmap_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.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/285546/ltcube_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.fits
.....................!
real 191.01
user 185.18
sys 5.31

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/285546/ft1_filtered_4FGL_J0409.8-0359_daily_bin1490.fits scfile=/scratch/kocevski/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits outfile=/scratch/kocevski/285546/cmap_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.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.88
user 0.37
sys 0.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/285546/ft1_filtered_4FGL_J0409.8-0359_daily_bin1490.fits scfile=/scratch/kocevski/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits outfile=/scratch/kocevski/285546/cmap_HighResolution_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.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.91
user 0.38
sys 0.50

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/285546/ft1_filtered_4FGL_J0409.8-0359_daily_bin1490.fits evtable="EVENTS" scfile=/scratch/kocevski/285546/ft2_4FGL_J0409.8-0359_daily_bin1490.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/285546/Model_4FGL_J0409.8-0359_daily_bin1490.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/285546/ft1_filtered_4FGL_J0409.8-0359_daily_bin1490.fits.....................!
real 105.60
user 103.68
sys 1.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    8.1529       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .19375E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10659E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.8947       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.2023       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11238E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    5.4028       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10643       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .93800       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0293       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=   8003.710     FROM MIGRAD    STATUS=CONVERGED    423 CALLS     2063 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     8.1603        17.079        .17055E-06   -.62492E-05
   2  norm          .10000E-03    .41206       -.50354E-07** at limit **
   3  Prefactor     .10000E-03    17.835        .29586E-06** at limit **
   4  Prefactor     2.9657        5.8240       -.71712E-06    .77783E-05
   5  Prefactor     .10000E-03    17.931        .77020E-06** at limit **
   6  norm          .10000E-03    10.492        .94635E-06** at limit **
   7  Prefactor     .10000E-03    12.072       -.55746E-06** at limit **
   8  norm          .10002E-03    17.670        .10790E-04** at limit **
   9  norm          .10000E-03    4.9083       -.38218E-07** at limit **
  10  norm          .10000E-03    34.259        .40918E-05** at limit **
  11  norm          2.8935        1.2565        .12891E-06    .12842E-02
  12  Prefactor     .10000E-03    .63558        .14703E-06** at limit **
  13  Prefactor     3.1890        64.518       -.44754E-05   -.10378E-04
  14  Prefactor     .10000E-03    40.691       -.29957E-05** at limit **
  15  Prefactor     .10000E-03    15.294       -.64239E-06** at limit **
  16  norm          5.4002        3.6485       -.47827E-06    .18735E-03
  17  Prefactor     .10000E-03    5.4448        .38672E-07** at limit **
  18  norm          .12493        4.3354        .52304E-05    .47362E-03
  19  Normalizat    .93771        .18310        .57867E-06    .22498E-03
  20  Prefactor     1.0293        .89232E-01    .47015E-07    .37711E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 8.16029
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.96571
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100021
  norm       = 0.0001
  norm       = 0.0001
  norm       = 2.89351
  Prefactor  = 0.0001
  Prefactor  = 3.18898
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 5.40024
  Prefactor  = 0.0001
  norm       = 0.124935
  Normalizat = 0.937709
  Prefactor  = 1.02931
 **********
 **   18 **HESSE 
 **********

 FCN=   8003.710     FROM HESSE     STATUS=OK           291 CALLS     2354 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     8.1603        17.157        .14041E-03   -1.5137    
   2  norm          .10000E-03    .42304        .11212E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    17.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.9657        5.8233        .23589E-03   -1.5364    
   5  Prefactor     .10000E-03    18.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    10.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    12.078        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10002E-03    29.056        .24019E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    4.9598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    34.723        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.8935        1.2344        .61911E-04   -1.5368    
  12  Prefactor     .10000E-03    .64720        .69451E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.1890        65.067        .22642E-03   -1.5351    
  14  Prefactor     .10000E-03    40.585        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.803        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          5.4002        3.6601        .56676E-03   -1.5243    
  17  Prefactor     .10000E-03    5.4491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .12493        8.7085        .15525E-02   -1.5637    
  19  Normalizat    .93771        .20406        .34096E-03   -.95147    
  20  Prefactor     1.0293        .99801E-01    .16562E-03   -.91759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.80036e-09
Minuit parameter uncertainties:
  1  17.1669
  2  2.49791e-06
  3  1.96267e-05
  4  5.82441
  5  4.2688e-06
  6  7.39128e-05
  7  4.23007e-05
  8  0.00155572
  9  1.32582e-05
  10  4.39433e-05
  11  1.23437
  12  2.17509e-06
  13  28.8451
  14  0.000467155
  15  9.03744e-05
  16  3.66023
  17  6.07902e-06
  18  2.08562
  19  0.204227
  20  0.0998194
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  7.391e-05  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.029e+00  9.982e-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:  9.377e-01  2.042e-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: 2.86e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/285546/likelihoodResults_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8003.71060464
delta logL = -0.000453911969089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8003.71015066
delta logL = 7.01202225173e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6970       1.0000          .0000       5.0000    
     3 'Normalizat'    .93771       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0293       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 TERMINATED WITHOUT CONVERGENCE.

 FCN=   8003.710     FROM MIGRAD    STATUS=FAILED       131 CALLS      272 TOTAL
                     EDM=   .24E-02    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    9299.7         .0000    ** at limit **
   2  alpha         3.2598        1.5473         .0000       -.20454E-04
   3  Normalizat    .93771        9.4485         .0000       -.10276E-04
   4  Prefactor     1.0293        6.5009         .0000        .40676E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8003.710     FROM SIMPLEX   STATUS=PROGRESS     176 CALLS      448 TOTAL
                     EDM=   .51E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .82254E-02    9299.7        .47982E-02   -.49444E-05
   2  alpha         3.2598        1.5473        .37259E-06   -.20454E-04
   3  Normalizat    .93769        9.4485        .49872E-05   -.10276E-04
   4  Prefactor     1.0293        6.5009        .71941E-06    .40676E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8003.336     FROM MIGRAD    STATUS=CONVERGED    209 CALLS      657 TOTAL
                     EDM=   .43E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10452        .13428        .34914E-03    .73957E-03
   2  alpha         5.0000        1.1446        .74781E-01** at limit **
   3  Normalizat    .88831        .19977        .13638E-04    .42513E-04
   4  Prefactor     1.0401        .98687E-01    .33125E-04    .89509E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.104516
  alpha      = 5
  Normalizat = 0.888309
  Prefactor  = 1.04012
 **********
 **   18 **HESSE 
 **********

 FCN=   8003.336     FROM HESSE     STATUS=OK            25 CALLS      682 TOTAL
                     EDM=   .42E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10452        .13250        .13966E-04   -1.5643    
   2  alpha         5.0000        1.1375        .14956E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .88831        .19949        .27276E-05   -.96872    
   4  Prefactor     1.0401        .98656E-01    .66250E-05   -.91404    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.18754e-11
Minuit parameter uncertainties:
  1  0.132501
  2  1.53907e-05
  3  0.199656
  4  0.0986731
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/285546': 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) = 8003.33623324
delta logL = 0.373917488831

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.045e-01  1.325e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  5.000e+00  1.539e-05  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.040e+00  9.867e-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.883e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/285546/cmap_HighResolution_625536001_625795201_4FGL_J0409.8-0359_daily_bin1490.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.90e-05', job_status='DONE', photon_flux_upper_limit='2.86e-08', time_completed='2021-08-20 06:50:20.534539', job_id='285546', GAL2='1.04', fit_tolerance='1e-08', EG2='0.89', EG='0.94', time_epoch_completed='1629467420.53', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.03', dlogl='3.74e-01', ts2='0.80', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='1490' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:50:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 285546: <4FGL_J0409.8-0359_daily_bin1490> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin1490> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 06:35:30 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:35:31 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:35:31 2021
Terminated at Fri Aug 20 06:50:21 2021
Results reported at Fri Aug 20 06:50:21 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin1490 62.4629 -3.9865 625536001 625795201 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 :                                   675.47 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             314.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   889 sec.
    Turnaround time :                            891 sec.

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

