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


Performing analysis on: 4FGL_J0402.0-2616_daily_bin1387
RA = 60.5103, Dec = -26.273
tmin = 598838401, tmax = 599097601
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='175976', job_status='RUN', time_executed='2021-08-20 00:11:22.404363', time_epoch_executed='1629443482.4' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='1387'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/175976

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/175976/ft1_4FGL_J0402.0-2616_daily_bin1387.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/175976/ft1_4FGL_J0402.0-2616_daily_bin1387.fits outfile=/scratch/kocevski/175976/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1387.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=598838401.0 tmax=599097601.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.83
user 2.64
sys 2.11

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.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/175976/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin1387.fits evtable="EVENTS" outfile="/scratch/kocevski/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 2.34
user 0.34
sys 1.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits" evtable="EVENTS" scfile=/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits sctable="SC_DATA" outfile=/scratch/kocevski/175976/ltcube_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.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/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits
.....................!
real 15.30
user 12.74
sys 2.43

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits sctable="SC_DATA" expcube=/scratch/kocevski/175976/ltcube_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.fits outfile=/scratch/kocevski/175976/expmap_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.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/175976/ltcube_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.fits
.....................!
real 194.54
user 185.38
sys 8.11

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/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits scfile=/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits outfile=/scratch/kocevski/175976/cmap_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=60.5103 yref=-26.273 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 2.23
user 0.38
sys 1.83

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits scfile=/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits outfile=/scratch/kocevski/175976/cmap_HighResolution_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=60.5103 yref=-26.273 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 2.41
user 0.38
sys 2.02

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits evtable="EVENTS" scfile=/scratch/kocevski/175976/ft2_4FGL_J0402.0-2616_daily_bin1387.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/175976/Model_4FGL_J0402.0-2616_daily_bin1387.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/175976/ft1_filtered_4FGL_J0402.0-2616_daily_bin1387.fits....................!
real 167.93
user 163.88
sys 3.66

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .57567E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.867       1.0000         .10000E-03   10000.    
     3 'Prefactor '    34.785       1.0000         .10000E-03   10000.    
     4 'Prefactor '    33.426       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10433E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1972       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    11.502       1.0000         .10000E-03   10000.    
    11 'Prefactor '    19.889       1.0000         .10000E-03   10000.    
    12 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10127E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.6821       1.0000         .10000E-03   10000.    
    16 'norm      '    10.585       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8939       1.0000         .10000E-03   10000.    
    18 'norm      '    .39394       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    9.0923       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .82898       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2858       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=   7913.571     FROM MIGRAD    STATUS=CONVERGED    592 CALLS     2940 TOTAL
                     EDM=   .31E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    659.19       -.38914E-05** at limit **
   2  Prefactor     10.866        16.572       -.92301E-07    .39544E-06
   3  Prefactor     34.785        36.339        .24331E-06   -.87465E-05
   4  Prefactor     33.426        43.443        .59931E-07   -.96879E-05
   5  Prefactor     .10000E-03    25.916        .65701E-07** at limit **
   6  Prefactor     .10000E-03    .94512        .17224E-07** at limit **
   7  Prefactor     1.1969        3.4901        .14369E-05   -.18126E-04
   8  Prefactor     .10000E-03    1.2057       -.12006E-06** at limit **
   9  Prefactor     .10000E-03    3.2340        .88718E-08** at limit **
  10  norm          11.502        1.6697       -.59468E-07   -.35713E-03
  11  Prefactor     19.889        25.773        .11883E-06    .68005E-07
  12  norm          .10000E-03    .72816       -.13579E-06** at limit **
  13  Prefactor     .10000E-03    105.06       -.29531E-07** at limit **
  14  Prefactor     .10000E-03    16.735        .74888E-08** at limit **
  15  Prefactor     1.6822        2.9096        .56189E-06    .24955E-04
  16  norm          10.585        9.9134       -.15012E-06   -.11814E-04
  17  Prefactor     9.8946        23.993        .25139E-05   -.24659E-04
  18  norm          .39393        .27235        .57820E-07    .16233E-03
  19  Prefactor     .10000E-03    1.5216        .11873E-08** at limit **
  20  Prefactor     .10000E-03    9.3781        .21386E-07** at limit **
  21  norm          .10000E-03    51.680        .37234E-06** at limit **
  22  Prefactor     .10000E-03    42.806       -.29797E-06** at limit **
  23  norm          9.0920        4.6972        .87710E-07   -.20644E-04
  24  Normalizat    .82902        .17447       -.88303E-06   -.22683E-04
  25  Prefactor     1.2859        .16754       -.22907E-06   -.33417E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010002
  Prefactor  = 10.8665
  Prefactor  = 34.7851
  Prefactor  = 33.4262
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.19694
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.5019
  Prefactor  = 19.8893
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.6822
  norm       = 10.5852
  Prefactor  = 9.89465
  norm       = 0.393932
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 9.09203
  Normalizat = 0.829018
  Prefactor  = 1.28586
 **********
 **   18 **HESSE 
 **********

 FCN=   7913.571     FROM HESSE     STATUS=OK           431 CALLS     3371 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    666.43        .21086E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     10.866        16.545        .12154E-03   -1.5049    
   3  Prefactor     34.785        36.393        .67946E-04   -1.4528    
   4  Prefactor     33.426        43.440        .69309E-04   -1.4551    
   5  Prefactor     .10000E-03    25.942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.7713        .16375E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     1.1969        3.4771        .26358E-03   -1.5489    
   8  Prefactor     .10000E-03    1.2230        .95559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.2383        .15623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          11.502        1.6709        .39970E-04   -1.5030    
  11  Prefactor     19.889        25.807        .89811E-04   -1.4816    
  12  norm          .10000E-03    1.2010        .14232E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    105.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.6822        2.8657        .18674E-03   -1.5449    
  16  norm          10.585        9.9101        .12315E-03   -1.5057    
  17  Prefactor     9.8946        23.777        .63697E-03   -1.5079    
  18  norm          .39393        .26378        .36339E-03   -1.5582    
  19  Prefactor     .10000E-03    1.5298        .10714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    9.4080        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .10000E-03    51.776        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    42.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          9.0920        4.6973        .13292E-03   -1.5105    
  24  Normalizat    .82902        .20214        .30598E-03   -.99001    
  25  Prefactor     1.2859        .19525        .25544E-03   -.83728    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.45154e-11
Minuit parameter uncertainties:
  1  0.00745184
  2  16.5524
  3  36.4161
  4  43.4809
  5  2.66192e-05
  6  5.97521e-06
  7  3.47769
  8  6.41011e-06
  9  8.36719e-07
  10  1.67096
  11  25.8219
  12  5.72132e-06
  13  6.28724e-05
  14  4.79064e-07
  15  2.8659
  16  9.91168
  17  23.7999
  18  0.263779
  19  5.86857e-08
  20  4.1621e-06
  21  0.000268825
  22  0.000190221
  23  4.69746
  24  0.202319
  25  0.19536
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.059e+01  9.912e+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

GAL_V02
   Spectrum: PowerLaw
500    Prefactor:  1.286e+00  1.954e-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.290e-01  2.023e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.00
Ra Dec: 60.510 -26.273
Photon Index (Fixed Index): 2.00 +/- 0.00
Photon Flux (Fixed Index): 1.49e-08 +/- 1.39e-08
Energy Flux (Fixed Index): 1.14e-05 +/- 1.06e-05

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) = 7911.50168201
delta logL = 2.06888190962

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7911.12622753
delta logL = 2.44433638683

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.8604       1.0000         .10000E-03   10000.    
     2 'alpha     '    .16238       1.0000          .0000       5.0000    
     3 'Normalizat'    .82700       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2969       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=   7911.126     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      230 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.8608        3.5065        .76378E-02   -.30813E-02
   2  alpha         .16203        .97341        .50000        .65962E-04
   3  Normalizat    .82703        .16188        .69236E-01    .24656E-04
   4  Prefactor     1.2969        .16518        .57589E-01    .56808E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.86083
  alpha      = 0.162029
  Normalizat = 0.827026
  Prefactor  = 1.29687
 **********
 **   18 **HESSE 
 **********

 FCN=   7911.126     FROM HESSE     STATUS=OK            33 CALLS      263 TOTAL
                     EDM=   .87E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.8608        5.0758        .11685E-03   -1.5435    
   2  alpha         .16203        2.8249        .43069E-01   -1.2088    
   3  Normalizat    .82703        .18730        .30635E-03   -.99074    
   4  Prefactor     1.2969        .19141        .25464E-03   -.83400    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.67114e-08
Minuit parameter uncertainties:
  1  5.07694
  2  1.05492
  3  0.187448
  4  0.191511
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/175976': 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) = 7911.12622686
delta logL = 2.44433705615

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  1.861e+00  5.077e+00  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  1.620e-01  1.055e+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.297e+00  1.915e-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.270e-01  1.874e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.88
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 0.16 +/- 1.05
Photon Flux (Free Index): 3.04e-09 +/- 3.36e-09
Energy Flux (Free Index): 6.87e-05 +/- 8.58e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/175976/cmap_HighResolution_598838401_599097601_4FGL_J0402.0-2616_daily_bin1387.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.49e-08', energy_flux2='6.87e-05', photon_flux_error='1.39e-08', dlogl='2.44e+00', energy_flux='1.14e-05', photon_flux2='3.04e-09', job_status='DONE', time_completed='2021-08-20 00:24:49.458438', photon_index_error2='1.05', photon_index2='0.16', ts='4.00', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='8.58e-05', EG='0.83', time_epoch_completed='1629444289.46', return_code='0', job_id='175976', GAL2='1.30', EG2='0.83', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='3.36e-09', ts2='8.88', photon_index='2.00' WHERE bin_id='1387' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:24:49 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0082>
Subject: Job 175976: <4FGL_J0402.0-2616_daily_bin1387> in cluster <slac> Done

Job <4FGL_J0402.0-2616_daily_bin1387> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Fri Aug 20 00:10:39 2021
Job was executed on host(s) <bullet0082>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 00:10:40 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:10:40 2021
Terminated at Fri Aug 20 00:24:50 2021
Results reported at Fri Aug 20 00:24:50 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin1387 60.5103 -26.273 598838401 599097601 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 :                                   827.10 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             363.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   850 sec.
    Turnaround time :                            851 sec.

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

