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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin1476
RA = 62.4629, Dec = -3.9865
tmin = 621907201, tmax = 622166401
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='287040', job_status='RUN', time_executed='2021-08-20 06:44:09.928975', time_epoch_executed='1629467049.93' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='1476'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/287040

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/287040/ft1_4FGL_J0409.8-0359_daily_bin1476.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/287040/ft1_4FGL_J0409.8-0359_daily_bin1476.fits outfile=/scratch/kocevski/287040/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin1476.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=621907201.0 tmax=622166401.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.01
user 3.27
sys 0.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/287040/ft1_filtered_4FGL_J0409.8-0359_daily_bin1476.fits" evtable="EVENTS" scfile=/scratch/kocevski/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits sctable="SC_DATA" outfile=/scratch/kocevski/287040/ltcube_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.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/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits
.....................!
real 11.01
user 10.06
sys 0.89

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/287040/ft1_filtered_4FGL_J0409.8-0359_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits sctable="SC_DATA" expcube=/scratch/kocevski/287040/ltcube_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.fits outfile=/scratch/kocevski/287040/expmap_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.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/287040/ltcube_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.fits
.....................!
real 192.05
user 185.62
sys 5.63

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/287040/ft1_filtered_4FGL_J0409.8-0359_daily_bin1476.fits scfile=/scratch/kocevski/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits outfile=/scratch/kocevski/287040/cmap_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.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.01
user 0.37
sys 0.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/287040/ft1_filtered_4FGL_J0409.8-0359_daily_bin1476.fits scfile=/scratch/kocevski/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits outfile=/scratch/kocevski/287040/cmap_HighResolution_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.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.04
user 0.36
sys 0.67

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/287040/ft1_filtered_4FGL_J0409.8-0359_daily_bin1476.fits evtable="EVENTS" scfile=/scratch/kocevski/287040/ft2_4FGL_J0409.8-0359_daily_bin1476.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/287040/Model_4FGL_J0409.8-0359_daily_bin1476.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/287040/ft1_filtered_4FGL_J0409.8-0359_daily_bin1476.fits.....................!
real 84.61
user 82.46
sys 1.84

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9857       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .38668E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.4879       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.656       1.0000         .10000E-03   10000.    
     6 'norm      '    17.542       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.8869       1.0000         .10000E-03   10000.    
     8 'norm      '    7.7857       1.0000         .10000E-03   10000.    
     9 'norm      '    1.7367       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.0173       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.317       1.0000         .10000E-03   10000.    
    16 'norm      '    4.1529       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.3305       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0211       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=   6169.323     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1752 TOTAL
                     EDM=   .17E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9843        55.185        .13631E-05    .30610E-06
   2  norm          .10000E-03    .35398       -.23602E-07** at limit **
   3  Prefactor     .10000E-03    294.94        .17734E-04** at limit **
   4  Prefactor     3.4870        11.012        .28460E-05    .86066E-05
   5  Prefactor     20.655        16.475       -.15623E-06   -.58856E-04
   6  norm          17.542        15.740        .28223E-07    .76306E-06
   7  Prefactor     4.8890        26.191       -.40781E-06   -.25664E-05
   8  norm          7.7859        4.9995        .27202E-06    .22263E-04
   9  norm          1.7470        22.149        .14029E-06   -.40660E-05
  10  norm          .10000E-03    16.794        .15267E-06** at limit **
  11  norm          2.0173        1.0662       -.37426E-08   -.99211E-05
  12  Prefactor     .10000E-03    .57261       -.17095E-07** at limit **
  13  Prefactor     .10000E-03    11.054        .22145E-07** at limit **
  14  Prefactor     .10000E-03    21.255        .13969E-06** at limit **
  15  Prefactor     24.313        13.932        .36788E-06    .90750E-05
  16  norm          4.1531        2.9789        .55541E-07   -.11613E-04
  17  Prefactor     .10000E-03    20.214       -.33420E-06** at limit **
  18  norm          1.3304        1.9317        .55907E-07   -.84252E-05
  19  Normalizat    1.0414        .24603       -.16637E-05   -.34623E-04
  20  Prefactor     1.0210        .10928        .20066E-06   -.18653E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.9843
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.48701
  Prefactor  = 20.655
  norm       = 17.5422
  Prefactor  = 4.88898
  norm       = 7.78589
  norm       = 1.74695
  norm       = 0.0001
  norm       = 2.0173
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 24.3134
  norm       = 4.15306
  Prefactor  = 0.0001
  norm       = 1.33037
  Normalizat = 1.04142
  Prefactor  = 1.02103
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.323     FROM HESSE     STATUS=OK           291 CALLS     2043 TOTAL
                     EDM=   .34E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9843        55.717        .23495E-03   -1.5362    
   2  norm          .10000E-03    .35708        .45624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    295.82        .42558E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.4870        11.034        .10825E-02   -1.5334    
   5  Prefactor     20.655        16.493        .88128E-04   -1.4799    
   6  norm          17.542        15.741        .95626E-04   -1.4870    
   7  Prefactor     4.8890        26.219        .18195E-03   -1.5266    
   8  norm          7.7859        5.0019        .13567E-03   -1.5150    
   9  norm          1.7470        21.993        .31843E-03   -1.5444    
  10  norm          .10000E-03    16.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.0173        1.0656        .29141E-04   -1.5424    
  12  Prefactor     .10000E-03    .57896        .57990E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    11.074        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     24.313        13.934        .81233E-04   -1.4721    
  16  norm          4.1531        2.9745        .11024E-03   -1.5300    
  17  Prefactor     .10000E-03    20.264        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.3304        1.9020        .12602E-03   -1.5477    
  19  Normalizat    1.0414        .27409        .35198E-03   -.91655    
  20  Prefactor     1.0210        .12359        .17468E-03   -.92032    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.36428e-11
Minuit parameter uncertainties:
  1  25.817
  2  9.19135e-08
  3  0.000723703
  4  11.0404
  5  16.4966
  6  15.7445
  7  22.6588
  8  5.00217
  9  12.4021
  10  3.43902e-06
  11  1.06566
  12  6.83487e-08
  13  7.68193e-07
  14  1.2633e-06
  15  13.9362
  16  2.97464
  17  3.17549e-07
  18  1.90209
  19  0.274468
  20  0.123623
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.754e+01  1.574e+01  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.021e+00  1.236e-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:  1.041e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.83
Ra Dec: 62.463 -3.986
Photon Index (Fixed Index): 1.68 +/- 0.00
Photon Flux (Fixed Index): 1.26e-08 +/- 1.13e-08
Energy Flux (Fixed Index): 1.72e-05 +/- 1.54e-05

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

Saving results to:
/scratch/kocevski/287040/likelihoodResults_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.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) = 6169.25166495
delta logL = 0.0711150621246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6169.24986676
delta logL = 0.0729132576053

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.630       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3701       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0416       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0210       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=   6169.250     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      250 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.630        858.61        .22600E-02   -.27755E-03
   2  alpha         1.3700        4.2208        .48387       -.24062E-04
   3  Normalizat    1.0417        .19811        .79502E-01    .91669E-04
   4  Prefactor     1.0210        .93823E-01    .42042E-01   -.29232E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6296
  alpha      = 1.37003
  Normalizat = 1.04166
  Prefactor  = 1.02098
 **********
 **   18 **HESSE 
 **********

 FCN=   6169.250     FROM HESSE     STATUS=OK            29 CALLS      279 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.630        17.388        .90401E-04   -1.4822    
   2  alpha         1.3700        .76237        .23083E-01   -.46899    
   3  Normalizat    1.0417        .23915        .35192E-03   -.91648    
   4  Prefactor     1.0210        .11857        .17467E-03   -.92033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65478e-10
Minuit parameter uncertainties:
  1  17.3925
  2  0.778058
  3  0.239394
  4  0.118599
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/287040': 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) = 6169.24986674
delta logL = 0.0729132785063

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.963e+01  1.739e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.370e+00  7.781e-01  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.021e+00  1.186e-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:  1.042e+00  2.394e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 62.463 -3.986
Photon Index (Free Index): 1.37 +/- 0.78
Photon Flux (Free Index): 1.14e-08 +/- 1.03e-08
Energy Flux (Free Index): 2.45e-05 +/- 3.16e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/287040/cmap_HighResolution_621907201_622166401_4FGL_J0409.8-0359_daily_bin1476.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-05', comment='SUCCESS', photon_flux='1.26e-08', energy_flux2='2.45e-05', photon_flux_error='1.13e-08', dlogl='7.29e-02', energy_flux='1.72e-05', photon_flux2='1.14e-08', job_status='DONE', time_completed='2021-08-20 06:53:20.297209', photon_index_error2='0.78', photon_index2='1.37', ts='3.83', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', photon_flux_upper_limit='4.59e-08', energy_flux_error2='3.16e-05', EG='1.04', time_epoch_completed='1629467600.3', return_code='0', job_id='287040', GAL2='1.02', EG2='1.04', return_code2='0', energy_flux_error='1.54e-05', photon_flux_error2='1.03e-08', ts2='3.98', photon_index='1.68' WHERE bin_id='1476' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:53:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 287040: <4FGL_J0409.8-0359_daily_bin1476> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin1476> was submitted from host <rhel6-64a> by user <kocevski> in cluster <slac> at Fri Aug 20 06:40:26 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:40:28 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:40:28 2021
Terminated at Fri Aug 20 06:53:20 2021
Results reported at Fri Aug 20 06:53:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin1476 62.4629 -3.9865 621907201 622166401 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 :                                   559.33 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             279.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   772 sec.
    Turnaround time :                            774 sec.

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

