/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 140 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1141.5-1408_daily_bin323
RA = 175.387, Dec = -14.1457
tmin = 323049601, tmax = 323308801
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='992880', job_status='RUN', time_executed='2021-09-04 07:24:50.972219', time_epoch_executed='1630765490.97' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='323'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992880

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992880/ft1_4FGL_J1141.5-1408_daily_bin323.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992880/ft1_4FGL_J1141.5-1408_daily_bin323.fits outfile=/scratch/kocevski/992880/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin323.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=323049601.0 tmax=323308801.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.53
user 3.06
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.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/992880/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin323.fits evtable="EVENTS" outfile="/scratch/kocevski/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.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 1.04
user 0.31
sys 0.20

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.fits" evtable="EVENTS" scfile=/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits sctable="SC_DATA" outfile=/scratch/kocevski/992880/ltcube_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.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/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits
.....................!
real 12.31
user 11.44
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits sctable="SC_DATA" expcube=/scratch/kocevski/992880/ltcube_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.fits outfile=/scratch/kocevski/992880/expmap_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.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/992880/ltcube_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.fits
.....................!
real 192.96
user 185.30
sys 5.03

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/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.fits scfile=/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits outfile=/scratch/kocevski/992880/cmap_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.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.55
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.fits scfile=/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits outfile=/scratch/kocevski/992880/cmap_HighResolution_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.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/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.fits evtable="EVENTS" scfile=/scratch/kocevski/992880/ft2_4FGL_J1141.5-1408_daily_bin323.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992880/Model_4FGL_J1141.5-1408_daily_bin323.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/992880/ft1_filtered_4FGL_J1141.5-1408_daily_bin323.fits.....................!
real 52.58
user 50.94
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.4810       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10747E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10335E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10102E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.3022       1.0000         .10000E-03   10000.    
    10 'norm      '    3.5156       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10071E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    10.925       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10007E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.1137       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    4.6294       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5014       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .25052E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .12526E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    42.044       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    8.6286       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4817       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91011       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=   5459.419     FROM MIGRAD    STATUS=CONVERGED    679 CALLS     2944 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2244        .10102E-07** at limit **
   2  Prefactor     .10000E-03    21.644       -.19649E-05** at limit **
   3  Prefactor     .10002E-03    69.071        .16350E-04** at limit **
   4  Prefactor     6.4588        21.772       -.21033E-05    .42818E-05
   5  Prefactor     .10000E-03    7.8359        .93096E-06** at limit **
   6  Prefactor     .10000E-03    1.9744        .21037E-07** at limit **
   7  Prefactor     .10000E-03    53.279       -.42168E-05** at limit **
   8  norm          .10000E-03    5.8166        .72985E-06** at limit **
   9  Prefactor     1.3032        1359.6        .29006E-05   -.83094E-05
  10  norm          3.5153        1.8966       -.28544E-07   -.18718E-03
  11  Prefactor     .10000E-03    2.1106        .44199E-07** at limit **
  12  Prefactor     .10000E-03    7.0747       -.12300E-05** at limit **
  13  norm          10.923        15.834       -.56038E-06   -.23949E-03
  14  Prefactor     .10000E-03    5.3802       -.38350E-06** at limit **
  15  Prefactor     .10000E-03    16.640        .49326E-05** at limit **
  16  norm          .10000E-03    2.9042       -.50797E-07** at limit **
  17  Prefactor     8.1108        4.7501        .14139E-05   -.46243E-03
  18  Prefactor     .10001E-03    86.208       -.13929E-04** at limit **
  19  Prefactor     4.6444        35.673        .69007E-05    .35844E-04
  20  norm          1.4980        5.5246       -.41104E-05   -.72484E-03
  21  Prefactor     .10000E-03    47.135       -.66690E-05** at limit **
  22  Prefactor     .10000E-03    14.727       -.38900E-05** at limit **
  23  Prefactor     42.038        40.383       -.44919E-05    .22425E-03
  24  Prefactor     .10000E-03    21.198        .58943E-06** at limit **
  25  Prefactor     .10000E-03    10.605        .28368E-07** at limit **
  26  Prefactor     8.6289        7.2892       -.87717E-07   -.42366E-04
  27  Normalizat    1.4820        .26111        .18293E-07    .15045E-03
  28  Prefactor     .90989        .15474        .16333E-06    .14315E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100016
  Prefactor  = 6.45883
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.3032
  norm       = 3.5153
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.9231
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 8.11077
  Prefactor  = 0.000100007
  Prefactor  = 4.6444
  norm       = 1.49804
  Prefactor  = 0.000100004
  Prefactor  = 0.000100001
  Prefactor  = 42.0376
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.62887
  Normalizat = 1.48201
  Prefactor  = 0.909887
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.419     FROM HESSE     STATUS=OK           509 CALLS     3453 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2261        .10762E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    21.668        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    67.343        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.4588        22.004        .15765E-03   -1.5200    
   5  Prefactor     .10000E-03    7.8430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.9800        .10137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    53.174        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.8493        .17396E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.3032        1340.5        .38707E-03   -1.5480    
  10  norm          3.5153        1.8636        .67156E-04   -1.5333    
  11  Prefactor     .10000E-03    2.1255        .10468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    7.1115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          10.923        15.880        .60607E-03   -1.5047    
  14  Prefactor     .10000E-03    5.3801        .16737E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    16.484        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.9115        .12295E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     8.1108        4.7229        .11654E-03   -1.5138    
  18  Prefactor     .10001E-03    87.696        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     4.6444        33.654        .18706E-03   -1.5277    
  20  norm          1.4980        5.6508        .27435E-03   -1.5463    
  21  Prefactor     .10000E-03    46.845        .21464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    14.721        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     42.038        39.991        .61823E-04   -1.4410    
  24  Prefactor     .10000E-03    21.197        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    10.606        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     8.6289        7.2881        .13646E-03   -1.5120    
  27  Normalizat    1.4820        .31026        .29735E-03   -.78285    
  28  Prefactor     .90989        .18306        .22504E-03   -.95796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41999e-09
Minuit parameter uncertainties:
  1  4.06923e-07
  2  0.000135355
  3  0.00205436
  4  22.0317
  5  1.807e-05
  6  1.12516e-06
  7  0.000502272
  8  2.24003e-05
  9  85.5873
  10  1.86362
  11  1.85709e-06
  12  5.02565e-05
  13  15.886
  14  1.35106e-05
  15  0.000307551
  16  7.23785e-06
  17  4.72315
  18  0.00155972
  19  25.0237
  20  5.6528
  21  0.000875508
  22  0.000258118
  23  40.0162
  24  4.5746e-05
  25  3.28406e-06
  26  7.2889
  27  0.310655
  28  0.183187
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  3.076e-04  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.099e-01  1.832e-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.482e+00  3.107e-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: 6.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992880/likelihoodResults_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.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) = 5459.41898224
delta logL = -0.000288779733637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5459.41869369
delta logL = -2.2070526029e-07

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     '    2.0616       1.0000          .0000       10.000    
     3 'Normalizat'    1.4820       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90989       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5459.419     FROM MIGRAD    STATUS=FAILED        89 CALLS      268 TOTAL
                     EDM=   .64E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6211.4        .18142E-02** at limit **
   2  Index         2.0425        5.7862        .50000        .96746E-05
   3  Normalizat    1.4820        .11712        .29735E-03    .10268E-03
   4  Prefactor     .90988        .72052E-01    .22504E-03   -.13140E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5459.419     FROM SIMPLEX   STATUS=UNCHANGED    215 CALLS      483 TOTAL
                     EDM=   .77E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6211.4        .61284E-03** at limit **
   2  Index         2.0425        5.7862        .20779E-06    .96746E-05
   3  Normalizat    1.4820        .11712        .11864E-07    .10268E-03
   4  Prefactor     .90988        .72052E-01    .21292E-08   -.13140E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5459.419     FROM MIGRAD    STATUS=CONVERGED     34 CALLS      517 TOTAL
                     EDM=   .39E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    19.107        .36285E-03** at limit **
   2  Index         2.0424        5.9842        .50000        .96730E-05
   3  Normalizat    1.4820        .29103        .59470E-04    .10308E-03
   4  Prefactor     .90988        .17913        .90018E-05   -.13059E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.04237
  Normalizat = 1.48201
  Prefactor  = 0.909885
 **********
 **   18 **HESSE 
 **********

 FCN=   5459.419     FROM HESSE     STATUS=OK            29 CALLS      546 TOTAL
                     EDM=   .43E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    15.620        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0424        6.0158        .50000       -.63295    
   3  Normalizat    1.4820        .29091        .11894E-04   -.78285    
   4  Prefactor     .90988        .17904        .18004E-05   -.95797    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.28592e-10
Minuit parameter uncertainties:
  1  0.000303084
  2  4.04635
  3  0.291234
  4  0.179152
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992880': 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) = 5459.41869364
delta logL = -1.71670762938e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  3.031e-04  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.042e+00  4.046e+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.099e-01  1.792e-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.482e+00  2.912e-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/992880/cmap_HighResolution_323049601_323308801_4FGL_J1141.5-1408_daily_bin323.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.20e-03', job_status='DONE', photon_flux_upper_limit='6.95e-08', time_completed='2021-09-04 07:37:15.435796', job_id='992880', GAL2='0.91', fit_tolerance='1e-08', EG2='1.48', EG='1.48', time_epoch_completed='1630766235.44', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.91', dlogl='-1.72e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='323' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:37:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0280>
Subject: Job 992880: <4FGL_J1141.5-1408_daily_bin323> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin323> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:21:55 2021
Job was executed on host(s) <bullet0280>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:21:57 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:21:57 2021
Terminated at Sat Sep  4 07:37:15 2021
Results reported at Sat Sep  4 07:37:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin323 175.387 -14.1457 323049601 323308801 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 :                                   718.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             299.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   918 sec.
    Turnaround time :                            920 sec.

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

