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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1098
RA = 175.387, Dec = -14.1457
tmin = 523929601, tmax = 524188801
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='998695', job_status='RUN', time_executed='2021-09-04 07:42:58.918630', time_epoch_executed='1630766578.92' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1098'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998695

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998695/ft1_4FGL_J1141.5-1408_daily_bin1098.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998695/ft1_4FGL_J1141.5-1408_daily_bin1098.fits outfile=/scratch/kocevski/998695/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1098.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=523929601.0 tmax=524188801.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.52
user 3.26
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits" evtable="EVENTS" scfile=/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits sctable="SC_DATA" outfile=/scratch/kocevski/998695/ltcube_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.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/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits
.....................!
real 11.84
user 11.44
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits sctable="SC_DATA" expcube=/scratch/kocevski/998695/ltcube_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.fits outfile=/scratch/kocevski/998695/expmap_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.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/998695/ltcube_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.fits
.....................!
real 191.32
user 186.65
sys 4.29

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/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits scfile=/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits outfile=/scratch/kocevski/998695/cmap_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.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.53
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits scfile=/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits outfile=/scratch/kocevski/998695/cmap_HighResolution_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits evtable="EVENTS" scfile=/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998695/Model_4FGL_J1141.5-1408_daily_bin1098.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/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits.....................!
real 59.76
user 57.00
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits', '/scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits', expMap='/scratch/kocevski/998695/expmap_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.fits', expCube='/scratch/kocevski/998695/ltcube_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/998695/Model_4FGL_J1141.5-1408_daily_bin1098.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/998695/ft1_filtered_4FGL_J1141.5-1408_daily_bin1098.fits
Spacecraft file(s): /scratch/kocevski/998695/ft2_4FGL_J1141.5-1408_daily_bin1098.fits
Exposure map: /scratch/kocevski/998695/expmap_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.fits
Exposure cube: /scratch/kocevski/998695/ltcube_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/998695/Model_4FGL_J1141.5-1408_daily_bin1098.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) = 6442.63128214

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.4488       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6911       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.794       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.8793       1.0000         .10000E-03   10000.    
     7 'Prefactor '    51.245       1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10283E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.4772       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .15964       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0334       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .18005       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    13.065       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .76537       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1447       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .98676       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.

 FCN=   6442.630     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3498 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.4480        1.7394        .85963E-06   -.41451E-02
   2  Prefactor     .10000E-03    24.064       -.13620E-04** at limit **
   3  Prefactor     .10000E-03    82.205       -.22290E-04** at limit **
   4  Prefactor     4.6902        14.286        .76769E-06   -.82800E-05
   5  Prefactor     35.792        16.201        .14619E-06    .12729E-04
   6  Prefactor     1.8783        5.0969        .38928E-05    .49922E-04
   7  Prefactor     51.239        61.486       -.53350E-05   -.19165E-04
   8  norm          .10000E-03    2.5951       -.77225E-07** at limit **
   9  Prefactor     .10000E-03    40.815        .24165E-04** at limit **
  10  norm          .10000E-03    .37636        .36826E-07** at limit **
  11  Prefactor     .10000E-03    2.3629       -.58723E-06** at limit **
  12  Prefactor     .10000E-03    3.4574        .11661E-07** at limit **
  13  norm          .10000E-03    12.747       -.91539E-06** at limit **
  14  Prefactor     .10000E-03    21.630       -.39458E-06** at limit **
  15  Prefactor     .10000E-03    7.1738       -.49494E-07** at limit **
  16  norm          1.4921        17.117       -.79986E-06   -.29050E-03
  17  Prefactor     .13285        3.5602        .78022E-06   -.56549E-03
  18  Prefactor     3.0457        23.912       -.21277E-05   -.94617E-04
  19  Prefactor     .10000E-03    10.782        .35657E-05** at limit **
  20  norm          .17321        1.9445       -.22828E-06    .17671E-03
  21  Prefactor     .10000E-03    37.314        .83952E-05** at limit **
  22  Prefactor     13.067        19.313        .64839E-06   -.13708E-03
  23  Prefactor     .10000E-03    19.413        .14700E-04** at limit **
  24  Prefactor     .10000E-03    30.057       -.18798E-04** at limit **
  25  Prefactor     .10000E-03    11.928       -.46087E-05** at limit **
  26  Prefactor     .76433        3.5753        .34664E-07   -.61952E-04
  27  Normalizat    1.1448        .22087       -.94471E-06   -.58355E-04
  28  Prefactor     .98671        .13099        .26354E-06   -.14863E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 1.44802
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 4.69025
  Prefactor  = 35.7924
  Prefactor  = 1.87827
  Prefactor  = 51.239
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.49206
  Prefactor  = 0.132855
  Prefactor  = 3.04567
  Prefactor  = 0.0001
  norm       = 0.17321
  Prefactor  = 0.0001
  Prefactor  = 13.0674
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.76433
  Normalizat = 1.14484
  Prefactor  = 0.986715
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.630     FROM HESSE     STATUS=OK           523 CALLS     4021 TOTAL
                     EDM=   .47E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.4480        4.8382        .15665E-02   -1.5467    
   2  Prefactor     .10000E-03    24.111        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    82.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.6902        14.212        .18580E-03   -1.5275    
   5  Prefactor     35.792        16.111        .66985E-04   -1.4511    
   6  Prefactor     1.8783        5.0183        .27888E-03   -1.5434    
   7  Prefactor     51.239        61.455        .56024E-04   -1.4275    
   8  norm          .10000E-03    2.5971        .12624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    40.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .66254        .95229E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    11.087        .23210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    3.4716        .14572E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    12.781        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    7.1748        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.4921        18.867        .35329E-03   -1.5464    
  17  Prefactor     .13285        62.876        .22252E-02   -1.5635    
  18  Prefactor     3.0457        24.295        .23298E-03   -1.5359    
  19  Prefactor     .10000E-03    10.888        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .17321        14.915        .21371E-02   -1.5625    
  21  Prefactor     .10000E-03    37.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     13.067        19.343        .11082E-03   -1.4985    
  23  Prefactor     .10000E-03    19.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    30.161        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .76433        13.270        .29126E-02   -1.5533    
  27  Normalizat    1.1448        .26142        .29955E-03   -.88325    
  28  Prefactor     .98671        .15684        .20046E-03   -.93174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.68897e-08
Minuit parameter uncertainties:
  1  4.83953
  2  0.00014106
  3  0.000454381
  4  14.2223
  5  16.1134
  6  5.01938
  7  61.5314
  8  1.15095e-05
  9  0.000358164
  10  9.21005e-07
  11  0.000112114
  12  3.38892e-06
  13  7.55131e-06
  14  1.50944e-05
  15  9.31303e-07
  16  10.6152
  17  5.78439
  18  17.2134
  19  3.75787e-05
  20  3.21448
  21  9.92131e-05
  22  19.3527
  23  0.000157783
  24  0.000205979
  25  3.35598e-05
  26  6.37082
  27  0.26172
  28  0.156914
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  9.313e-07  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:  9.867e-01  1.569e-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.145e+00  2.617e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 175.387 -14.146
Photon Flux Upper Limit: 3.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.68e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998695/likelihoodResults_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.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) = 6442.63114991
delta logL = -0.000654470534755

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6442.63049575
delta logL = -3.146360541e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10753E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9362       1.0000          .0000       10.000    
     3 'Normalizat'    1.1448       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98676       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=   6442.630     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      244 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    7.6791        .18142E-02** at limit **
   2  Index         1.9064        5.9415        .50000        .29673E-04
   3  Normalizat    1.1448        .24424        .29955E-03   -.37953E-06
   4  Prefactor     .98672        .15405        .20046E-03   -.62383E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100005
  Index      = 1.9064
  Normalizat = 1.14484
  Prefactor  = 0.986715
 **********
 **   18 **HESSE 
 **********

 FCN=   6442.630     FROM HESSE     STATUS=OK            29 CALLS      273 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    7.6744        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9064        5.9415        .50000       -.66711    
   3  Normalizat    1.1448        .24448        .11982E-04   -.88325    
   4  Prefactor     .98672        .15420        .80186E-05   -.93174    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62031e-09
Minuit parameter uncertainties:
  1  0.000406288
  2  3.92948
  3  0.244725
  4  0.154271
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998695': 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) = 6442.63049497
delta logL = 4.6850709623e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  4.063e-04  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.906e+00  3.929e+00  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:  9.867e-01  1.543e-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.145e+00  2.447e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 175.387 -14.146

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/998695/cmap_HighResolution_523929601_524188801_4FGL_J1141.5-1408_daily_bin1098.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.68e-03', job_status='DONE', photon_flux_upper_limit='3.59e-08', time_completed='2021-09-04 07:57:17.574348', job_id='998695', GAL2='0.99', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630767437.57', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.99', dlogl='4.69e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1098' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:57:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 998695: <4FGL_J1141.5-1408_daily_bin1098> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1098> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 07:41:01 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:41:02 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:02 2021
Terminated at Sat Sep  4 07:57:18 2021
Results reported at Sat Sep  4 07:57:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1098 175.387 -14.1457 523929601 524188801 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 :                                   812.02 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             325.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   975 sec.
    Turnaround time :                            977 sec.

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

