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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1367
RA = 175.387, Dec = -14.1457
tmin = 593654401, tmax = 593913601
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='999065', job_status='RUN', time_executed='2021-09-04 07:41:56.626426', time_epoch_executed='1630766516.63' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1367'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/999065

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/999065/ft1_4FGL_J1141.5-1408_daily_bin1367.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/999065/ft1_4FGL_J1141.5-1408_daily_bin1367.fits outfile=/scratch/kocevski/999065/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1367.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=593654401.0 tmax=593913601.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.60
user 3.31
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/999065/ft1_filtered_4FGL_J1141.5-1408_daily_bin1367.fits" evtable="EVENTS" scfile=/scratch/kocevski/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits sctable="SC_DATA" outfile=/scratch/kocevski/999065/ltcube_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.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/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits
.....................!
real 11.77
user 11.36
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/999065/ft1_filtered_4FGL_J1141.5-1408_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits sctable="SC_DATA" expcube=/scratch/kocevski/999065/ltcube_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.fits outfile=/scratch/kocevski/999065/expmap_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.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/999065/ltcube_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.fits
.....................!
real 193.38
user 187.54
sys 5.31

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/999065/ft1_filtered_4FGL_J1141.5-1408_daily_bin1367.fits scfile=/scratch/kocevski/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits outfile=/scratch/kocevski/999065/cmap_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/999065/ft1_filtered_4FGL_J1141.5-1408_daily_bin1367.fits scfile=/scratch/kocevski/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits outfile=/scratch/kocevski/999065/cmap_HighResolution_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/999065/ft1_filtered_4FGL_J1141.5-1408_daily_bin1367.fits evtable="EVENTS" scfile=/scratch/kocevski/999065/ft2_4FGL_J1141.5-1408_daily_bin1367.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/999065/Model_4FGL_J1141.5-1408_daily_bin1367.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/999065/ft1_filtered_4FGL_J1141.5-1408_daily_bin1367.fits.....................!
real 53.78
user 52.40
sys 1.24

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10032E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10439E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    37.036       1.0000         .10000E-03   10000.    
     4 'Prefactor '    36.909       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    13.825       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .81125       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.0028       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.7610       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.419       1.0000         .10000E-03   10000.    
    13 'norm      '    .10088E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.3523       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.7947       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    39.859       1.0000         .10000E-03   10000.    
    20 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10172E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    20.629       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.3565       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .81171       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=   5591.088     FROM MIGRAD    STATUS=CONVERGED    658 CALLS     3473 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    4.7753        .43685E-06** at limit **
   2  Prefactor     .10001E-03    45.055        .97378E-06** at limit **
   3  Prefactor     37.116        112.49        .20896E-04    .17152E-03
   4  Prefactor     36.909        21.590        .34318E-06    .42890E-03
   5  Prefactor     .10000E-03    16.123       -.19461E-05** at limit **
   6  Prefactor     13.823        8.3219        .50788E-06    .55886E-03
   7  Prefactor     .10000E-03    21.759       -.21578E-05** at limit **
   8  norm          .80546        15.127       -.50174E-05    .13721E-04
   9  Prefactor     .10000E-03    47.255       -.35445E-05** at limit **
  10  norm          2.0027        1.6291       -.34755E-07   -.29041E-03
  11  Prefactor     5.7602        6.5357        .48783E-05   -.10834E-02
  12  Prefactor     15.425        11.610        .12829E-06   -.13232E-04
  13  norm          .10000E-03    33.931        .43161E-05** at limit **
  14  Prefactor     1.3399        89.999       -.12612E-04   -.82144E-04
  15  Prefactor     .10000E-03    14.140        .81887E-06** at limit **
  16  norm          .10000E-03    2.1397       -.30469E-07** at limit **
  17  Prefactor     5.7940        3.6798        .67485E-07   -.76691E-05
  18  Prefactor     .10000E-03    5.9809       -.62280E-07** at limit **
  19  Prefactor     39.857        20.438        .32212E-06   -.35019E-04
  20  norm          .10000E-03    6.5843        .11917E-06** at limit **
  21  Prefactor     .10000E-03    13.743        .13627E-05** at limit **
  22  Prefactor     20.631        15.233        .24928E-06   -.40601E-05
  23  Prefactor     .10000E-03    24.753        .32410E-06** at limit **
  24  Prefactor     .10000E-03    24.911        .44854E-06** at limit **
  25  Prefactor     .10000E-03    9.5386       -.43157E-06** at limit **
  26  Prefactor     .10000E-03    4.7285       -.49138E-06** at limit **
  27  Normalizat    1.3563        .26529       -.25366E-05    .32483E-03
  28  Prefactor     .81181        .14889        .52512E-06    .12982E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.000100007
  Prefactor  = 37.1163
  Prefactor  = 36.9089
  Prefactor  = 0.000100001
  Prefactor  = 13.823
  Prefactor  = 0.000100001
  norm       = 0.805463
  Prefactor  = 0.000100004
  norm       = 2.00272
  Prefactor  = 5.76019
  Prefactor  = 15.4248
  norm       = 0.000100004
  Prefactor  = 1.33989
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 5.79403
  Prefactor  = 0.0001
  Prefactor  = 39.8571
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.6314
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.35634
  Prefactor  = 0.811806
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.088     FROM HESSE     STATUS=OK           513 CALLS     3986 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.8082        .15961E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10001E-03    45.300        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     37.116        116.92        .65856E-04   -1.4489    
   4  Prefactor     36.909        21.509        .65968E-04   -1.4492    
   5  Prefactor     .10000E-03    16.328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     13.823        8.2877        .53862E-03   -1.4964    
   7  Prefactor     .10000E-03    21.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .80546        55.375        .45199E-02   -1.5528    
   9  Prefactor     .10000E-03    47.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.0027        1.6198        .80366E-04   -1.5425    
  11  Prefactor     5.7602        7.0530        .83669E-03   -1.5228    
  12  Prefactor     15.425        11.651        .10200E-03   -1.4922    
  13  norm          .10000E-03    34.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.3399        91.810        .37611E-03   -1.5476    
  15  Prefactor     .10000E-03    14.160        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.1448        .10679E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.7940        3.6782        .11005E-03   -1.5227    
  18  Prefactor     .10000E-03    5.9881        .17859E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     39.857        20.246        .63489E-04   -1.4444    
  20  norm          .10000E-03    6.6414        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    13.780        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     20.631        15.265        .88186E-04   -1.4799    
  23  Prefactor     .10000E-03    24.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    24.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    9.5429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    4.8193        .15877E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Normalizat    1.3563        .31681        .29999E-03   -.81900    
  28  Prefactor     .81181        .17783        .22642E-03   -.99295    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.53447e-09
Minuit parameter uncertainties:
  1  3.54638e-05
  2  0.0011353
  3  117.655
  4  21.5131
  5  0.000222836
  6  8.28843
  7  0.000295255
  8  13.369
  9  0.000816985
  10  1.61986
  11  7.05398
  12  11.6525
  13  0.000750148
  14  22.2172
  15  0.000100158
  16  1.18374e-06
  17  3.6783
  18  1.73722e-06
  19  20.2491
  20  5.94963e-06
  21  0.000152642
  22  15.2683
  23  5.54463e-05
  24  7.13351e-05
  25  3.71749e-05
  26  1.40702e-05
  27  0.317267
  28  0.177952
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  1.002e-04  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.118e-01  1.780e-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.356e+00  3.173e-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: 6.11e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.57e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/999065/likelihoodResults_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.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) = 5591.08864794
delta logL = -0.000336002205586

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5591.08831191
delta logL = 2.81570464722e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    1.9467       1.0000          .0000       10.000    
     3 'Normalizat'    1.3563       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81182       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=   5591.088     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      245 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10075E-03    106.51        .18142E-02** at limit **
   2  Index         1.9064        5.1530        .50000        .90327E-05
   3  Normalizat    1.3563        .16951E-01    .30000E-03    .82954E-04
   4  Prefactor     .81181        .10248E-01    .22642E-03    .11765E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100753
  Index      = 1.90641
  Normalizat = 1.35633
  Prefactor  = 0.811809
 **********
 **   18 **HESSE 
 **********

 FCN=   5591.088     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      274 TOTAL
                     EDM=   .85E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10075E-03    479.00        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9064        5.6293        .50000       -.66711    
   3  Normalizat    1.3563        .37228E-01    .12000E-04   -.81900    
   4  Prefactor     .81181        .22506E-01    .90566E-05   -.99294    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.54787e-09
Minuit parameter uncertainties:
  1  0.0382951
  2  593.867
  3  0.037229
  4  0.0225064
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/999065': 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) = 5591.08831182
delta logL = 1.18136995297e-07

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.118e-01  2.251e-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.356e+00  3.723e-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/999065/cmap_HighResolution_593654401_593913601_4FGL_J1141.5-1408_daily_bin1367.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.57e-03', job_status='DONE', photon_flux_upper_limit='6.11e-08', time_completed='2021-09-04 07:54:53.673204', job_id='999065', GAL2='0.81', fit_tolerance='1e-08', EG2='1.36', EG='1.36', time_epoch_completed='1630767293.67', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.81', dlogl='1.18e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1367' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:54:53 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0260>
Subject: Job 999065: <4FGL_J1141.5-1408_daily_bin1367> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1367 175.387 -14.1457 593654401 593913601 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 :                                   750.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             329.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   803 sec.
    Turnaround time :                            806 sec.

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

