/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 36 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 = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1140
RA = 175.387, Dec = -14.1457
tmin = 534816001, tmax = 535075201
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='998742', job_status='RUN', time_executed='2021-09-04 07:41:56.954307', time_epoch_executed='1630766516.95' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1140'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998742

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998742/ft1_4FGL_J1141.5-1408_daily_bin1140.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998742/ft2_4FGL_J1141.5-1408_daily_bin1140.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998742/ft1_4FGL_J1141.5-1408_daily_bin1140.fits outfile=/scratch/kocevski/998742/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1140.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=534816001.0 tmax=535075201.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.64
user 3.38
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998742/ft1_filtered_4FGL_J1141.5-1408_daily_bin1140.fits" evtable="EVENTS" scfile=/scratch/kocevski/998742/ft2_4FGL_J1141.5-1408_daily_bin1140.fits sctable="SC_DATA" outfile=/scratch/kocevski/998742/ltcube_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.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/998742/ft2_4FGL_J1141.5-1408_daily_bin1140.fits
.....................!
real 11.73
user 11.39
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998742/ft1_filtered_4FGL_J1141.5-1408_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/998742/ft2_4FGL_J1141.5-1408_daily_bin1140.fits sctable="SC_DATA" expcube=/scratch/kocevski/998742/ltcube_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.fits outfile=/scratch/kocevski/998742/expmap_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.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/998742/ltcube_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.fits
.....................!
real 190.80
user 185.16
sys 5.12

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/998742/ft1_filtered_4FGL_J1141.5-1408_daily_bin1140.fits scfile=/scratch/kocevski/998742/ft2_4FGL_J1141.5-1408_daily_bin1140.fits outfile=/scratch/kocevski/998742/cmap_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=175.387 yref=-14.1457 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.53
user 0.36
sys 0.16

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998742/ft1_filtered_4FGL_J1141.5-1408_daily_bin1140.fits evtable="EVENTS" scfile=/scratch/kocevski/998742/ft2_4FGL_J1141.5-1408_daily_bin1140.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998742/Model_4FGL_J1141.5-1408_daily_bin1140.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/998742/ft1_filtered_4FGL_J1141.5-1408_daily_bin1140.fits.....................!
real 53.89
user 47.72
sys 1.19

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4095       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   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      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    103.80       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.4964       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4705       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.5118       1.0000         .10000E-03   10000.    
    20 'norm      '    .10024E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11342E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10144E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    42.320       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10322E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2244       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .86477       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=   5092.381     FROM MIGRAD    STATUS=CONVERGED    684 CALLS     3440 TOTAL
                     EDM=   .44E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4105        6.4208        .49465E-05    .55038E-04
   2  Prefactor     .10000E-03    12.152        .29000E-06** at limit **
   3  Prefactor     .10000E-03    43.948       -.51372E-06** at limit **
   4  Prefactor     .10000E-03    5.8383       -.25703E-07** at limit **
   5  Prefactor     .10000E-03    10.544        .87441E-08** at limit **
   6  Prefactor     .10000E-03    1.7378        .21724E-07** at limit **
   7  Prefactor     .10000E-03    21.318       -.64967E-08** at limit **
   8  norm          .10000E-03    5.5738        .60389E-07** at limit **
   9  Prefactor     103.81        71.178        .15879E-07    .32534E-04
  10  norm          .10000E-03    .61659        .36301E-06** at limit **
  11  Prefactor     5.4977        4.1244        .48170E-07   -.22446E-04
  12  Prefactor     .10000E-03    5.4288        .34027E-07** at limit **
  13  norm          .10000E-03    8.7593        .19708E-06** at limit **
  14  Prefactor     .10000E-03    16.856        .30509E-07** at limit **
  15  Prefactor     .10000E-03    18.113       -.13223E-06** at limit **
  16  norm          .10000E-03    3.8375        .71673E-07** at limit **
  17  Prefactor     3.4650        4.0415       -.17228E-06   -.56976E-03
  18  Prefactor     .10000E-03    5.0147        .66867E-08** at limit **
  19  Prefactor     2.5116        7.7190        .43063E-05    .46346E-04
  20  norm          .10000E-03    1.3887        .26226E-07** at limit **
  21  Prefactor     .10000E-03    130.16       -.48047E-06** at limit **
  22  Prefactor     .10000E-03    38.189       -.60886E-06** at limit **
  23  Prefactor     .10000E-03    36.628        .35451E-06** at limit **
  24  Prefactor     42.324        38.534       -.32121E-06    .38066E-04
  25  Prefactor     .10000E-03    9.7912       -.14865E-06** at limit **
  26  Prefactor     .10003E-03    9.9523        .59898E-05** at limit **
  27  Normalizat    1.2242        .22944       -.12524E-05   -.29757E-03
  28  Prefactor     .86483        .14184       -.10861E-06   -.35240E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.41047
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 103.811
  norm       = 0.0001
  Prefactor  = 5.49766
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.46495
  Prefactor  = 0.0001
  Prefactor  = 2.51165
  norm       = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100002
  Prefactor  = 0.000100002
  Prefactor  = 42.3236
  Prefactor  = 0.0001
  Prefactor  = 0.000100033
  Normalizat = 1.22419
  Prefactor  = 0.86483
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.381     FROM HESSE     STATUS=OK           501 CALLS     3941 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4105        6.5822        .13187E-02   -1.5397    
   2  Prefactor     .10000E-03    12.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    44.043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    5.8463        .16840E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    10.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    1.7412        .91862E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    21.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.6037        .16450E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     103.81        71.112        .39467E-04   -1.3667    
  10  norm          .10000E-03    .64081        .10999E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     5.4977        4.1254        .12118E-03   -1.5239    
  12  Prefactor     .10000E-03    5.4584        .16235E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    8.7677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.162        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.8658        .13642E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4650        4.0456        .14734E-03   -1.5336    
  18  Prefactor     .10000E-03    5.0188        .15606E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.5116        7.8152        .12890E-02   -1.5391    
  20  norm          .10000E-03    1.3956        .82083E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    131.56        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    38.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    36.732        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     42.324        38.519        .61623E-04   -1.4406    
  25  Prefactor     .10000E-03    9.8019        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10003E-03    41.190        .34741E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.2242        .27377        .27855E-03   -.85859    
  28  Prefactor     .86483        .16913        .20302E-03   -.97381    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.54637e-09
Minuit parameter uncertainties:
  1  6.58419
  2  9.381e-05
  3  0.000646958
  4  1.4974e-05
  5  6.44693e-05
  6  2.58335e-06
  7  1.289e-06
  8  1.65448e-05
  9  71.1701
  10  2.1029e-05
  11  4.12559
  12  2.02193e-05
  13  3.75574e-05
  14  3.71235e-05
  15  7.03356e-05
  16  1.07748e-05
  17  4.04587
  18  9.45864e-06
  19  7.81839
  20  1.47921e-06
  21  0.00122495
  22  0.000574867
  23  0.000524899
  24  38.5421
  25  7.23419e-05
  26  0.00232823
  27  0.274095
  28  0.169237
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  7.034e-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.648e-01  1.692e-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.224e+00  2.741e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.36e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/998742/likelihoodResults_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.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) = 5092.38104322
delta logL = -0.000262114759607

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5092.3807829
delta logL = -1.80189545063e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11815E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.0964       1.0000          .0000       10.000    
     3 'Normalizat'    1.2242       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86483       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=   5092.381     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      277 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10306E-03    2.9679        .18142E-01** at limit **
   2  Index         2.0082        6.0856        .50000        .32760E-04
   3  Normalizat    1.2242        .24994E-02    .27855E-03    .21999E-04
   4  Prefactor     .86483        .15694E-02    .20302E-03    .33207E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010306
  Index      = 2.0082
  Normalizat = 1.22419
  Prefactor  = 0.86483
 **********
 **   18 **HESSE 
 **********

 FCN=   5092.381     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      306 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10306E-03    36.823        .27979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0082        5.5843        .50000       -.64145    
   3  Normalizat    1.2242        .87851E-02    .11142E-04   -.85859    
   4  Prefactor     .86483        .55162E-02    .81208E-05   -.97381    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.08784e-09
Minuit parameter uncertainties:
  1  0.0212429
  2  81.5924
  3  0.00878509
  4  0.00551624
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998742': 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) = 5092.38078152
delta logL = -4.14877831645e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.031e-04  2.124e-02  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  2.008e+00  8.159e+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.648e-01  5.516e-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.224e+00  8.785e-03  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/998742/cmap_HighResolution_534816001_535075201_4FGL_J1141.5-1408_daily_bin1140.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.36e-03', job_status='DONE', photon_flux_upper_limit='5.84e-08', time_completed='2021-09-04 07:54:35.142516', job_id='998742', GAL2='0.86', fit_tolerance='1e-08', EG2='1.22', EG='1.22', time_epoch_completed='1630767275.14', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='-4.15e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1140' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:54:35 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0034>
Subject: Job 998742: <4FGL_J1141.5-1408_daily_bin1140> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1140> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 07:41:04 2021
Job was executed on host(s) <bullet0034>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:41:06 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:06 2021
Terminated at Sat Sep  4 07:54:35 2021
Results reported at Sat Sep  4 07:54:35 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1140 175.387 -14.1457 534816001 535075201 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 :                                   715.12 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            811 sec.

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

