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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin893
RA = 62.4629, Dec = -3.9865
tmin = 470793601, tmax = 471052801
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='282702', job_status='RUN', time_executed='2021-08-20 06:26:56.357246', time_epoch_executed='1629466016.36' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282702

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282702/ft1_4FGL_J0409.8-0359_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282702/ft1_4FGL_J0409.8-0359_daily_bin893.fits outfile=/scratch/kocevski/282702/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin893.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=470793601.0 tmax=471052801.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 6.95
user 3.25
sys 3.66

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.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/282702/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.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.98
user 0.35
sys 3.62

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/282702/ltcube_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.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/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits
.....................!
real 15.97
user 11.71
sys 4.22

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/282702/ltcube_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.fits outfile=/scratch/kocevski/282702/expmap_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.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/282702/ltcube_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.fits
.....................!
real 195.86
user 186.49
sys 9.04

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/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.fits scfile=/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits outfile=/scratch/kocevski/282702/cmap_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.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.94
user 0.37
sys 3.55

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.fits scfile=/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits outfile=/scratch/kocevski/282702/cmap_HighResolution_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.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.94
user 0.41
sys 3.52

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/282702/ft2_4FGL_J0409.8-0359_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282702/Model_4FGL_J0409.8-0359_daily_bin893.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/282702/ft1_filtered_4FGL_J0409.8-0359_daily_bin893.fits.....................!
real 101.57
user 95.63
sys 5.73

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    18.428       1.0000         .10000E-03   10000.    
     2 'norm      '    7.2015       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10087E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.3521       1.0000         .10000E-03   10000.    
     6 'norm      '    .10069E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    15.578       1.0000         .10000E-03   10000.    
    10 'norm      '    27.195       1.0000         .10000E-03   10000.    
    11 'norm      '    .11102E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .21722       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.0437       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.696       1.0000         .10000E-03   10000.    
    18 'norm      '    .61375E-01   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1169       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0752       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=   7127.373     FROM MIGRAD    STATUS=CONVERGED    440 CALLS     2175 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     18.368        27.515        .12282E-04   -.63032E-05
   2  norm          7.1995        2.3402       -.40866E-06   -.40228E-02
   3  Prefactor     .10000E-03    21.949        .29383E-05** at limit **
   4  Prefactor     .10000E-03    5.5459       -.26045E-07** at limit **
   5  Prefactor     1.3539        10.384       -.32494E-05   -.56038E-03
   6  norm          .10000E-03    22.340       -.95818E-06** at limit **
   7  Prefactor     .10000E-03    8.7083        .43511E-07** at limit **
   8  norm          .10000E-03    2.0762       -.58202E-07** at limit **
   9  norm          15.561        14.135        .49299E-05    .93400E-06
  10  norm          27.208        24.612       -.99459E-05   -.29895E-04
  11  norm          .10000E-03    .50822        .12865E-06** at limit **
  12  Prefactor     .21710        1.1274        .22394E-06   -.83151E-03
  13  Prefactor     .10000E-03    27.309       -.27923E-05** at limit **
  14  Prefactor     .10000E-03    13.721       -.44343E-06** at limit **
  15  Prefactor     2.0369        11.245       -.32673E-05   -.37976E-03
  16  norm          .10000E-03    1.0158        .40130E-07** at limit **
  17  Prefactor     21.614        34.259       -.25148E-04   -.30711E-05
  18  norm          .55904E-01    .95839        .47527E-07   -.45868E-03
  19  Normalizat    1.1179        .23552        .16849E-07    .10340E-04
  20  Prefactor     1.0749        .10504        .11481E-05   -.13343E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 18.3679
  norm       = 7.19952
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.35391
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 15.5615
  norm       = 27.2079
  norm       = 0.0001
  Prefactor  = 0.217096
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.03694
  norm       = 0.0001
  Prefactor  = 21.6145
  norm       = 0.0559045
  Normalizat = 1.11789
  Prefactor  = 1.07489
 **********
 **   18 **HESSE 
 **********

 FCN=   7127.373     FROM HESSE     STATUS=OK           297 CALLS     2472 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     18.368        27.546        .93299E-04   -1.4851    
   2  norm          7.1995        2.3674        .35070E-03   -1.5171    
   3  Prefactor     .10000E-03    21.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.5834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.3539        10.553        .37616E-03   -1.5475    
   6  norm          .10000E-03    22.451        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    8.7102        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.0838        .11876E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          15.561        14.133        .10148E-03   -1.4919    
  10  norm          27.208        24.241        .76821E-04   -1.4664    
  11  norm          .10000E-03    4.9514        .11198E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .21710        1.9471        .16228E-02   -1.5615    
  13  Prefactor     .10000E-03    27.536        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.725        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.0369        11.155        .28924E-03   -1.5423    
  16  norm          .10000E-03    1.0287        .83067E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     21.614        34.315        .85992E-04   -1.4778    
  18  norm          .55904E-01    11.799        .15785E-02   -1.5661    
  19  Normalizat    1.1179        .26237        .36476E-03   -.89180    
  20  Prefactor     1.0749        .11693        .18008E-03   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.41337e-09
Minuit parameter uncertainties:
  1  27.565
  2  2.36742
  3  7.15059e-06
  4  8.66024e-06
  5  7.56126
  6  3.56827e-05
  7  1.54353e-05
  8  3.75079e-06
  9  14.1363
  10  24.2496
  11  2.97632e-05
  12  1.30009
  13  0.000185133
  14  2.51838e-05
  15  9.53591
  16  4.36752e-06
  17  34.3461
  18  1.62318
  19  0.262675
  20  0.116954
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  3.568e-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.075e+00  1.170e-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.118e+00  2.627e-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: 4.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282702/likelihoodResults_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.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) = 7127.37357489
delta logL = -0.000212212182305

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7127.37336271
delta logL = -3.7020072341e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6724       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1179       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0749       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=   7127.373     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      194 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    22.268        .90712E-02** at limit **
   2  alpha         1.6691        3.3017        .44443        .66639E-06
   3  Normalizat    1.1179        .21141        .82388E-01    .58107E-04
   4  Prefactor     1.0749        .10320        .38629E-01   -.10074E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.66909
  Normalizat = 1.11789
  Prefactor  = 1.07489
 **********
 **   18 **HESSE 
 **********

 FCN=   7127.373     FROM HESSE     STATUS=OK            31 CALLS      225 TOTAL
                     EDM=   .40E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    22.285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6691        3.3011        .50000       -.33881    
   3  Normalizat    1.1179        .23262        .36476E-03   -.89180    
   4  Prefactor     1.0749        .11378        .18008E-03   -.90273    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.01757e-11
Minuit parameter uncertainties:
  1  2.93336e-06
  2  2.35841
  3  0.232829
  4  0.113806
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282702': 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) = 7127.37336268
delta logL = 2.37378117163e-09

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  2.933e-06  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.669e+00  2.358e+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.075e+00  1.138e-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.118e+00  2.328e-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/282702/cmap_HighResolution_470793601_471052801_4FGL_J0409.8-0359_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.83e-05', job_status='DONE', photon_flux_upper_limit='4.27e-08', time_completed='2021-08-20 06:38:03.283018', job_id='282702', GAL2='1.07', fit_tolerance='1e-08', EG2='1.12', EG='1.12', time_epoch_completed='1629466683.28', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.37e-09', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='893' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:38:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 282702: <4FGL_J0409.8-0359_daily_bin893> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin893> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 06:25:46 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:25:47 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:25:47 2021
Terminated at Fri Aug 20 06:38:04 2021
Results reported at Fri Aug 20 06:38:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin893 62.4629 -3.9865 470793601 471052801 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 :                                   714.49 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             318.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   737 sec.
    Turnaround time :                            738 sec.

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

