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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin625
RA = 210.446, Dec = -32.2877
tmin = 401328001, tmax = 401587201
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='155371', job_status='RUN', time_executed='2021-09-08 23:15:52.365223', time_epoch_executed='1631168152.37' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='625'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/155371

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/155371/ft1_4FGL_J1401.7-3217_daily_bin625.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/155371/ft1_4FGL_J1401.7-3217_daily_bin625.fits outfile=/scratch/kocevski/155371/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin625.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=401328001.0 tmax=401587201.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.37
user 3.16
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/155371/ft1_filtered_4FGL_J1401.7-3217_daily_bin625.fits" evtable="EVENTS" scfile=/scratch/kocevski/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits sctable="SC_DATA" outfile=/scratch/kocevski/155371/ltcube_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.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/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits
.....................!
real 11.74
user 11.41
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/155371/ft1_filtered_4FGL_J1401.7-3217_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits sctable="SC_DATA" expcube=/scratch/kocevski/155371/ltcube_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.fits outfile=/scratch/kocevski/155371/expmap_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.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/155371/ltcube_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.fits
.....................!
real 190.13
user 184.69
sys 5.13

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/155371/ft1_filtered_4FGL_J1401.7-3217_daily_bin625.fits scfile=/scratch/kocevski/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits outfile=/scratch/kocevski/155371/cmap_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.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.54
user 0.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/155371/ft1_filtered_4FGL_J1401.7-3217_daily_bin625.fits scfile=/scratch/kocevski/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits outfile=/scratch/kocevski/155371/cmap_HighResolution_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.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.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/155371/ft1_filtered_4FGL_J1401.7-3217_daily_bin625.fits evtable="EVENTS" scfile=/scratch/kocevski/155371/ft2_4FGL_J1401.7-3217_daily_bin625.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/155371/Model_4FGL_J1401.7-3217_daily_bin625.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/155371/ft1_filtered_4FGL_J1401.7-3217_daily_bin625.fits.....................!
real 134.47
user 133.03
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.0631       1.0000         .10000E-03   10000.    
     2 'Prefactor '    151.19       1.0000         .10000E-03   10000.    
     3 'Prefactor '    29.127       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0788       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .13001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    65.757       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    2.5432       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    102.02       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .12092E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10154E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    1.3096       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    24.840       1.0000         .10000E-03   10000.    
    22 'norm      '    13.271       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.9385       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .81702       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=   7956.042     FROM MIGRAD    STATUS=CONVERGED    581 CALLS     2900 TOTAL
                     EDM=   .73E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.0597        10.777        .29548E-05   -.24824E-04
   2  Prefactor     151.51        267.23        .22377E-05    .25273E-04
   3  Prefactor     29.123        27.844       -.36255E-06   -.27599E-04
   4  Prefactor     1.0803        23.635        .45181E-05   -.20891E-04
   5  Prefactor     .10000E-03    277.29        .69986E-06** at limit **
   6  norm          .10000E-03    15.199        .69796E-07** at limit **
   7  norm          65.751        55.990        .46483E-06   -.67241E-05
   8  norm          .10000E-03    4.8248       -.49404E-07** at limit **
   9  Prefactor     2.5414        4.3994        .32450E-06   -.55596E-04
  10  Prefactor     .10000E-03    17.953        .65620E-07** at limit **
  11  Prefactor     .10000E-03    30.956       -.94812E-07** at limit **
  12  Prefactor     101.96        80.229       -.50923E-06   -.29571E-04
  13  Prefactor     .10000E-03    422.61       -.93902E-06** at limit **
  14  Prefactor     .10000E-03    40.134        .32807E-06** at limit **
  15  Prefactor     .10000E-03    46.531       -.16955E-05** at limit **
  16  Prefactor     .10000E-03    10.860        .34393E-08** at limit **
  17  norm          .10000E-03    2.6210       -.26751E-07** at limit **
  18  Prefactor     .10000E-03    13.821       -.27885E-07** at limit **
  19  norm          1.3096        .24737        .15710E-07   -.21772E-03
  20  Prefactor     .10000E-03    16.033       -.13566E-06** at limit **
  21  Prefactor     24.838        28.233        .20123E-06   -.20490E-05
  22  norm          13.273        11.542        .72380E-07   -.24356E-05
  23  Prefactor     .10000E-03    172.87        .13547E-06** at limit **
  24  Normalizat    1.9395        .32484        .14221E-05   -.10333E-03
  25  Prefactor     .81670        .11347       -.15008E-05    .57274E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 9.05971
  Prefactor  = 151.509
  Prefactor  = 29.1234
  Prefactor  = 1.0803
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 65.751
  norm       = 0.0001
  Prefactor  = 2.54143
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 101.96
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.3096
  Prefactor  = 0.0001
  Prefactor  = 24.8376
  norm       = 13.2726
  Prefactor  = 0.0001
  Normalizat = 1.93946
  Prefactor  = 0.816696
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.0597        10.996        .66566E-03   -1.5106    
   2  Prefactor     151.51        267.61        .16390E-03   -1.3240    
   3  Prefactor     29.123        27.834        .74235E-04   -1.4628    
   4  Prefactor     1.0803        23.995        .46449E-03   -1.5500    
   5  Prefactor     .10000E-03    279.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    15.241        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          65.751        56.023        .49492E-04   -1.4084    
   8  norm          .10000E-03    4.8299        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     2.5414        4.3853        .23321E-03   -1.5389    
  10  Prefactor     .10000E-03    17.959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    30.966        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     101.96        80.379        .19903E-03   -1.3685    
  13  Prefactor     .10000E-03    422.89        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    40.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.965        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    10.893        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    2.6530        .14097E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.825        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          1.3096        .24766        .18563E-04   -1.5479    
  20  Prefactor     .10000E-03    16.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     24.838        28.266        .80373E-04   -1.4711    
  22  norm          13.273        11.545        .10995E-03   -1.4979    
  23  Prefactor     .10000E-03    173.12        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.9395        .38748        .39303E-03   -.66077    
  25  Prefactor     .81670        .13339        .20048E-03   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9256e-10
Minuit parameter uncertainties:
  1  10.9981
  2  269.793
  3  27.8465
  4  10.1868
  5  0.00064841
  6  2.80771e-05
  7  56.0684
  8  1.98442e-06
  9  4.38582
  10  2.42817e-05
  11  3.71272e-05
  12  80.4646
  13  0.00182736
  14  0.000157931
  15  6.06961e-05
  16  7.6959e-06
  17  3.61018e-06
  18  3.95291e-07
  19  0.247661
  20  4.24943e-05
  21  28.2811
  22  11.5466
  23  0.000217383
  24  0.388106
  25  0.13344
Done.

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

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  3.713e-05  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:  8.167e-01  1.334e-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.939e+00  3.881e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 8.24e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.27e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/155371/likelihoodResults_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.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) = 7956.04234477
delta logL = -0.000153775957187

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7956.04219155
delta logL = -5.52142410015e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4077       1.0000          .0000       10.000    
     3 'Normalizat'    1.9395       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81670       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=   7956.042     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      270 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10166E-03    124.50        .18142E-02** at limit **
   2  Index         2.3468        6.0196        .50000        .11722E-04
   3  Normalizat    1.9395        .17686E-01    .39303E-03   -.39107E-04
   4  Prefactor     .81669        .62710E-02    .20048E-03   -.77803E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101663
  Index      = 2.34683
  Normalizat = 1.93946
  Prefactor  = 0.816695
 **********
 **   18 **HESSE 
 **********

 FCN=   7956.042     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      299 TOTAL
                     EDM=   .70E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10166E-03    536.76        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3468        5.7615        .50000       -.55935    
   3  Normalizat    1.9395        .37642E-01    .15721E-04   -.66077    
   4  Prefactor     .81669        .13347E-01    .80191E-05   -.99116    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 7.01902e-09
Minuit parameter uncertainties:
  1  0.0603059
  2  451.274
  3  0.0376424
  4  0.0133473
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/155371': 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) = 7956.04219138
delta logL = -3.85419298254e-07

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.017e-04  6.031e-02  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.347e+00  4.513e+02  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.167e-01  1.335e-02  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.939e+00  3.764e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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/155371/cmap_HighResolution_401328001_401587201_4FGL_J1401.7-3217_daily_bin625.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.27e-03', job_status='DONE', photon_flux_upper_limit='8.24e-08', time_completed='2021-09-08 23:32:05.068922', job_id='155371', GAL2='0.82', fit_tolerance='1e-08', EG2='1.94', EG='1.94', time_epoch_completed='1631169125.07', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='-3.85e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='625' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 23:32:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0287>
Subject: Job 155371: <4FGL_J1401.7-3217_daily_bin625> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin625> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 23:15:42 2021
Job was executed on host(s) <bullet0287>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:15:45 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:15:45 2021
Terminated at Wed Sep  8 23:32:05 2021
Results reported at Wed Sep  8 23:32:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin625 210.446 -32.2877 401328001 401587201 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 :                                   968.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             351.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            983 sec.

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

