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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin1450
RA = 210.446, Dec = -32.2877
tmin = 615168001, tmax = 615427201
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='164683', job_status='RUN', time_executed='2021-09-08 23:45:38.560266', time_epoch_executed='1631169938.56' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='1450'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/164683

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/164683/ft1_4FGL_J1401.7-3217_daily_bin1450.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/164683/ft1_4FGL_J1401.7-3217_daily_bin1450.fits outfile=/scratch/kocevski/164683/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1450.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=615168001.0 tmax=615427201.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 3.49
user 3.27
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.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/164683/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1450.fits evtable="EVENTS" outfile="/scratch/kocevski/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.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.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.fits" evtable="EVENTS" scfile=/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits sctable="SC_DATA" outfile=/scratch/kocevski/164683/ltcube_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.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/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits
.....................!
real 11.84
user 11.50
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits sctable="SC_DATA" expcube=/scratch/kocevski/164683/ltcube_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.fits outfile=/scratch/kocevski/164683/expmap_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.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/164683/ltcube_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.fits
.....................!
real 190.18
user 184.59
sys 5.27

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/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.fits scfile=/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits outfile=/scratch/kocevski/164683/cmap_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.fits scfile=/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits outfile=/scratch/kocevski/164683/cmap_HighResolution_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.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.53
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.fits evtable="EVENTS" scfile=/scratch/kocevski/164683/ft2_4FGL_J1401.7-3217_daily_bin1450.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/164683/Model_4FGL_J1401.7-3217_daily_bin1450.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/164683/ft1_filtered_4FGL_J1401.7-3217_daily_bin1450.fits.....................!
real 139.64
user 138.20
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    25.095       1.0000         .10000E-03   10000.    
     8 'norm      '    7.6821       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10067E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    92.772       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    46.093       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .37766       1.0000         .10000E-03   10000.    
    20 'Prefactor '    18.060       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.0468       1.0000         .10000E-03   10000.    
    22 'norm      '    22.840       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.6567       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .77158       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=   8009.798     FROM MIGRAD    STATUS=CONVERGED    587 CALLS     2873 TOTAL
                     EDM=   .58E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.8304       -.13462E-07** at limit **
   2  Prefactor     .10000E-03    205.82       -.69704E-04** at limit **
   3  Prefactor     .10000E-03    9.4583        .40514E-06** at limit **
   4  Prefactor     .10000E-03    3.8463       -.10055E-07** at limit **
   5  Prefactor     .10000E-03    39.330        .12383E-04** at limit **
   6  norm          .10000E-03    9.7243       -.70132E-06** at limit **
   7  norm          25.093        39.568       -.84737E-06    .36117E-04
   8  norm          7.6834        7.7598       -.71310E-05   -.12597E-04
   9  Prefactor     .10000E-03    2.2808        .42115E-06** at limit **
  10  Prefactor     .10000E-03    56.116       -.31514E-04** at limit **
  11  Prefactor     92.774        78.844        .17775E-05    .48509E-05
  12  Prefactor     .10000E-03    64.691       -.12474E-04** at limit **
  13  Prefactor     .10000E-03    174.66        .27033E-04** at limit **
  14  Prefactor     46.060        80.375       -.35852E-04    .10324E-04
  15  Prefactor     .10000E-03    5.8679       -.59541E-07** at limit **
  16  Prefactor     .10000E-03    3.8163        .22682E-07** at limit **
  17  norm          .10000E-03    3.0078       -.82242E-07** at limit **
  18  Prefactor     .10000E-03    24.454       -.14583E-05** at limit **
  19  norm          .37770        .16472        .34450E-07    .69106E-03
  20  Prefactor     18.066        43.961        .49876E-05    .39532E-05
  21  Prefactor     9.0444        32.115       -.59107E-05   -.50468E-04
  22  norm          22.840        14.230       -.14783E-06    .52721E-05
  23  Prefactor     .10000E-03    81.346        .51246E-04** at limit **
  24  Normalizat    1.6569        .26397        .10923E-05    .58597E-04
  25  Prefactor     .77152        .96571E-01    .12525E-05    .12544E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 25.093
  norm       = 7.68342
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 92.7744
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 46.0604
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.377704
  Prefactor  = 18.0657
  Prefactor  = 9.04439
  norm       = 22.8403
  Prefactor  = 0.0001
  Normalizat = 1.6569
  Prefactor  = 0.771521
 **********
 **   18 **HESSE 
 **********

 FCN=   8009.798     FROM HESSE     STATUS=OK           419 CALLS     3292 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.8430        .11824E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    205.98        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    9.4670        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.8532        .17141E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    39.363        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.7281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          25.093        39.572        .79965E-04   -1.4706    
   8  norm          7.6834        7.7373        .14468E-03   -1.5154    
   9  Prefactor     .10000E-03    4.8130        .25909E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    56.250        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     92.774        79.001        .41724E-04   -1.3779    
  12  Prefactor     .10000E-03    64.864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    174.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     46.060        80.375        .59057E-04   -1.4350    
  15  Prefactor     .10000E-03    5.8689        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.8185        .17075E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    3.1028        .30281E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    24.512        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .37770        .16277        .22935E-04   -1.5585    
  20  Prefactor     18.066        43.612        .94247E-04   -1.4858    
  21  Prefactor     9.0444        31.885        .13325E-03   -1.5106    
  22  norm          22.840        14.251        .83814E-04   -1.4752    
  23  Prefactor     .10000E-03    81.374        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.6569        .31847        .35195E-03   -.73460    
  25  Prefactor     .77152        .11764        .17902E-03   -1.0079    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9044e-10
Minuit parameter uncertainties:
  1  3.77046e-06
  2  4.57532e-05
  3  7.72132e-06
  4  2.21721e-06
  5  3.22746e-05
  6  2.09876e-06
  7  39.6138
  8  7.73827
  9  0.000105178
  10  6.06861e-05
  11  79.0911
  12  4.74371e-05
  13  3.08779e-05
  14  80.5653
  15  2.74882e-06
  16  2.23332e-06
  17  1.20638e-05
  18  3.16636e-05
  19  0.162767
  20  43.6895
  21  31.9447
  22  14.2532
  23  1.67089e-05
  24  0.318863
  25  0.117683
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  9.277e+01  7.909e+01  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:  7.715e-01  1.177e-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.657e+00  3.189e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.83
Ra Dec: 210.446 -32.288
Photon Index (Fixed Index): 2.19 +/- 0.00
Photon Flux (Fixed Index): 5.28e-08 +/- 4.50e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 2.07e-05

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

Saving results to:
/scratch/kocevski/164683/likelihoodResults_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8008.85968995
delta logL = 0.93812558947

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8008.46205106
delta logL = 1.33576448705

Fit tolerance = 1e-08

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

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

 FCN=   8008.462     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      343 TOTAL
                     EDM=   .49E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .27854E-01    .17786        .16156E-02   -.87144E-02
   2  Index         5.8087        1.5781        .69480E-01   -.98618E-05
   3  Normalizat    1.4373        .79417E-01    .84098E-01    .29688E-04
   4  Prefactor     .83310        .28917E-01    .44148E-01    .13358E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0278537
  Index      = 5.80874
  Normalizat = 1.4373
  Prefactor  = 0.833104
 **********
 **   18 **HESSE 
 **********

 FCN=   8008.462     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      374 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .27854E-01    .34329        .72430E-05   -1.5675    
   2  Index         5.8087        2.4177        .27939E-02    .16246    
   3  Normalizat    1.4373        .28287        .37231E-03   -.79556    
   4  Prefactor     .83310        .10155        .17293E-03   -.98519    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.43868e-10
Minuit parameter uncertainties:
  1  0.19522
  2  2.52674
  3  0.283176
  4  0.101569
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/164683': 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): 102
logL (Free Index) = 8008.46204963
delta logL = 1.3357659162

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  2.785e-02  1.952e-01  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  5.809e+00  2.527e+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:  8.331e-01  1.016e-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.437e+00  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.04
Ra Dec: 210.446 -32.288
Photon Index (Free Index): 5.81 +/- 2.53
Photon Flux (Free Index): 1.92e-07 +/- 9.50e-08
Energy Flux (Free Index): 2.42e-05 +/- 1.24e-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/164683/cmap_HighResolution_615168001_615427201_4FGL_J1401.7-3217_daily_bin1450.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.18e-02', comment='SUCCESS', photon_flux='5.28e-08', energy_flux2='2.42e-05', photon_flux_error='4.50e-08', dlogl='1.34e+00', energy_flux='2.43e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-09-09 00:01:53.540219', photon_index_error2='2.53', photon_index2='5.81', ts='2.83', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', photon_flux_upper_limit='1.55e-07', energy_flux_error2='1.24e-05', EG='1.66', time_epoch_completed='1631170913.54', return_code='0', job_id='164683', GAL2='0.83', EG2='1.44', return_code2='102', energy_flux_error='2.07e-05', photon_flux_error2='9.50e-08', ts2='6.04', photon_index='2.19' WHERE bin_id='1450' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 00:01:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0141>
Subject: Job 164683: <4FGL_J1401.7-3217_daily_bin1450> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin1450> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Wed Sep  8 23:45:27 2021
Job was executed on host(s) <bullet0141>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:45:29 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:29 2021
Terminated at Thu Sep  9 00:01:54 2021
Results reported at Thu Sep  9 00:01:54 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin1450 210.446 -32.2877 615168001 615427201 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 :                                   971.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             336.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   984 sec.
    Turnaround time :                            987 sec.

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

