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


Performing analysis on: 4FGL_J1401.7-3217_daily_bin1317
RA = 210.446, Dec = -32.2877
tmin = 580694401, tmax = 580953601
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='163008', job_status='RUN', time_executed='2021-09-08 23:41:58.401063', time_epoch_executed='1631169718.4' WHERE source_name='4FGL J1401.7-3217' and cadence='daily' and bin_id='1317'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/163008

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/163008/ft1_4FGL_J1401.7-3217_daily_bin1317.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/163008/ft1_4FGL_J1401.7-3217_daily_bin1317.fits outfile=/scratch/kocevski/163008/ft1_filteredMKT_4FGL_J1401.7-3217_daily_bin1317.fits ra=210.446 dec=-32.2877 rad=12.0 tmin=580694401.0 tmax=580953601.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.76
user 2.59
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/163008/ft1_filtered_4FGL_J1401.7-3217_daily_bin1317.fits" evtable="EVENTS" scfile=/scratch/kocevski/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits sctable="SC_DATA" outfile=/scratch/kocevski/163008/ltcube_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.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/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits
.....................!
real 12.39
user 12.07
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/163008/ft1_filtered_4FGL_J1401.7-3217_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits sctable="SC_DATA" expcube=/scratch/kocevski/163008/ltcube_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.fits outfile=/scratch/kocevski/163008/expmap_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.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/163008/ltcube_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.fits
.....................!
real 190.10
user 185.66
sys 4.12

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source CenA Lobes in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/CenALobes.fits is the correct path to the extended template.
Added 206 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1401.7-3217 @ 210.446 -32.2877

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/163008/ft1_filtered_4FGL_J1401.7-3217_daily_bin1317.fits scfile=/scratch/kocevski/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits outfile=/scratch/kocevski/163008/cmap_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.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.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/163008/ft1_filtered_4FGL_J1401.7-3217_daily_bin1317.fits scfile=/scratch/kocevski/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits outfile=/scratch/kocevski/163008/cmap_HighResolution_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.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.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/163008/ft1_filtered_4FGL_J1401.7-3217_daily_bin1317.fits evtable="EVENTS" scfile=/scratch/kocevski/163008/ft2_4FGL_J1401.7-3217_daily_bin1317.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/163008/Model_4FGL_J1401.7-3217_daily_bin1317.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/163008/ft1_filtered_4FGL_J1401.7-3217_daily_bin1317.fits....................!
real 47.65
user 46.40
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10081E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .26787E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    29.674       1.0000         .10000E-03   10000.    
     5 'Prefactor '    115.79       1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10294E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .28920       1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.4315       1.0000         .10000E-03   10000.    
    10 'Prefactor '    132.47       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.014       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10369E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .98305E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    136.44       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    60.959       1.0000         .10000E-03   10000.    
    17 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10699E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10806E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10149E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10065E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .40924E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0893       1.0000         .10000E-01   10.000    
    25 'Prefactor '    .98574       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=   2246.148     FROM MIGRAD    STATUS=CONVERGED    106 CALLS     2818 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10010E-03    11.414       -.59808E-05** at limit **
   2  Prefactor     .11578E-03    1.7375        .35795E-05** at limit **
   3  Prefactor     .10003E-03    11.853       -.53918E-05** at limit **
   4  Prefactor     29.660        1.4003       -.47841E-06   -.23792E-02
   5  Prefactor     115.78        1.6219       -.37834E-06    .13732E-02
   6  norm          .10086E-03    24.701        .16969E-04** at limit **
   7  norm          .10345E-03    64.497        .30085E-04** at limit **
   8  norm          .24260E-03    1455.2       -.22538E-03** at limit **
   9  Prefactor     3.5020        7.3976       -.12686E-05    .38076E-02
  10  Prefactor     132.43        3.2353       -.85594E-06    .33128E-02
  11  Prefactor     14.974        3.3997       -.27598E-05    .16606E-02
  12  Prefactor     .11427E-03    65.919        .27620E-04** at limit **
  13  Prefactor     .47629E-03    11.405       -.75166E-05** at limit **
  14  Prefactor     136.48        3.8840        .10610E-05   -.55650E-02
  15  Prefactor     .10090E-03    27.428       -.51373E-05** at limit **
  16  Prefactor     60.929        2.4617       -.82680E-06   -.27207E-04
  17  norm          .10000E-03    10.088        .27694E-05** at limit **
  18  Prefactor     .10006E-03    35.390       -.81385E-05** at limit **
  19  norm          .10000E-03    .35914       -.36841E-05** at limit **
  20  Prefactor     .10222E-03    22.495        .57441E-05** at limit **
  21  Prefactor     .10124E-03    37.189        .17216E-04** at limit **
  22  norm          .10004E-03    21.992        .13261E-04** at limit **
  23  Prefactor     .15639E-03    3.3487        .34796E-05** at limit **
  24  Normalizat    1.0885        .69681       -.39554E-04   -.11996E-04
  25  Prefactor     .98599        .25373       -.37623E-05   -.10284E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100104
  Prefactor  = 0.000115784
  Prefactor  = 0.000100028
  Prefactor  = 29.6599
  Prefactor  = 115.779
  norm       = 0.00010086
  norm       = 0.000103452
  norm       = 0.000242595
  Prefactor  = 3.50199
  Prefactor  = 132.426
  Prefactor  = 14.9738
  Prefactor  = 0.000114271
  Prefactor  = 0.000476293
  Prefactor  = 136.484
  Prefactor  = 0.000100903
  Prefactor  = 60.9294
  norm       = 0.0001
  Prefactor  = 0.00010006
  norm       = 0.0001
  Prefactor  = 0.000102217
  Prefactor  = 0.000101237
  norm       = 0.000100042
  Prefactor  = 0.000156392
  Normalizat = 1.08853
  Prefactor  = 0.985991
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.148     FROM HESSE     STATUS=OK           471 CALLS     3289 TOTAL
                     EDM=   .36E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10010E-03    22.669        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .11578E-03    245.50        .10718E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10003E-03    23.190        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     29.660        27.010        .18387E-02   -1.4618    
   5  Prefactor     115.78        167.82        .93473E-03   -1.3552    
   6  norm          .10086E-03    26.147        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10345E-03    135.88        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .24260E-03    85.708        .11901       -1.5706    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.5020        29.532        .54589E-02   -1.5334    
  10  Prefactor     132.43        105.96        .87468E-03   -1.3401    
  11  Prefactor     14.974        1337.7        .25841E-02   -1.4934    
  12  Prefactor     .11427E-03    128.94        .90712E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .47629E-03    440.60        .10387E-01   -1.5712    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     136.48        152.12        .86202E-03   -1.3366    
  15  Prefactor     .10090E-03    29.062        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     60.929        75.962        .12848E-02   -1.4145    
  17  norm          .10000E-03    10.071        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10006E-03    54.989        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .29296        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10222E-03    50.531        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10124E-03    40.557        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10004E-03    22.139        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .15639E-03    272.03        .10627E-01   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0885        .62179        .10517       -.90121    
  25  Prefactor     .98599        .21335        .46089E-01   -.93198    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.57819e-06
Minuit parameter uncertainties:
  1  0.00307905
  2  0.125014
  3  0.00161561
  4  27.0209
  5  168.516
  6  0.00949022
  7  0.0434155
  8  0.221419
  9  20.3524
  10  106.115
  11  290.021
  12  0.0859786
  13  0.82046
  14  152.555
  15  0.0102514
  16  76.0831
  17  1.02592e-05
  18  0.00362909
  19  3.65255e-06
  20  0.0211885
  21  0.0141757
  22  0.00192407
  23  0.248847
  24  0.626035
  25  0.213531
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.860e-01  2.135e-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.089e+00  6.260e-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: 4.16e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.17e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/163008/likelihoodResults_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.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) = 2246.12405532
delta logL = 0.0234518919078

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2246.12113321
delta logL = 0.0263740086125

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    23.566       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7521       1.0000          .0000       10.000    
     3 'Normalizat'    1.0568       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99035       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=   2246.121     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      260 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     23.566        7855.8        .20628E-02    .47917E-04
   2  Index         2.7522        5.4776        .14115        .40687E-04
   3  Normalizat    1.0566        .14281        .10654        .80333E-05
   4  Prefactor     .99044        .51467E-01    .46146E-01   -.92203E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 23.5661
  Index      = 2.75217
  Normalizat = 1.05659
  Prefactor  = 0.990436
 **********
 **   18 **HESSE 
 **********

 FCN=   2246.121     FROM HESSE     STATUS=OK            29 CALLS      289 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     23.566        691.13        .82514E-04   -1.4737    
   2  Index         2.7522        3.4417        .10133E-01   -.46628    
   3  Normalizat    1.0566        .70734        .47225E-03   -.91158    
   4  Prefactor     .99044        .25595        .17583E-03   -.93049    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.45651e-08
Minuit parameter uncertainties:
  1  258.598
  2  3.92929
  3  0.713799
  4  0.256261
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/163008': 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) = 2246.12113315
delta logL = 0.0263740626779

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
685    Prefactor:  9.904e-01  2.563e-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.057e+00  7.138e-01  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/163008/cmap_HighResolution_580694401_580953601_4FGL_J1401.7-3217_daily_bin1317.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.17e-02', job_status='DONE', photon_flux_upper_limit='4.16e-07', time_completed='2021-09-08 23:50:24.504319', job_id='163008', GAL2='0.99', fit_tolerance='1e-08', EG2='1.06', EG='1.09', time_epoch_completed='1631170224.5', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='2.64e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1317' AND source_name='4FGL J1401.7-3217' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep  8 23:50:24 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0234>
Subject: Job 163008: <4FGL_J1401.7-3217_daily_bin1317> in cluster <slac> Done

Job <4FGL_J1401.7-3217_daily_bin1317> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Wed Sep  8 23:40:25 2021
Job was executed on host(s) <bullet0234>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep  8 23:40:26 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:40:26 2021
Terminated at Wed Sep  8 23:50:25 2021
Results reported at Wed Sep  8 23:50:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1401.7-3217_daily_bin1317 210.446 -32.2877 580694401 580953601 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 :                                   496.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             298.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   598 sec.
    Turnaround time :                            600 sec.

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

