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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1279
RA = 175.387, Dec = -14.1457
tmin = 570844801, tmax = 571104001
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='998941', job_status='RUN', time_executed='2021-09-04 07:42:39.804548', time_epoch_executed='1630766559.8' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1279'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/998941

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/998941/ft1_4FGL_J1141.5-1408_daily_bin1279.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/998941/ft1_4FGL_J1141.5-1408_daily_bin1279.fits outfile=/scratch/kocevski/998941/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1279.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=570844801.0 tmax=571104001.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 2.85
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.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/998941/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1279.fits evtable="EVENTS" outfile="/scratch/kocevski/998941/ft1_filtered_4FGL_J1141.5-1408_daily_bin1279.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.56
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/998941/ft1_filtered_4FGL_J1141.5-1408_daily_bin1279.fits" evtable="EVENTS" scfile=/scratch/kocevski/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.fits sctable="SC_DATA" outfile=/scratch/kocevski/998941/ltcube_570844801_571104001_4FGL_J1141.5-1408_daily_bin1279.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/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.fits
.....................!
real 13.28
user 12.81
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/998941/ft1_filtered_4FGL_J1141.5-1408_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.fits sctable="SC_DATA" expcube=/scratch/kocevski/998941/ltcube_570844801_571104001_4FGL_J1141.5-1408_daily_bin1279.fits outfile=/scratch/kocevski/998941/expmap_570844801_571104001_4FGL_J1141.5-1408_daily_bin1279.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/998941/ltcube_570844801_571104001_4FGL_J1141.5-1408_daily_bin1279.fits
.....................!
real 191.73
user 186.00
sys 5.10

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/998941/ft1_filtered_4FGL_J1141.5-1408_daily_bin1279.fits scfile=/scratch/kocevski/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.fits outfile=/scratch/kocevski/998941/cmap_HighResolution_570844801_571104001_4FGL_J1141.5-1408_daily_bin1279.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.58
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/998941/ft1_filtered_4FGL_J1141.5-1408_daily_bin1279.fits evtable="EVENTS" scfile=/scratch/kocevski/998941/ft2_4FGL_J1141.5-1408_daily_bin1279.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/998941/Model_4FGL_J1141.5-1408_daily_bin1279.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/998941/ft1_filtered_4FGL_J1141.5-1408_daily_bin1279.fits.....................!
real 42.46
user 40.66
sys 1.33

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10051E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    26.602       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .43303       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .30638E-02   1.0000         .10000E-03   10000.    
     5 'Prefactor '    40.700       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .82846       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .28142       1.0000         .10000E-03   10000.    
    11 'Prefactor '    8.4447       1.0000         .10000E-03   10000.    
    12 'Prefactor '    28.491       1.0000         .10000E-03   10000.    
    13 'norm      '    .11530E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    56.445       1.0000         .10000E-03   10000.    
    16 'norm      '    .13581E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.3873       1.0000         .10000E-03   10000.    
    18 'Prefactor '    21.237       1.0000         .10000E-03   10000.    
    19 'Prefactor '    42.274       1.0000         .10000E-03   10000.    
    20 'norm      '    7.7856       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.3463       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10484E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3681       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81841       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=   4216.389     FROM MIGRAD    STATUS=FAILED      1301 CALLS     4139 TOTAL
                     EDM=   .39E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.771        .18142E-02** at limit **
   2  Prefactor     26.598        28.259        .77672E-04    .99384E-04
   3  Prefactor     .48691E-02    102.57        .20475        .10783E-03
   4  Prefactor     .10002E-03    368.41        .81819E-02** at limit **
   5  Prefactor     40.602        40.091        .62832E-04   -.35753E-04
   6  Prefactor     .10000E-03    6.4594        .16112E-02** at limit **
   7  Prefactor     .10000E-03    44.846        .18142E-02** at limit **
   8  norm          .89593        306.01        .53991E-02    .56450E-03
   9  Prefactor     .10000E-03    23.477        .18142E-02** at limit **
  10  norm          .28199        1.2496        .13821E-03    .20104E-03
  11  Prefactor     8.4358        17.746        .13795E-03    .63128E-04
  12  Prefactor     28.473        18.373        .75057E-04    .10179E-03
  13  norm          .10000E-03    66.461        .18142E-02** at limit **
  14  Prefactor     .10000E-03    37.402        .18142E-02** at limit **
  15  Prefactor     56.498        45.206        .26697E-03    .10619E-03
  16  norm          .10000E-03    26.262        .36285E-03** at limit **
  17  Prefactor     7.3964        7.5474        .14756E-03    .43606E-04
  18  Prefactor     21.224        26.129        .86916E-04   -.44472E-05
  19  Prefactor     42.274        30.129        .61656E-04    .21020E-04
  20  norm          7.7818        9.1432        .14371E-03    .61546E-04
  21  Prefactor     .10000E-03    21.425        .18142E-02** at limit **
  22  Prefactor     .10000E-03    7.2367        .17057E-02** at limit **
  23  Prefactor     7.3503        99.567        .14798E-03    .65302E-05
  24  Prefactor     .10000E-03    29.260        .18142E-02** at limit **
  25  Prefactor     .10000E-03    8.8256        .18142E-02** at limit **
  26  Prefactor     .10000E-03    2.8693        .10723E-02** at limit **
  27  Normalizat    1.3684        .40114        .32059E-03    .18406E-03
  28  Prefactor     .81832        .22230        .22936E-03    .18763E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4216.389     FROM SIMPLEX   STATUS=UNCHANGED   1301 CALLS     5440 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.771        .60783E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.598        28.259        .19929E-05   -1.4676    
   3  Prefactor     .48691E-02    102.57        .21913E-05   -1.5694    
   4  Prefactor     .10002E-03    368.41        .29726E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.602        40.091        .19643E-05   -1.4433    
   6  Prefactor     .10000E-03    6.4594        .21256E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.846        .10719E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .89593        306.01        .21107E-05   -1.5519    
   9  Prefactor     .10000E-03    23.477        .26762E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28199        1.2496        .21191E-05   -1.5602    
  11  Prefactor     8.4358        17.746        .20551E-05   -1.5127    
  12  Prefactor     28.473        18.373        .19886E-05   -1.4640    
  13  norm          .10000E-03    66.461        .26583E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.402        .77913E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.498        45.206        .19278E-05   -1.4203    
  16  norm          .10000E-03    26.262        .82893E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3964        7.5474        .20580E-05   -1.5164    
  18  Prefactor     21.224        26.129        .20072E-05   -1.4786    
  19  Prefactor     42.274        30.129        .19565E-05   -1.4407    
  20  norm          7.7818        9.1432        .20570E-05   -1.5150    
  21  Prefactor     .10000E-03    21.425        .47203E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2367        .37758E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3503        99.567        .20586E-05   -1.5166    
  24  Prefactor     .10000E-03    29.260        .62724E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.8256        .70914E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8693        .33883E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3684        .40114        .11067E-05   -.81546    
  28  Prefactor     .81832        .22230        .13443E-05   -.99056    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4216.389     FROM MIGRAD    STATUS=CONVERGED    507 CALLS     5947 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    16.782        .36285E-03** at limit **
   2  Prefactor     26.598        28.259        .15534E-04    .89285E-05
   3  Prefactor     .48291E-02    103.92        .20259        .10725E-03
   4  Prefactor     .10001E-03    375.85        .32728E-03** at limit **
   5  Prefactor     40.602        38.609        .12566E-04   -.44511E-04
   6  Prefactor     .10000E-03    6.4594        .32224E-03** at limit **
   7  Prefactor     .10000E-03    44.847        .36285E-03** at limit **
   8  norm          .89682        247.32        .10798E-02    .34101E-04
   9  Prefactor     .10000E-03    23.478        .36285E-03** at limit **
  10  norm          .28199        1.2490        .55283E-05    .25500E-04
  11  Prefactor     8.4354        16.109        .55180E-05   -.12691E-03
  12  Prefactor     28.473        18.373        .30023E-05   -.20448E-04
  13  norm          .10000E-03    66.464        .36285E-03** at limit **
  14  Prefactor     .10000E-03    37.404        .36285E-03** at limit **
  15  Prefactor     56.498        45.205        .53394E-04   -.52123E-04
  16  norm          .10000E-03    26.264        .72569E-04** at limit **
  17  Prefactor     7.3964        7.5457        .59026E-05   -.27350E-04
  18  Prefactor     21.224        26.128        .34766E-05    .19620E-05
  19  Prefactor     42.274        30.129        .24662E-05   -.46097E-05
  20  norm          7.7817        9.1422        .57484E-05   -.24919E-04
  21  Prefactor     .10000E-03    21.425        .36285E-03** at limit **
  22  Prefactor     .10000E-03    7.2368        .34115E-03** at limit **
  23  Prefactor     7.3503        99.500        .59192E-05   -.34572E-05
  24  Prefactor     .10000E-03    29.261        .36285E-03** at limit **
  25  Prefactor     .10000E-03    8.8257        .36285E-03** at limit **
  26  Prefactor     .10000E-03    2.8694        .21447E-03** at limit **
  27  Normalizat    1.3684        .40146        .64117E-04   -.29646E-04
  28  Prefactor     .81833        .22252        .45873E-04   -.98141E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 26.5977
  Prefactor  = 0.00482909
  Prefactor  = 0.000100006
  Prefactor  = 40.6017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.896821
  Prefactor  = 0.0001
  norm       = 0.281986
  Prefactor  = 8.43545
  Prefactor  = 28.4729
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 56.4981
  norm       = 0.0001
  Prefactor  = 7.39643
  Prefactor  = 21.2239
  Prefactor  = 42.2736
  norm       = 7.78175
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.35027
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.36844
  Prefactor  = 0.818325
 **********
 **   18 **HESSE 
 **********

 FCN=   4216.389     FROM HESSE     STATUS=OK           501 CALLS     6448 TOTAL
                     EDM=   .77E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.783        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     26.598        28.258        .31069E-05   -1.4676    
   3  Prefactor     .48291E-02    103.66        .20302       -1.5694    
   4  Prefactor     .10001E-03    375.86        .65455E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     40.602        38.404        .25133E-05   -1.4433    
   6  Prefactor     .10000E-03    6.4594        .64448E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    44.847        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .89682        235.86        .43193E-04   -1.5519    
   9  Prefactor     .10000E-03    23.478        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .28199        1.2490        .11057E-05   -1.5602    
  11  Prefactor     8.4354        15.795        .11036E-05   -1.5127    
  12  Prefactor     28.473        18.353        .60046E-06   -1.4640    
  13  norm          .10000E-03    66.465        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    37.404        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     56.498        45.204        .10679E-04   -1.4203    
  16  norm          .10000E-03    26.263        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.3964        7.5450        .11805E-05   -1.5164    
  18  Prefactor     21.224        26.238        .69533E-06   -1.4786    
  19  Prefactor     42.274        29.943        .49325E-06   -1.4407    
  20  norm          7.7817        9.1149        .11497E-05   -1.5150    
  21  Prefactor     .10000E-03    21.425        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.2368        .68229E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.3503        98.619        .11838E-05   -1.5166    
  24  Prefactor     .10000E-03    29.261        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.8257        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    2.8694        .42893E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3684        .40151        .12823E-04   -.81546    
  28  Prefactor     .81833        .22253        .91746E-05   -.99056    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.74884e-10
Minuit parameter uncertainties:
  1  9.62623e-07
  2  28.2719
  3  1.40272
  4  0.0031369
  5  38.4279
  6  2.7751e-06
  7  8.69823e-06
  8  29.2031
  9  2.45699e-05
  10  1.18677
  11  15.8028
  12  18.3566
  13  0.000117663
  14  2.54272e-05
  15  45.2312
  16  6.64501e-06
  17  7.54595
  18  26.2526
  19  29.9535
  20  9.11651
  21  3.97178e-06
  22  1.41061e-06
  23  53.9554
  24  1.51747e-07
  25  3.29285e-07
  26  1.03234e-07
  27  0.402439
  28  0.222776
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  5.650e+01  4.523e+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:  8.183e-01  2.228e-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.368e+00  4.024e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.53
Ra Dec: 175.387 -14.146
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 4.96e-08 +/- 3.97e-08
Energy Flux (Fixed Index): 3.74e-05 +/- 2.99e-05

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) = 4216.20030446
delta logL = 0.188643353229

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4216.18159042
delta logL = 0.207357394117

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.796       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5642       1.0000          .0000       10.000    
     3 'Normalizat'    1.3910       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81262       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=   4216.182     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      298 TOTAL
                     EDM=   .40E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.800        61.597        .47379E-04   -.57723E-03
   2  Index         1.5643        .61398        .90069E-02   -.29910E-03
   3  Normalizat    1.3910        .38450        .31852E-03    .13556E-03
   4  Prefactor     .81260        .22020        .23018E-03    .18063E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.8005
  Index      = 1.56428
  Normalizat = 1.39101
  Prefactor  = 0.812598
 **********
 **   18 **HESSE 
 **********

 FCN=   4216.182     FROM HESSE     STATUS=OK            23 CALLS      321 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.800        61.407        .94758E-05   -1.4011    
   2  Index         1.5643        .61208        .36028E-03   -.75755    
   3  Normalizat    1.3910        .38483        .63703E-04   -.80889    
   4  Prefactor     .81260        .22042        .46037E-04   -.99266    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.19799e-09
Minuit parameter uncertainties:
  1  61.4615
  2  0.615013
  3  0.385632
  4  0.22066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/998941': 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) = 4216.18159039
delta logL = 0.207357420574

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  7.180e+01  6.146e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.564e+00  6.150e-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.126e-01  2.207e-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.391e+00  3.856e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.95
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 1.56 +/- 0.62
Photon Flux (Free Index): 2.67e-08 +/- 3.59e-08
Energy Flux (Free Index): 6.81e-05 +/- 9.03e-05

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/998941/cmap_HighResolution_570844801_571104001_4FGL_J1141.5-1408_daily_bin1279.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='4.96e-08', energy_flux2='6.81e-05', photon_flux_error='3.97e-08', dlogl='2.07e-01', energy_flux='3.74e-05', photon_flux2='2.67e-08', job_status='DONE', time_completed='2021-09-04 07:55:01.006242', photon_index_error2='0.62', photon_index2='1.56', ts='7.53', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', energy_flux_error2='9.03e-05', EG='1.37', time_epoch_completed='1630767301.01', return_code='0', job_id='998941', GAL2='0.81', EG2='1.39', return_code2='0', energy_flux_error='2.99e-05', photon_flux_error2='3.59e-08', ts2='7.95', photon_index='1.97' WHERE bin_id='1279' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:55:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0014>
Subject: Job 998941: <4FGL_J1141.5-1408_daily_bin1279> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1279> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep  4 07:41:19 2021
Job was executed on host(s) <bullet0014>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:41:21 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:21 2021
Terminated at Sat Sep  4 07:55:01 2021
Results reported at Sat Sep  4 07:55:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1279 175.387 -14.1457 570844801 571104001 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 :                                 1094 MB
    Average Memory :                             304.81 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   820 sec.
    Turnaround time :                            822 sec.

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

