/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 77 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 = 7642
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1075
RA = 60.5103, Dec = -26.273
tmin = 517968001, tmax = 518227201
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='174225', job_status='RUN', time_executed='2021-08-20 00:08:25.415181', time_epoch_executed='1629443305.42' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1075'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174225

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174225/ft1_4FGL_J0402.0-2616_daily_bin1075.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174225/ft1_4FGL_J0402.0-2616_daily_bin1075.fits outfile=/scratch/kocevski/174225/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1075.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=517968001.0 tmax=518227201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 6.22
user 3.49
sys 2.45

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.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/174225/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1075.fits evtable="EVENTS" outfile="/scratch/kocevski/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.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 2.74
user 0.34
sys 2.38

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.fits" evtable="EVENTS" scfile=/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits sctable="SC_DATA" outfile=/scratch/kocevski/174225/ltcube_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.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/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits
.....................!
real 14.69
user 11.83
sys 2.81

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits sctable="SC_DATA" expcube=/scratch/kocevski/174225/ltcube_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.fits outfile=/scratch/kocevski/174225/expmap_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.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/174225/ltcube_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.fits
.....................!
real 195.05
user 186.47
sys 7.94

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/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.fits scfile=/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits outfile=/scratch/kocevski/174225/cmap_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.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 2.73
user 0.38
sys 2.32

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.fits scfile=/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits outfile=/scratch/kocevski/174225/cmap_HighResolution_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.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 2.76
user 0.37
sys 2.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.fits evtable="EVENTS" scfile=/scratch/kocevski/174225/ft2_4FGL_J0402.0-2616_daily_bin1075.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174225/Model_4FGL_J0402.0-2616_daily_bin1075.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/174225/ft1_filtered_4FGL_J0402.0-2616_daily_bin1075.fits.....................!
real 116.60
user 112.40
sys 3.98

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    30.382       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10862E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.803       1.0000         .10000E-03   10000.    
    10 'norm      '    11.421       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11745E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .17579E-02   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.318       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.0756       1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    22.014       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.3820       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.3256       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .69391       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=   5031.230     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2930 TOTAL
                     EDM=   .37E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    108.58       -.57175E-04** at limit **
   2  Prefactor     30.377        27.324       -.96112E-06   -.32348E-04
   3  Prefactor     .10000E-03    47.425        .57532E-05** at limit **
   4  Prefactor     .10000E-03    24.202        .87542E-05** at limit **
   5  Prefactor     .10000E-03    47.177        .51588E-05** at limit **
   6  Prefactor     .10000E-03    1.5451       -.17325E-06** at limit **
   7  Prefactor     .10000E-03    4.4759        .24709E-06** at limit **
   8  Prefactor     .10000E-03    2.7093        .10044E-08** at limit **
   9  Prefactor     10.804        20.878       -.76350E-06   -.12678E-04
  10  norm          11.420        2.0719       -.96065E-07   -.16327E-03
  11  Prefactor     .10000E-03    21.370        .80390E-05** at limit **
  12  norm          .10030E-03    .85374        .63821E-06** at limit **
  13  Prefactor     .10000E-03    39.552       -.17365E-04** at limit **
  14  Prefactor     20.303        30.186       -.74697E-05   -.89945E-04
  15  Prefactor     6.0755        3.7384       -.24020E-06   -.43996E-03
  16  norm          .10000E-03    4.5305        .44751E-06** at limit **
  17  Prefactor     .10000E-03    16.632       -.10069E-04** at limit **
  18  norm          .10000E-03    .15132        .92516E-09** at limit **
  19  Prefactor     .10000E-03    1.7879       -.35446E-06** at limit **
  20  Prefactor     22.014        21.763       -.41769E-06    .12969E-04
  21  norm          .10000E-03    73.517        .49082E-04** at limit **
  22  Prefactor     .10000E-03    30.694       -.13377E-04** at limit **
  23  norm          9.3824        5.9698       -.29941E-05   -.10465E-03
  24  Normalizat    1.3255        .21920        .16697E-05   -.20816E-03
  25  Prefactor     .69403        .19659       -.12231E-06   -.10496E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 30.3774
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.8043
  norm       = 11.4202
  Prefactor  = 0.0001
  norm       = 0.000100298
  Prefactor  = 0.0001
  Prefactor  = 20.3031
  Prefactor  = 6.07554
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 22.0139
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.38245
  Normalizat = 1.32547
  Prefactor  = 0.694031
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.230     FROM HESSE     STATUS=OK           425 CALLS     3355 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    108.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     30.377        27.310        .72689E-04   -1.4605    
   3  Prefactor     .10000E-03    47.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.204        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    47.301        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.9430        .16884E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.5548        .14633E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.7295        .11392E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.804        20.946        .12190E-03   -1.5050    
  10  norm          11.420        2.0818        .41265E-04   -1.5032    
  11  Prefactor     .10000E-03    21.448        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10030E-03    18.066        .12214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    39.546        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.303        30.211        .88856E-04   -1.4806    
  15  Prefactor     6.0755        3.7006        .10142E-03   -1.5215    
  16  norm          .10000E-03    4.5317        .14745E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    16.645        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    .16948        .53565E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.7977        .92599E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     22.014        21.757        .85370E-04   -1.4769    
  21  norm          .10000E-03    73.472        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    30.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.3824        5.9795        .13084E-03   -1.5095    
  24  Normalizat    1.3255        .25841        .25121E-03   -.82809    
  25  Prefactor     .69403        .22942        .30838E-03   -1.0376    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.56964e-08
Minuit parameter uncertainties:
  1  1.02666e-05
  2  27.3215
  3  4.34217e-05
  4  4.18477e-06
  5  2.95396e-05
  6  8.29999e-06
  7  6.21944e-06
  8  5.0279e-06
  9  20.9601
  10  2.08184
  11  0.000138567
  12  0.00463986
  13  4.81554e-06
  14  30.2336
  15  3.70074
  16  5.4403e-07
  17  2.93321e-06
  18  6.93604e-07
  19  7.98521e-07
  20  21.7651
  21  3.18813e-05
  22  9.80949e-06
  23  5.97991
  24  0.258661
  25  0.229733
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  5.440e-07  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:  6.940e-01  2.297e-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.325e+00  2.587e-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.61e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.76e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174225/likelihoodResults_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.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) = 5031.23105822
delta logL = -0.000961147010457

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5031.23009706
delta logL = 1.13459464046e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9900       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3255       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69403       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5031.128     FROM MIGRAD    STATUS=FAILED       138 CALLS      282 TOTAL
                     EDM=   .24E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40334E-01    3.5140        .67784E-02    .41878E-02
   2  alpha         5.0000        4.9822        .50000    ** at limit **
   3  Normalizat    1.2876        .66639E-01    .25121E-03    .52950E-05
   4  Prefactor     .71443        .55852E-01    .30838E-03   -.28018E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5031.128     FROM SIMPLEX   STATUS=UNCHANGED    178 CALLS      460 TOTAL
                     EDM=   .97E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40334E-01    3.5140        .32686E-07    .41878E-02
   2  alpha         5.0000        4.9822        .15589E-01** at limit **
   3  Normalizat    1.2876        .66639E-01    .13891E-07    .52950E-05
   4  Prefactor     .71443        .55852E-01    .14406E-08   -.28018E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5031.128     FROM MIGRAD    STATUS=CONVERGED     38 CALLS      498 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .40334E-01    .99690E-01    .27500E-03    .16774E-01
   2  alpha         5.0000        4.1377        .50000    ** at limit **
   3  Normalizat    1.2876        .26321        .10048E-04    .52045E-05
   4  Prefactor     .71443        .23245        .12335E-04   -.29493E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0403335
  alpha      = 5
  Normalizat = 1.28765
  Prefactor  = 0.714433
 **********
 **   18 **HESSE 
 **********

 FCN=   5031.128     FROM HESSE     STATUS=OK            31 CALLS      529 TOTAL
                     EDM=   .94E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .40334E-01    .96637E-01    .55001E-04   -1.5668    
   2  alpha         5.0000        4.0747        .50000       -4.7124    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.2876        .26431        .20096E-05   -.83936    
   4  Prefactor     .71443        .23313        .24670E-05   -1.0296    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.37279e-12
Minuit parameter uncertainties:
  1  0.0966369
  2  3.51363e-06
  3  0.264582
  4  0.233445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174225': 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) = 5031.12849049
delta logL = 0.101606585044

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  4.033e-02  9.664e-02  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  5.000e+00  3.514e-06  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.144e-01  2.334e-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.288e+00  2.646e-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/174225/cmap_HighResolution_517968001_518227201_4FGL_J0402.0-2616_daily_bin1075.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.76e-05', job_status='DONE', photon_flux_upper_limit='3.61e-08', time_completed='2021-08-20 00:20:19.452917', job_id='174225', GAL2='0.71', fit_tolerance='1e-08', EG2='1.29', EG='1.33', time_epoch_completed='1629444019.45', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.69', dlogl='1.02e-01', ts2='0.23', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1075' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:20:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 174225: <4FGL_J0402.0-2616_daily_bin1075> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1075> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 00:05:40 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:05:41 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:41 2021
Terminated at Fri Aug 20 00:20:20 2021
Results reported at Fri Aug 20 00:20:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1075 60.5103 -26.273 517968001 518227201 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 :                                   731.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             294.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            880 sec.

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

