/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 4 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 = 7440
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin197
RA = 62.4629, Dec = -3.9865
tmin = 290390401, tmax = 290649601
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='278038', job_status='RUN', time_executed='2021-08-20 06:11:13.715788', time_epoch_executed='1629465073.72' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='197'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278038

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278038/ft1_4FGL_J0409.8-0359_daily_bin197.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278038/ft1_4FGL_J0409.8-0359_daily_bin197.fits outfile=/scratch/kocevski/278038/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin197.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=290390401.0 tmax=290649601.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.25
user 3.18
sys 1.02

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278038/ft1_filtered_4FGL_J0409.8-0359_daily_bin197.fits" evtable="EVENTS" scfile=/scratch/kocevski/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits sctable="SC_DATA" outfile=/scratch/kocevski/278038/ltcube_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.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/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits
.....................!
real 12.67
user 11.43
sys 1.18

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278038/ft1_filtered_4FGL_J0409.8-0359_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits sctable="SC_DATA" expcube=/scratch/kocevski/278038/ltcube_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.fits outfile=/scratch/kocevski/278038/expmap_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.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/278038/ltcube_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.fits
.....................!
real 190.77
user 185.00
sys 5.42

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/278038/ft1_filtered_4FGL_J0409.8-0359_daily_bin197.fits scfile=/scratch/kocevski/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits outfile=/scratch/kocevski/278038/cmap_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.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.29
user 0.36
sys 0.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278038/ft1_filtered_4FGL_J0409.8-0359_daily_bin197.fits scfile=/scratch/kocevski/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits outfile=/scratch/kocevski/278038/cmap_HighResolution_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.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.55
user 0.39
sys 0.89

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/278038/ft1_filtered_4FGL_J0409.8-0359_daily_bin197.fits evtable="EVENTS" scfile=/scratch/kocevski/278038/ft2_4FGL_J0409.8-0359_daily_bin197.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/278038/Model_4FGL_J0409.8-0359_daily_bin197.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/278038/ft1_filtered_4FGL_J0409.8-0359_daily_bin197.fits.....................!
real 135.47
user 132.43
sys 2.30

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2373       1.0000         .10000E-03   10000.    
     2 'norm      '    2.2559       1.0000         .10000E-03   10000.    
     3 'Prefactor '    48.189       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11305E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .23690E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.1075       1.0000         .10000E-03   10000.    
     9 'norm      '    14.685       1.0000         .10000E-03   10000.    
    10 'norm      '    19.067       1.0000         .10000E-03   10000.    
    11 'norm      '    4.9104       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.1528       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .20216E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.1243       1.0000         .10000E-03   10000.    
    18 'norm      '    10.703       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1468       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .94402       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10283.33     FROM MIGRAD    STATUS=CONVERGED    768 CALLS     2732 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2370        11.952        .19575E-03   -.12312E-04
   2  norm          2.2559        1.2371        .80261E-04   -.11417E-03
   3  Prefactor     48.209        45.608        .57764E-04   -.73529E-04
   4  Prefactor     .10000E-03    1.4787        .12024E-02** at limit **
   5  Prefactor     .10002E-03    38.315        .36285E-03** at limit **
   6  norm          .10001E-03    5.8911        .96017E-01** at limit **
   7  Prefactor     .10000E-03    25.480        .18142E-02** at limit **
   8  norm          2.1078        3.9731        .26051E-03   -.59875E-04
   9  norm          14.684        7.6577        .10452E-03   -.30042E-03
  10  norm          19.069        21.504        .91724E-04   -.20426E-03
  11  norm          4.9097        1.3670        .56265E-04   -.15849E-02
  12  Prefactor     1.1513        1.1641        .10277E-03   -.46594E-03
  13  Prefactor     .10000E-03    9.0368        .18142E-02** at limit **
  14  Prefactor     .10004E-03    27.226        .13907    ** at limit **
  15  Prefactor     .10000E-03    2.9912        .17047E-02** at limit **
  16  norm          .10000E-03    3.7270        .19223E-02** at limit **
  17  Prefactor     2.1251        38.683        .14146E-02   -.52398E-05
  18  norm          10.702        2.6113        .76892E-04   -.92586E-03
  19  Normalizat    1.1469        .18666        .33095E-03   -.29130E-04
  20  Prefactor     .94401        .93358E-01    .18288E-03   -.72550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.237
  norm       = 2.25589
  Prefactor  = 48.2094
  Prefactor  = 0.0001
  Prefactor  = 0.000100017
  norm       = 0.000100007
  Prefactor  = 0.0001
  norm       = 2.1078
  norm       = 14.6842
  norm       = 19.0686
  norm       = 4.90973
  Prefactor  = 1.1513
  Prefactor  = 0.0001
  Prefactor  = 0.000100039
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 2.12513
  norm       = 10.702
  Normalizat = 1.14687
  Prefactor  = 0.944011
 **********
 **   18 **HESSE 
 **********

 FCN=   10283.33     FROM HESSE     STATUS=OK           287 CALLS     3019 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2370        11.950        .78300E-05   -1.5296    
   2  norm          2.2559        1.2371        .32104E-05   -1.5408    
   3  Prefactor     48.209        45.604        .11553E-04   -1.4318    
   4  Prefactor     .10000E-03    1.4788        .24049E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10002E-03    38.318        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10001E-03    46.759        .48005E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.489        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.1078        3.9702        .10420E-04   -1.5418    
   9  norm          14.684        7.6576        .41808E-05   -1.4941    
  10  norm          19.069        21.501        .36689E-05   -1.4834    
  11  norm          4.9097        1.3667        .22506E-05   -1.5265    
  12  Prefactor     1.1513        1.1639        .41108E-05   -1.5493    
  13  Prefactor     .10000E-03    9.0382        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10004E-03    26.949        .14007       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.9921        .34094E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.7453        .38446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.1251        38.628        .56586E-04   -1.5416    
  18  norm          10.702        2.6112        .30757E-05   -1.5054    
  19  Normalizat    1.1469        .18667        .13238E-04   -.88261    
  20  Prefactor     .94401        .93361E-01    .36577E-04   -.94620    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.84291e-09
Minuit parameter uncertainties:
  1  11.9569
  2  1.23707
  3  45.6368
  4  2.09172e-05
  5  0.00159765
  6  0.00114946
  7  6.00791e-05
  8  3.97073
  9  7.65807
  10  21.5097
  11  1.36674
  12  1.1639
  13  1.18894e-06
  14  0.00204467
  15  2.27972e-05
  16  0.000169843
  17  18.1339
  18  2.61123
  19  0.186782
  20  0.0933769
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  1.149e-03  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.440e-01  9.338e-02  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.147e+00  1.868e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/278038/likelihoodResults_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.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) = 10283.329277
delta logL = -9.76747433015e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10283.3292032
delta logL = -2.38765278482e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .41966E-02   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0683       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1469       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94401       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10283.33     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      311 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10039E-03    7.5542        .88125E-01** at limit **
   2  alpha         1.9761        3.5570        .16782        .29306E-06
   3  Normalizat    1.1469        .56655E-02    .33095E-03   -.30367E-04
   4  Prefactor     .94401        .28892E-02    .18288E-03   -.37174E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100393
  alpha      = 1.97613
  Normalizat = 1.14686
  Prefactor  = 0.944013
 **********
 **   18 **HESSE 
 **********

 FCN=   10283.33     FROM HESSE     STATUS=NOT POSDEF    37 CALLS      348 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10039E-03    9.9189        .88941E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.9761        2.7983        .67128E-01   -.21111    
   3  Normalizat    1.1469        .65179E-02    .13238E-04   -.88261    
   4  Prefactor     .94401        .33238E-02    .73154E-05   -.94620    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 5.90847e-10
Minuit parameter uncertainties:
  1  0.00395054
  2  375.856
  3  0.00651793
  4  0.00332384
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278038': 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): 102
logL (Free Index) = 10283.3291788
delta logL = 4.95763742947e-07

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.004e-04  3.951e-03  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.976e+00  3.759e+02  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  9.440e-01  3.324e-03  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.147e+00  6.518e-03  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/278038/cmap_HighResolution_290390401_290649601_4FGL_J0409.8-0359_daily_bin197.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.70e-05', job_status='DONE', photon_flux_upper_limit='1.98e-08', time_completed='2021-08-20 06:24:57.182066', job_id='278038', GAL2='0.94', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629465897.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='4.96e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='197' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:24:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0303>
Subject: Job 278038: <4FGL_J0409.8-0359_daily_bin197> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin197 62.4629 -3.9865 290390401 290649601 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 :                                   831.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             343.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   852 sec.
    Turnaround time :                            855 sec.

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

