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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1038
RA = 60.5103, Dec = -26.273
tmin = 508377601, tmax = 508636801
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='174167', job_status='RUN', time_executed='2021-08-20 00:06:37.578855', time_epoch_executed='1629443197.58' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1038'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/174167

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/174167/ft1_4FGL_J0402.0-2616_daily_bin1038.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/174167/ft1_4FGL_J0402.0-2616_daily_bin1038.fits outfile=/scratch/kocevski/174167/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1038.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=508377601.0 tmax=508636801.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.46
user 3.36
sys 3.01

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/174167/ft1_filtered_4FGL_J0402.0-2616_daily_bin1038.fits" evtable="EVENTS" scfile=/scratch/kocevski/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits sctable="SC_DATA" outfile=/scratch/kocevski/174167/ltcube_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.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/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits
.....................!
real 16.70
user 11.83
sys 3.51

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/174167/ft1_filtered_4FGL_J0402.0-2616_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits sctable="SC_DATA" expcube=/scratch/kocevski/174167/ltcube_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.fits outfile=/scratch/kocevski/174167/expmap_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.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/174167/ltcube_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.fits
.....................!
real 195.89
user 186.66
sys 8.66

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/174167/ft1_filtered_4FGL_J0402.0-2616_daily_bin1038.fits scfile=/scratch/kocevski/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits outfile=/scratch/kocevski/174167/cmap_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.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 3.31
user 0.38
sys 2.90

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/174167/ft1_filtered_4FGL_J0402.0-2616_daily_bin1038.fits scfile=/scratch/kocevski/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits outfile=/scratch/kocevski/174167/cmap_HighResolution_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.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.29
user 0.38
sys 2.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/174167/ft1_filtered_4FGL_J0402.0-2616_daily_bin1038.fits evtable="EVENTS" scfile=/scratch/kocevski/174167/ft2_4FGL_J0402.0-2616_daily_bin1038.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/174167/Model_4FGL_J0402.0-2616_daily_bin1038.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/174167/ft1_filtered_4FGL_J0402.0-2616_daily_bin1038.fits.....................!
real 102.61
user 97.36
sys 4.89

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10028E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.789       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.7146       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.785       1.0000         .10000E-03   10000.    
    10 'norm      '    2.3395       1.0000         .10000E-03   10000.    
    11 'Prefactor '    18.692       1.0000         .10000E-03   10000.    
    12 'norm      '    2.5167       1.0000         .10000E-03   10000.    
    13 'Prefactor '    148.73       1.0000         .10000E-03   10000.    
    14 'Prefactor '    13.937       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.4245       1.0000         .10000E-03   10000.    
    16 'norm      '    .10097E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14764E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .11421       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10899       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .67634       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=   4126.103     FROM MIGRAD    STATUS=CONVERGED    600 CALLS     3004 TOTAL
                     EDM=   .39E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    177.33       -.31710E-04** at limit **
   2  Prefactor     .10000E-03    8.8293        .57039E-08** at limit **
   3  Prefactor     .10000E-03    20.663        .92309E-06** at limit **
   4  Prefactor     .10000E-03    35.160        .25256E-06** at limit **
   5  Prefactor     35.802        33.770        .29551E-05    .13581E-05
   6  Prefactor     .10000E-03    2.5315        .15344E-07** at limit **
   7  Prefactor     1.7149        3.0212       -.20781E-06   -.45719E-03
   8  Prefactor     .10000E-03    3.5091        .89007E-08** at limit **
   9  Prefactor     14.795        19.823        .82962E-06   -.37585E-05
  10  norm          2.3397        1.0712       -.69586E-08   -.28637E-03
  11  Prefactor     18.679        34.884       -.76004E-05   -.15869E-04
  12  norm          2.5157        1.8354        .29061E-08   -.37491E-03
  13  Prefactor     148.73        129.51        .42496E-05   -.16408E-05
  14  Prefactor     13.946        29.819        .60132E-05    .10319E-05
  15  Prefactor     1.4212        3.1315       -.43576E-06   -.72699E-03
  16  norm          .10000E-03    11.772       -.40136E-07** at limit **
  17  Prefactor     .10000E-03    147.55        .33203E-04** at limit **
  18  norm          .11405        .24709       -.99531E-07   -.24018E-02
  19  Prefactor     .17213        2.5827       -.30761E-06    .47474E-04
  20  Prefactor     .10000E-03    7.1720       -.59743E-08** at limit **
  21  norm          .10000E-03    88.374       -.46605E-05** at limit **
  22  Prefactor     .10000E-03    22.424       -.19194E-05** at limit **
  23  norm          .10000E-03    2.0629        .16301E-07** at limit **
  24  Normalizat    1.1272        .20106       -.47753E-06   -.10819E-03
  25  Prefactor     .67580        .18590        .20978E-06   -.11264E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 35.8022
  Prefactor  = 0.0001
  Prefactor  = 1.71488
  Prefactor  = 0.0001
  Prefactor  = 14.7951
  norm       = 2.33972
  Prefactor  = 18.679
  norm       = 2.5157
  Prefactor  = 148.731
  Prefactor  = 13.9462
  Prefactor  = 1.42121
  norm       = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.11405
  Prefactor  = 0.172127
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 1.12719
  Prefactor  = 0.675802
 **********
 **   18 **HESSE 
 **********

 FCN=   4126.103     FROM HESSE     STATUS=OK           425 CALLS     3429 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    176.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.8557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.675        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    35.195        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     35.802        33.785        .66989E-04   -1.4511    
   6  Prefactor     .10000E-03    2.6210        .19870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.7149        2.9929        .14279E-03   -1.5446    
   8  Prefactor     .10000E-03    3.5642        .11723E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.795        19.750        .10417E-03   -1.4938    
  10  norm          2.3397        1.0710        .43205E-04   -1.5402    
  11  Prefactor     18.679        34.755        .92638E-04   -1.4843    
  12  norm          2.5157        1.8130        .68678E-04   -1.5391    
  13  Prefactor     148.73        129.63        .33046E-04   -1.3263    
  14  Prefactor     13.946        29.706        .10729E-03   -1.4961    
  15  Prefactor     1.4212        3.0996        .15606E-03   -1.5470    
  16  norm          .10000E-03    11.953        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    148.90        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .11405        .20853        .44915E-03   -1.5640    
  19  Prefactor     .17213        24.205        .19446E-02   -1.5625    
  20  Prefactor     .10000E-03    7.1817        .16801E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    88.365        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    22.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    2.0815        .90078E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.1272        .22797        .22320E-03   -.88884    
  25  Prefactor     .67580        .21215        .26690E-03   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.54144e-10
Minuit parameter uncertainties:
  1  1.87161e-05
  2  1.99444e-06
  3  3.90935e-06
  4  1.81582e-06
  5  33.8028
  6  1.02032e-06
  7  2.99312
  8  2.37032e-06
  9  19.7589
  10  1.07099
  11  34.7923
  12  1.81307
  13  129.874
  14  29.7374
  15  3.09998
  16  2.47381e-05
  17  0.00136396
  18  0.208529
  19  4.08282
  20  2.01326e-06
  21  9.45085e-07
  22  2.46615e-06
  23  8.13212e-07
  24  0.228166
  25  0.212398
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  2.474e-05  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.995e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
257         beta:  1.705e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  6.758e-01  2.124e-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.127e+00  2.282e-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: 4.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.24e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/174167/likelihoodResults_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4126.10379132
delta logL = -0.000398354080971

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4126.10339296
delta logL = 1.52776920004e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0067       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1272       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67581       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=   4126.103     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      250 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.548        .62388E-01** at limit **
   2  alpha         2.3026        3.7771        .16885E-01    .12119E-07
   3  Normalizat    1.1272        .75389E-02    .22321E-03    .75250E-04
   4  Prefactor     .67580        .71781E-02    .26690E-03    .77098E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.30255
  Normalizat = 1.12719
  Prefactor  = 0.675802
 **********
 **   18 **HESSE 
 **********

 FCN=   4126.103     FROM HESSE     STATUS=OK            25 CALLS      275 TOTAL
                     EDM=   .26E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.993        .31845E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3026        3.2338        .67540E-03   -.79061E-01
   3  Normalizat    1.1272        .21871        .44641E-04   -.88884    
   4  Prefactor     .67580        .20817        .10676E-04   -1.0448    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.59749e-11
Minuit parameter uncertainties:
  1  4.04825e-05
  2  361.774
  3  0.218883
  4  0.208408
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/174167': 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) = 4126.10339265
delta logL = 3.15420038532e-07

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.000e-04  4.048e-05  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  2.303e+00  3.618e+02  0.000e+00  5.000e+00 ( 1.000e+00)
257         beta:  1.705e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
258           Eb:  1.630e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  6.758e-01  2.084e-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.127e+00  2.189e-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/174167/cmap_HighResolution_508377601_508636801_4FGL_J0402.0-2616_daily_bin1038.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.24e-05', job_status='DONE', photon_flux_upper_limit='4.24e-08', time_completed='2021-08-20 00:17:30.092388', job_id='174167', GAL2='0.68', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1629443850.09', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='3.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.00' WHERE bin_id='1038' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:17:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 174167: <4FGL_J0402.0-2616_daily_bin1038> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1038 60.5103 -26.273 508377601 508636801 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 :                                   688.50 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   714 sec.
    Turnaround time :                            716 sec.

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

