/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


Waiting 7 seconds before starting...
Proceeding.

Importing modules...
This is make3FGLxml version 01r0.
The default diffuse model files and names are for pass 8 and assume you have v10r00p05 of the Fermi Science Tools or higher.
This is make4FGLxml version 01r04.
The default diffuse model files and names are for pass 8 and 4FGL and assume you have v11r5p3 of the Fermi Science Tools or higher.

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

/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/cbook/deprecation.py:106: MatplotlibDeprecationWarning: The mpl_toolkits.axes_grid module was deprecated in version 2.1. Use mpl_toolkits.axes_grid1 and mpl_toolkits.axisartist provies the same functionality instead.
  warnings.warn(message, mplDeprecation, stacklevel=1)

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

number of points = 7406
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0402.0-2616_daily_bin893
RA = 60.5103, Dec = -26.273
tmin = 470793601, tmax = 471052801
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='172027', job_status='RUN', time_executed='2021-08-20 00:03:14.295263', time_epoch_executed='1629442994.3' WHERE source_name='4FGL J0402.0-2616' and cadence='daily' and bin_id='893'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/172027

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/172027/ft1_4FGL_J0402.0-2616_daily_bin893.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/172027/ft1_4FGL_J0402.0-2616_daily_bin893.fits outfile=/scratch/kocevski/172027/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin893.fits ra=60.5103 dec=-26.273 rad=12.0 tmin=470793601.0 tmax=471052801.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.97
user 3.35
sys 8.84

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.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/172027/ft1_filteredMKT_4FGL_J0402.0-2616_daily_bin893.fits evtable="EVENTS" outfile="/scratch/kocevski/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.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.49
user 0.32
sys 9.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.fits" evtable="EVENTS" scfile=/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits sctable="SC_DATA" outfile=/scratch/kocevski/172027/ltcube_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.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/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits
.....................!
real 23.27
user 13.13
sys 10.00

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits sctable="SC_DATA" expcube=/scratch/kocevski/172027/ltcube_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.fits outfile=/scratch/kocevski/172027/expmap_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.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/172027/ltcube_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.fits
.....................!
real 204.15
user 186.47
sys 16.84

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/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.fits scfile=/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits outfile=/scratch/kocevski/172027/cmap_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.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.39
user 0.37
sys 8.87

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.fits scfile=/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits outfile=/scratch/kocevski/172027/cmap_HighResolution_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.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.30
user 0.39
sys 8.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.fits evtable="EVENTS" scfile=/scratch/kocevski/172027/ft2_4FGL_J0402.0-2616_daily_bin893.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/172027/Model_4FGL_J0402.0-2616_daily_bin893.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/172027/ft1_filtered_4FGL_J0402.0-2616_daily_bin893.fits.....................!
real 127.85
user 114.68
sys 12.70

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .15573E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.7862       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.6499       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10640E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.1277       1.0000         .10000E-03   10000.    
    13 'Prefactor '    131.57       1.0000         .10000E-03   10000.    
    14 'Prefactor '    16.133       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.1822       1.0000         .10000E-03   10000.    
    16 'norm      '    9.6720       1.0000         .10000E-03   10000.    
    17 'Prefactor '    38.392       1.0000         .10000E-03   10000.    
    18 'norm      '    .56991       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    102.73       1.0000         .10000E-03   10000.    
    22 'Prefactor '    122.80       1.0000         .10000E-03   10000.    
    23 'norm      '    23.804       1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2397       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .78202       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=   4993.772     FROM MIGRAD    STATUS=CONVERGED    578 CALLS     2895 TOTAL
                     EDM=   .56E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.398        .31190E-04** at limit **
   2  Prefactor     .10000E-03    6.4431       -.19810E-07** at limit **
   3  Prefactor     .10000E-03    11.898       -.15418E-05** at limit **
   4  Prefactor     .10000E-03    13.349        .22894E-06** at limit **
   5  Prefactor     .10000E-03    123.75       -.15667E-04** at limit **
   6  Prefactor     2.7857        2.4236       -.20879E-06   -.20825E-04
   7  Prefactor     1.6491        2.4353       -.16236E-06   -.12218E-03
   8  Prefactor     .10000E-03    1.6078        .85180E-08** at limit **
   9  Prefactor     .10000E-03    12.726        .70702E-06** at limit **
  10  norm          .10000E-03    .24675        .29448E-07** at limit **
  11  Prefactor     .10000E-03    79.573       -.15646E-04** at limit **
  12  norm          2.1276        1.8636       -.26286E-06   -.20225E-03
  13  Prefactor     131.48        130.38       -.74097E-04    .11642E-04
  14  Prefactor     16.144        28.499        .21928E-05    .11128E-03
  15  Prefactor     6.1821        3.8723       -.35387E-06    .21500E-03
  16  norm          9.6722        16.110       -.21626E-06   -.10242E-04
  17  Prefactor     38.388        31.358       -.15428E-05    .40611E-04
  18  norm          .56967        .37598        .93431E-07    .72166E-03
  19  Prefactor     .10001E-03    3.1515       -.61164E-06** at limit **
  20  Prefactor     .10000E-03    8.4572       -.77025E-07** at limit **
  21  norm          102.71        151.68       -.21110E-04   -.43947E-06
  22  Prefactor     122.80        86.263       -.18415E-05    .17090E-04
  23  norm          23.802        8.6551       -.41385E-06    .36588E-04
  24  Normalizat    1.2404        .21586        .61510E-05   -.31511E-04
  25  Prefactor     .78133        .19997       -.37932E-06    .35840E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.78569
  Prefactor  = 1.64915
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 2.12762
  Prefactor  = 131.478
  Prefactor  = 16.1443
  Prefactor  = 6.1821
  norm       = 9.67225
  Prefactor  = 38.3879
  norm       = 0.569674
  Prefactor  = 0.000100006
  Prefactor  = 0.0001
  norm       = 102.708
  Prefactor  = 122.796
  norm       = 23.8019
  Normalizat = 1.24042
  Prefactor  = 0.781326
 **********
 **   18 **HESSE 
 **********

 FCN=   4993.772     FROM HESSE     STATUS=OK           427 CALLS     3322 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.381        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    6.4474        .17519E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.351        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    125.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.7857        2.4115        .96799E-04   -1.5374    
   7  Prefactor     1.6491        2.4116        .12966E-03   -1.5451    
   8  Prefactor     .10000E-03    1.6178        .87439E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    12.836        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .25211        .34252E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    81.139        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.1276        1.8454        .83091E-04   -1.5416    
  13  Prefactor     131.48        130.51        .17552E-03   -1.3410    
  14  Prefactor     16.144        28.465        .99716E-04   -1.4904    
  15  Prefactor     6.1821        3.8342        .10269E-03   -1.5211    
  16  norm          9.6722        16.091        .12885E-03   -1.5086    
  17  Prefactor     38.388        31.347        .64687E-04   -1.4468    
  18  norm          .56967        .37329        .33522E-04   -1.5557    
  19  Prefactor     .10001E-03    11.364        .23755E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    8.4710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          102.71        151.80        .19835E-03   -1.3678    
  22  Prefactor     122.80        86.257        .36320E-04   -1.3487    
  23  norm          23.802        8.6663        .82101E-04   -1.4732    
  24  Normalizat    1.2404        .25332        .25061E-03   -.85363    
  25  Prefactor     .78133        .23480        .29391E-03   -1.0042    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.83766e-09
Minuit parameter uncertainties:
  1  5.79874e-05
  2  9.24798e-06
  3  1.66804e-05
  4  1.00833e-05
  5  0.00013529
  6  2.41162
  7  2.41178
  8  3.33115e-06
  9  9.24547e-05
  10  2.44168e-06
  11  0.000432411
  12  1.84544
  13  130.792
  14  28.4889
  15  3.83439
  16  16.0984
  17  31.36
  18  0.373292
  19  0.000538018
  20  1.61672e-05
  21  152.378
  22  86.345
  23  8.66681
  24  0.253574
  25  0.235098
Done.

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

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  9.672e+00  1.610e+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:  7.813e-01  2.351e-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.240e+00  2.536e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/172027/likelihoodResults_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.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) = 4992.67094105
delta logL = 1.10066830182

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4992.65359882
delta logL = 1.11801053464

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.7599       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.3692       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1779       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80898       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=   4992.654     FROM MIGRAD    STATUS=CONVERGED     82 CALLS      287 TOTAL
                     EDM=   .52E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.7605        10.045        .95708E-04   -.19006E-03
   2  alpha         3.3701        1.2576        .90857E-02   -.50730E-04
   3  Normalizat    1.1779        .24860        .25580E-03    .21750E-03
   4  Prefactor     .80907        .23432        .28883E-03    .28678E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.76048
  alpha      = 3.3701
  Normalizat = 1.17791
  Prefactor  = 0.809072
 **********
 **   18 **HESSE 
 **********

 FCN=   4992.654     FROM HESSE     STATUS=OK            25 CALLS      312 TOTAL
                     EDM=   .45E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.7605        6.7029        .38283E-05   -1.5320    
   2  alpha         3.3701        .86397        .36343E-03    .35548    
   3  Normalizat    1.1779        .24650        .51159E-04   -.87288    
   4  Prefactor     .80907        .23259        .57766E-04   -.99395    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.49931e-10
Minuit parameter uncertainties:
  1  6.70425
  2  0.884839
  3  0.246741
  4  0.232872
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/172027': 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) = 4992.65359502
delta logL = 1.1180143319

Extracting fit parameters...

4FGL J0402.0-2616
   Spectrum: LogParabola
255         norm:  3.760e+00  6.704e+00  1.000e-04  1.000e+04 ( 1.000e-13)
256        alpha:  3.370e+00  8.848e-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:  8.091e-01  2.329e-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.178e+00  2.467e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.78
Ra Dec: 60.510 -26.273
Photon Index (Free Index): 3.37 +/- 0.88
Photon Flux (Free Index): 7.53e-08 +/- 6.12e-08
Energy Flux (Free Index): 1.59e-05 +/- 1.17e-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/172027/cmap_HighResolution_470793601_471052801_4FGL_J0402.0-2616_daily_bin893.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.47e-05', comment='SUCCESS', energy_flux2='1.59e-05', dlogl='1.12e+00', photon_flux2='7.53e-08', job_status='DONE', time_completed='2021-08-20 00:16:31.520177', photon_index_error2='0.88', photon_index2='3.37', ts='0.51', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='7.16e-08', energy_flux_error2='1.17e-05', EG='1.24', time_epoch_completed='1629443791.52', return_code='0', job_id='172027', GAL2='0.81', EG2='1.18', return_code2='0', photon_flux_error2='6.12e-08', ts2='2.78', photon_index='2.00' WHERE bin_id='893' AND source_name='4FGL J0402.0-2616' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 00:16:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0045>
Subject: Job 172027: <4FGL_J0402.0-2616_daily_bin893> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0402.0-2616_daily_bin893 60.5103 -26.273 470793601 471052801 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 :                                   927.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             320.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   953 sec.
    Turnaround time :                            956 sec.

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

