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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1011
RA = 175.387, Dec = -14.1457
tmin = 501379201, tmax = 501638401
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='997556', job_status='RUN', time_executed='2021-09-04 07:37:04.964580', time_epoch_executed='1630766224.96' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1011'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997556

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997556/ft1_4FGL_J1141.5-1408_daily_bin1011.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997556/ft1_4FGL_J1141.5-1408_daily_bin1011.fits outfile=/scratch/kocevski/997556/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1011.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=501379201.0 tmax=501638401.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.56
user 3.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.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/997556/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1011.fits evtable="EVENTS" outfile="/scratch/kocevski/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits" evtable="EVENTS" scfile=/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits sctable="SC_DATA" outfile=/scratch/kocevski/997556/ltcube_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.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/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits
.....................!
real 11.92
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits sctable="SC_DATA" expcube=/scratch/kocevski/997556/ltcube_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.fits outfile=/scratch/kocevski/997556/expmap_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.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/997556/ltcube_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.fits
.....................!
real 191.61
user 186.70
sys 4.50

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/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits scfile=/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits outfile=/scratch/kocevski/997556/cmap_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.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 4.07
user 0.38
sys 0.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits scfile=/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits outfile=/scratch/kocevski/997556/cmap_HighResolution_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.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.55
user 0.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits evtable="EVENTS" scfile=/scratch/kocevski/997556/ft2_4FGL_J1141.5-1408_daily_bin1011.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997556/Model_4FGL_J1141.5-1408_daily_bin1011.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/997556/ft1_filtered_4FGL_J1141.5-1408_daily_bin1011.fits.....................!
real 67.00
user 65.40
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.5454       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5174       1.0000         .10000E-03   10000.    
     3 'Prefactor '    189.26       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.9918       1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.8850       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10900E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .37233E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    2.5100       1.0000         .10000E-03   10000.    
    12 'Prefactor '    9.1337       1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.5569       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10099E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    24.615       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    25.085       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10784E-01   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.4696       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84001       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=   7280.005     FROM MIGRAD    STATUS=CONVERGED    701 CALLS     3553 TOTAL
                     EDM=   .87E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.5449        5.6813        .74769E-06    .13966E-03
   2  Prefactor     9.3763        38.432        .26612E-05   -.89556E-05
   3  Prefactor     189.42        114.96       -.20840E-05   -.13748E-03
   4  Prefactor     4.9628        18.334        .13848E-05    .56389E-05
   5  Prefactor     9.8951        13.144        .13677E-06    .20788E-04
   6  Prefactor     .10000E-03    2.1414        .48221E-07** at limit **
   7  Prefactor     .10000E-03    28.883        .12810E-06** at limit **
   8  norm          .10000E-03    4.2898        .91038E-07** at limit **
   9  Prefactor     .10000E-03    48.859        .12193E-05** at limit **
  10  norm          .10000E-03    .46800        .17369E-06** at limit **
  11  Prefactor     2.5081        4.5663        .14961E-05    .39100E-03
  12  Prefactor     9.1342        7.6804        .13533E-06   -.16223E-03
  13  norm          .10000E-03    8.3590        .99323E-07** at limit **
  14  Prefactor     .10000E-03    19.246        .13792E-06** at limit **
  15  Prefactor     .10000E-03    9.2060       -.19785E-07** at limit **
  16  norm          3.5562        4.3943        .24975E-06    .32279E-04
  17  Prefactor     .10000E-03    3.8383       -.12099E-06** at limit **
  18  Prefactor     24.608        19.282        .52272E-06   -.33204E-04
  19  Prefactor     .10000E-03    5.7507        .45369E-09** at limit **
  20  norm          25.083        6.6922        .15150E-06   -.30833E-04
  21  Prefactor     .10000E-03    37.010       -.19511E-06** at limit **
  22  Prefactor     .10000E-03    7.2510       -.66340E-07** at limit **
  23  Prefactor     .10000E-03    13.401       -.32791E-07** at limit **
  24  Prefactor     .10000E-03    25.581        .71808E-07** at limit **
  25  Prefactor     .10000E-03    11.158        .45682E-07** at limit **
  26  Prefactor     .44843E-01    5.1598       -.18337E-05    .88226E-03
  27  Normalizat    1.4702        .26605       -.58929E-05   -.33462E-03
  28  Prefactor     .83974        .15161        .28766E-05   -.46220E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 3.54487
  Prefactor  = 9.3763
  Prefactor  = 189.423
  Prefactor  = 4.96284
  Prefactor  = 9.89511
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 2.5081
  Prefactor  = 9.13418
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.5562
  Prefactor  = 0.0001
  Prefactor  = 24.6075
  Prefactor  = 0.0001
  norm       = 25.0834
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0448431
  Normalizat = 1.4702
  Prefactor  = 0.839739
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.005     FROM HESSE     STATUS=OK           523 CALLS     4076 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.5449        5.6800        .21467E-03   -1.5331    
   2  Prefactor     9.3763        38.688        .12990E-03   -1.5095    
   3  Prefactor     189.42        115.80        .14678E-03   -1.2947    
   4  Prefactor     4.9628        18.073        .17999E-03   -1.5262    
   5  Prefactor     9.8951        12.963        .12745E-03   -1.5079    
   6  Prefactor     .10000E-03    2.1486        .12187E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    28.904        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    4.3065        .17245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    49.122        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    9.5613        .11193E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     2.5081        4.5797        .23189E-03   -1.5391    
  12  Prefactor     9.1342        7.6789        .13261E-03   -1.5103    
  13  norm          .10000E-03    8.3579        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    19.287        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.2077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.5562        4.3844        .19187E-03   -1.5331    
  17  Prefactor     .10000E-03    3.9691        .32500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     24.608        19.271        .80739E-04   -1.4715    
  19  Prefactor     .10000E-03    5.7567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          25.083        6.6955        .79982E-04   -1.4706    
  21  Prefactor     .10000E-03    37.113        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2710        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.405        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    25.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    11.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .44843E-01    3.6433        .50946E-01   -1.5666    
  27  Normalizat    1.4702        .27508        .29352E-03   -.78619    
  28  Prefactor     .83974        .15943        .23073E-03   -.98280    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.03727e-09
Minuit parameter uncertainties:
  1  5.68083
  2  38.1342
  3  115.938
  4  18.0932
  5  12.967
  6  1.10689e-06
  7  2.8519e-05
  8  1.12657e-06
  9  0.000323423
  10  0.000144052
  11  4.58035
  12  7.67968
  13  2.35621e-06
  14  1.99488e-06
  15  4.48561e-06
  16  4.38476
  17  1.00539e-05
  18  19.2762
  19  3.02531e-06
  20  6.69566
  21  3.59922e-05
  22  7.28456e-06
  23  1.36269e-06
  24  2.9854e-05
  25  1.07758e-05
  26  0.807552
  27  0.275361
  28  0.159513
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  4.486e-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:  8.397e-01  1.595e-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.470e+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: 4.38e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/997556/likelihoodResults_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.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) = 7280.00513548
delta logL = -0.000510696102538

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7280.00462622
delta logL = -1.43939996633e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10256E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9311       1.0000          .0000       10.000    
     3 'Normalizat'    1.4706       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83949       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=   7280.005     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      246 TOTAL
                     EDM=   .50E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10246E-03    2.8192        .18142E-01** at limit **
   2  Index         1.8555        6.4528        .50000        .22447E-04
   3  Normalizat    1.4702        .28644E-02    .29352E-03   -.32690E-04
   4  Prefactor     .83974        .17702E-02    .23073E-03   -.35181E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102463
  Index      = 1.85546
  Normalizat = 1.4702
  Prefactor  = 0.83974
 **********
 **   18 **HESSE 
 **********

 FCN=   7280.005     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      275 TOTAL
                     EDM=   .90E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10246E-03    50.705        .27112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8555        5.5886        .50000       -.68015    
   3  Normalizat    1.4702        .12208E-01    .11741E-04   -.78619    
   4  Prefactor     .83974        .75444E-02    .92292E-05   -.98280    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.96937e-09
Minuit parameter uncertainties:
  1  0.0223697
  2  196.816
  3  0.0122079
  4  0.00754442
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997556': 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) = 7280.00462419
delta logL = 5.93758159084e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.025e-04  2.237e-02  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.855e+00  1.968e+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:  8.397e-01  7.544e-03  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.470e+00  1.221e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/997556/cmap_HighResolution_501379201_501638401_4FGL_J1141.5-1408_daily_bin1011.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-03', job_status='DONE', photon_flux_upper_limit='4.38e-08', time_completed='2021-09-04 07:52:33.759236', job_id='997556', GAL2='0.84', fit_tolerance='1e-08', EG2='1.47', EG='1.47', time_epoch_completed='1630767153.76', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.84', dlogl='5.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1011' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:52:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0057>
Subject: Job 997556: <4FGL_J1141.5-1408_daily_bin1011> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1011> 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) <bullet0057>, 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:52:34 2021
Results reported at Sat Sep  4 07:52:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1011 175.387 -14.1457 501379201 501638401 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 :                                   915.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             322.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   955 sec.
    Turnaround time :                            957 sec.

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

