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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1095
RA = 60.5103, Dec = -26.273
tmin = 523152001, tmax = 523411201
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='174258', job_status='RUN', time_executed='2021-08-20 00:06:19.848488', time_epoch_executed='1629443179.85' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1095'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174258

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174258/ft1_4FGL_J0402.0-2616_daily_bin1095.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174258/ft1_4FGL_J0402.0-2616_daily_bin1095.fits outfile=/scratch/kocevski/174258/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1095.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=523152001.0 tmax=523411201.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.38
user 3.99
sys 0.54

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174258/ft1_filtered_4FGL_J0402.0-2616_daily_bin1095.fits" evtable="EVENTS" scfile=/scratch/kocevski/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits sctable="SC_DATA" outfile=/scratch/kocevski/174258/ltcube_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.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/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits
.....................!
real 13.27
user 12.50
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174258/ft1_filtered_4FGL_J0402.0-2616_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits sctable="SC_DATA" expcube=/scratch/kocevski/174258/ltcube_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.fits outfile=/scratch/kocevski/174258/expmap_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.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/174258/ltcube_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.fits
.....................!
real 192.70
user 186.66
sys 5.63

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/174258/ft1_filtered_4FGL_J0402.0-2616_daily_bin1095.fits scfile=/scratch/kocevski/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits outfile=/scratch/kocevski/174258/cmap_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.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.85
user 0.37
sys 0.47

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174258/ft1_filtered_4FGL_J0402.0-2616_daily_bin1095.fits scfile=/scratch/kocevski/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits outfile=/scratch/kocevski/174258/cmap_HighResolution_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.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.89
user 0.37
sys 0.48

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/174258/ft1_filtered_4FGL_J0402.0-2616_daily_bin1095.fits evtable="EVENTS" scfile=/scratch/kocevski/174258/ft2_4FGL_J0402.0-2616_daily_bin1095.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174258/Model_4FGL_J0402.0-2616_daily_bin1095.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/174258/ft1_filtered_4FGL_J0402.0-2616_daily_bin1095.fits.....................!
real 147.99
user 146.00
sys 1.67

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    195.20       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45921E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.5803       1.0000         .10000E-03   10000.    
     4 'Prefactor '    23.840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2725       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.8168       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.7318       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11792E-02   1.0000         .10000E-03   10000.    
    12 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    78.483       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .71351E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.152       1.0000         .10000E-03   10000.    
    18 'norm      '    .15484       1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.0906       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.9580       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1518       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81941       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=   6567.436     FROM MIGRAD    STATUS=CONVERGED    612 CALLS     2984 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  9.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     195.09        219.67        .95133E-05    .83996E-04
   2  Prefactor     .10001E-03    8.8608       -.14529E-05** at limit **
   3  Prefactor     9.5965        32.531       -.12703E-05   -.82112E-06
   4  Prefactor     23.840        28.239        .36684E-07    .22399E-05
   5  Prefactor     .10000E-03    25.924       -.21642E-06** at limit **
   6  Prefactor     2.2725        1.7858        .70005E-08    .59818E-03
   7  Prefactor     .10000E-03    1.0887       -.20685E-07** at limit **
   8  Prefactor     5.8169        3.5806       -.64204E-07    .40264E-03
   9  Prefactor     .10000E-03    3.9776        .18939E-06** at limit **
  10  norm          1.7320        .86276       -.29299E-07    .67920E-04
  11  Prefactor     .10011E-03    117.45        .43859E-04** at limit **
  12  norm          .10000E-03    .70007       -.21284E-06** at limit **
  13  Prefactor     78.430        93.657        .10725E-04    .58379E-04
  14  Prefactor     .10027E-03    62.803       -.29868E-04** at limit **
  15  Prefactor     .10000E-03    1.3831       -.77178E-07** at limit **
  16  norm          .10000E-03    7.3700       -.41308E-06** at limit **
  17  Prefactor     13.151        17.971        .63677E-07    .57404E-04
  18  norm          .15480        .23431       -.44817E-06   -.32452E-02
  19  Prefactor     2.0908        4.1266       -.26382E-05    .21096E-03
  20  Prefactor     .10000E-03    8.5719       -.37157E-06** at limit **
  21  norm          .10000E-03    41.098       -.38932E-05** at limit **
  22  Prefactor     .10000E-03    46.139        .47320E-05** at limit **
  23  norm          9.9584        4.3082       -.14109E-05    .48645E-03
  24  Normalizat    1.1517        .17366       -.42705E-06    .10042E-02
  25  Prefactor     .81943        .16211        .31334E-05    .19776E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 195.088
  Prefactor  = 0.000100007
  Prefactor  = 9.59652
  Prefactor  = 23.8398
  Prefactor  = 0.0001
  Prefactor  = 2.27253
  Prefactor  = 0.0001
  Prefactor  = 5.81692
  Prefactor  = 0.0001
  norm       = 1.73197
  Prefactor  = 0.000100108
  norm       = 0.0001
  Prefactor  = 78.4296
  Prefactor  = 0.000100266
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 13.1515
  norm       = 0.1548
  Prefactor  = 2.09079
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.95839
  Normalizat = 1.15174
  Prefactor  = 0.819431
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.436     FROM HESSE     STATUS=OK           443 CALLS     3427 TOTAL
                     EDM=   .41E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     195.09        220.56        .14457E-03   -1.2905    
   2  Prefactor     .10001E-03    78.590        .46218E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     9.5965        32.550        .12947E-03   -1.5088    
   4  Prefactor     23.840        28.245        .82040E-04   -1.4731    
   5  Prefactor     .10000E-03    26.003        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2725        1.7710        .91550E-04   -1.5406    
   7  Prefactor     .10000E-03    1.0928        .82506E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.8169        3.5650        .11406E-03   -1.5226    
   9  Prefactor     .10000E-03    3.9832        .15784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.7320        .86033        .50531E-04   -1.5445    
  11  Prefactor     .10011E-03    143.06        .53602E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.2335        .12934E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     78.430        93.918        .22665E-03   -1.3934    
  14  Prefactor     .10027E-03    19.521        .92056E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    1.4247        .18577E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    7.4236        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     13.151        17.968        .11045E-03   -1.4983    
  18  norm          .15480        .22409        .46771E-03   -1.5629    
  19  Prefactor     2.0908        4.1573        .21759E-03   -1.5419    
  20  Prefactor     .10000E-03    8.6164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    41.124        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    46.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.9584        4.3554        .53600E-03   -1.5077    
  24  Normalizat    1.1517        .19830        .23238E-03   -.88107    
  25  Prefactor     .81943        .18268        .26406E-03   -.99016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.06982e-09
Minuit parameter uncertainties:
  1  221.501
  2  0.00150486
  3  32.6098
  4  28.2605
  5  9.11333e-05
  6  1.77106
  7  7.76642e-07
  8  3.56514
  9  3.36522e-06
  10  0.860339
  11  0.00788792
  12  9.0162e-06
  13  94.0961
  14  0.00456005
  15  1.51474e-05
  16  2.78313e-05
  17  17.9756
  18  0.224089
  19  4.1579
  20  1.4136e-05
  21  9.9615e-05
  22  0.000158913
  23  4.35557
  24  0.198427
  25  0.18282
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  2.783e-05  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:  8.194e-01  1.828e-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.152e+00  1.984e-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.52e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.69e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174258/likelihoodResults_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.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) = 6567.43624077
delta logL = -0.000641648054625

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6567.4355995
delta logL = -3.74741830456e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10855E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9676       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1517       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81948       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=   6567.436     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      248 TOTAL
                     EDM=   .74E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    125.55        .82817E-01** at limit **
   2  alpha         1.3775        3.1881        .16959        .45585E-07
   3  Normalizat    1.1517        .18984E-01    .23238E-03   -.27396E-03
   4  Prefactor     .81944        .18631E-01    .26406E-03   -.22087E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100003
  alpha      = 1.37752
  Normalizat = 1.15173
  Prefactor  = 0.819438
 **********
 **   18 **HESSE 
 **********

 FCN=   6567.436     FROM HESSE     STATUS=OK            25 CALLS      273 TOTAL
                     EDM=   .30E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.978        .39857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3775        2.8806        .67836E-02   -.46564    
   3  Normalizat    1.1517        .18439        .46476E-04   -.88108    
   4  Prefactor     .81944        .18080        .10562E-04   -.99016    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.01796e-10
Minuit parameter uncertainties:
  1  0.000356658
  2  265.96
  3  0.184497
  4  0.18093
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174258': 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) = 6567.43559673
delta logL = 2.3919137675e-06

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  3.567e-04  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.378e+00  2.660e+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:  8.194e-01  1.809e-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.152e+00  1.845e-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 -2.355e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.614e-03 [aplpy.core]
Saving /scratch/kocevski/174258/cmap_HighResolution_523152001_523411201_4FGL_J0402.0-2616_daily_bin1095.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.69e-05', job_status='DONE', photon_flux_upper_limit='3.52e-08', time_completed='2021-08-20 00:19:35.013357', job_id='174258', GAL2='0.82', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629443975.01', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='2.39e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1095' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:19:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0053>
Subject: Job 174258: <4FGL_J0402.0-2616_daily_bin1095> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1095> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 00:05:42 2021
Job was executed on host(s) <bullet0053>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:05:44 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 00:05:44 2021
Terminated at Fri Aug 20 00:19:37 2021
Results reported at Fri Aug 20 00:19:37 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1095 60.5103 -26.273 523152001 523411201 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 :                                   789.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            835 sec.

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

