/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 29 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 = 7498
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1141.5-1408_daily_bin160
RA = 175.387, Dec = -14.1457
tmin = 280800001, tmax = 281059201
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='992623', job_status='RUN', time_executed='2021-09-04 07:22:15.262519', time_epoch_executed='1630765335.26' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='160'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/992623

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/992623/ft1_4FGL_J1141.5-1408_daily_bin160.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/992623/ft1_4FGL_J1141.5-1408_daily_bin160.fits outfile=/scratch/kocevski/992623/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin160.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=280800001.0 tmax=281059201.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.99
user 3.69
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.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/992623/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin160.fits evtable="EVENTS" outfile="/scratch/kocevski/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.fits" evtable="EVENTS" scfile=/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits sctable="SC_DATA" outfile=/scratch/kocevski/992623/ltcube_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.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/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits
.....................!
real 13.54
user 11.53
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits sctable="SC_DATA" expcube=/scratch/kocevski/992623/ltcube_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.fits outfile=/scratch/kocevski/992623/expmap_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.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/992623/ltcube_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.fits
.....................!
real 194.68
user 187.33
sys 4.18

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/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.fits scfile=/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits outfile=/scratch/kocevski/992623/cmap_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.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.79
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.fits scfile=/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits outfile=/scratch/kocevski/992623/cmap_HighResolution_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=175.387 yref=-14.1457 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.40
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.fits evtable="EVENTS" scfile=/scratch/kocevski/992623/ft2_4FGL_J1141.5-1408_daily_bin160.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/992623/Model_4FGL_J1141.5-1408_daily_bin160.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/992623/ft1_filtered_4FGL_J1141.5-1408_daily_bin160.fits.....................!
real 59.53
user 57.55
sys 1.12

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.105       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10065E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .12090E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.150       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10274E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    45.205       1.0000         .10000E-03   10000.    
     9 'Prefactor '    37.616       1.0000         .10000E-03   10000.    
    10 'norm      '    .22115       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10314E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    11.111       1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.7867       1.0000         .10000E-03   10000.    
    15 'Prefactor '    20.727       1.0000         .10000E-03   10000.    
    16 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.4674       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .14674E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    .10201E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    1.1412       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10965E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.1548       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5143       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.5167       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82137       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6080E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6163.511     FROM MIGRAD    STATUS=CONVERGED    117 CALLS     2931 TOTAL
                     EDM=   .16E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.108        3.4017        .37717E-05    .48163E-02
   2  Prefactor     .10011E-03    11.339       -.15376E-04** at limit **
   3  Prefactor     .10017E-03    55.455        .59708E-05** at limit **
   4  Prefactor     .10017E-03    10.691        .17307E-04** at limit **
   5  Prefactor     21.159        1.8891        .13768E-05   -.77865E-03
   6  Prefactor     .10000E-03    4.8877       -.80827E-06** at limit **
   7  Prefactor     .10000E-03    16.572       -.15411E-04** at limit **
   8  norm          45.225        2.0305        .99469E-06   -.15912E-02
   9  Prefactor     37.608        1.6025        .10809E-06   -.51628E-03
  10  norm          .22181        .59112       -.38118E-07   -.53451E-03
  11  Prefactor     .10000E-03    5.8392       -.38279E-05** at limit **
  12  Prefactor     .10000E-03    5.8751        .42596E-05** at limit **
  13  norm          11.166        7.6258       -.74443E-05    .43426E-02
  14  Prefactor     5.7904        3.5220        .19936E-05   -.14213E-02
  15  Prefactor     20.719        1.5574       -.20768E-06    .31823E-04
  16  norm          .10000E-03    3.8805        .32141E-06** at limit **
  17  Prefactor     3.4699        3.2100       -.14722E-06   -.10411E-02
  18  Prefactor     .10012E-03    22.204       -.24144E-05** at limit **
  19  Prefactor     .10479E-03    446.13       -.14113E-04** at limit **
  20  norm          .10000E-03    5.9494       -.17863E-05** at limit **
  21  Prefactor     .10003E-03    18.258       -.40170E-05** at limit **
  22  Prefactor     1.1610        2.1661        .64347E-05   -.25081E-03
  23  Prefactor     .10009E-03    18.027        .24266E-04** at limit **
  24  Prefactor     .10001E-03    15.329       -.12043E-04** at limit **
  25  Prefactor     7.1291        4.5731        .55482E-05   -.25518E-02
  26  Prefactor     1.5180        7.6074       -.31828E-05   -.33821E-03
  27  Normalizat    1.5161        .27537       -.37183E-05   -.86662E-03
  28  Prefactor     .82145        .16713        .68127E-06   -.97195E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 15.1083
  Prefactor  = 0.00010011
  Prefactor  = 0.000100166
  Prefactor  = 0.000100166
  Prefactor  = 21.1589
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 45.2252
  Prefactor  = 37.608
  norm       = 0.221812
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 11.1663
  Prefactor  = 5.7904
  Prefactor  = 20.7192
  norm       = 0.0001
  Prefactor  = 3.46991
  Prefactor  = 0.00010012
  Prefactor  = 0.000104792
  norm       = 0.000100001
  Prefactor  = 0.000100029
  Prefactor  = 1.16096
  Prefactor  = 0.000100094
  Prefactor  = 0.000100006
  Prefactor  = 7.12907
  Prefactor  = 1.51802
  Normalizat = 1.51611
  Prefactor  = 0.821452
 **********
 **   18 **HESSE 
 **********

 FCN=   6163.511     FROM HESSE     STATUS=OK           585 CALLS     3516 TOTAL
                     EDM=   .17E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.108        7.9231        .25764E-02   -1.4930    
   2  Prefactor     .10011E-03    14.744        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10017E-03    59.569        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10017E-03    14.920        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.159        18.845        .21773E-02   -1.4788    
   6  Prefactor     .10000E-03    4.8406        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.562        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          45.225        17.392        .14908E-02   -1.4362    
   9  Prefactor     37.608        37.640        .16337E-02   -1.4481    
  10  norm          .22181        .64735        .23563E-01   -1.5614    
  11  Prefactor     .10000E-03    5.7742        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.8347        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          11.166        23.270        .30048E-02   -1.5040    
  14  Prefactor     5.7904        24.592        .41740E-02   -1.5227    
  15  Prefactor     20.719        41.296        .21995E-02   -1.4797    
  16  norm          .10000E-03    3.8412        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     3.4699        3.2320        .54293E-02   -1.5335    
  18  Prefactor     .10012E-03    24.734        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10479E-03    20.621        .10397       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    5.8958        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10003E-03    18.726        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     1.1610        59.364        .10876E-01   -1.5492    
  23  Prefactor     .10009E-03    31.805        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10001E-03    37.096        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     7.1291        27.178        .37491E-02   -1.5174    
  26  Prefactor     1.5180        7.6572        .86862E-02   -1.5462    
  27  Normalizat    1.5161        .24806        .66053E-01   -.77327    
  28  Prefactor     .82145        .14329        .43995E-01   -.98942    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74196e-06
Minuit parameter uncertainties:
  1  7.92361
  2  0.0025473
  3  0.00630008
  4  0.00315021
  5  18.8505
  6  0.000175373
  7  5.68844e-05
  8  17.3936
  9  37.6635
  10  0.647366
  11  0.000214748
  12  3.30222e-05
  13  23.2894
  14  23.8828
  15  41.3531
  16  4.73475e-05
  17  3.23213
  18  0.00343995
  19  0.0198882
  20  0.000134006
  21  0.00146442
  22  16.6203
  23  0.00345941
  24  0.000941019
  25  27.2252
  26  6.81992
  27  0.248256
  28  0.14335
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  2.072e+01  4.135e+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.215e-01  1.434e-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.516e+00  2.483e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.32
Ra Dec: 175.387 -14.146
Photon Flux Upper Limit: 1.08e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/992623/likelihoodResults_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6161.91400644
delta logL = 1.59748966805

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6161.89350164
delta logL = 1.61799446595

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.2721       1.0000         .10000E-03   10000.    
     2 'Index     '    3.6941       1.0000          .0000       10.000    
     3 'Normalizat'    1.3574       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87774       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.

 FCN=   6161.894     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      262 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2661        10.612        .98583E-02    .65116E-03
   2  Index         3.6957        1.6366        .68811E-01    .23977E-03
   3  Normalizat    1.3574        .71054E-01    .69045E-01    .40656E-05
   4  Prefactor     .87763        .42322E-01    .44721E-01    .86959E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.2661
  Index      = 3.69567
  Normalizat = 1.35742
  Prefactor  = 0.87763
 **********
 **   18 **HESSE 
 **********

 FCN=   6161.894     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      295 TOTAL
                     EDM=   .32E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2661        20.930        .50325E-04   -1.5483    
   2  Index         3.6957        2.6178        .26689E-02   -.26392    
   3  Normalizat    1.3574        .26592        .30547E-03   -.81868    
   4  Prefactor     .87763        .15724        .22377E-03   -.96927    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.22937e-07
Minuit parameter uncertainties:
  1  10.2994
  2  2.76688
  3  0.266187
  4  0.157319
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/992623': 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) = 6161.89350002
delta logL = 1.6179960919

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.266e+00  1.030e+01  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  3.696e+00  2.767e+00  0.000e+00  1.000e+01 (-1.000e+00)
294        Scale:  3.090e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  8.776e-01  1.573e-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.357e+00  2.662e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.80
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 3.70 +/- 2.77
Photon Flux (Free Index): 1.51e-07 +/- 1.05e-07
Energy Flux (Free Index): 2.40e-05 +/- 1.55e-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/992623/cmap_HighResolution_280800001_281059201_4FGL_J1141.5-1408_daily_bin160.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', comment='SUCCESS', energy_flux2='2.40e-05', dlogl='1.62e+00', photon_flux2='1.51e-07', job_status='DONE', time_completed='2021-09-04 07:35:21.903982', photon_index_error2='2.77', photon_index2='3.70', ts='0.32', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='1.55e-05', EG='1.52', time_epoch_completed='1630766121.9', return_code='0', job_id='992623', GAL2='0.88', EG2='1.36', return_code2='102', photon_flux_error2='1.05e-07', ts2='3.80', photon_index='1.97' WHERE bin_id='160' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:35:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 992623: <4FGL_J1141.5-1408_daily_bin160> in cluster <slac> Done

Job <4FGL_J1141.5-1408_daily_bin160> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 07:21:33 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:21:35 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:21:35 2021
Terminated at Sat Sep  4 07:35:22 2021
Results reported at Sat Sep  4 07:35:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin160 175.387 -14.1457 280800001 281059201 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 :                                   770.07 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             284.85 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   827 sec.
    Turnaround time :                            829 sec.

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

