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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1049
RA = 175.387, Dec = -14.1457
tmin = 511228801, tmax = 511488001
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='997616', job_status='RUN', time_executed='2021-09-04 07:37:05.711053', time_epoch_executed='1630766225.71' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1049'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997616

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997616/ft1_4FGL_J1141.5-1408_daily_bin1049.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997616/ft1_4FGL_J1141.5-1408_daily_bin1049.fits outfile=/scratch/kocevski/997616/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1049.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=511228801.0 tmax=511488001.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.47
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997616/ft1_filtered_4FGL_J1141.5-1408_daily_bin1049.fits" evtable="EVENTS" scfile=/scratch/kocevski/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits sctable="SC_DATA" outfile=/scratch/kocevski/997616/ltcube_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.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/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits
.....................!
real 11.92
user 11.57
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997616/ft1_filtered_4FGL_J1141.5-1408_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits sctable="SC_DATA" expcube=/scratch/kocevski/997616/ltcube_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.fits outfile=/scratch/kocevski/997616/expmap_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.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/997616/ltcube_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.fits
.....................!
real 189.92
user 185.50
sys 4.02

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/997616/ft1_filtered_4FGL_J1141.5-1408_daily_bin1049.fits scfile=/scratch/kocevski/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits outfile=/scratch/kocevski/997616/cmap_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997616/ft1_filtered_4FGL_J1141.5-1408_daily_bin1049.fits scfile=/scratch/kocevski/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits outfile=/scratch/kocevski/997616/cmap_HighResolution_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.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.56
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997616/ft1_filtered_4FGL_J1141.5-1408_daily_bin1049.fits evtable="EVENTS" scfile=/scratch/kocevski/997616/ft2_4FGL_J1141.5-1408_daily_bin1049.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997616/Model_4FGL_J1141.5-1408_daily_bin1049.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/997616/ft1_filtered_4FGL_J1141.5-1408_daily_bin1049.fits.....................!
real 57.49
user 52.96
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.9757       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    59.911       1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.3650       1.0000         .10000E-03   10000.    
     5 'Prefactor '    37.390       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .14110E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.714       1.0000         .10000E-03   10000.    
    10 'norm      '    1.1005       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    23.817       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    21.365       1.0000         .10000E-03   10000.    
    16 'norm      '    .10070E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    6.0004       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .11670E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .17617E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.5639       1.0000         .10000E-03   10000.    
    21 'Prefactor '    62.396       1.0000         .10000E-03   10000.    
    22 'Prefactor '    25.035       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10146E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4200       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .90854       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=   5617.118     FROM MIGRAD    STATUS=CONVERGED    650 CALLS     3455 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.9752        5.6889       -.52019E-06    .83267E-04
   2  Prefactor     .10001E-03    21.964       -.12757E-04** at limit **
   3  Prefactor     59.981        88.422        .84353E-04    .37687E-04
   4  Prefactor     3.3628        22.571       -.62177E-05   -.49813E-04
   5  Prefactor     37.396        18.716        .23734E-05    .30714E-03
   6  Prefactor     .10006E-03    5.2175       -.13595E-05** at limit **
   7  Prefactor     .10000E-03    18.856       -.59599E-05** at limit **
   8  norm          .10000E-03    11.073       -.17970E-05** at limit **
   9  Prefactor     51.718        77.752        .43098E-05    .17639E-04
  10  norm          1.0935        1.4723       -.12597E-05   -.17085E-02
  11  Prefactor     .10000E-03    2.4395        .70162E-07** at limit **
  12  Prefactor     23.829        14.620        .24288E-07    .25359E-05
  13  norm          .10000E-03    9.6564       -.15749E-07** at limit **
  14  Prefactor     .10000E-03    46.767       -.11493E-04** at limit **
  15  Prefactor     21.358        27.711       -.72956E-05   -.18025E-04
  16  norm          .10000E-03    2.9899       -.80567E-07** at limit **
  17  Prefactor     6.0010        5.4185        .41689E-05   -.50695E-03
  18  Prefactor     .10000E-03    32.357        .20745E-04** at limit **
  19  Prefactor     .10001E-03    48.525       -.24259E-04** at limit **
  20  norm          4.5622        5.8497        .46458E-05    .25881E-03
  21  Prefactor     62.372        63.550       -.25647E-04   -.32838E-04
  22  Prefactor     25.035        19.413        .30697E-05   -.39834E-04
  23  Prefactor     .10000E-03    18.927       -.60464E-05** at limit **
  24  Prefactor     .10000E-03    38.516        .22197E-04** at limit **
  25  Prefactor     .10000E-03    15.876        .11937E-04** at limit **
  26  Prefactor     .10000E-03    16.120        .59083E-05** at limit **
  27  Normalizat    1.4199        .27894       -.36046E-05    .18919E-03
  28  Prefactor     .90873        .16124       -.10939E-05    .50862E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.97523
  Prefactor  = 0.000100009
  Prefactor  = 59.981
  Prefactor  = 3.36284
  Prefactor  = 37.3965
  Prefactor  = 0.000100061
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 51.7179
  norm       = 1.09346
  Prefactor  = 0.0001
  Prefactor  = 23.8288
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 21.3581
  norm       = 0.0001
  Prefactor  = 6.00101
  Prefactor  = 0.0001
  Prefactor  = 0.000100005
  norm       = 4.5622
  Prefactor  = 62.3719
  Prefactor  = 25.0346
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.41994
  Prefactor  = 0.908727
 **********
 **   18 **HESSE 
 **********

 FCN=   5617.118     FROM HESSE     STATUS=OK           513 CALLS     3968 TOTAL
                     EDM=   .48E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.9752        5.6927        .16426E-03   -1.5219    
   2  Prefactor     .10001E-03    22.127        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     59.981        88.437        .25918E-03   -1.4157    
   4  Prefactor     3.3628        22.145        .22060E-03   -1.5341    
   5  Prefactor     37.396        18.357        .65545E-04   -1.4484    
   6  Prefactor     .10006E-03    18.782        .32534E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    18.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    11.229        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     51.718        77.092        .55770E-04   -1.4268    
  10  norm          1.0935        1.4220        .95258E-04   -1.5499    
  11  Prefactor     .10000E-03    2.4612        .11424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     23.829        14.694        .82080E-04   -1.4731    
  13  norm          .10000E-03    9.6620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    47.465        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     21.358        27.714        .86654E-04   -1.4783    
  16  norm          .10000E-03    2.9966        .12649E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     6.0010        5.3989        .15058E-03   -1.5218    
  18  Prefactor     .10000E-03    32.686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10001E-03    49.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.5622        5.8249        .18843E-03   -1.5281    
  21  Prefactor     62.372        63.427        .50799E-04   -1.4127    
  22  Prefactor     25.035        19.457        .80061E-04   -1.4707    
  23  Prefactor     .10000E-03    18.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    38.501        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    15.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    16.799        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.4199        .33363        .31542E-03   -.80054    
  28  Prefactor     .90873        .19286        .23218E-03   -.95837    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.84389e-09
Minuit parameter uncertainties:
  1  5.69317
  2  0.000880514
  3  88.6313
  4  17.2684
  5  18.3594
  6  0.00213892
  7  1.47922e-05
  8  3.1808e-05
  9  77.2415
  10  1.422
  11  1.27049e-05
  12  14.6958
  13  1.08636e-05
  14  0.000306909
  15  27.7306
  16  8.12245e-06
  17  5.3993
  18  0.000220805
  19  0.000996468
  20  5.82566
  21  63.496
  22  19.4615
  23  9.51784e-05
  24  5.9804e-05
  25  1.22658e-05
  26  3.23195e-05
  27  0.334145
  28  0.193006
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  2.136e+01  2.773e+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:  9.087e-01  1.930e-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.420e+00  3.341e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.26
Ra Dec: 175.387 -14.146
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.87e-08 +/- 2.43e-08
Energy Flux (Fixed Index): 1.41e-05 +/- 1.84e-05

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

Saving results to:
/scratch/kocevski/997616/likelihoodResults_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.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) = 5616.81018211
delta logL = 0.308122414816

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5616.80888492
delta logL = 0.309419606298

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    31.370       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2749       1.0000          .0000       10.000    
     3 'Normalizat'    1.4335       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90400       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.

 FCN=   5616.809     FROM MIGRAD    STATUS=CONVERGED     45 CALLS      265 TOTAL
                     EDM=   .61E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     31.370        1860.2        .17885E-02   -.79585E-04
   2  Index         1.2749        7.1907        .33063       -.19010E-04
   3  Normalizat    1.4336        .24802        .70999E-01    .68588E-05
   4  Prefactor     .90397        .82907E-01    .45056E-01    .91587E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 31.3696
  Index      = 1.27488
  Normalizat = 1.43358
  Prefactor  = 0.903968
 **********
 **   18 **HESSE 
 **********

 FCN=   5616.809     FROM HESSE     STATUS=OK            31 CALLS      296 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     31.370        37.556        .71539E-04   -1.4587    
   2  Index         1.2749        .71464        .13187E-01   -.84057    
   3  Normalizat    1.4336        .31293        .31414E-03   -.79662    
   4  Prefactor     .90397        .19055        .23267E-03   -.96003    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.26454e-11
Minuit parameter uncertainties:
  1  37.5841
  2  0.72022
  3  0.313355
  4  0.190686
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997616': 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) = 5616.8088849
delta logL = 0.309419619604

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  3.137e+01  3.758e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.275e+00  7.202e-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:  9.040e-01  1.907e-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.434e+00  3.134e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.88
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 1.27 +/- 0.72
Photon Flux (Free Index): 7.70e-09 +/- 1.12e-08
Energy Flux (Free Index): 5.11e-05 +/- 9.53e-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/997616/cmap_HighResolution_511228801_511488001_4FGL_J1141.5-1408_daily_bin1049.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.15e-03', comment='SUCCESS', photon_flux='1.87e-08', energy_flux2='5.11e-05', photon_flux_error='2.43e-08', dlogl='3.09e-01', energy_flux='1.41e-05', photon_flux2='7.70e-09', job_status='DONE', time_completed='2021-09-04 07:49:54.674789', photon_index_error2='0.72', photon_index2='1.27', ts='1.26', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='9.56e-08', energy_flux_error2='9.53e-05', EG='1.42', time_epoch_completed='1630766994.67', return_code='0', job_id='997616', GAL2='0.90', EG2='1.43', return_code2='0', energy_flux_error='1.84e-05', photon_flux_error2='1.12e-08', ts2='1.88', photon_index='1.97' WHERE bin_id='1049' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:49:54 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0291>
Subject: Job 997616: <4FGL_J1141.5-1408_daily_bin1049> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1049> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 07:36:42 2021
Job was executed on host(s) <bullet0291>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:36:43 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:43 2021
Terminated at Sat Sep  4 07:49:55 2021
Results reported at Sat Sep  4 07:49:55 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1049 175.387 -14.1457 511228801 511488001 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 :                                   758.30 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             304.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   792 sec.
    Turnaround time :                            793 sec.

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

