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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1015
RA = 175.387, Dec = -14.1457
tmin = 502416001, tmax = 502675201
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='997562', job_status='RUN', time_executed='2021-09-04 07:37:04.731471', time_epoch_executed='1630766224.73' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997562

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997562/ft1_4FGL_J1141.5-1408_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997562/ft1_4FGL_J1141.5-1408_daily_bin1015.fits outfile=/scratch/kocevski/997562/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1015.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=502416001.0 tmax=502675201.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.51
user 3.29
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997562/ft1_filtered_4FGL_J1141.5-1408_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/997562/ltcube_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.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/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits
.....................!
real 12.00
user 11.60
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997562/ft1_filtered_4FGL_J1141.5-1408_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/997562/ltcube_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.fits outfile=/scratch/kocevski/997562/expmap_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.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/997562/ltcube_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.fits
.....................!
real 190.38
user 185.88
sys 4.04

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/997562/ft1_filtered_4FGL_J1141.5-1408_daily_bin1015.fits scfile=/scratch/kocevski/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits outfile=/scratch/kocevski/997562/cmap_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.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.54
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997562/ft1_filtered_4FGL_J1141.5-1408_daily_bin1015.fits scfile=/scratch/kocevski/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits outfile=/scratch/kocevski/997562/cmap_HighResolution_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.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.53
user 0.37
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997562/ft1_filtered_4FGL_J1141.5-1408_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/997562/ft2_4FGL_J1141.5-1408_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997562/Model_4FGL_J1141.5-1408_daily_bin1015.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/997562/ft1_filtered_4FGL_J1141.5-1408_daily_bin1015.fits....................!
real 58.77
user 56.84
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.442       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10219E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    36.393       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.0859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10165E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    33.018       1.0000         .10000E-03   10000.    
    10 'norm      '    2.9250       1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.5720       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .27107       1.0000         .10000E-03   10000.    
    13 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.4130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10416E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.1594       1.0000         .10000E-03   10000.    
    20 'norm      '    13.010       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    16.668       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    57.645       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.9283       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5929       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .79123       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=   6319.777     FROM MIGRAD    STATUS=CONVERGED    673 CALLS     3571 TOTAL
                     EDM=   .16E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.438        9.0358       -.28570E-07   -.36986E-04
   2  Prefactor     .10000E-03    22.796       -.19502E-05** at limit **
   3  Prefactor     36.253        93.619       -.14218E-05   -.96811E-04
   4  Prefactor     4.0783        10.822        .77861E-05   -.10937E-03
   5  Prefactor     .10000E-03    3.8079       -.10384E-06** at limit **
   6  Prefactor     .10000E-03    3.1598        .17996E-06** at limit **
   7  Prefactor     .10000E-03    28.786        .87904E-07** at limit **
   8  norm          .10000E-03    3.3245        .53250E-07** at limit **
   9  Prefactor     32.980        44.686       -.17780E-06   -.82274E-04
  10  norm          2.9289        1.5607        .11578E-07   -.98266E-04
  11  Prefactor     1.5711        2.2652        .29848E-07   -.72655E-04
  12  Prefactor     .10114        5.5699        .40772E-06   -.41044E-04
  13  norm          .10000E-03    10.473        .11662E-06** at limit **
  14  Prefactor     .10000E-03    19.717        .42935E-06** at limit **
  15  Prefactor     .10000E-03    11.085        .82163E-07** at limit **
  16  norm          .10000E-03    3.9432       -.11165E-06** at limit **
  17  Prefactor     1.4060        4.7711        .22530E-05   -.36429E-04
  18  Prefactor     .10000E-03    13.108       -.35066E-07** at limit **
  19  Prefactor     7.1487        23.572        .81490E-06   -.11985E-04
  20  norm          13.007        8.2398        .93130E-08    .15752E-05
  21  Prefactor     .10000E-03    24.517       -.24405E-06** at limit **
  22  Prefactor     16.652        16.702       -.24240E-06   -.61992E-04
  23  Prefactor     .10000E-03    18.407        .11631E-06** at limit **
  24  Prefactor     .10000E-03    27.039       -.13670E-06** at limit **
  25  Prefactor     57.622        33.297       -.44160E-07   -.69426E-04
  26  Prefactor     3.9196        6.3010        .47389E-06   -.62453E-04
  27  Normalizat    1.5941        .24860       -.18745E-05   -.10487E-03
  28  Prefactor     .79121        .14557       -.39563E-06   -.19456E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.4384
  Prefactor  = 0.0001
  Prefactor  = 36.2526
  Prefactor  = 4.07831
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 32.9805
  norm       = 2.92887
  Prefactor  = 1.57105
  Prefactor  = 0.101143
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.40599
  Prefactor  = 0.0001
  Prefactor  = 7.14873
  norm       = 13.0073
  Prefactor  = 0.0001
  Prefactor  = 16.6517
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 57.622
  Prefactor  = 3.91958
  Normalizat = 1.59415
  Prefactor  = 0.791211
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.777     FROM HESSE     STATUS=OK           525 CALLS     4096 TOTAL
                     EDM=   .64E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.438        9.0435        .88588E-04   -1.4803    
   2  Prefactor     .10000E-03    22.810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     36.253        93.564        .33217E-03   -1.4503    
   4  Prefactor     4.0783        10.792        .99726E-03   -1.5304    
   5  Prefactor     .10000E-03    3.8140        .15151E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    3.2228        .13795E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.795        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.3442        .14154E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     32.980        44.674        .69735E-04   -1.4559    
  10  norm          2.9289        1.5561        .67949E-04   -1.5366    
  11  Prefactor     1.5711        2.2411        .13961E-03   -1.5457    
  12  Prefactor     .10114        14.196        .56690E-01   -1.5644    
  13  norm          .10000E-03    10.485        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    11.088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.9619        .15396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.4060        4.7623        .29099E-03   -1.5471    
  18  Prefactor     .10000E-03    13.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     7.1487        23.371        .14992E-03   -1.5173    
  20  norm          13.007        8.1742        .11105E-03   -1.4986    
  21  Prefactor     .10000E-03    24.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     16.652        16.724        .98101E-04   -1.4892    
  23  Prefactor     .10000E-03    18.417        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    27.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     57.622        33.294        .26419E-03   -1.4188    
  26  Prefactor     3.9196        6.2944        .20354E-03   -1.5312    
  27  Normalizat    1.5941        .29544        .28722E-03   -.75166    
  28  Prefactor     .79121        .17172        .23898E-03   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.40637e-10
Minuit parameter uncertainties:
  1  9.04411
  2  1.31366e-05
  3  93.9458
  4  10.7968
  5  1.66336e-05
  6  3.46959e-06
  7  2.411e-05
  8  5.99813e-06
  9  44.7189
  10  1.5561
  11  2.24121
  12  2.3959
  13  4.68276e-06
  14  2.18345e-05
  15  1.361e-06
  16  1.58893e-05
  17  4.7636
  18  4.33404e-05
  19  23.4012
  20  8.17493
  21  7.66183e-05
  22  16.7283
  23  4.42944e-05
  24  3.89218e-06
  25  33.3048
  26  6.29546
  27  0.29576
  28  0.171833
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.361e-06  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:  7.912e-01  1.718e-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.594e+00  2.958e-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: 5.14e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.84e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997562/likelihoodResults_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.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) = 6319.77746579
delta logL = -0.000426582166256

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6319.77703928
delta logL = -6.86832208885e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9411       1.0000          .0000       10.000    
     3 'Normalizat'    1.5943       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79112       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=   6319.777     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      241 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10138E-03    90.482        .18142E-02** at limit **
   2  Index         1.8861        5.0200        .50000        .14496E-04
   3  Normalizat    1.5941        .16754E-01    .28721E-03    .85894E-05
   4  Prefactor     .79121        .10314E-01    .23898E-03    .85629E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000101379
  Index      = 1.88608
  Normalizat = 1.59415
  Prefactor  = 0.791212
 **********
 **   18 **HESSE 
 **********

 FCN=   6319.777     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      270 TOTAL
                     EDM=   .27E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10138E-03    399.35        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8861        5.6004        .50000       -.67230    
   3  Normalizat    1.5941        .36438E-01    .11489E-04   -.75166    
   4  Prefactor     .79121        .22431E-01    .95592E-05   -1.0005    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.70302e-08
Minuit parameter uncertainties:
  1  0.0472608
  2  570.919
  3  0.0364389
  4  0.0224308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997562': 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) = 6319.77703895
delta logL = 2.57982719631e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.014e-04  4.726e-02  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.886e+00  5.709e+02  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:  7.912e-01  2.243e-02  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.594e+00  3.644e-02  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/997562/cmap_HighResolution_502416001_502675201_4FGL_J1141.5-1408_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.84e-03', job_status='DONE', photon_flux_upper_limit='5.14e-08', time_completed='2021-09-04 07:51:48.026378', job_id='997562', GAL2='0.79', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1630767108.03', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.58e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1015' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:51:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 997562: <4FGL_J1141.5-1408_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1015> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 07:36:37 2021
Job was executed on host(s) <bullet0079>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:36:39 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:36:39 2021
Terminated at Sat Sep  4 07:51:48 2021
Results reported at Sat Sep  4 07:51:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1015 175.387 -14.1457 502416001 502675201 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 :                                   876.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             306.45 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   909 sec.
    Turnaround time :                            911 sec.

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

