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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1045
RA = 175.387, Dec = -14.1457
tmin = 510192001, tmax = 510451201
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='997610', job_status='RUN', time_executed='2021-09-04 07:38:54.577249', time_epoch_executed='1630766334.58' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1045'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997610

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997610/ft1_4FGL_J1141.5-1408_daily_bin1045.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997610/ft1_4FGL_J1141.5-1408_daily_bin1045.fits outfile=/scratch/kocevski/997610/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1045.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=510192001.0 tmax=510451201.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 4.35
user 4.03
sys 0.24

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997610/ft1_filtered_4FGL_J1141.5-1408_daily_bin1045.fits" evtable="EVENTS" scfile=/scratch/kocevski/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits sctable="SC_DATA" outfile=/scratch/kocevski/997610/ltcube_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.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/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits
.....................!
real 13.55
user 11.83
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997610/ft1_filtered_4FGL_J1141.5-1408_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits sctable="SC_DATA" expcube=/scratch/kocevski/997610/ltcube_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.fits outfile=/scratch/kocevski/997610/expmap_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.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/997610/ltcube_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.fits
.....................!
real 191.61
user 185.28
sys 5.41

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/997610/ft1_filtered_4FGL_J1141.5-1408_daily_bin1045.fits scfile=/scratch/kocevski/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits outfile=/scratch/kocevski/997610/cmap_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.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.62
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997610/ft1_filtered_4FGL_J1141.5-1408_daily_bin1045.fits scfile=/scratch/kocevski/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits outfile=/scratch/kocevski/997610/cmap_HighResolution_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.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.78
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997610/ft1_filtered_4FGL_J1141.5-1408_daily_bin1045.fits evtable="EVENTS" scfile=/scratch/kocevski/997610/ft2_4FGL_J1141.5-1408_daily_bin1045.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997610/Model_4FGL_J1141.5-1408_daily_bin1045.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/997610/ft1_filtered_4FGL_J1141.5-1408_daily_bin1045.fits.....................!
real 58.63
user 56.97
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.5740       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .37381E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.125       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.1935       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    1.4708       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.9854       1.0000         .10000E-03   10000.    
    13 'norm      '    8.3877       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    4.3785       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.8547       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    17.726       1.0000         .10000E-03   10000.    
    20 'norm      '    .10021E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    97.677       1.0000         .10000E-03   10000.    
    22 'Prefactor '    18.760       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10734E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    19.059       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1383       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91680       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=   6346.961     FROM MIGRAD    STATUS=CONVERGED    664 CALLS     3456 TOTAL
                     EDM=   .34E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.5740        6.2346        .14500E-05   -.10635E-03
   2  Prefactor     .10000E-03    13.060       -.69341E-07** at limit **
   3  Prefactor     .10001E-03    280.17       -.43246E-05** at limit **
   4  Prefactor     19.126        15.886        .44708E-06   -.23430E-04
   5  Prefactor     .10000E-03    5.9503       -.88904E-07** at limit **
   6  Prefactor     4.1939        4.1448        .15288E-07   -.94834E-05
   7  Prefactor     .10000E-03    35.775       -.29784E-06** at limit **
   8  norm          .10000E-03    5.5272        .76567E-07** at limit **
   9  Prefactor     .10000E-03    64.881        .59266E-07** at limit **
  10  norm          1.4707        1.1764        .38920E-07    .10753E-04
  11  Prefactor     .10000E-03    2.0805        .21726E-07** at limit **
  12  Prefactor     8.9855        9.0916        .81066E-07   -.97512E-05
  13  norm          8.3877        12.822        .12349E-06   -.42063E-05
  14  Prefactor     .10000E-03    41.031        .61986E-06** at limit **
  15  Prefactor     .10000E-03    9.1554       -.37989E-07** at limit **
  16  norm          4.3781        5.1014        .50000E-07   -.22482E-04
  17  Prefactor     1.8546        3.2307        .40932E-06   -.19014E-04
  18  Prefactor     .10000E-03    6.8051        .84134E-08** at limit **
  19  Prefactor     17.730        18.677        .12988E-06   -.23951E-05
  20  norm          .10000E-03    5.2804        .11655E-07** at limit **
  21  Prefactor     97.692        60.356        .54120E-08    .42015E-04
  22  Prefactor     18.761        18.988        .35171E-07   -.12403E-04
  23  Prefactor     .10000E-03    67.549        .93569E-06** at limit **
  24  Prefactor     19.057        41.053        .11832E-06   -.69332E-05
  25  Prefactor     .10000E-03    11.809        .18848E-07** at limit **
  26  Prefactor     .10000E-03    7.1094        .13294E-06** at limit **
  27  Normalizat    1.1383        .22678       -.55820E-06   -.83572E-05
  28  Prefactor     .91683        .13567       -.25449E-06   -.20132E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.57397
  Prefactor  = 0.0001
  Prefactor  = 0.00010001
  Prefactor  = 19.1259
  Prefactor  = 0.0001
  Prefactor  = 4.19387
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.47073
  Prefactor  = 0.0001
  Prefactor  = 8.98547
  norm       = 8.38773
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.37807
  Prefactor  = 1.85461
  Prefactor  = 0.0001
  Prefactor  = 17.7301
  norm       = 0.0001
  Prefactor  = 97.6915
  Prefactor  = 18.7611
  Prefactor  = 0.0001
  Prefactor  = 19.0568
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.13828
  Prefactor  = 0.916829
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.961     FROM HESSE     STATUS=OK           519 CALLS     3975 TOTAL
                     EDM=   .70E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.5740        6.2333        .78258E-03   -1.5195    
   2  Prefactor     .10000E-03    13.075        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10001E-03    285.28        .21294E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     19.126        15.908        .45793E-03   -1.4833    
   5  Prefactor     .10000E-03    5.9628        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.1939        4.1474        .15606E-03   -1.5298    
   7  Prefactor     .10000E-03    35.833        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    5.5898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    65.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          1.4707        1.1601        .73491E-04   -1.5465    
  11  Prefactor     .10000E-03    2.1035        .11214E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     8.9855        9.0943        .13371E-03   -1.5108    
  13  norm          8.3877        12.816        .13842E-03   -1.5129    
  14  Prefactor     .10000E-03    41.601        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.1589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          4.3781        5.0818        .18483E-03   -1.5289    
  17  Prefactor     1.8546        3.1948        .17696E-03   -1.5436    
  18  Prefactor     .10000E-03    6.8132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     17.730        18.581        .95128E-04   -1.4866    
  20  norm          .10000E-03    5.3344        .35446E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     97.692        60.267        .20336E-03   -1.3728    
  22  Prefactor     18.761        19.013        .92470E-04   -1.4841    
  23  Prefactor     .10000E-03    67.697        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     19.057        41.041        .91744E-04   -1.4835    
  25  Prefactor     .10000E-03    11.814        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    7.2407        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.1383        .27021        .30431E-03   -.88532    
  28  Prefactor     .91683        .16183        .20881E-03   -.95556    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.00458e-11
Minuit parameter uncertainties:
  1  6.23393
  2  1.66447e-06
  3  0.00342263
  4  15.9111
  5  1.62634e-05
  6  4.14769
  7  0.000157419
  8  1.17586e-05
  9  7.36171e-05
  10  1.16016
  11  2.12535e-08
  12  9.09569
  13  12.8206
  14  0.000224726
  15  1.1098e-05
  16  5.0823
  17  3.19505
  18  2.32176e-06
  19  18.5871
  20  1.10835e-06
  21  60.3052
  22  19.0194
  23  0.000121466
  24  41.1018
  25  1.46242e-05
  26  1.97661e-05
  27  0.270536
  28  0.161919
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.110e-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:  9.168e-01  1.619e-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.138e+00  2.705e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/997610/likelihoodResults_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.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) = 6346.96179158
delta logL = -0.000518141829161

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6346.96127322
delta logL = 2.09617610381e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9334       1.0000          .0000       10.000    
     3 'Normalizat'    1.1383       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91683       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=   6346.961     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      242 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    46.625        .18142E-02** at limit **
   2  Index         1.8870        9.0086        .50000        .22178E-04
   3  Normalizat    1.1383        .11945E-01    .30431E-03   -.63938E-03
   4  Prefactor     .91683        .74868E-02    .20881E-03   -.74656E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100835
  Index      = 1.88697
  Normalizat = 1.13828
  Prefactor  = 0.916829
 **********
 **   18 **HESSE 
 **********

 FCN=   6346.961     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      271 TOTAL
                     EDM=   .81E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    208.78        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.8870        6.1655        .50000       -.67207    
   3  Normalizat    1.1383        .25788E-01    .60863E-04   -.88532    
   4  Prefactor     .91683        .16164E-01    .41762E-04   -.95555    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.07388e-09
Minuit parameter uncertainties:
  1  0.026498
  2  243.826
  3  0.0257887
  4  0.0161638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997610': 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) = 6346.96127299
delta logL = 4.4526768761e-07

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.008e-04  2.650e-02  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  1.887e+00  2.438e+02  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.168e-01  1.616e-02  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.138e+00  2.579e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 175.387 -14.146

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/997610/cmap_HighResolution_510192001_510451201_4FGL_J1141.5-1408_daily_bin1045.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-03', job_status='DONE', photon_flux_upper_limit='4.32e-08', time_completed='2021-09-04 07:52:57.881248', job_id='997610', GAL2='0.92', fit_tolerance='1e-08', EG2='1.14', EG='1.14', time_epoch_completed='1630767177.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.92', dlogl='4.45e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1045' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:52:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0265>
Subject: Job 997610: <4FGL_J1141.5-1408_daily_bin1045> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin1045> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 07:36:41 2021
Job was executed on host(s) <bullet0265>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:36:42 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:42 2021
Terminated at Sat Sep  4 07:52:58 2021
Results reported at Sat Sep  4 07:52:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1045 175.387 -14.1457 510192001 510451201 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 :                                   837.18 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             292.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   976 sec.
    Turnaround time :                            977 sec.

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

