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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin222
RA = 60.5103, Dec = -26.273
tmin = 296870401, tmax = 297129601
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='167487', job_status='RUN', time_executed='2021-08-19 23:47:02.628019', time_epoch_executed='1629442022.63' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='222'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/167487

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/167487/ft1_4FGL_J0402.0-2616_daily_bin222.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/167487/ft1_4FGL_J0402.0-2616_daily_bin222.fits outfile=/scratch/kocevski/167487/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin222.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=296870401.0 tmax=297129601.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 7.20
user 3.39
sys 3.70

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.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/167487/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin222.fits evtable="EVENTS" outfile="/scratch/kocevski/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.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 4.05
user 0.30
sys 3.71

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.fits" evtable="EVENTS" scfile=/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits sctable="SC_DATA" outfile=/scratch/kocevski/167487/ltcube_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.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/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits
.....................!
real 19.72
user 15.38
sys 4.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits sctable="SC_DATA" expcube=/scratch/kocevski/167487/ltcube_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.fits outfile=/scratch/kocevski/167487/expmap_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.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/167487/ltcube_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.fits
.....................!
real 195.24
user 184.64
sys 10.18

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/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.fits scfile=/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits outfile=/scratch/kocevski/167487/cmap_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.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 4.02
user 0.36
sys 3.63

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.fits scfile=/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits outfile=/scratch/kocevski/167487/cmap_HighResolution_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.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 3.99
user 0.38
sys 3.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.fits evtable="EVENTS" scfile=/scratch/kocevski/167487/ft2_4FGL_J0402.0-2616_daily_bin222.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/167487/Model_4FGL_J0402.0-2616_daily_bin222.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/167487/ft1_filtered_4FGL_J0402.0-2616_daily_bin222.fits......................!
real 103.29
user 97.16
sys 5.85

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10550E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.934       1.0000         .10000E-03   10000.    
     3 'Prefactor '    88.658       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .22192       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11618E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .27319       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.9083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    16.341       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1963       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.5880       1.0000         .10000E-03   10000.    
    13 'Prefactor '    50.680       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .11519E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10134E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    2.6881       1.0000         .10000E-03   10000.    
    19 'Prefactor '    5.8534       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    173.35       1.0000         .10000E-03   10000.    
    23 'norm      '    .10241E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .90281       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .95645       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=   4323.635     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3055 TOTAL
                     EDM=   .49E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    188.38        .27458E-05** at limit **
   2  Prefactor     13.949        23.846       -.26890E-07    .14517E-04
   3  Prefactor     88.532        62.809        .45372E-06   -.76074E-04
   4  Prefactor     .60102        162.28        .78935E-05   -.13002E-03
   5  Prefactor     .10000E-03    81.649        .63030E-07** at limit **
   6  Prefactor     .27352        3.6896       -.14818E-05    .14432E-03
   7  Prefactor     .10000E-03    1.9064       -.13433E-06** at limit **
   8  Prefactor     8.9114        5.7218        .26386E-07    .10892E-03
   9  Prefactor     16.340        21.186        .38920E-07   -.28214E-05
  10  norm          1.1966        1.0381        .17454E-06    .54759E-03
  11  Prefactor     .10000E-03    22.517       -.79936E-07** at limit **
  12  norm          6.5899        2.5614       -.96977E-07    .29050E-03
  13  Prefactor     50.703        87.243        .37084E-06   -.14029E-05
  14  Prefactor     .10000E-03    14.802       -.73886E-07** at limit **
  15  Prefactor     .10000E-03    .96329        .20891E-08** at limit **
  16  norm          .10008E-03    158.95       -.28464E-05** at limit **
  17  Prefactor     .10000E-03    30.289       -.23237E-06** at limit **
  18  norm          2.6884        .75126        .36910E-07    .32965E-03
  19  Prefactor     5.8535        5.2706       -.13369E-06   -.33610E-05
  20  Prefactor     .10000E-03    10.281       -.14602E-06** at limit **
  21  norm          .10000E-03    64.267       -.70400E-07** at limit **
  22  Prefactor     173.35        98.836       -.79872E-07    .45548E-05
  23  norm          .10000E-03    3.7121       -.40880E-06** at limit **
  24  Normalizat    .90257        .26486       -.46855E-05    .48126E-05
  25  Prefactor     .95670        .24257        .51185E-05    .17902E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 13.9489
  Prefactor  = 88.5319
  Prefactor  = 0.601016
  Prefactor  = 0.0001
  Prefactor  = 0.273517
  Prefactor  = 0.0001
  Prefactor  = 8.91144
  Prefactor  = 16.3401
  norm       = 1.19665
  Prefactor  = 0.0001
  norm       = 6.5899
  Prefactor  = 50.7029
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100075
  Prefactor  = 0.0001
  norm       = 2.68839
  Prefactor  = 5.85355
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 173.353
  norm       = 0.0001
  Normalizat = 0.902574
  Prefactor  = 0.956697
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.635     FROM HESSE     STATUS=OK           439 CALLS     3494 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    187.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.949        23.781        .10730E-03   -1.4961    
   3  Prefactor     88.532        64.146        .21336E-03   -1.3823    
   4  Prefactor     .60102        68.501        .15313       -1.5553    
   5  Prefactor     .10000E-03    81.857        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .27352        5.4351        .20169E-02   -1.5603    
   7  Prefactor     .10000E-03    1.9156        .88645E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     8.9114        5.6822        .11762E-03   -1.5111    
   9  Prefactor     16.340        21.191        .99079E-04   -1.4899    
  10  norm          1.1966        1.0254        .60165E-04   -1.5489    
  11  Prefactor     .10000E-03    22.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.5899        2.5260        .60193E-04   -1.5194    
  13  Prefactor     50.703        87.247        .56333E-04   -1.4283    
  14  Prefactor     .10000E-03    14.858        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    .96763        .63007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10008E-03    161.15        .56437E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    30.388        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          2.6884        .75147        .28007E-04   -1.5380    
  19  Prefactor     5.8535        5.2711        .13646E-03   -1.5224    
  20  Prefactor     .10000E-03    10.295        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    64.266        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     173.35        98.804        .15324E-03   -1.3067    
  23  norm          .10000E-03    3.8379        .24783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .90257        .27375        .29312E-03   -.96370    
  25  Prefactor     .95670        .25416        .27210E-03   -.94187    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.55623e-10
Minuit parameter uncertainties:
  1  9.19604e-05
  2  23.797
  3  64.1963
  4  12.8469
  5  0.000203238
  6  2.43832
  7  7.34628e-06
  8  5.68257
  9  21.2009
  10  1.02546
  11  4.93577e-05
  12  2.52603
  13  87.4679
  14  3.00365e-05
  15  3.9868e-07
  16  0.00697423
  17  8.79736e-05
  18  0.751475
  19  5.27152
  20  3.30441e-05
  21  3.12154e-06
  22  98.8991
  23  3.88496e-05
  24  0.274169
  25  0.254475
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.001e-04  6.974e-03  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:  9.567e-01  2.545e-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:  9.026e-01  2.742e-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: 7.02e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.36e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/167487/likelihoodResults_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.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) = 4323.63496431
delta logL = -2.84908346657e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4323.56677304
delta logL = 0.0681627809818

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.7837       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0264       1.0000          .0000       5.0000    
     3 'Normalizat'    .89488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95200       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.

 FCN=   4323.567     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      274 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.7890        184.44        .78326E-02    .74774E-03
   2  alpha         3.0253        3.8654        .42368        .35152E-04
   3  Normalizat    .89185        .45891E-01    .66618E-01    .89438E-04
   4  Prefactor     .95491        .43799E-01    .45664E-01    .68124E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 1.78904
  alpha      = 3.02535
  Normalizat = 0.891852
  Prefactor  = 0.954911
 **********
 **   18 **HESSE 
 **********

 FCN=   4323.567     FROM HESSE     STATUS=OK            33 CALLS      307 TOTAL
                     EDM=   .32E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.7890        16.427        .23764E-03   -1.5440    
   2  alpha         3.0253        3.7184        .19818E-01    .21172    
   3  Normalizat    .89185        .26246        .29470E-03   -.96747    
   4  Prefactor     .95491        .25049        .27227E-03   -.94248    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.17259e-11
Minuit parameter uncertainties:
  1  10.8458
  2  2.64494
  3  0.262832
  4  0.250795
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/167487': 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) = 4323.56670009
delta logL = 0.0682357320684

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.789e+00  1.085e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  3.025e+00  2.645e+00  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:  9.549e-01  2.508e-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.919e-01  2.628e-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/167487/cmap_HighResolution_296870401_297129601_4FGL_J0402.0-2616_daily_bin222.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.36e-05', job_status='DONE', photon_flux_upper_limit='7.02e-08', time_completed='2021-08-19 23:58:15.974709', job_id='167487', GAL2='0.95', fit_tolerance='1e-08', EG2='0.89', EG='0.90', time_epoch_completed='1629442695.97', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='6.82e-02', ts2='0.15', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='222' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Aug 19 23:58:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 167487: <4FGL_J0402.0-2616_daily_bin222> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin222> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Aug 19 23:45:49 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Aug 19 23:45:51 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:45:51 2021
Terminated at Thu Aug 19 23:58:16 2021
Results reported at Thu Aug 19 23:58:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin222 60.5103 -26.273 296870401 297129601 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 :                                   721.07 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             340.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   745 sec.
    Turnaround time :                            747 sec.

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

