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


Performing analysis on: 4FGL_J1141.5-1408_daily_bin1020
RA = 175.387, Dec = -14.1457
tmin = 503712001, tmax = 503971201
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='997569', job_status='RUN', time_executed='2021-09-04 07:36:48.522288', time_epoch_executed='1630766208.52' WHERE source_name='4FGL J1141.5-1408' and cadence='daily' and bin_id='1020'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/997569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/997569/ft1_4FGL_J1141.5-1408_daily_bin1020.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/997569/ft2_4FGL_J1141.5-1408_daily_bin1020.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/997569/ft1_4FGL_J1141.5-1408_daily_bin1020.fits outfile=/scratch/kocevski/997569/ft1_filteredMKT_4FGL_J1141.5-1408_daily_bin1020.fits ra=175.387 dec=-14.1457 rad=12.0 tmin=503712001.0 tmax=503971201.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 5.54
user 5.27
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/997569/ft1_filtered_4FGL_J1141.5-1408_daily_bin1020.fits" evtable="EVENTS" scfile=/scratch/kocevski/997569/ft2_4FGL_J1141.5-1408_daily_bin1020.fits sctable="SC_DATA" outfile=/scratch/kocevski/997569/ltcube_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.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/997569/ft2_4FGL_J1141.5-1408_daily_bin1020.fits
.....................!
real 12.01
user 11.60
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/997569/ft1_filtered_4FGL_J1141.5-1408_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/997569/ft2_4FGL_J1141.5-1408_daily_bin1020.fits sctable="SC_DATA" expcube=/scratch/kocevski/997569/ltcube_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.fits outfile=/scratch/kocevski/997569/expmap_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.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/997569/ltcube_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.fits
.....................!
real 190.35
user 185.33
sys 4.50

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

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

This is gtbin version HEAD
real 0.54
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/997569/ft1_filtered_4FGL_J1141.5-1408_daily_bin1020.fits scfile=/scratch/kocevski/997569/ft2_4FGL_J1141.5-1408_daily_bin1020.fits outfile=/scratch/kocevski/997569/cmap_HighResolution_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.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/997569/ft1_filtered_4FGL_J1141.5-1408_daily_bin1020.fits evtable="EVENTS" scfile=/scratch/kocevski/997569/ft2_4FGL_J1141.5-1408_daily_bin1020.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/997569/Model_4FGL_J1141.5-1408_daily_bin1020.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/997569/ft1_filtered_4FGL_J1141.5-1408_daily_bin1020.fits.....................!
real 55.99
user 54.63
sys 1.11

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    4.8464       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10421E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    3.2582       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    6.4837       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.797       1.0000         .10000E-03   10000.    
    16 'norm      '    12.734       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6130       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0841       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    4.6662       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10228E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .35489       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    20.916       1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.1946       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.0434       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .91996       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=   6320.315     FROM MIGRAD    STATUS=CONVERGED    694 CALLS     3013 TOTAL
                     EDM=   .92E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          4.8453        5.5997        .12154E-05   -.63622E-04
   2  Prefactor     .10000E-03    13.733        .78393E-05** at limit **
   3  Prefactor     .10000E-03    53.724       -.39148E-05** at limit **
   4  Prefactor     .10000E-03    15.494       -.12458E-04** at limit **
   5  Prefactor     .10000E-03    19.418        .80801E-05** at limit **
   6  Prefactor     .10000E-03    5.0895        .20081E-07** at limit **
   7  Prefactor     .10000E-03    116.39        .10840E-05** at limit **
   8  norm          .10000E-03    9.3437        .24430E-05** at limit **
   9  Prefactor     3.2523        44.238       -.36708E-05   -.34811E-04
  10  norm          .10000E-03    .30918        .24731E-07** at limit **
  11  Prefactor     .10000E-03    4.6505        .40272E-07** at limit **
  12  Prefactor     6.4801        9.2096       -.24404E-06   -.12011E-03
  13  norm          .10000E-03    10.100       -.16060E-05** at limit **
  14  Prefactor     .10000E-03    9.6070       -.22787E-05** at limit **
  15  Prefactor     18.795        21.475       -.37977E-06   -.10376E-05
  16  norm          12.738        8.0972       -.64210E-06   -.14280E-02
  17  Prefactor     2.6158        4.2736        .41750E-07   -.45201E-03
  18  Prefactor     3.0840        10.606       -.57658E-06   -.14023E-03
  19  Prefactor     .10000E-03    3.6759        .70483E-07** at limit **
  20  norm          4.6651        3.0545       -.30394E-07   -.11603E-03
  21  Prefactor     .10000E-03    58.884        .14303E-04** at limit **
  22  Prefactor     .23651        9.4375       -.13109E-05    .22304E-03
  23  Prefactor     .10000E-03    32.478       -.65797E-05** at limit **
  24  Prefactor     .10000E-03    10.232        .65563E-06** at limit **
  25  Prefactor     20.916        16.266       -.24278E-08    .14939E-05
  26  Prefactor     2.1945        4.4095       -.68399E-06   -.68702E-03
  27  Normalizat    1.0436        .20891        .37267E-06    .66459E-04
  28  Prefactor     .91988        .12745        .50699E-08    .60776E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 4.84531
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.25234
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 6.48007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 18.7954
  norm       = 12.7378
  Prefactor  = 2.61584
  Prefactor  = 3.08397
  Prefactor  = 0.0001
  norm       = 4.66512
  Prefactor  = 0.0001
  Prefactor  = 0.236506
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 20.9157
  Prefactor  = 2.19453
  Normalizat = 1.0436
  Prefactor  = 0.919879
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.315     FROM HESSE     STATUS=OK           521 CALLS     3534 TOTAL
                     EDM=   .64E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          4.8453        5.5849        .18273E-03   -1.5268    
   2  Prefactor     .10000E-03    13.652        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    53.757        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    15.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    19.873        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    5.2653        .35016E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    116.75        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    9.4450        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     3.2523        44.326        .22436E-03   -1.5347    
  10  norm          .10000E-03    .37820        .85721E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    4.8116        .33445E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     6.4801        9.2787        .15761E-03   -1.5199    
  13  norm          .10000E-03    10.108        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    9.6115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     18.795        21.472        .92379E-04   -1.4841    
  16  norm          12.738        8.1819        .56125E-03   -1.4994    
  17  Prefactor     2.6158        4.1972        .17926E-03   -1.5384    
  18  Prefactor     3.0840        10.541        .23095E-03   -1.5357    
  19  Prefactor     .10000E-03    3.6838        .14879E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          4.6651        3.0525        .10867E-03   -1.5276    
  21  Prefactor     .10000E-03    59.026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .23651        186.01        .45713E-02   -1.5611    
  23  Prefactor     .10000E-03    32.454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    10.233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     20.916        16.269        .87579E-04   -1.4793    
  26  Prefactor     2.1945        4.4401        .23156E-03   -1.5412    
  27  Normalizat    1.0436        .25570        .28866E-03   -.91584    
  28  Prefactor     .91988        .15521        .19410E-03   -.95450    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.37512e-09
Minuit parameter uncertainties:
  1  5.58547
  2  4.14731e-06
  3  1.02089e-05
  4  1.42908e-06
  5  0.000118627
  6  6.75936e-06
  7  3.44626e-05
  8  1.96941e-05
  9  24.035
  10  7.07245e-07
  11  1.15316e-06
  12  9.28072
  13  1.20328e-07
  14  3.23437e-06
  15  21.4812
  16  8.18264
  17  4.19763
  18  10.5469
  19  2.28287e-07
  20  3.05258
  21  5.58483e-05
  22  13.304
  23  2.81198e-05
  24  3.59371e-07
  25  16.2723
  26  4.44076
  27  0.256
  28  0.155282
Done.

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

Extracting fit parameters...

4FGL J1141.5-1408
   Spectrum: PowerLaw
292    Prefactor:  1.880e+01  2.148e+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:  9.199e-01  1.553e-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.044e+00  2.560e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.31
Ra Dec: 175.387 -14.146
Photon Index (Fixed Index): 1.97 +/- 0.00
Photon Flux (Fixed Index): 1.65e-08 +/- 1.88e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.42e-05

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

Saving results to:
/scratch/kocevski/997569/likelihoodResults_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.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) = 6320.3075824
delta logL = 0.00705933228801

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6320.30147076
delta logL = 0.0131709728867

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    15.801       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0838       1.0000          .0000       10.000    
     3 'Normalizat'    1.0414       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92059       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=   6320.301     FROM MIGRAD    STATUS=CONVERGED     80 CALLS      240 TOTAL
                     EDM=   .82E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     15.797        29.141        .10076E-03    .48301E-03
   2  Index         2.0840        .83033        .80289E-02    .17698E-03
   3  Normalizat    1.0414        .23832        .28892E-03   -.31605E-03
   4  Prefactor     .92059        .15217        .97013E-03   -.57215E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 15.797
  Index      = 2.08402
  Normalizat = 1.0414
  Prefactor  = 0.920588
 **********
 **   18 **HESSE 
 **********

 FCN=   6320.301     FROM HESSE     STATUS=OK            25 CALLS      265 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     15.797        26.146        .20152E-04   -1.4913    
   2  Index         2.0840        .74600        .32116E-03   -.62266    
   3  Normalizat    1.0414        .23895        .57785E-04   -.91656    
   4  Prefactor     .92059        .15263        .38805E-04   -.95425    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.79249e-10
Minuit parameter uncertainties:
  1  26.1647
  2  0.750254
  3  0.239202
  4  0.1527
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/997569': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6320.30147074
delta logL = 0.0131710007481

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
605    Prefactor:  9.206e-01  1.527e-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.041e+00  2.392e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.33
Ra Dec: 175.387 -14.146
Photon Index (Free Index): 2.08 +/- 0.75
Photon Flux (Free Index): 1.86e-08 +/- 2.44e-08
Energy Flux (Free Index): 1.05e-05 +/- 1.58e-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/997569/cmap_HighResolution_503712001_503971201_4FGL_J1141.5-1408_daily_bin1020.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.19e-03', comment='SUCCESS', photon_flux='1.65e-08', energy_flux2='1.05e-05', photon_flux_error='1.88e-08', dlogl='1.32e-02', energy_flux='1.24e-05', photon_flux2='1.86e-08', job_status='DONE', time_completed='2021-09-04 07:50:07.199451', photon_index_error2='0.75', photon_index2='2.08', ts='1.31', fit_tolerance='1e-08', GAL='0.92', photon_index_error='0.00', photon_flux_upper_limit='6.93e-08', energy_flux_error2='1.58e-05', EG='1.04', time_epoch_completed='1630767007.2', return_code='0', job_id='997569', GAL2='0.92', EG2='1.04', return_code2='0', energy_flux_error='1.42e-05', photon_flux_error2='2.44e-08', ts2='1.33', photon_index='1.97' WHERE bin_id='1020' AND source_name='4FGL J1141.5-1408' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 07:50:07 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0179>
Subject: Job 997569: <4FGL_J1141.5-1408_daily_bin1020> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1141.5-1408_daily_bin1020 175.387 -14.1457 503712001 503971201 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 :                                   791.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             332.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   807 sec.
    Turnaround time :                            809 sec.

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

