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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin421
RA = 60.5103, Dec = -26.273
tmin = 348451201, tmax = 348710401
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='168793', job_status='RUN', time_executed='2021-08-19 23:50:45.872410', time_epoch_executed='1629442245.87' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='421'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168793

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168793/ft1_4FGL_J0402.0-2616_daily_bin421.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168793/ft1_4FGL_J0402.0-2616_daily_bin421.fits outfile=/scratch/kocevski/168793/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin421.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=348451201.0 tmax=348710401.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.66
user 3.19
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.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/168793/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin421.fits evtable="EVENTS" outfile="/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.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.72
user 0.32
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits" evtable="EVENTS" scfile=/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits sctable="SC_DATA" outfile=/scratch/kocevski/168793/ltcube_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.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/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits
.....................!
real 12.37
user 11.74
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits sctable="SC_DATA" expcube=/scratch/kocevski/168793/ltcube_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.fits outfile=/scratch/kocevski/168793/expmap_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.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/168793/ltcube_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.fits
.....................!
real 190.80
user 185.60
sys 4.89

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
Extended source Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 156 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0402.0-2616 @ 60.5103 -26.273

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits scfile=/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits outfile=/scratch/kocevski/168793/cmap_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.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=60.5103 yref=-26.273 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.76
user 0.37
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits scfile=/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits outfile=/scratch/kocevski/168793/cmap_HighResolution_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.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=60.5103 yref=-26.273 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.77
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits evtable="EVENTS" scfile=/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168793/Model_4FGL_J0402.0-2616_daily_bin421.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits.....................!
real 100.85
user 99.16
sys 1.52

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits', '/scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits', expMap='/scratch/kocevski/168793/expmap_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.fits', expCube='/scratch/kocevski/168793/ltcube_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168793/Model_4FGL_J0402.0-2616_daily_bin421.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0402.0-2616'

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  2.550e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/168793/ft1_filtered_4FGL_J0402.0-2616_daily_bin421.fits
Spacecraft file(s): /scratch/kocevski/168793/ft2_4FGL_J0402.0-2616_daily_bin421.fits
Exposure map: /scratch/kocevski/168793/expmap_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.fits
Exposure cube: /scratch/kocevski/168793/ltcube_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168793/Model_4FGL_J0402.0-2616_daily_bin421.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) = 4145.64933041

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10338E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    31.779       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.0861       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    9.0491       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10054E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .48392E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    22.382       1.0000         .10000E-03   10000.    
    12 'norm      '    1.9860       1.0000         .10000E-03   10000.    
    13 'Prefactor '    145.77       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.7382       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10294E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.6520       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    32.406       1.0000         .10000E-03   10000.    
    21 'norm      '    1.5051       1.0000         .10000E-03   10000.    
    22 'Prefactor '    88.561       1.0000         .10000E-03   10000.    
    23 'norm      '    2.4489       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1854       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .48348       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4145.620     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     2982 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.184        .15442E-05** at limit **
   2  Prefactor     .10000E-03    12.669        .49823E-06** at limit **
   3  Prefactor     .10000E-03    10.417        .50157E-07** at limit **
   4  Prefactor     31.554        50.201       -.46590E-05   -.10763E-03
   5  Prefactor     .10000E-03    29.741        .40778E-06** at limit **
   6  Prefactor     2.0865        2.3199        .81032E-07   -.18513E-03
   7  Prefactor     .10000E-03    3.3079        .40386E-06** at limit **
   8  Prefactor     9.0448        5.5765        .20140E-07   -.41798E-03
   9  Prefactor     .10000E-03    12.592       -.54061E-06** at limit **
  10  norm          .58431E-01    .74828        .96754E-07    .83804E-03
  11  Prefactor     22.376        27.149       -.32765E-05   -.17148E-03
  12  norm          1.9872        2.0317       -.75306E-07   -.70393E-03
  13  Prefactor     145.57        128.12        .11016E-04   -.30474E-05
  14  Prefactor     2.7785        66.302        .15199E-04    .12283E-04
  15  Prefactor     .10000E-03    2.4828        .42904E-06** at limit **
  16  norm          .10000E-03    3.8933        .88836E-07** at limit **
  17  Prefactor     .10000E-03    7.8923        .14532E-06** at limit **
  18  norm          1.6524        .52888        .34898E-07   -.53930E-03
  19  Prefactor     .10000E-03    3.6087        .54892E-06** at limit **
  20  Prefactor     32.410        22.928        .99573E-06   -.36387E-04
  21  norm          1.0756        6479.1       -.29649E-03    .13705E-04
  22  Prefactor     88.586        77.096       -.53529E-07   -.16881E-04
  23  norm          2.4503        3.0886        .24426E-06   -.93339E-05
  24  Normalizat    1.1847        .21548       -.46170E-05   -.52285E-03
  25  Prefactor     .48393        .18486        .92204E-06   -.44990E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 31.5537
  Prefactor  = 0.0001
  Prefactor  = 2.08646
  Prefactor  = 0.0001
  Prefactor  = 9.04482
  Prefactor  = 0.0001
  norm       = 0.0584307
  Prefactor  = 22.3763
  norm       = 1.98717
  Prefactor  = 145.571
  Prefactor  = 2.77852
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.65236
  Prefactor  = 0.0001
  Prefactor  = 32.4104
  norm       = 1.07562
  Prefactor  = 88.5859
  norm       = 2.45026
  Normalizat = 1.18472
  Prefactor  = 0.483929
 **********
 **   18 **HESSE 
 **********

 FCN=   4145.620     FROM HESSE     STATUS=OK           427 CALLS     3409 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.199        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    12.693        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    10.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     31.554        50.827        .71078E-04   -1.4584    
   5  Prefactor     .10000E-03    29.774        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.0865        2.3062        .97215E-04   -1.5419    
   7  Prefactor     .10000E-03    3.3502        .11413E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     9.0448        5.5580        .11020E-03   -1.5106    
   9  Prefactor     .10000E-03    12.631        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .58431E-01    6.1677        .98057E-03   -1.5660    
  11  Prefactor     22.376        27.096        .84665E-04   -1.4762    
  12  norm          1.9872        1.9563        .82746E-04   -1.5426    
  13  Prefactor     145.57        129.07        .16687E-03   -1.3289    
  14  Prefactor     2.7785        66.407        .24605E-03   -1.5375    
  15  Prefactor     .10000E-03    15.067        .18363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8938        .12408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    7.8948        .17667E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.6524        .53123        .25017E-04   -1.5451    
  19  Prefactor     .10000E-03    3.6526        .11936E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     32.410        22.960        .70389E-04   -1.4569    
  21  norm          1.0756        6521.4        .34886E-02   -1.5501    
  22  Prefactor     88.586        77.059        .42695E-04   -1.3823    
  23  norm          2.4503        3.0793        .12299E-03   -1.5395    
  24  Normalizat    1.1847        .24556        .22225E-03   -.87076    
  25  Prefactor     .48393        .20726        .30306E-03   -1.1272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.02454e-09
Minuit parameter uncertainties:
  1  0.000108048
  2  4.46579e-05
  3  9.59064e-06
  4  50.8964
  5  6.86996e-05
  6  2.30628
  7  3.39675e-05
  8  5.55836
  9  1.33958e-05
  10  1.19974
  11  27.111
  12  1.95637
  13  129.323
  14  27.2005
  15  0.000321014
  16  4.82319e-06
  17  1.38861e-05
  18  0.531229
  19  3.29474e-05
  20  22.9664
  21  123.36
  22  77.1459
  23  3.07952
  24  0.245797
  25  0.207588
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  4.823e-06  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  4.839e-01  2.076e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.185e+00  2.458e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 60.510 -26.273
Photon Flux Upper Limit: 3.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.44e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168793/likelihoodResults_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.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) = 4145.62107785
delta logL = -0.00090507434652

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4145.62017275
delta logL = 2.61397872237e-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.9855       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1847       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5030E+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=   4145.620     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      237 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    218.76        .12477E-01** at limit **
   2  alpha         1.4670        3.5961        .16924        .18406E-07
   3  Normalizat    1.1847        .37613E-01    .22225E-03    .16471E-04
   4  Prefactor     .48393        .34123E-01    .30304E-03    .14068E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.46701
  Normalizat = 1.18472
  Prefactor  = 0.483931
 **********
 **   18 **HESSE 
 **********

 FCN=   4145.620     FROM HESSE     STATUS=OK            23 CALLS      260 TOTAL
                     EDM=   .55E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.5038        .13333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4670        2.6934        .67697E-02   -.42596    
   3  Normalizat    1.1847        .21933        .88901E-05   -.87076    
   4  Prefactor     .48393        .19885        .12121E-04   -1.1272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.51283e-12
Minuit parameter uncertainties:
  1  6.33689e-07
  2  276.59
  3  0.219501
  4  0.199138
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168793': 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) = 4145.62017105
delta logL = 1.71914962266e-06

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  6.337e-07  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.467e+00  2.766e+02  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  1.705e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  4.839e-01  1.991e-01  0.000e+00  1.000e+01 ( 1.000e+00)
501        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
502        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
496   Normalization:  1.185e+00  2.195e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 60.510 -26.273

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/168793/cmap_HighResolution_348451201_348710401_4FGL_J0402.0-2616_daily_bin421.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.44e-05', job_status='DONE', photon_flux_upper_limit='3.20e-08', time_completed='2021-08-20 00:00:49.295226', job_id='168793', GAL2='0.48', fit_tolerance='1e-08', EG2='1.18', EG='1.18', time_epoch_completed='1629442849.3', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='1.72e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='421' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:00:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 168793: <4FGL_J0402.0-2616_daily_bin421> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin421> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:50:29 2021
Job was executed on host(s) <bullet0052>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:50:31 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Aug 19 23:50:31 2021
Terminated at Fri Aug 20 00:00:50 2021
Results reported at Fri Aug 20 00:00:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin421 60.5103 -26.273 348451201 348710401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0402.0-2616 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   604.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             347.95 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   618 sec.
    Turnaround time :                            621 sec.

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

