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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin825
RA = 60.5103, Dec = -26.273
tmin = 453168001, tmax = 453427201
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='171875', job_status='RUN', time_executed='2021-08-20 00:04:14.941477', time_epoch_executed='1629443054.94' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='825'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171875

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171875/ft1_4FGL_J0402.0-2616_daily_bin825.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171875/ft1_4FGL_J0402.0-2616_daily_bin825.fits outfile=/scratch/kocevski/171875/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin825.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=453168001.0 tmax=453427201.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 12.95
user 3.44
sys 9.46

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171875/ft1_filtered_4FGL_J0402.0-2616_daily_bin825.fits" evtable="EVENTS" scfile=/scratch/kocevski/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits sctable="SC_DATA" outfile=/scratch/kocevski/171875/ltcube_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.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/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits
.....................!
real 22.78
user 11.90
sys 10.76

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171875/ft1_filtered_4FGL_J0402.0-2616_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits sctable="SC_DATA" expcube=/scratch/kocevski/171875/ltcube_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.fits outfile=/scratch/kocevski/171875/expmap_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.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/171875/ltcube_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.fits
.....................!
real 205.30
user 187.60
sys 17.02

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/171875/ft1_filtered_4FGL_J0402.0-2616_daily_bin825.fits scfile=/scratch/kocevski/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits outfile=/scratch/kocevski/171875/cmap_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.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 9.47
user 0.39
sys 8.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171875/ft1_filtered_4FGL_J0402.0-2616_daily_bin825.fits scfile=/scratch/kocevski/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits outfile=/scratch/kocevski/171875/cmap_HighResolution_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.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 9.00
user 0.38
sys 8.35

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171875/ft1_filtered_4FGL_J0402.0-2616_daily_bin825.fits evtable="EVENTS" scfile=/scratch/kocevski/171875/ft2_4FGL_J0402.0-2616_daily_bin825.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171875/Model_4FGL_J0402.0-2616_daily_bin825.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/171875/ft1_filtered_4FGL_J0402.0-2616_daily_bin825.fits.....................!
real 107.38
user 92.60
sys 13.32

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    424.87       1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.8805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    28.857       1.0000         .10000E-03   10000.    
     4 'Prefactor '    107.92       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    7.6370       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.6524       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23235       1.0000         .10000E-03   10000.    
    10 'norm      '    .17575E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10850E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.307       1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.9956       1.0000         .10000E-03   10000.    
    16 'norm      '    5.1873       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    1.5853       1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.9225       1.0000         .10000E-03   10000.    
    20 'Prefactor '    21.199       1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    180.07       1.0000         .10000E-03   10000.    
    23 'norm      '    4.0384       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .91802       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3316       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=   4098.369     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3060 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     424.78        361.81        .40361E-05    .56844E-05
   2  Prefactor     6.8722        29.589       -.28259E-06    .20197E-05
   3  Prefactor     28.857        52.187        .81117E-07    .17258E-04
   4  Prefactor     107.93        70.608        .72407E-06    .34192E-04
   5  Prefactor     .10000E-03    42.705       -.49006E-06** at limit **
   6  Prefactor     .10000E-03    1.7942       -.67574E-07** at limit **
   7  Prefactor     7.6386        8.0748        .57456E-07    .13050E-03
   8  Prefactor     2.6491        7.4491        .18165E-06    .55602E-04
   9  Prefactor     .21238E-03    47.224       -.21238E-05** at limit **
  10  norm          .10680E-03    .70600       -.21604E-06** at limit **
  11  Prefactor     .10000E-03    40.689        .56413E-06** at limit **
  12  norm          .10000E-03    1.5565       -.28792E-07** at limit **
  13  Prefactor     .10000E-03    405.88       -.37562E-05** at limit **
  14  Prefactor     21.298        35.024       -.64620E-06   -.23638E-05
  15  Prefactor     2.9949        3.8309        .94353E-07    .38364E-04
  16  norm          5.1872        16.485       -.41263E-05   -.17947E-04
  17  Prefactor     .10000E-03    32.663        .60327E-06** at limit **
  18  norm          1.5865        .69568        .36137E-07    .14525E-02
  19  Prefactor     1.9207        6.0266        .18908E-06    .80046E-05
  20  Prefactor     21.192        25.761        .15691E-07    .45383E-05
  21  norm          .10000E-03    100.92       -.85724E-06** at limit **
  22  Prefactor     180.06        101.68        .52686E-06    .59085E-05
  23  norm          4.0347        8.1581        .18313E-05    .87916E-04
  24  Normalizat    .91852        .28084        .46835E-07    .15952E-03
  25  Prefactor     1.3314        .24964       -.16146E-06    .12611E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 424.778
  Prefactor  = 6.87216
  Prefactor  = 28.8566
  Prefactor  = 107.929
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.63862
  Prefactor  = 2.64911
  Prefactor  = 0.000212382
  norm       = 0.000106796
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.2979
  Prefactor  = 2.99489
  norm       = 5.18718
  Prefactor  = 0.0001
  norm       = 1.58653
  Prefactor  = 1.92067
  Prefactor  = 21.1921
  norm       = 0.0001
  Prefactor  = 180.063
  norm       = 4.03467
  Normalizat = 0.91852
  Prefactor  = 1.33139
 **********
 **   18 **HESSE 
 **********

 FCN=   4098.369     FROM HESSE     STATUS=OK           449 CALLS     3509 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     424.78        361.45        .99159E-04   -1.1556    
   2  Prefactor     6.8722        29.625        .15295E-03   -1.5184    
   3  Prefactor     28.857        52.225        .74580E-04   -1.4633    
   4  Prefactor     107.93        70.631        .19357E-03   -1.3626    
   5  Prefactor     .10000E-03    42.734        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.8110        .83657E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     7.6386        7.9722        .14511E-03   -1.5155    
   8  Prefactor     2.6491        7.2933        .23664E-03   -1.5382    
   9  Prefactor     .21238E-03    61.953        .98443E-01   -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10680E-03    1.6958        .17670E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    40.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    1.6175        .15531E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    407.30        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.298        35.044        .86772E-04   -1.4785    
  15  Prefactor     2.9949        3.8111        .13425E-03   -1.5362    
  16  norm          5.1872        16.461        .17650E-03   -1.5252    
  17  Prefactor     .10000E-03    32.765        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          1.5865        .70031        .31614E-04   -1.5456    
  19  Prefactor     1.9207        5.9955        .26055E-03   -1.5431    
  20  Prefactor     21.192        25.763        .86994E-04   -1.4787    
  21  norm          .10000E-03    100.91        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     180.06        101.67        .15040E-03   -1.3016    
  23  norm          4.0347        8.2028        .10033E-02   -1.5306    
  24  Normalizat    .91852        .33348        .32085E-03   -.95812    
  25  Prefactor     1.3314        .29476        .26357E-03   -.82378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.89626e-10
Minuit parameter uncertainties:
  1  363.415
  2  28.5607
  3  52.3074
  4  70.6858
  5  1.32515e-05
  6  2.49197e-06
  7  7.9733
  8  7.2957
  9  0.167054
  10  0.00678971
  11  4.83979e-05
  12  9.22089e-07
  13  0.000247558
  14  35.078
  15  3.8114
  16  16.4757
  17  0.0001289
  18  0.700309
  19  5.99733
  20  25.7764
  21  2.96848e-05
  22  101.765
  23  8.20508
  24  0.334231
  25  0.295129
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  5.187e+00  1.648e+01  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:  1.331e+00  2.951e-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.185e-01  3.342e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/171875/likelihoodResults_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.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) = 4098.33724357
delta logL = 0.0318167988635

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4098.33591346
delta logL = 0.0331469064431

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.4373       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6265       1.0000          .0000       5.0000    
     3 'Normalizat'    .90984       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3321       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=   4098.336     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      276 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.4376        18.943        .19117E-03    .68866E-04
   2  alpha         2.6261        3.6569        .23291E-01    .13385E-04
   3  Normalizat    .90941        .29847        .32232E-03    .17569E-03
   4  Prefactor     1.3326        .28666        .26347E-03    .20653E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 4.43759
  alpha      = 2.62609
  Normalizat = 0.909408
  Prefactor  = 1.33257
 **********
 **   18 **HESSE 
 **********

 FCN=   4098.336     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.4376        15.059        .76467E-05   -1.5287    
   2  alpha         2.6261        1.9793        .93164E-03    .50457E-01
   3  Normalizat    .90941        .29681        .12893E-04   -.96130    
   4  Prefactor     1.3326        .28599        .52694E-04   -.82344    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03308e-10
Minuit parameter uncertainties:
  1  15.0715
  2  2.28531
  3  0.297344
  4  0.286326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171875': 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) = 4098.33591223
delta logL = 0.0331481328376

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  4.438e+00  1.507e+01  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  2.626e+00  2.285e+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:  1.333e+00  2.863e-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.094e-01  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/171875/cmap_HighResolution_453168001_453427201_4FGL_J0402.0-2616_daily_bin825.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.90e-05', job_status='DONE', photon_flux_upper_limit='7.72e-08', time_completed='2021-08-20 00:16:48.728528', job_id='171875', GAL2='1.33', fit_tolerance='1e-08', EG2='0.91', EG='0.92', time_epoch_completed='1629443808.73', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='1.33', dlogl='3.31e-02', ts2='0.19', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='825' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:16:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 171875: <4FGL_J0402.0-2616_daily_bin825> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin825> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 00:00:28 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:00:30 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:00:30 2021
Terminated at Fri Aug 20 00:16:51 2021
Results reported at Fri Aug 20 00:16:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin825 60.5103 -26.273 453168001 453427201 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 :                                   879.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             291.14 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

