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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1372
RA = 175.387, Dec = -14.1457
tmin = 594950401, tmax = 595209601
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='999072', job_status='RUN', time_executed='2021-09-04 07:42:37.851480', time_epoch_executed='1630766557.85' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999072

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999072/ft1_4FGL_J1141.5-1408_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999072/ft1_4FGL_J1141.5-1408_daily_bin1372.fits outfile=/scratch/kocevski/999072/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1372.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=594950401.0 tmax=595209601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 2.98
user 2.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999072/ft1_filtered_4FGL_J1141.5-1408_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/999072/ltcube_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.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/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits
.....................!
real 12.10
user 11.78
sys 0.28

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999072/ft1_filtered_4FGL_J1141.5-1408_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/999072/ltcube_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.fits outfile=/scratch/kocevski/999072/expmap_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.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/999072/ltcube_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.fits
.....................!
real 191.80
user 186.90
sys 4.45

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/999072/ft1_filtered_4FGL_J1141.5-1408_daily_bin1372.fits scfile=/scratch/kocevski/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits outfile=/scratch/kocevski/999072/cmap_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999072/ft1_filtered_4FGL_J1141.5-1408_daily_bin1372.fits scfile=/scratch/kocevski/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits outfile=/scratch/kocevski/999072/cmap_HighResolution_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.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/999072/ft1_filtered_4FGL_J1141.5-1408_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/999072/ft2_4FGL_J1141.5-1408_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999072/Model_4FGL_J1141.5-1408_daily_bin1372.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/999072/ft1_filtered_4FGL_J1141.5-1408_daily_bin1372.fits.....................!
real 59.52
user 58.10
sys 1.20

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    19.011       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.2184       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .96142       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10571E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    7.1392       1.0000         .10000E-03   10000.    
    10 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    4.1634       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.519       1.0000         .10000E-03   10000.    
    13 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10016E-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 '    4.8705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.157       1.0000         .10000E-03   10000.    
    20 'norm      '    .11091E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    22.752       1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .19004       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .34551E-02   1.0000         .10000E-03   10000.    
    25 'Prefactor '    17.296       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.6607       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1747       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .88765       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=   6517.421     FROM MIGRAD    STATUS=CONVERGED    749 CALLS     3641 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          19.012        7.3995       -.41999E-07    .42351E-05
   2  Prefactor     .10000E-03    8.0792        .27138E-07** at limit **
   3  Prefactor     .10000E-03    26.639        .15061E-07** at limit **
   4  Prefactor     5.2222        10.409       -.28294E-06   -.35051E-04
   5  Prefactor     .10000E-03    5.0929       -.77605E-07** at limit **
   6  Prefactor     .96183        5.0253        .26979E-05    .11687E-03
   7  Prefactor     .10000E-03    83.665        .34781E-06** at limit **
   8  norm          .10000E-03    4.3520       -.16408E-06** at limit **
   9  Prefactor     7.1384        22.458        .11531E-06   -.79120E-05
  10  norm          .10000E-03    .61946        .15889E-07** at limit **
  11  Prefactor     4.1657        4.9206       -.29221E-06   -.17284E-03
  12  Prefactor     35.523        12.211       -.11426E-06   -.11563E-04
  13  norm          .10000E-03    16.196        .77365E-07** at limit **
  14  Prefactor     .10000E-03    22.833        .40262E-07** at limit **
  15  Prefactor     .10000E-03    17.137       -.35971E-07** at limit **
  16  norm          .10000E-03    1.9797       -.71498E-07** at limit **
  17  Prefactor     4.8701        3.6100        .97214E-07    .73823E-05
  18  Prefactor     .10000E-03    6.5685       -.25970E-07** at limit **
  19  Prefactor     15.186        22.026       -.65983E-06    .57463E-04
  20  norm          .10000E-03    7.0974       -.23543E-05** at limit **
  21  Prefactor     22.560        42.261        .27897E-05   -.43573E-04
  22  Prefactor     .10000E-03    14.345       -.82326E-06** at limit **
  23  Prefactor     .80701        37.266        .15361E-05   -.17591E-03
  24  Prefactor     .10000E-03    240.15        .47442E-05** at limit **
  25  Prefactor     17.094        45.057       -.63964E-05   -.34880E-04
  26  Prefactor     7.6604        7.3430        .14826E-06    .37367E-04
  27  Normalizat    1.1743        .23302        .18313E-05   -.87189E-04
  28  Prefactor     .88782        .13740       -.12281E-05    .15950E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 19.012
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.22217
  Prefactor  = 0.0001
  Prefactor  = 0.961833
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.13836
  norm       = 0.0001
  Prefactor  = 4.16566
  Prefactor  = 35.5226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.87012
  Prefactor  = 0.0001
  Prefactor  = 15.1863
  norm       = 0.0001
  Prefactor  = 22.5602
  Prefactor  = 0.0001
  Prefactor  = 0.807014
  Prefactor  = 0.000100001
  Prefactor  = 17.0942
  Prefactor  = 7.66042
  Normalizat = 1.17429
  Prefactor  = 0.887819
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.421     FROM HESSE     STATUS=OK           523 CALLS     4164 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          19.012        7.4076        .91860E-04   -1.4836    
   2  Prefactor     .10000E-03    8.0816        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    26.644        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.2222        10.398        .17597E-03   -1.5251    
   5  Prefactor     .10000E-03    5.1213        .17780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .96183        4.9312        .33113E-03   -1.5512    
   7  Prefactor     .10000E-03    84.268        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.3711        .16435E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     7.1384        22.421        .15013E-03   -1.5174    
  10  norm          .10000E-03    1.9994        .12251E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     4.1657        4.8571        .17372E-03   -1.5300    
  12  Prefactor     35.523        12.261        .67243E-04   -1.4515    
  13  norm          .10000E-03    16.253        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    23.044        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    17.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.9861        .11090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.8701        3.6051        .12445E-03   -1.5267    
  18  Prefactor     .10000E-03    6.5810        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     15.186        21.569        .10288E-03   -1.4928    
  20  norm          .10000E-03    6.9526        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     22.560        43.268        .83975E-04   -1.4758    
  22  Prefactor     .10000E-03    14.491        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .80701        348.70        .87624E-02   -1.5528    
  24  Prefactor     .10000E-03    240.76        .19670E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     17.094        45.666        .96305E-04   -1.4881    
  26  Prefactor     7.6604        7.3400        .14489E-03   -1.5154    
  27  Normalizat    1.1743        .27509        .29932E-03   -.87401    
  28  Prefactor     .88782        .16189        .21239E-03   -.96568    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13485e-09
Minuit parameter uncertainties:
  1  7.40793
  2  5.60299e-07
  3  1.02986e-05
  4  10.4017
  5  1.30511e-05
  6  4.35601
  7  8.67762e-05
  8  1.91221e-05
  9  22.4473
  10  2.0018e-06
  11  4.85759
  12  12.2615
  13  2.88676e-05
  14  1.27543e-05
  15  2.76684e-05
  16  3.45412e-06
  17  3.60527
  18  5.38242e-06
  19  21.58
  20  2.03542e-05
  21  43.3278
  22  8.66794e-05
  23  33.7476
  24  0.000729349
  25  45.7592
  26  7.34082
  27  0.275429
  28  0.161978
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  2.767e-05  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:  8.878e-01  1.620e-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.174e+00  2.754e-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.87e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.39e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999072/likelihoodResults_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.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) = 6517.42097279
delta logL = -0.000277650026874

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6517.42069495
delta logL = 1.92883817363e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0601       1.0000          .0000       10.000    
     3 'Normalizat'    1.1743       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88782       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=   6517.421     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      238 TOTAL
                     EDM=   .32E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    543.85        .90712E-02** at limit **
   2  Index         2.0841        6.9973        .50000       -.12091E-04
   3  Normalizat    1.1743        .30539E-01    .67654E-01   -.18652E-03
   4  Prefactor     .88782        .19234E-01    .44850E-01   -.63184E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100004
  Index      = 2.08412
  Normalizat = 1.17429
  Prefactor  = 0.887819
 **********
 **   18 **HESSE 
 **********

 FCN=   6517.421     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      271 TOTAL
                     EDM=   .26E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    630.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0841        5.9597        .50000       -.62263    
   3  Normalizat    1.1743        .33023E-01    .29932E-03   -.87401    
   4  Prefactor     .88782        .20816E-01    .21240E-03   -.96568    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.58057e-08
Minuit parameter uncertainties:
  1  0.00339523
  2  23.8065
  3  0.0330234
  4  0.0208161
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999072': 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) = 6517.42069488
delta logL = 2.67238647211e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  3.395e-03  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.084e+00  2.381e+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:  8.878e-01  2.082e-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.174e+00  3.302e-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/999072/cmap_HighResolution_594950401_595209601_4FGL_J1141.5-1408_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.39e-03', job_status='DONE', photon_flux_upper_limit='5.87e-08', time_completed='2021-09-04 07:57:00.050187', job_id='999072', GAL2='0.89', fit_tolerance='1e-08', EG2='1.17', EG='1.17', time_epoch_completed='1630767420.05', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.67e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1372' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:57:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 999072: <4FGL_J1141.5-1408_daily_bin1372> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1372 175.387 -14.1457 594950401 595209601 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 :                                   842.15 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             327.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            932 sec.

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

