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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1241
RA = 175.387, Dec = -14.1457
tmin = 560995201, tmax = 561254401
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='998888', job_status='RUN', time_executed='2021-09-04 07:42:37.163622', time_epoch_executed='1630766557.16' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1241'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998888

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998888/ft1_4FGL_J1141.5-1408_daily_bin1241.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998888/ft1_4FGL_J1141.5-1408_daily_bin1241.fits outfile=/scratch/kocevski/998888/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1241.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=560995201.0 tmax=561254401.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.74
user 3.51
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.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/998888/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1241.fits evtable="EVENTS" outfile="/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.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.50
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits" evtable="EVENTS" scfile=/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits sctable="SC_DATA" outfile=/scratch/kocevski/998888/ltcube_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.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/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits
.....................!
real 13.19
user 11.89
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits sctable="SC_DATA" expcube=/scratch/kocevski/998888/ltcube_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.fits outfile=/scratch/kocevski/998888/expmap_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.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/998888/ltcube_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.fits
.....................!
real 190.09
user 185.51
sys 4.20

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
Added 190 point sources and 0 extended sources

Setting source of interest to:
4FGL J1141.5-1408 @ 175.387 -14.1457

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits scfile=/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits outfile=/scratch/kocevski/998888/cmap_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.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=175.387 yref=-14.1457 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.52
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits scfile=/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits outfile=/scratch/kocevski/998888/cmap_HighResolution_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.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=175.387 yref=-14.1457 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits evtable="EVENTS" scfile=/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998888/Model_4FGL_J1141.5-1408_daily_bin1241.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 EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits.....................!
real 52.18
user 50.83
sys 1.14

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits', '/scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits', expMap='/scratch/kocevski/998888/expmap_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.fits', expCube='/scratch/kocevski/998888/ltcube_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998888/Model_4FGL_J1141.5-1408_daily_bin1241.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1141.5-1408'

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  2.590e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.965e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/998888/ft1_filtered_4FGL_J1141.5-1408_daily_bin1241.fits
Spacecraft file(s): /scratch/kocevski/998888/ft2_4FGL_J1141.5-1408_daily_bin1241.fits
Exposure map: /scratch/kocevski/998888/expmap_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.fits
Exposure cube: /scratch/kocevski/998888/ltcube_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998888/Model_4FGL_J1141.5-1408_daily_bin1241.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) = 5457.1996758

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.639       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.1987       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .20580E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .14053E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .12264E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10352E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    100.86       1.0000         .10000E-03   10000.    
     8 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.8950       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .45384E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10154E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11750E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    45.995       1.0000         .10000E-03   10000.    
    16 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .26126E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    64.086       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    5.2394       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10205E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    35.453       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    16.435       1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.2909       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.8546       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1783       1.0000         .10000E-01   10.000    
    28 'Prefactor '    1.1957       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   5457.167     FROM MIGRAD    STATUS=CONVERGED   1219 CALLS     4083 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.640        11.606        .90380E-04    .10491E-03
   2  Prefactor     3.1502        71.871        .22655E-03    .56705E-05
   3  Prefactor     .10000E-03    399.49        .20203E-02** at limit **
   4  Prefactor     .10000E-03    24.084        .18142E-02** at limit **
   5  Prefactor     .10779E-03    24.551        .92215E-01** at limit **
   6  Prefactor     .10000E-03    10.098        .18142E-02** at limit **
   7  Prefactor     100.72        101.28        .20016E-03    .14322E-03
   8  norm          .10000E-03    24.924        .18142E-02** at limit **
   9  Prefactor     .10000E-03    13.286        .18142E-02** at limit **
  10  norm          .10000E-03    .50695        .10121E-03** at limit **
  11  Prefactor     1.8908        10.108        .30221E-03    .11154E-03
  12  Prefactor     .10147E-03    167.56        .45014E-02** at limit **
  13  norm          .10000E-03    17.725        .18142E-02** at limit **
  14  Prefactor     .10000E-03    43.458        .18142E-02** at limit **
  15  Prefactor     45.937        45.220        .59120E-04    .18465E-03
  16  norm          .10000E-03    4.7899        .15773E-02** at limit **
  17  Prefactor     .10006E-03    65.339        .29701E-02** at limit **
  18  Prefactor     64.029        38.861        .50129E-04    .19499E-03
  19  Prefactor     .10000E-03    8.4556        .18142E-02** at limit **
  20  norm          5.2403        5.6785        .16864E-03    .67279E-04
  21  Prefactor     .10000E-03    66.897        .18142E-02** at limit **
  22  Prefactor     35.428        39.192        .67305E-04    .54356E-04
  23  Prefactor     .10000E-03    40.180        .18142E-02** at limit **
  24  Prefactor     16.516        76.513        .98795E-04    .15880E-04
  25  Prefactor     4.2690        92.919        .19449E-03   -.20459E-05
  26  Prefactor     6.8539        10.706        .76622E-03    .29378E-05
  27  Normalizat    1.1782        .36120        .35974E-03    .42363E-03
  28  Prefactor     1.1958        .21396        .21610E-03    .83546E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 19.6405
  Prefactor  = 3.15025
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000107786
  Prefactor  = 0.0001
  Prefactor  = 100.716
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.89085
  Prefactor  = 0.00010147
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 45.9366
  norm       = 0.0001
  Prefactor  = 0.000100059
  Prefactor  = 64.0288
  Prefactor  = 0.0001
  norm       = 5.24031
  Prefactor  = 0.0001
  Prefactor  = 35.428
  Prefactor  = 0.0001
  Prefactor  = 16.5159
  Prefactor  = 4.26902
  Prefactor  = 6.85386
  Normalizat = 1.1782
  Prefactor  = 1.19577
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.167     FROM HESSE     STATUS=OK           503 CALLS     4586 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.640        11.606        .36152E-05   -1.4821    
   2  Prefactor     3.1502        71.847        .90620E-05   -1.5353    
   3  Prefactor     .10000E-03    399.70        .40406E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    24.087        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10779E-03    22.851        .96718E-01   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    10.101        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     100.72        101.27        .40033E-04   -1.3697    
   8  norm          .10000E-03    24.930        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .50695        .20243E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.8908        10.098        .12088E-04   -1.5433    
  12  Prefactor     .10147E-03    172.36        .18006E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    17.725        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    43.461        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     45.937        45.178        .11824E-04   -1.4351    
  16  norm          .10000E-03    4.7902        .31546E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10006E-03    67.195        .11880E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     64.029        38.803        .10026E-04   -1.4106    
  19  Prefactor     .10000E-03    8.4562        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          5.2403        5.6774        .67456E-05   -1.5250    
  21  Prefactor     .10000E-03    66.900        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     35.428        39.178        .13461E-04   -1.4517    
  23  Prefactor     .10000E-03    40.181        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     16.516        76.552        .39518E-05   -1.4895    
  25  Prefactor     4.2690        92.949        .77796E-05   -1.5295    
  26  Prefactor     6.8539        10.704        .30649E-04   -1.5184    
  27  Normalizat    1.1782        .36094        .71948E-04   -.87279    
  28  Prefactor     1.1958        .21410        .43219E-04   -.86462    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0702e-08
Minuit parameter uncertainties:
  1  11.6075
  2  30.1294
  3  0.00165623
  4  0.000160156
  5  0.0266876
  6  2.28734e-05
  7  101.447
  8  5.21053e-05
  9  1.90713e-06
  10  5.18727e-07
  11  8.74141
  12  0.0319305
  13  2.91309e-06
  14  0.000163887
  15  45.2117
  16  5.10271e-06
  17  0.00397489
  18  38.8185
  19  6.88625e-07
  20  5.67803
  21  1.05175e-05
  22  39.2064
  23  0.000148935
  24  71.265
  25  39.9097
  26  10.7072
  27  0.3617
  28  0.214257
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  4.594e+01  4.521e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.965e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.196e+00  2.143e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.178e+00  3.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 175.387 -14.146
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.03e-08 +/- 3.96e-08
Energy Flux (Fixed Index): 3.04e-05 +/- 2.99e-05

TS (Fixed Index): 2.49
Ra Dec: 175.387 -14.146
Photon Flux Upper Limit: 1.42e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998888/likelihoodResults_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5457.09149887
delta logL = 0.075655551027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5457.08771492
delta logL = 0.0794395068897

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    33.953       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3115       1.0000          .0000       10.000    
     3 'Normalizat'    1.1424       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2056       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+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=   5457.088     FROM MIGRAD    STATUS=CONVERGED    105 CALLS      324 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     33.882        56.721        .68771E-04   -.23144E-05
   2  Index         2.3146        .98916        .58211E-02    .56208E-03
   3  Normalizat    1.1415        .36366        .36460E-03   -.62362E-06
   4  Prefactor     1.2064        .21177        .21522E-03    .16904E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 33.8819
  Index      = 2.31456
  Normalizat = 1.14146
  Prefactor  = 1.20641
 **********
 **   18 **HESSE 
 **********

 FCN=   5457.088     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     33.882        48.350        .27508E-05   -1.4543    
   2  Index         2.3146        .84267        .11642E-02   -.56698    
   3  Normalizat    1.1415        .35866        .14584E-04   -.88432    
   4  Prefactor     1.2064        .21073        .86086E-05   -.86134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09411e-11
Minuit parameter uncertainties:
  1  48.406
  2  0.848378
  3  0.359434
  4  0.210879
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998888': 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) = 5457.08769426
delta logL = 0.0794601669722

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  3.388e+01  4.841e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.315e+00  8.484e-01  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  1.206e+00  2.109e-01  0.000e+00  1.000e+01 ( 1.000e+00)
606        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
607        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
604   Normalization:  1.141e+00  3.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.66
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 2.31 +/- 0.85
Photon Flux (Free Index): 7.25e-08 +/- 1.01e-07
Energy Flux (Free Index): 2.68e-05 +/- 2.32e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/998888/cmap_HighResolution_560995201_561254401_4FGL_J1141.5-1408_daily_bin1241.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='4.03e-08', energy_flux2='2.68e-05', photon_flux_error='3.96e-08', dlogl='7.95e-02', energy_flux='3.04e-05', photon_flux2='7.25e-08', job_status='DONE', time_completed='2021-09-04 07:56:23.734730', photon_index_error2='0.85', photon_index2='2.31', ts='2.49', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', photon_flux_upper_limit='1.42e-07', energy_flux_error2='2.32e-05', EG='1.18', time_epoch_completed='1630767383.73', return_code='0', job_id='998888', GAL2='1.21', EG2='1.14', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='1.01e-07', ts2='2.66', photon_index='1.97' WHERE bin_id='1241' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:56:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 998888: <4FGL_J1141.5-1408_daily_bin1241> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1241> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 07:41:15 2021
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:41:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 07:41:17 2021
Terminated at Sat Sep  4 07:56:25 2021
Results reported at Sat Sep  4 07:56:25 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1241 175.387 -14.1457 560995201 561254401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1141.5-1408 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   787.29 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             277.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   907 sec.
    Turnaround time :                            910 sec.

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

