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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin1619
RA = 210.446, Dec = -32.2877
tmin = 658972801, tmax = 659232001
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='361033', job_status='RUN', time_executed='2021-12-08 00:54:14.103704', time_epoch_executed='1638953654.1' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='1619'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/361033

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/361033/ft1_4FGL_J1401.7-3217_daily_bin1619.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/361033/ft1_4FGL_J1401.7-3217_daily_bin1619.fits outfile=/scratch/kocevski/361033/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1619.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=658972801.0 tmax=659232001.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 2.98
user 2.76
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.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/361033/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1619.fits evtable="EVENTS" outfile="/scratch/kocevski/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.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.51
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits" evtable="EVENTS" scfile=/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits sctable="SC_DATA" outfile=/scratch/kocevski/361033/ltcube_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.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/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits
.....................!
real 14.72
user 14.24
sys 0.38

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits sctable="SC_DATA" expcube=/scratch/kocevski/361033/ltcube_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.fits outfile=/scratch/kocevski/361033/expmap_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.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/361033/ltcube_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.fits
.....................!
real 192.96
user 186.46
sys 5.87

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/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits scfile=/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits outfile=/scratch/kocevski/361033/cmap_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.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.55
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits scfile=/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits outfile=/scratch/kocevski/361033/cmap_HighResolution_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits evtable="EVENTS" scfile=/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/361033/Model_4FGL_J1401.7-3217_daily_bin1619.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/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits.....................!
real 74.32
user 72.88
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits', '/scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits', expMap='/scratch/kocevski/361033/expmap_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.fits', expCube='/scratch/kocevski/361033/ltcube_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/361033/Model_4FGL_J1401.7-3217_daily_bin1619.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/361033/ft1_filtered_4FGL_J1401.7-3217_daily_bin1619.fits
Spacecraft file(s): /scratch/kocevski/361033/ft2_4FGL_J1401.7-3217_daily_bin1619.fits
Exposure map: /scratch/kocevski/361033/expmap_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.fits
Exposure cube: /scratch/kocevski/361033/ltcube_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/361033/Model_4FGL_J1401.7-3217_daily_bin1619.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) = 3964.44771166

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    161.80       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    7.1616       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.937       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.5381       1.0000         .10000E-03   10000.    
    10 'Prefactor '    53.825       1.0000         .10000E-03   10000.    
    11 'Prefactor '    168.22       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12945E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.6917       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11160E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    436.69       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .92996       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.2307       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=   3964.429     FROM MIGRAD    STATUS=CONVERGED    575 CALLS     2884 TOTAL
                     EDM=   .53E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.970       -.32124E-06** at limit **
   2  Prefactor     161.77        275.01       -.22848E-04   -.72380E-06
   3  Prefactor     .10000E-03    50.803        .16309E-04** at limit **
   4  Prefactor     7.1618        25.650       -.35347E-05   -.45123E-04
   5  Prefactor     25.936        56.091        .18440E-05    .15098E-06
   6  norm          .10000E-03    35.505       -.15189E-04** at limit **
   7  norm          .10000E-03    20.296       -.63313E-05** at limit **
   8  norm          .10000E-03    9.3871        .12577E-06** at limit **
   9  Prefactor     5.5394        8.9508       -.14840E-05   -.14037E-03
  10  Prefactor     53.806        60.071        .30554E-05    .79497E-06
  11  Prefactor     168.16        177.29       -.41811E-04   -.52413E-05
  12  Prefactor     .10000E-03    54.105       -.13367E-04** at limit **
  13  Prefactor     .10000E-03    889.80       -.67188E-04** at limit **
  14  Prefactor     .10000E-03    55.667       -.30595E-04** at limit **
  15  Prefactor     .10000E-03    29.196        .17569E-04** at limit **
  16  Prefactor     .10000E-03    18.751        .78295E-05** at limit **
  17  norm          .10000E-03    4.1036        .18786E-07** at limit **
  18  Prefactor     .10000E-03    32.868       -.18349E-04** at limit **
  19  norm          1.6917        .44221       -.21898E-07    .19360E-03
  20  Prefactor     .10000E-03    44.628        .37748E-04** at limit **
  21  Prefactor     .10000E-03    105.95        .12253E-04** at limit **
  22  norm          .10000E-03    17.993       -.33208E-05** at limit **
  23  Prefactor     436.69        782.85        .15226E-06   -.84318E-05
  24  Normalizat    .92954        .51139        .96552E-05   -.40936E-04
  25  Prefactor     1.2309        .18555       -.22351E-06    .19899E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 161.771
  Prefactor  = 0.0001
  Prefactor  = 7.1618
  Prefactor  = 25.9363
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 5.53937
  Prefactor  = 53.8065
  Prefactor  = 168.159
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.6917
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 436.694
  Normalizat = 0.929539
  Prefactor  = 1.23087
 **********
 **   18 **HESSE 
 **********

 FCN=   3964.429     FROM HESSE     STATUS=OK           417 CALLS     3301 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    12.360        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     161.77        275.28        .15852E-03   -1.3157    
   3  Prefactor     .10000E-03    50.886        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     7.1618        25.623        .14989E-03   -1.5173    
   5  Prefactor     25.936        56.084        .78659E-04   -1.4689    
   6  norm          .10000E-03    35.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    20.306        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.3918        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.5394        8.9132        .17072E-03   -1.5237    
  10  Prefactor     53.806        60.092        .54671E-04   -1.4240    
  11  Prefactor     168.16        177.22        .15551E-03   -1.3107    
  12  Prefactor     .10000E-03    54.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    889.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    55.689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    29.218        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.784        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    4.1063        .12457E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    32.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.6917        .44308        .20764E-04   -1.5448    
  20  Prefactor     .10000E-03    44.624        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    106.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    17.999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     436.69        782.40        .97867E-04   -1.1497    
  24  Normalizat    .92954        .57046        .52215E-03   -.95430    
  25  Prefactor     1.2309        .20969        .17787E-03   -.85387    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.18793e-10
Minuit parameter uncertainties:
  1  0.000114044
  2  277.512
  3  3.65252e-05
  4  25.6625
  5  56.1987
  6  6.18019e-05
  7  6.64061e-06
  8  4.28704e-05
  9  8.91529
  10  60.1594
  11  177.784
  12  4.64948e-06
  13  0.000188549
  14  1.89791e-05
  15  1.99393e-05
  16  2.6027e-05
  17  2.05844e-06
  18  4.76186e-06
  19  0.443085
  20  5.67409e-06
  21  0.000127187
  22  5.41887e-06
  23  802.9
  24  0.574239
  25  0.209831
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.682e+02  1.778e+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:  1.231e+00  2.098e-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:  9.295e-01  5.742e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.32
Ra Dec: 210.446 -32.288
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 9.57e-08 +/- 1.01e-07
Energy Flux (Fixed Index): 4.41e-05 +/- 4.66e-05

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

Saving results to:
/scratch/kocevski/361033/likelihoodResults_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.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) = 3963.90802923
delta logL = 0.520553002542

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3963.8995963
delta logL = 0.528985939126

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    60.403       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9106       1.0000          .0000       10.000    
     3 'Normalizat'    .83756       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2506       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.

 FCN=   3963.900     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      307 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     60.419        143.17        .51625E-04    .16862E-03
   2  Index         2.9106        1.0093        .36257E-02    .21699E-03
   3  Normalizat    .83684        .53457        .54708E-03    .88058E-04
   4  Prefactor     1.2509        .20520        .17649E-03    .30338E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 60.4192
  Index      = 2.91061
  Normalizat = 0.836837
  Prefactor  = 1.2509
 **********
 **   18 **HESSE 
 **********

 FCN=   3963.900     FROM HESSE     STATUS=OK            25 CALLS      332 TOTAL
                     EDM=   .29E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     60.419        108.08        .10325E-04   -1.4152    
   2  Index         2.9106        .76195        .14503E-03   -.43111    
   3  Normalizat    .83684        .53335        .21883E-04   -.98717    
   4  Prefactor     1.2509        .20472        .35298E-04   -.84779    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90906e-10
Minuit parameter uncertainties:
  1  108.438
  2  0.765571
  3  0.536749
  4  0.204848
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/361033': 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) = 3963.89959528
delta logL = 0.528986951765

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  6.042e+01  1.084e+02  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.911e+00  7.656e-01  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:  1.251e+00  2.048e-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:  8.368e-01  5.367e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.44
Ra Dec: 210.446 -32.288
Photon Index (Free Index): 2.91 +/- 0.77
Photon Flux (Free Index): 1.85e-07 +/- 1.53e-07
Energy Flux (Free Index): 3.87e-05 +/- 3.10e-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/361033/cmap_HighResolution_658972801_659232001_4FGL_J1401.7-3217_daily_bin1619.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.46e-02', comment='SUCCESS', photon_flux='9.57e-08', energy_flux2='3.87e-05', photon_flux_error='1.01e-07', dlogl='5.29e-01', energy_flux='4.41e-05', photon_flux2='1.85e-07', job_status='DONE', time_completed='2021-12-08 01:05:06.481241', photon_index_error2='0.77', photon_index2='2.91', ts='1.32', fit_tolerance='1e-08', GAL='1.23', photon_index_error='0.00', photon_flux_upper_limit='3.23e-07', energy_flux_error2='3.10e-05', EG='0.93', time_epoch_completed='1638954306.48', return_code='0', job_id='361033', GAL2='1.25', EG2='0.84', return_code2='0', energy_flux_error='4.66e-05', photon_flux_error2='1.53e-07', ts2='2.44', photon_index='2.19' WHERE bin_id='1619' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Dec  8 01:05:06 PST 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0158>
Subject: Job 361033: <4FGL_J1401.7-3217_daily_bin1619> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin1619> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Wed Dec  8 00:50:30 2021
Job was executed on host(s) <bullet0158>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Dec  8 00:52:54 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Dec  8 00:52:54 2021
Terminated at Wed Dec  8 01:05:07 2021
Results reported at Wed Dec  8 01:05:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin1619 210.446 -32.2877 658972801 659232001 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 :                                   651.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             320.68 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   732 sec.
    Turnaround time :                            877 sec.

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

