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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin1419
RA = 210.446, Dec = -32.2877
tmin = 607132801, tmax = 607392001
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='164631', job_status='RUN', time_executed='2021-09-08 23:45:48.321670', time_epoch_executed='1631169948.32' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='1419'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164631

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164631/ft1_4FGL_J1401.7-3217_daily_bin1419.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164631/ft1_4FGL_J1401.7-3217_daily_bin1419.fits outfile=/scratch/kocevski/164631/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1419.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=607132801.0 tmax=607392001.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 5.36
user 5.11
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.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/164631/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1419.fits evtable="EVENTS" outfile="/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.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 0.48
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits" evtable="EVENTS" scfile=/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits sctable="SC_DATA" outfile=/scratch/kocevski/164631/ltcube_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.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/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits
.....................!
real 11.77
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits sctable="SC_DATA" expcube=/scratch/kocevski/164631/ltcube_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.fits outfile=/scratch/kocevski/164631/expmap_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.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/164631/ltcube_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.fits
.....................!
real 191.44
user 185.93
sys 5.12

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 CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 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 J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits scfile=/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits outfile=/scratch/kocevski/164631/cmap_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.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=210.446 yref=-32.2877 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 0.53
user 0.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits scfile=/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits outfile=/scratch/kocevski/164631/cmap_HighResolution_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.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=210.446 yref=-32.2877 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 0.54
user 0.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits evtable="EVENTS" scfile=/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164631/Model_4FGL_J1401.7-3217_daily_bin1419.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 CenA Lobes
adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits.....................!
real 108.79
user 107.46
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits', '/scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits', expMap='/scratch/kocevski/164631/expmap_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.fits', expCube='/scratch/kocevski/164631/ltcube_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/164631/Model_4FGL_J1401.7-3217_daily_bin1419.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1401.7-3217'

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.798e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/164631/ft1_filtered_4FGL_J1401.7-3217_daily_bin1419.fits
Spacecraft file(s): /scratch/kocevski/164631/ft2_4FGL_J1401.7-3217_daily_bin1419.fits
Exposure map: /scratch/kocevski/164631/expmap_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.fits
Exposure cube: /scratch/kocevski/164631/ltcube_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/164631/Model_4FGL_J1401.7-3217_daily_bin1419.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) = 6353.82941436

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.9246       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.384       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13226E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    .10108E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    57.078       1.0000         .10000E-03   10000.    
     8 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    9.1935       1.0000         .10000E-03   10000.    
    11 'Prefactor '    51.975       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10079E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10901E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.2134       1.0000         .10000E-03   10000.    
    16 'Prefactor '    13.414       1.0000         .10000E-03   10000.    
    17 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    16.595       1.0000         .10000E-03   10000.    
    19 'norm      '    .12061       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    37.446       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.2000       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .97502       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6353.823     FROM MIGRAD    STATUS=CONVERGED    566 CALLS     3272 TOTAL
                     EDM=   .46E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.9248        10.548        .11442E-04    .16910E-03
   2  Prefactor     18.162        2044.1       -.25348E-04    .15634E-04
   3  Prefactor     .10000E-03    43.944       -.76544E-06** at limit **
   4  Prefactor     .10000E-03    13.615       -.40847E-06** at limit **
   5  Prefactor     .10000E-03    309.84       -.41167E-05** at limit **
   6  norm          .10000E-03    18.443       -.17057E-06** at limit **
   7  norm          57.061        60.505        .80917E-06   -.35268E-04
   8  norm          .10000E-03    5.5522       -.14997E-06** at limit **
   9  Prefactor     .10000E-03    4.0038       -.41759E-06** at limit **
  10  Prefactor     9.1952        37.069        .11720E-05   -.60002E-05
  11  Prefactor     51.955        109.48        .79710E-06   -.21152E-04
  12  Prefactor     .10000E-03    83.138       -.63211E-06** at limit **
  13  Prefactor     .10000E-03    202.94       -.75125E-06** at limit **
  14  Prefactor     .10000E-03    128.80        .16916E-05** at limit **
  15  Prefactor     5.2147        51.920        .18662E-05   -.48957E-05
  16  Prefactor     13.413        19.442        .55872E-06   -.14989E-04
  17  norm          .10000E-03    2.8293       -.14315E-06** at limit **
  18  Prefactor     16.598        25.564        .34555E-06   -.35555E-05
  19  norm          .12061        .12493        .72019E-07    .65599E-03
  20  Prefactor     .10000E-03    17.661       -.31916E-07** at limit **
  21  Prefactor     .10000E-03    14.179       -.20031E-06** at limit **
  22  norm          37.444        18.971        .32422E-06   -.24729E-04
  23  Prefactor     .10000E-03    41.709        .13396E-06** at limit **
  24  Normalizat    1.2001        .33279        .53243E-05   -.15754E-03
  25  Prefactor     .97493        .12032       -.34477E-05    .22091E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.92483
  Prefactor  = 18.1617
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 57.0607
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.19516
  Prefactor  = 51.9554
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 5.21469
  Prefactor  = 13.4134
  norm       = 0.0001
  Prefactor  = 16.5976
  norm       = 0.120608
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 37.4438
  Prefactor  = 0.0001
  Normalizat = 1.20006
  Prefactor  = 0.974932
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.823     FROM HESSE     STATUS=OK           421 CALLS     3693 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.9248        10.744        .10182E-02   -1.5312    
   2  Prefactor     18.162        1925.7        .48030E-02   -1.4855    
   3  Prefactor     .10000E-03    44.104        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    13.678        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    312.24        .20567E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    18.480        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          57.061        60.515        .53099E-04   -1.4196    
   8  norm          .10000E-03    5.5610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    4.0521        .15561E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     9.1952        37.059        .13218E-03   -1.5101    
  11  Prefactor     51.955        109.60        .55630E-04   -1.4265    
  12  Prefactor     .10000E-03    83.225        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    202.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    129.01        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.2147        51.877        .17605E-03   -1.5251    
  16  Prefactor     13.413        19.443        .10937E-03   -1.4975    
  17  norm          .10000E-03    2.8710        .13083E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     16.598        25.552        .98318E-04   -1.4893    
  19  norm          .12061        .11652        .27678E-03   -1.5639    
  20  Prefactor     .10000E-03    17.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    14.210        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          37.444        18.991        .65496E-04   -1.4483    
  23  Prefactor     .10000E-03    41.709        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.2001        .39159        .43058E-03   -.86601    
  25  Prefactor     .97493        .14152        .16856E-03   -.93570    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.164e-09
Minuit parameter uncertainties:
  1  10.7492
  2  387.612
  3  0.000130858
  4  1.05375e-05
  5  0.00166276
  6  1.60532e-05
  7  60.5801
  8  1.45128e-06
  9  8.16256e-06
  10  36.9593
  11  110.029
  12  0.000215691
  13  0.00105857
  14  0.00128057
  15  32.9318
  16  19.4526
  17  3.53604e-06
  18  25.569
  19  0.11652
  20  3.04338e-05
  21  3.20598e-07
  22  18.9944
  23  0.000135504
  24  0.392555
  25  0.141575
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  5.196e+01  1.100e+02  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.186e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.749e-01  1.416e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.200e+00  3.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.26
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 1.70e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.30e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/164631/likelihoodResults_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.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) = 6353.79392324
delta logL = 0.0287625174797

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6353.76937072
delta logL = 0.0533150436086

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.457       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7294       1.0000          .0000       10.000    
     3 'Normalizat'    1.1709       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98226       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   6353.769     FROM MIGRAD    STATUS=FAILED       109 CALLS      319 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.706        6314.0        .81000E-04   -.98248E-06
   2  Index         2.7247        5.4602        .89190E-02    .54472E-03
   3  Normalizat    1.1710        .41882        .43521E-03    .44408E-06
   4  Prefactor     .98235        .14847        .16798E-03    .13536E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6353.769     FROM SIMPLEX   STATUS=UNCHANGED     95 CALLS      414 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.706        6314.0        .68945E-03   -.98248E-06
   2  Index         2.7247        5.4602        .12101E-02    .54472E-03
   3  Normalizat    1.1710        .41882        .40938E-03    .44408E-06
   4  Prefactor     .98235        .14847        .11968E-03    .13536E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6353.769     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      443 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.706        180.27        .32400E-05   -.14035E-05
   2  Index         2.7247        2.3241        .17838E-02    .21516E-04
   3  Normalizat    1.1710        .39911        .17408E-04    .39184E-06
   4  Prefactor     .98235        .14112        .67193E-05    .13536E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.7065
  Index      = 2.7247
  Normalizat = 1.17097
  Prefactor  = 0.982346
 **********
 **   18 **HESSE 
 **********

 FCN=   6353.769     FROM HESSE     STATUS=OK            25 CALLS      468 TOTAL
                     EDM=   .48E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.706        123.24        .64800E-06   -1.4713    
   2  Index         2.7247        1.9562        .35676E-03   -.47244    
   3  Normalizat    1.1710        .39490        .34817E-05   -.87505    
   4  Prefactor     .98235        .13950        .13439E-05   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.75627e-14
Minuit parameter uncertainties:
  1  110.727
  2  2.02535
  3  0.395906
  4  0.139546
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164631': 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) = 6353.76936645
delta logL = 0.053319306021

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.471e+01  1.107e+02  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.725e+00  2.025e+00  0.000e+00  1.000e+01 (-1.000e+00)
319        Scale:  1.969e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.823e-01  1.395e-01  0.000e+00  1.000e+01 ( 1.000e+00)
686        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
687        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
684   Normalization:  1.171e+00  3.959e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.26
Ra Dec: 210.446 -32.288

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/164631/cmap_HighResolution_607132801_607392001_4FGL_J1401.7-3217_daily_bin1419.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.30e-02', job_status='DONE', photon_flux_upper_limit='1.70e-07', time_completed='2021-09-09 00:00:29.406744', job_id='164631', GAL2='0.98', fit_tolerance='1e-08', EG2='1.17', EG='1.20', time_epoch_completed='1631170829.41', return_code2='0', ts='0.26', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='5.33e-02', ts2='0.38', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1419' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:00:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0054>
Subject: Job 164631: <4FGL_J1401.7-3217_daily_bin1419> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin1419> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 23:45:23 2021
Job was executed on host(s) <bullet0054>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:45:24 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep  8 23:45:24 2021
Terminated at Thu Sep  9 00:00:30 2021
Results reported at Thu Sep  9 00:00:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin1419 210.446 -32.2877 607132801 607392001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1401.7-3217 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   874.08 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             340.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   905 sec.
    Turnaround time :                            907 sec.

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

