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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin460
RA = 60.5103, Dec = -26.273
tmin = 358560001, tmax = 358819201
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='168849', job_status='RUN', time_executed='2021-08-19 23:50:44.243326', time_epoch_executed='1629442244.24' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='460'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/168849

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

Retrieving the FT1 file...

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

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

Retrieving 50 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/168849/ft1_4FGL_J0402.0-2616_daily_bin460.fits


Retrieving the FT1 file...

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

Retrieving 50 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/168849/ft1_4FGL_J0402.0-2616_daily_bin460.fits outfile=/scratch/kocevski/168849/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin460.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=358560001.0 tmax=358819201.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 5.27
user 5.01
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.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/168849/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin460.fits evtable="EVENTS" outfile="/scratch/kocevski/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.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.49
user 0.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits" evtable="EVENTS" scfile=/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits sctable="SC_DATA" outfile=/scratch/kocevski/168849/ltcube_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.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/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits
.....................!
real 11.47
user 11.12
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits sctable="SC_DATA" expcube=/scratch/kocevski/168849/ltcube_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.fits outfile=/scratch/kocevski/168849/expmap_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.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/168849/ltcube_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.fits
.....................!
real 190.52
user 184.92
sys 5.24

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/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits scfile=/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits outfile=/scratch/kocevski/168849/cmap_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.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.52
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits scfile=/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits outfile=/scratch/kocevski/168849/cmap_HighResolution_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.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.53
user 0.35
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits evtable="EVENTS" scfile=/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/168849/Model_4FGL_J0402.0-2616_daily_bin460.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/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits.....................!
real 130.20
user 128.71
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits', '/scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits', expMap='/scratch/kocevski/168849/expmap_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.fits', expCube='/scratch/kocevski/168849/ltcube_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/168849/Model_4FGL_J0402.0-2616_daily_bin460.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/168849/ft1_filtered_4FGL_J0402.0-2616_daily_bin460.fits
Spacecraft file(s): /scratch/kocevski/168849/ft2_4FGL_J0402.0-2616_daily_bin460.fits
Exposure map: /scratch/kocevski/168849/expmap_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.fits
Exposure cube: /scratch/kocevski/168849/ltcube_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/168849/Model_4FGL_J0402.0-2616_daily_bin460.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) = 5816.00758631

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    12.946       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.8734       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    13.980       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.2318       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10422E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.3247       1.0000         .10000E-03   10000.    
    12 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .59052E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .76539       1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.4506       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.3364       1.0000         .10000E-03   10000.    
    21 'norm      '    .10056E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    4.6917       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82133       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78502       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=   5815.937     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2495 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    103.04        .78857E-04** at limit **
   2  Prefactor     .10000E-03    10.334       -.15615E-05** at limit **
   3  Prefactor     12.946        16.792       -.26994E-06    .71590E-04
   4  Prefactor     3.8817        47.796        .47155E-05    .33315E-05
   5  Prefactor     .10000E-03    8.4936        .30119E-06** at limit **
   6  Prefactor     .10000E-03    .98238        .42015E-07** at limit **
   7  Prefactor     13.980        4.9233       -.40134E-06    .10828E-03
   8  Prefactor     8.2322        4.4054       -.41318E-06   -.11495E-03
   9  Prefactor     .10000E-03    38.198        .11770E-04** at limit **
  10  norm          .10000E-03    .21309        .18281E-07** at limit **
  11  Prefactor     8.3267        16.375       -.15409E-05    .73974E-04
  12  norm          .10000E-03    .32147        .49698E-08** at limit **
  13  Prefactor     .10003E-03    610.57       -.27142E-03** at limit **
  14  Prefactor     .10000E-03    37.596       -.13576E-04** at limit **
  15  Prefactor     .10000E-03    1.4596       -.49617E-09** at limit **
  16  norm          .10000E-03    3.3110       -.24048E-07** at limit **
  17  Prefactor     .10000E-03    12.895        .87075E-05** at limit **
  18  norm          .76547        .28765       -.53629E-08    .15509E-02
  19  Prefactor     4.4508        3.3972       -.29419E-06   -.10730E-03
  20  Prefactor     5.3356        9.0137       -.82753E-06   -.82112E-04
  21  norm          .10000E-03    127.37       -.95460E-04** at limit **
  22  Prefactor     .10000E-03    13.420       -.73987E-05** at limit **
  23  norm          4.6918        3.6351       -.62706E-06   -.10199E-03
  24  Normalizat    .82127        .15027        .13023E-05    .53962E-03
  25  Prefactor     .78515        .14524       -.11830E-07    .42550E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.9461
  Prefactor  = 3.88171
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 13.9798
  Prefactor  = 8.23222
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 8.32665
  norm       = 0.0001
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.765474
  Prefactor  = 4.45079
  Prefactor  = 5.33561
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.69178
  Normalizat = 0.821267
  Prefactor  = 0.78515
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.937     FROM HESSE     STATUS=OK           419 CALLS     2914 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    103.15        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    10.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     12.946        16.791        .11133E-03   -1.4988    
   4  Prefactor     3.8817        47.753        .20503E-03   -1.5314    
   5  Prefactor     .10000E-03    8.4948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0095        .14738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     13.980        4.9302        .89923E-04   -1.4960    
   8  Prefactor     8.2322        4.4022        .10522E-03   -1.5134    
   9  Prefactor     .10000E-03    39.611        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .22126        .68594E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     8.3267        16.356        .13895E-03   -1.5131    
  12  norm          .10000E-03    .32532        .42172E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10003E-03    614.95        .21072E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    38.458        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    2.8185        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.3140        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.985        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .76547        .28694        .23996E-04   -1.5533    
  19  Prefactor     4.4508        3.3906        .11701E-03   -1.5286    
  20  Prefactor     5.3356        9.0071        .17398E-03   -1.5246    
  21  norm          .10000E-03    127.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    13.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          4.6918        3.6353        .12247E-03   -1.5275    
  24  Normalizat    .82127        .17136        .22922E-03   -.99285    
  25  Prefactor     .78515        .16570        .23342E-03   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.65244e-10
Minuit parameter uncertainties:
  1  3.2595e-05
  2  3.54428e-06
  3  16.7975
  4  27.2562
  5  6.11434e-07
  6  1.41364e-06
  7  4.93033
  8  4.40241
  9  0.000228623
  10  5.40338e-07
  11  16.365
  12  3.55501e-07
  13  0.00795126
  14  0.000274916
  15  5.6319e-06
  16  1.07293e-06
  17  2.40476e-05
  18  0.286939
  19  3.39078
  20  9.00936
  21  0.000162086
  22  5.21587e-07
  23  3.63549
  24  0.171473
  25  0.165808
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  1.073e-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:  7.851e-01  1.658e-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:  8.213e-01  1.715e-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: 2.50e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.91e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/168849/likelihoodResults_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.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) = 5815.93831924
delta logL = -0.00142554887134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5815.9368937
delta logL = -1.16660885396e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10060E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9832       1.0000          .0000       5.0000    
     3 'Normalizat'    .82125       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78517       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=   5815.937     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .64E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    158.36        .13630E-01** at limit **
   2  alpha         1.5403        4.0818        .16929        .10476E-07
   3  Normalizat    .82127        .25730E-01    .22922E-03    .27973E-04
   4  Prefactor     .78515        .25829E-01    .23342E-03    .27469E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.54032
  Normalizat = 0.821265
  Prefactor  = 0.78515
 **********
 **   18 **HESSE 
 **********

 FCN=   5815.937     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .34E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    3.7319        .14368E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5403        3.5363        .67715E-02   -.39398    
   3  Normalizat    .82127        .16319        .91689E-05   -.99285    
   4  Prefactor     .78515        .16381        .93369E-05   -1.0028    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.38825e-12
Minuit parameter uncertainties:
  1  8.87314e-06
  2  244.602
  3  0.163287
  4  0.163916
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/168849': 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) = 5815.93689203
delta logL = 1.66078280017e-06

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  8.873e-06  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.540e+00  2.446e+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:  7.852e-01  1.639e-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:  8.213e-01  1.633e-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/168849/cmap_HighResolution_358560001_358819201_4FGL_J0402.0-2616_daily_bin460.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.91e-05', job_status='DONE', photon_flux_upper_limit='2.50e-08', time_completed='2021-08-20 00:02:15.763742', job_id='168849', GAL2='0.79', fit_tolerance='1e-08', EG2='0.82', EG='0.82', time_epoch_completed='1629442935.76', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='1.66e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='460' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:02:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0256>
Subject: Job 168849: <4FGL_J0402.0-2616_daily_bin460> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin460> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Aug 19 23:50:33 2021
Job was executed on host(s) <bullet0256>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:50:34 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:34 2021
Terminated at Fri Aug 20 00:02:16 2021
Results reported at Fri Aug 20 00:02:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin460 60.5103 -26.273 358560001 358819201 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 :                                   687.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             394.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   702 sec.
    Turnaround time :                            703 sec.

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

