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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin878
RA = 60.5103, Dec = -26.273
tmin = 466905601, tmax = 467164801
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='171979', job_status='RUN', time_executed='2021-08-20 00:01:05.062570', time_epoch_executed='1629442865.06' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='878'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171979

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171979/ft1_4FGL_J0402.0-2616_daily_bin878.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171979/ft1_4FGL_J0402.0-2616_daily_bin878.fits outfile=/scratch/kocevski/171979/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin878.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=466905601.0 tmax=467164801.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 4.37
user 3.42
sys 0.93

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171979/ft1_filtered_4FGL_J0402.0-2616_daily_bin878.fits" evtable="EVENTS" scfile=/scratch/kocevski/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits sctable="SC_DATA" outfile=/scratch/kocevski/171979/ltcube_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.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/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits
.....................!
real 12.67
user 11.44
sys 1.19

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171979/ft1_filtered_4FGL_J0402.0-2616_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits sctable="SC_DATA" expcube=/scratch/kocevski/171979/ltcube_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.fits outfile=/scratch/kocevski/171979/expmap_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.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/171979/ltcube_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.fits
.....................!
real 191.68
user 185.64
sys 5.68

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/171979/ft1_filtered_4FGL_J0402.0-2616_daily_bin878.fits scfile=/scratch/kocevski/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits outfile=/scratch/kocevski/171979/cmap_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.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 1.25
user 0.38
sys 0.86

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171979/ft1_filtered_4FGL_J0402.0-2616_daily_bin878.fits scfile=/scratch/kocevski/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits outfile=/scratch/kocevski/171979/cmap_HighResolution_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.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 1.28
user 0.37
sys 0.90

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/171979/ft1_filtered_4FGL_J0402.0-2616_daily_bin878.fits evtable="EVENTS" scfile=/scratch/kocevski/171979/ft2_4FGL_J0402.0-2616_daily_bin878.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/171979/Model_4FGL_J0402.0-2616_daily_bin878.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/171979/ft1_filtered_4FGL_J0402.0-2616_daily_bin878.fits.....................!
real 116.43
user 113.98
sys 2.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    32.805       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    47.817       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.3081       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.1141       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.6391       1.0000         .10000E-03   10000.    
    12 'norm      '    1.6588       1.0000         .10000E-03   10000.    
    13 'Prefactor '    107.02       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    2.1206       1.0000         .10000E-03   10000.    
    16 'norm      '    8.1472       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.940       1.0000         .10000E-03   10000.    
    18 'norm      '    5.9781       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10041E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    15.885       1.0000         .10000E-03   10000.    
    23 'norm      '    9.5439       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .72258       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.3149       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=   5251.015     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2912 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    70.173       -.38279E-05** at limit **
   2  Prefactor     32.804        25.147       -.54324E-07    .16518E-05
   3  Prefactor     .10000E-03    46.698       -.11980E-05** at limit **
   4  Prefactor     47.815        46.272       -.41594E-06   -.13308E-04
   5  Prefactor     .10000E-03    20.460        .28446E-07** at limit **
   6  Prefactor     .10000E-03    .99570       -.66142E-07** at limit **
   7  Prefactor     1.3085        4.9343       -.16290E-05   -.33572E-03
   8  Prefactor     4.1148        4.2756        .19927E-05   -.27867E-02
   9  Prefactor     .10000E-03    11.403       -.19219E-07** at limit **
  10  norm          .10000E-03    .50284       -.82940E-08** at limit **
  11  Prefactor     6.6336        34.805       -.36858E-05   -.40013E-04
  12  norm          1.6587        1.8361       -.32670E-06   -.15852E-03
  13  Prefactor     107.01        138.53       -.12756E-05   -.12267E-04
  14  Prefactor     .10000E-03    14.539        .65471E-07** at limit **
  15  Prefactor     2.1200        3.9584       -.40403E-06   -.22313E-03
  16  norm          8.1405        24.251       -.90113E-05   -.84146E-04
  17  Prefactor     18.959        45.875        .15847E-04    .21247E-03
  18  norm          5.9782        .88031        .17849E-07   -.27576E-05
  19  Prefactor     .10000E-03    5.1250        .29262E-07** at limit **
  20  Prefactor     .10000E-03    8.5404        .38134E-07** at limit **
  21  norm          .10000E-03    64.296        .53637E-05** at limit **
  22  Prefactor     15.875        53.423       -.99001E-05   -.76260E-04
  23  norm          9.5442        5.8910        .67510E-06    .22758E-03
  24  Normalizat    .72233        .23501       -.28863E-05    .10255E-03
  25  Prefactor     1.3152        .21500        .15689E-05   -.61550E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Prefactor  = 32.8041
  Prefactor  = 0.0001
  Prefactor  = 47.8154
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.30845
  Prefactor  = 4.11481
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 6.63365
  norm       = 1.65872
  Prefactor  = 107.014
  Prefactor  = 0.0001
  Prefactor  = 2.12003
  norm       = 8.14048
  Prefactor  = 18.9585
  norm       = 5.97821
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100001
  Prefactor  = 15.8754
  norm       = 9.54422
  Normalizat = 0.722334
  Prefactor  = 1.31517
 **********
 **   18 **HESSE 
 **********

 FCN=   5251.015     FROM HESSE     STATUS=OK           423 CALLS     3335 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    70.219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     32.804        25.146        .69961E-04   -1.4562    
   3  Prefactor     .10000E-03    46.803        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     47.815        46.247        .57988E-04   -1.4324    
   5  Prefactor     .10000E-03    20.469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.0057        .70569E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.3085        4.9480        .26845E-03   -1.5479    
   8  Prefactor     4.1148        6.2878        .92949E-03   -1.5302    
   9  Prefactor     .10000E-03    11.425        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .67898        .98259E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.6336        34.924        .15574E-03   -1.5193    
  12  norm          1.6587        1.8201        .94490E-04   -1.5450    
  13  Prefactor     107.01        138.81        .38875E-04   -1.3635    
  14  Prefactor     .10000E-03    14.558        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     2.1200        3.9088        .17855E-03   -1.5417    
  16  norm          8.1405        24.577        .14046E-03   -1.5137    
  17  Prefactor     18.959        47.529        .92032E-04   -1.4837    
  18  norm          5.9782        .88279        .24679E-04   -1.5219    
  19  Prefactor     .10000E-03    5.2603        .31975E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.5538        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    64.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     15.875        53.719        .10049E-03   -1.4911    
  23  norm          9.5442        5.8847        .12972E-03   -1.5090    
  24  Normalizat    .72233        .26974        .34410E-03   -1.0302    
  25  Prefactor     1.3152        .25002        .25674E-03   -.82857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.24483e-09
Minuit parameter uncertainties:
  1  0.000459867
  2  25.1542
  3  8.48581e-05
  4  46.2819
  5  6.61525e-06
  6  1.42644e-06
  7  4.94953
  8  6.28879
  9  3.35128e-06
  10  2.26045e-06
  11  30.4693
  12  1.82012
  13  139.235
  14  4.41035e-05
  15  3.90925
  16  24.6074
  17  47.6239
  18  0.882789
  19  3.79896e-06
  20  1.07841e-05
  21  0.000615771
  22  53.8838
  23  5.88503
  24  0.270236
  25  0.250246
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  8.140e+00  2.461e+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.315e+00  2.502e-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:  7.223e-01  2.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/171979/likelihoodResults_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.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) = 5249.28630999
delta logL = 1.72903754048

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5249.257157
delta logL = 1.75819053115

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.8422       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.7730       1.0000          .0000       5.0000    
     3 'Normalizat'    .58086       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.3799       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=   5249.257     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      270 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.8412        44.618        .67682E-04   -.13700E-02
   2  alpha         3.7732        4.2670        .78563E-02   -.13945E-03
   3  Normalizat    .58086        .27715        .37970E-03   -.41450E-03
   4  Prefactor     1.3799        .27211        .25097E-03   -.76664E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.84119
  alpha      = 3.77317
  Normalizat = 0.58086
  Prefactor  = 1.37995
 **********
 **   18 **HESSE 
 **********

 FCN=   5249.257     FROM HESSE     STATUS=OK            25 CALLS      295 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.8412        5.9998        .27073E-05   -1.5371    
   2  alpha         3.7732        .92179        .31425E-03    .53433    
   3  Normalizat    .58086        .25770        .15188E-04   -1.0880    
   4  Prefactor     1.3799        .24637        .50195E-04   -.80960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25625e-09
Minuit parameter uncertainties:
  1  6.00109
  2  0.952606
  3  0.258238
  4  0.246577
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171979': 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) = 5249.25715685
delta logL = 1.75819068849

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  2.841e+00  6.001e+00  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  3.773e+00  9.526e-01  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.380e+00  2.466e-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:  5.809e-01  2.582e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.98
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 3.77 +/- 0.95
Photon Flux (Free Index): 1.42e-07 +/- 9.02e-08
Energy Flux (Free Index): 2.60e-05 +/- 1.60e-05

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/171979/cmap_HighResolution_466905601_467164801_4FGL_J0402.0-2616_daily_bin878.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.29e-05', comment='SUCCESS', energy_flux2='2.60e-05', dlogl='1.76e+00', photon_flux2='1.42e-07', job_status='DONE', time_completed='2021-08-20 00:12:39.504801', photon_index_error2='0.95', photon_index2='3.77', ts='0.20', fit_tolerance='1e-08', GAL='1.32', photon_index_error='0.00', photon_flux_upper_limit='8.24e-08', energy_flux_error2='1.60e-05', EG='0.72', time_epoch_completed='1629443559.5', return_code='0', job_id='171979', GAL2='1.38', EG2='0.58', return_code2='0', photon_flux_error2='9.02e-08', ts2='3.98', photon_index='2.00' WHERE bin_id='878' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:12:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0226>
Subject: Job 171979: <4FGL_J0402.0-2616_daily_bin878> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin878> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 00:00:35 2021
Job was executed on host(s) <bullet0226>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:00:36 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:36 2021
Terminated at Fri Aug 20 00:12:39 2021
Results reported at Fri Aug 20 00:12:39 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin878 60.5103 -26.273 466905601 467164801 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 :                                   702.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             357.22 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   723 sec.
    Turnaround time :                            724 sec.

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

