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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin1548
RA = 210.446, Dec = -32.2877
tmin = 640569601, tmax = 640828801
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='166081', job_status='RUN', time_executed='2021-09-08 23:51:25.179609', time_epoch_executed='1631170285.18' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/166081

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/166081/ft1_4FGL_J1401.7-3217_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/166081/ft1_4FGL_J1401.7-3217_daily_bin1548.fits outfile=/scratch/kocevski/166081/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1548.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=640569601.0 tmax=640828801.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.97
user 2.77
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/166081/ltcube_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.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/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits
.....................!
real 14.30
user 13.33
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/166081/ltcube_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.fits outfile=/scratch/kocevski/166081/expmap_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.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/166081/ltcube_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.fits
.....................!
real 191.23
user 184.65
sys 5.79

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/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits scfile=/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits outfile=/scratch/kocevski/166081/cmap_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.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.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits scfile=/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits outfile=/scratch/kocevski/166081/cmap_HighResolution_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/166081/Model_4FGL_J1401.7-3217_daily_bin1548.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/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits................!
real 17.61
user 15.68
sys 1.32

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits', '/scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits', expMap='/scratch/kocevski/166081/expmap_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.fits', expCube='/scratch/kocevski/166081/ltcube_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/166081/Model_4FGL_J1401.7-3217_daily_bin1548.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/166081/ft1_filtered_4FGL_J1401.7-3217_daily_bin1548.fits
Spacecraft file(s): /scratch/kocevski/166081/ft2_4FGL_J1401.7-3217_daily_bin1548.fits
Exposure map: /scratch/kocevski/166081/expmap_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.fits
Exposure cube: /scratch/kocevski/166081/ltcube_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/166081/Model_4FGL_J1401.7-3217_daily_bin1548.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 195.888569639

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 193.829789533

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.092       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.8717       1.0000         .10000E-03   10000.    
     3 'Prefactor '    9.3951       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.0639       1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.7989       1.0000         .10000E-03   10000.    
     6 'norm      '    1.0058       1.0000         .10000E-03   10000.    
     7 'norm      '    888.40       1.0000         .10000E-03   10000.    
     8 'norm      '    1.4087       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14469E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    3.4125       1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.8538       1.0000         .10000E-03   10000.    
    12 'Prefactor '    7.6487       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.6080       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2052       1.0000         .10000E-03   10000.    
    15 'Prefactor '    1.2765       1.0000         .10000E-03   10000.    
    16 'Prefactor '    3.9449       1.0000         .10000E-03   10000.    
    17 'norm      '    3.1552       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1892       1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    6.1366       1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.2128       1.0000         .10000E-03   10000.    
    22 'norm      '    9.6115       1.0000         .10000E-03   10000.    
    23 'Prefactor '    9.7520       1.0000         .10000E-03   10000.    
    24 'Normalizat'    .78858       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .73190       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6880E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   193.7608     FROM MIGRAD    STATUS=CONVERGED    354 CALLS      783 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          24.248        35.994       -.47883E-06   -.14985E-04
   2  Prefactor     366.20        5752.8       -.30272E-04   -.94745E-06
   3  Prefactor     312.88        979.31       -.15547E-04   -.37007E-05
   4  Prefactor     .10000E-03    232.90        .28198E-06** at limit **
   5  Prefactor     .10000E-03    529.08        .14405E-04** at limit **
   6  norm          .10000E-03    624.83       -.35034E-05** at limit **
   7  norm          916.12        721.57        .69903E-06    .56364E-06
   8  norm          .10000E-03    249.81        .23078E-06** at limit **
   9  Prefactor     .10000E-03    124.26       -.27757E-05** at limit **
  10  Prefactor     .10000E-03    502.53       -.32947E-04** at limit **
  11  Prefactor     .10002E-03    2057.0        .64035E-04** at limit **
  12  Prefactor     7.6487        5798.8         .0000         .0000    
  13  Prefactor     .10000E-03    7518.9        .68578E-04** at limit **
  14  Prefactor     .10000E-03    784.59       -.68960E-06** at limit **
  15  Prefactor     1.2765        5863.0         .0000         .0000    
  16  Prefactor     3.9449        5829.5         .0000         .0000    
  17  norm          3.1552        5837.7         .0000         .0000    
  18  Prefactor     5.1892        5818.0         .0000         .0000    
  19  norm          .10000E-03    6.4522        .15654E-07** at limit **
  20  Prefactor     6.1366        5810.2         .0000         .0000    
  21  Prefactor     2.2128        5849.0         .0000         .0000    
  22  norm          9.6115        5785.6         .0000         .0000    
  23  Prefactor     9.7520        5784.7         .0000         .0000    
  24  Normalizat    .70718        5.0021       -.15491E-04    .85599E-06
  25  Prefactor     .66569        .92462       -.21006E-06    .28998E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 24.2479
  Prefactor  = 366.197
  Prefactor  = 312.884
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 916.12
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.000100024
  Prefactor  = 7.6487
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 1.27646
  Prefactor  = 3.94489
  norm       = 3.15516
  Prefactor  = 5.18918
  norm       = 0.0001
  Prefactor  = 6.13663
  Prefactor  = 2.21282
  norm       = 9.61151
  Prefactor  = 9.752
  Normalizat = 0.70718
  Prefactor  = 0.665691
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   193.7608     FROM HESSE     STATUS=FAILED        55 CALLS      838 TOTAL
                     EDM=   .15E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          24.248        33.078        .21305E-02   -1.4723    
   2  Prefactor     366.20        5389.5        .31885E-02   -1.1857    
   3  Prefactor     312.88        911.78        .32687E-02   -1.2152    
   4  Prefactor     .10000E-03    232.50        .11841E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    526.42        .77928E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    624.57        .13409E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          916.12        664.40        .35148E-03   -.95580    
   8  norm          .10000E-03    249.23        .91279E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    122.32        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    502.70        .54747E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10002E-03    2031.0        .60166E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     507.99        500.31         .0000       -1.5155    
  13  Prefactor     .10000E-03    .33029E-01    .68578E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .11992       -.68960E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     1.2765        1.1106         .0000       -1.5482    
  16  Prefactor     3.9449        1.0083         .0000       -1.5311    
  17  norm          3.1552        1.0131         .0000       -1.5353    
  18  Prefactor     5.1892        1.0047         .0000       -1.5252    
  19  norm          .10000E-03    .20571        .15654E-07   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     6.1366        1.0034         .0000       -1.5212    
  21  Prefactor     2.2128        1.0281         .0000       -1.5410    
  22  norm          9.6115        1.0014         .0000       -1.5088    
  23  Prefactor     9.7520        1.0013         .0000       -1.5083    
  24  Normalizat    .70718        1.0717       -.15491E-04   -1.0361    
  25  Prefactor     .66569        1.0352       -.21006E-06   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.51688e-11
Minuit parameter uncertainties:
  1  33.1031
  2  2020.14
  3  959.648
  4  3.55186e-05
  5  0.00082692
  6  7.44759e-05
  7  670.42
  8  2.0879e-05
  9  0.000229512
  10  0.00221833
  11  0.014599
  12  1.00215
  13  8.75734e-06
  14  9.19923e-06
  15  1.11061
  16  1.00827
  17  1.01314
  18  1.00472
  19  7.85359e-08
  20  1.00336
  21  1.02813
  22  1.00136
  23  1.00132
  24  1.10624
  25  1.0675
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 193.760811803

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  1.460e-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:  6.657e-01  1.067e+00  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:  7.072e-01  1.106e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 210.446 -32.288
Photon Flux Upper Limit: 4.77e-06 ph cm-2 s-1
Energy Flux Upper Limit: 3.63e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/166081/likelihoodResults_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.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) = 193.760813979
delta logL = -2.17650986656e-06

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 193.760813974
delta logL = -2.17138645553e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .95929E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1859       1.0000          .0000       10.000    
     3 'Normalizat'    .70718       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .66569       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=   193.7608     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      241 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    818.83        .18151E-01** at limit **
   2  Index         2.4456        8.3216        .50000        .23153E-06
   3  Normalizat    .70714        .38435E-01    .61455E-03   -.20729E-03
   4  Prefactor     .66567        .12764E-01    .20752E-03   -.62605E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100039
  Index      = 2.44559
  Normalizat = 0.707137
  Prefactor  = 0.665668
 **********
 **   18 **HESSE 
 **********

 FCN=   193.7608     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    6816.4        .36302E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4456        5.4280        .50000       -.53621    
   3  Normalizat    .70714        .85857E-01    .12291E-03   -1.0361    
   4  Prefactor     .66567        .28517E-01    .41504E-04   -1.0489    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 4.78764e-09
Minuit parameter uncertainties:
  1  0.0256276
  2  1430.54
  3  0.0858738
  4  0.0285175
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/166081': 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) = 193.760811818
delta logL = -1.53571590999e-08

Extracting fit parameters...

4FGL J1401.7-3217
   Spectrum: PowerLaw
317    Prefactor:  1.000e-04  2.563e-02  1.000e-04  1.000e+04 ( 1.000e-14)
318        Index:  2.446e+00  1.431e+03  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:  6.657e-01  2.852e-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:  7.071e-01  8.587e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/166081/cmap_HighResolution_640569601_640828801_4FGL_J1401.7-3217_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.63e-01', job_status='DONE', photon_flux_upper_limit='4.77e-06', time_completed='2021-09-08 23:57:05.831920', job_id='166081', GAL2='0.67', fit_tolerance='1e-08', EG2='0.71', EG='0.71', time_epoch_completed='1631170625.83', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.67', dlogl='-1.54e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1548' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 23:57:05 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 166081: <4FGL_J1401.7-3217_daily_bin1548> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin1548> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Wed Sep  8 23:50:18 2021
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:50:20 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:50:20 2021
Terminated at Wed Sep  8 23:57:06 2021
Results reported at Wed Sep  8 23:57:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin1548 210.446 -32.2877 640569601 640828801 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 :                                   333.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             231.71 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   406 sec.
    Turnaround time :                            408 sec.

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

