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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1024
RA = 175.387, Dec = -14.1457
tmin = 504748801, tmax = 505008001
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='997576', job_status='RUN', time_executed='2021-09-04 07:37:36.577526', time_epoch_executed='1630766256.58' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1024'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997576

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997576/ft1_4FGL_J1141.5-1408_daily_bin1024.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997576/ft1_4FGL_J1141.5-1408_daily_bin1024.fits outfile=/scratch/kocevski/997576/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1024.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=504748801.0 tmax=505008001.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 8.28
user 7.95
sys 0.29

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997576/ft1_filtered_4FGL_J1141.5-1408_daily_bin1024.fits" evtable="EVENTS" scfile=/scratch/kocevski/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits sctable="SC_DATA" outfile=/scratch/kocevski/997576/ltcube_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.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/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits
.....................!
real 13.36
user 13.02
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997576/ft1_filtered_4FGL_J1141.5-1408_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits sctable="SC_DATA" expcube=/scratch/kocevski/997576/ltcube_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.fits outfile=/scratch/kocevski/997576/expmap_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.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/997576/ltcube_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.fits
.....................!
real 190.02
user 185.61
sys 3.99

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/997576/ft1_filtered_4FGL_J1141.5-1408_daily_bin1024.fits scfile=/scratch/kocevski/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits outfile=/scratch/kocevski/997576/cmap_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.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.57
user 0.40
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997576/ft1_filtered_4FGL_J1141.5-1408_daily_bin1024.fits scfile=/scratch/kocevski/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits outfile=/scratch/kocevski/997576/cmap_HighResolution_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997576/ft1_filtered_4FGL_J1141.5-1408_daily_bin1024.fits evtable="EVENTS" scfile=/scratch/kocevski/997576/ft2_4FGL_J1141.5-1408_daily_bin1024.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997576/Model_4FGL_J1141.5-1408_daily_bin1024.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/997576/ft1_filtered_4FGL_J1141.5-1408_daily_bin1024.fits.....................!
real 54.96
user 53.60
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.270       1.0000         .10000E-03   10000.    
     5 'Prefactor '    20.228       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    5.9473       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .71198       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.3160       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .72151       1.0000         .10000E-03   10000.    
    13 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    7.3557       1.0000         .10000E-03   10000.    
    15 'Prefactor '    14.201       1.0000         .10000E-03   10000.    
    16 'norm      '    7.7188       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2037       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .22560E-02   1.0000         .10000E-03   10000.    
    20 'norm      '    4.2182       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-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 '    .10002E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1875       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .93779       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=   5873.631     FROM MIGRAD    STATUS=CONVERGED    676 CALLS     3430 TOTAL
                     EDM=   .96E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2279        .45967E-07** at limit **
   2  Prefactor     .10000E-03    46.580        .13456E-05** at limit **
   3  Prefactor     .10000E-03    93.159        .27810E-05** at limit **
   4  Prefactor     10.270        14.995        .10102E-06   -.69137E-04
   5  Prefactor     20.228        13.171        .62416E-07   -.59925E-04
   6  Prefactor     .10000E-03    3.0832       -.86749E-07** at limit **
   7  Prefactor     .10000E-03    36.180        .10284E-05** at limit **
   8  norm          5.9472        7.5098        .25412E-06    .86785E-06
   9  Prefactor     .10000E-03    64.532       -.15140E-05** at limit **
  10  norm          .71184        .79323        .36053E-07   -.17105E-03
  11  Prefactor     5.3130        6.1124       -.38468E-06   -.17559E-03
  12  Prefactor     .72239        9.2057        .33213E-05    .21585E-03
  13  norm          .10000E-03    54.739       -.91432E-06** at limit **
  14  Prefactor     7.3416        51.374        .42854E-05    .30141E-04
  15  Prefactor     14.202        24.826       -.98997E-07   -.60817E-04
  16  norm          7.7183        7.6087       -.34077E-07   -.97011E-04
  17  Prefactor     2.2043        4.4292        .73823E-06    .15780E-03
  18  Prefactor     .10000E-03    17.416       -.34686E-06** at limit **
  19  Prefactor     .10011E-03    15.234        .52052E-05** at limit **
  20  norm          4.2116        4.3001        .13912E-05   -.34860E-03
  21  Prefactor     .10000E-03    61.180       -.16147E-05** at limit **
  22  Prefactor     .10000E-03    3.2722       -.22184E-07** at limit **
  23  Prefactor     .10000E-03    13.174        .10935E-06** at limit **
  24  Prefactor     .10000E-03    13.151       -.67581E-07** at limit **
  25  Prefactor     .10000E-03    6.5029        .21978E-07** at limit **
  26  Prefactor     .10000E-03    2.5676        .66497E-07** at limit **
  27  Normalizat    1.1877        .22460       -.53583E-06   -.60279E-03
  28  Prefactor     .93763        .13646       -.14040E-05   -.10328E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 10.2697
  Prefactor  = 20.2278
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 5.94721
  Prefactor  = 0.0001
  norm       = 0.711838
  Prefactor  = 5.31299
  Prefactor  = 0.722386
  norm       = 0.0001
  Prefactor  = 7.34164
  Prefactor  = 14.2017
  norm       = 7.71827
  Prefactor  = 2.20433
  Prefactor  = 0.0001
  Prefactor  = 0.000100112
  norm       = 4.2116
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.18766
  Prefactor  = 0.937631
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.631     FROM HESSE     STATUS=OK           515 CALLS     3945 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.2347        .11172E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    47.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    92.958        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.270        14.998        .12503E-03   -1.5067    
   5  Prefactor     20.228        13.156        .89054E-04   -1.4808    
   6  Prefactor     .10000E-03    3.1115        .13131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    36.140        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          5.9472        7.4948        .16466E-03   -1.5220    
   9  Prefactor     .10000E-03    64.315        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .71184        .77358        .69163E-04   -1.5539    
  11  Prefactor     5.3130        6.0133        .16068E-03   -1.5247    
  12  Prefactor     .72239        9.7785        .45134E-03   -1.5538    
  13  norm          .10000E-03    55.515        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     7.3416        51.122        .14788E-03   -1.5166    
  15  Prefactor     14.202        24.817        .10629E-03   -1.4954    
  16  norm          7.7183        7.5350        .14433E-03   -1.5152    
  17  Prefactor     2.2043        4.4168        .20297E-03   -1.5411    
  18  Prefactor     .10000E-03    17.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10011E-03    36.292        .39290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.2116        4.4589        .79255E-03   -1.5297    
  21  Prefactor     .10000E-03    61.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    3.2734        .13539E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    13.175        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    6.5039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.5783        .11995E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1877        .26710        .28473E-03   -.86985    
  28  Prefactor     .93763        .16292        .20334E-03   -.94838    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.31676e-09
Minuit parameter uncertainties:
  1  5.16624e-06
  2  5.52342e-05
  3  0.000260973
  4  15.0036
  5  13.1578
  6  9.33008e-06
  7  6.53108e-05
  8  7.49601
  9  8.03672e-05
  10  0.773594
  11  6.01398
  12  5.31627
  13  0.000212399
  14  38.7935
  15  24.8349
  16  7.53592
  17  4.41748
  18  9.24611e-05
  19  0.00404036
  20  4.4592
  21  0.000103919
  22  2.7003e-06
  23  2.70294e-06
  24  2.59738e-06
  25  2.13762e-06
  26  7.79099e-06
  27  0.267406
  28  0.163007
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.420e+01  2.483e+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.376e-01  1.630e-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.188e+00  2.674e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/997576/likelihoodResults_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.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) = 5873.54988795
delta logL = 0.0813809940237

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5873.5444506
delta logL = 0.0868183518032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    7.1639       1.0000         .10000E-03   10000.    
     2 'Index     '    2.4532       1.0000          .0000       10.000    
     3 'Normalizat'    1.1752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94172       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=   5873.544     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      294 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     7.1582        68.714        .14987E-03   -.23311E-03
   2  Index         2.4534        2.5230        .82603E-02   -.80089E-04
   3  Normalizat    1.1752        .25947        .28605E-03    .55555E-03
   4  Prefactor     .94170        .16410        .20294E-03    .55486E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 7.15823
  Index      = 2.45341
  Normalizat = 1.17524
  Prefactor  = 0.941702
 **********
 **   18 **HESSE 
 **********

 FCN=   5873.544     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     7.1582        21.578        .59947E-05   -1.5173    
   2  Index         2.4534        1.2900        .33041E-03   -.53439    
   3  Normalizat    1.1752        .25196        .57210E-04   -.87372    
   4  Prefactor     .94170        .16137        .40587E-04   -.94699    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.86699e-10
Minuit parameter uncertainties:
  1  21.6019
  2  1.31016
  3  0.252217
  4  0.161447
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997576': 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) = 5873.54445054
delta logL = 0.0868184117953

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  7.158e+00  2.160e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.453e+00  1.310e+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.417e-01  1.614e-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.175e+00  2.522e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.45
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/997576/cmap_HighResolution_504748801_505008001_4FGL_J1141.5-1408_daily_bin1024.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.56e-03', job_status='DONE', photon_flux_upper_limit='7.43e-08', time_completed='2021-09-04 07:51:18.922826', job_id='997576', GAL2='0.94', fit_tolerance='1e-08', EG2='1.18', EG='1.19', time_epoch_completed='1630767078.92', return_code2='0', ts='0.45', comment='SUCCESS', return_code='0', GAL='0.94', dlogl='8.68e-02', ts2='0.63', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1024' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:51:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0208>
Subject: Job 997576: <4FGL_J1141.5-1408_daily_bin1024> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1024 175.387 -14.1457 504748801 505008001 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 :                                   813.10 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   879 sec.
    Turnaround time :                            881 sec.

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

