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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1035
RA = 175.387, Dec = -14.1457
tmin = 507600001, tmax = 507859201
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='997595', job_status='RUN', time_executed='2021-09-04 07:39:10.902646', time_epoch_executed='1630766350.9' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1035'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997595

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997595/ft1_4FGL_J1141.5-1408_daily_bin1035.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997595/ft1_4FGL_J1141.5-1408_daily_bin1035.fits outfile=/scratch/kocevski/997595/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1035.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=507600001.0 tmax=507859201.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.61
user 3.34
sys 0.21

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997595/ft1_filtered_4FGL_J1141.5-1408_daily_bin1035.fits" evtable="EVENTS" scfile=/scratch/kocevski/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits sctable="SC_DATA" outfile=/scratch/kocevski/997595/ltcube_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.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/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits
.....................!
real 12.95
user 11.32
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997595/ft1_filtered_4FGL_J1141.5-1408_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits sctable="SC_DATA" expcube=/scratch/kocevski/997595/ltcube_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.fits outfile=/scratch/kocevski/997595/expmap_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.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/997595/ltcube_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.fits
.....................!
real 192.75
user 185.75
sys 5.83

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/997595/ft1_filtered_4FGL_J1141.5-1408_daily_bin1035.fits scfile=/scratch/kocevski/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits outfile=/scratch/kocevski/997595/cmap_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.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.71
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997595/ft1_filtered_4FGL_J1141.5-1408_daily_bin1035.fits scfile=/scratch/kocevski/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits outfile=/scratch/kocevski/997595/cmap_HighResolution_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/997595/ft1_filtered_4FGL_J1141.5-1408_daily_bin1035.fits evtable="EVENTS" scfile=/scratch/kocevski/997595/ft2_4FGL_J1141.5-1408_daily_bin1035.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997595/Model_4FGL_J1141.5-1408_daily_bin1035.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/997595/ft1_filtered_4FGL_J1141.5-1408_daily_bin1035.fits.....................!
real 54.58
user 52.36
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.5680       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    31.829       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    13.143       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    13.764       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12894E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    6.2920       1.0000         .10000E-03   10000.    
    12 'Prefactor '    4.7971       1.0000         .10000E-03   10000.    
    13 'norm      '    27.915       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10043E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    12.205       1.0000         .10000E-03   10000.    
    16 'norm      '    1.8913       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11329E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.3225       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.1224       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10443E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.6267       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.1703       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .84643       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=   5596.225     FROM MIGRAD    STATUS=CONVERGED    662 CALLS     3473 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.5674        6.2440       -.13646E-06    .47156E-04
   2  Prefactor     .10000E-03    17.551       -.51754E-05** at limit **
   3  Prefactor     31.627        115.87        .92224E-05    .97620E-04
   4  Prefactor     .10000E-03    13.875        .91192E-07** at limit **
   5  Prefactor     13.137        19.279       -.38593E-06    .19001E-04
   6  Prefactor     .10000E-03    8.0461        .19762E-06** at limit **
   7  Prefactor     .10000E-03    25.316        .10948E-06** at limit **
   8  norm          13.763        14.844       -.22433E-06    .12317E-04
   9  Prefactor     .10000E-03    27.484       -.89135E-06** at limit **
  10  norm          .10000E-03    1.1161       -.33086E-05** at limit **
  11  Prefactor     6.2910        6.2035       -.26593E-06    .16267E-04
  12  Prefactor     4.8072        11.522        .15265E-05    .57961E-03
  13  norm          27.919        27.348       -.17792E-06    .12760E-04
  14  Prefactor     .10000E-03    18.559        .72825E-07** at limit **
  15  Prefactor     12.164        44.113       -.17572E-05   -.69559E-05
  16  norm          1.8943        5.9871        .14338E-05    .22610E-03
  17  Prefactor     .10000E-03    2.1333       -.80253E-06** at limit **
  18  Prefactor     .10000E-03    8.6788        .26359E-07** at limit **
  19  Prefactor     .10000E-03    7.7169        .27063E-06** at limit **
  20  norm          6.3195        4.7902        .18429E-07    .19741E-03
  21  Prefactor     .10000E-03    15.719       -.35380E-06** at limit **
  22  Prefactor     .10000E-03    7.3885       -.16950E-06** at limit **
  23  Prefactor     7.0989        40.260       -.16568E-05   -.33609E-04
  24  Prefactor     .10000E-03    39.441        .59256E-06** at limit **
  25  Prefactor     .10000E-03    8.0206        .15214E-06** at limit **
  26  Prefactor     5.6235        6.5030        .44627E-05    .57778E-03
  27  Normalizat    1.1704        .24451        .43351E-05    .99963E-03
  28  Prefactor     .84660        .14341       -.16908E-05    .15153E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 8.56744
  Prefactor  = 0.000100001
  Prefactor  = 31.6274
  Prefactor  = 0.0001
  Prefactor  = 13.1367
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.7625
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 6.291
  Prefactor  = 4.8072
  norm       = 27.919
  Prefactor  = 0.0001
  Prefactor  = 12.1644
  norm       = 1.89427
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 6.31947
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 7.0989
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62353
  Normalizat = 1.17041
  Prefactor  = 0.8466
 **********
 **   18 **HESSE 
 **********

 FCN=   5596.225     FROM HESSE     STATUS=OK           519 CALLS     3992 TOTAL
                     EDM=   .56E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.5674        6.2474        .13695E-03   -1.5122    
   2  Prefactor     .10000E-03    17.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     31.627        115.99        .35511E-03   -1.4583    
   4  Prefactor     .10000E-03    13.896        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     13.137        19.249        .11049E-03   -1.4983    
   6  Prefactor     .10000E-03    8.2444        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    25.321        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          13.763        14.752        .10796E-03   -1.4966    
   9  Prefactor     .10000E-03    27.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    1.4834        .13374E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     6.2910        6.2079        .16003E-03   -1.5206    
  12  Prefactor     4.8072        11.566        .18369E-03   -1.5269    
  13  norm          27.919        27.372        .75826E-04   -1.4651    
  14  Prefactor     .10000E-03    18.592        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     12.164        44.067        .11466E-03   -1.5010    
  16  norm          1.8943        5.7995        .30199E-03   -1.5433    
  17  Prefactor     .10000E-03    3.5203        .20517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.7043        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    7.7328        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.3195        4.7823        .13592E-03   -1.5205    
  21  Prefactor     .10000E-03    15.724        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    7.4067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     7.0989        40.274        .15031E-03   -1.5175    
  24  Prefactor     .10000E-03    39.544        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.0256        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     5.6235        6.4636        .84676E-03   -1.5234    
  27  Normalizat    1.1704        .29723        .29305E-03   -.87522    
  28  Prefactor     .84660        .17375        .20627E-03   -.98033    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.63889e-09
Minuit parameter uncertainties:
  1  6.24784
  2  0.000284958
  3  116.832
  4  2.5259e-05
  5  19.2584
  6  4.1275e-06
  7  3.52039e-06
  8  14.7561
  9  2.50542e-05
  10  0.000156909
  11  6.20856
  12  11.5714
  13  27.384
  14  5.44107e-05
  15  44.1853
  16  5.80121
  17  5.25554e-05
  18  3.42549e-05
  19  9.71113e-06
  20  4.78254
  21  8.57557e-06
  22  2.29934e-05
  23  33.8517
  24  4.67154e-05
  25  1.07936e-05
  26  6.4644
  27  0.29766
  28  0.173861
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.216e+01  4.419e+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.466e-01  1.739e-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.170e+00  2.977e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/997595/likelihoodResults_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.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) = 5596.10692137
delta logL = 0.118374815662

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5595.98005326
delta logL = 0.245242921549

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    6.3507       1.0000          .0000       10.000    
     3 'Normalizat'    1.0983       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88224       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=   5595.980     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      498 TOTAL
                     EDM=   .58E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .41404E-02    .40646E-03** at limit **
   2  Index         6.3507        2.3753        .82189E-01    .94413E-04
   3  Normalizat    1.0980        .48080E-01    .68126E-01   -.33950E-03
   4  Prefactor     .88238        .29007E-01    .44778E-01   -.88212E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 6.35072
  Normalizat = 1.098
  Prefactor  = 0.88238
 **********
 **   18 **HESSE 
 **********

 FCN=   5595.980     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      537 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .33758E-01    .20176E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         6.3507        7.5195        .49126E-02    .27354    
   3  Normalizat    1.0980        .10915        .30141E-03   -.89816    
   4  Prefactor     .88238        .65897E-01    .20251E-03   -.96760    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.78419e-08
Minuit parameter uncertainties:
  1  8.1987e-07
  2  5.31061
  3  0.10917
  4  0.0659028
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997595': 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) = 5595.98005255
delta logL = 0.245243629767

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.000e-04  8.199e-07  1.000e-04  1.000e+04 ( 1.000e-14)
293        Index:  6.351e+00  5.311e+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.824e-01  6.590e-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.098e+00  1.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
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/997595/cmap_HighResolution_507600001_507859201_4FGL_J1141.5-1408_daily_bin1035.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.86e-03', job_status='DONE', photon_flux_upper_limit='1.05e-07', time_completed='2021-09-04 07:51:57.070861', job_id='997595', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.17', time_epoch_completed='1630767117.07', return_code2='102', ts='0.09', comment='SUCCESS', return_code='0', GAL='0.85', dlogl='2.45e-01', ts2='0.64', photon_index_error='0.00', photon_index='1.97' WHERE bin_id='1035' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:51:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0052>
Subject: Job 997595: <4FGL_J1141.5-1408_daily_bin1035> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1035 175.387 -14.1457 507600001 507859201 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 :                                   754.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             282.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   916 sec.
    Turnaround time :                            917 sec.

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

