/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 160 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 = 7496
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1143.1+6122_daily_bin5
RA = 175.788, Dec = 61.3801
tmin = 240624001, tmax = 240883201
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='621', job_status='RUN', time_executed='2021-09-04 07:49:41.867523', time_epoch_executed='1630766981.87' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='5'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/621

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/621/ft1_4FGL_J1143.1+6122_daily_bin5.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/621/ft1_4FGL_J1143.1+6122_daily_bin5.fits outfile=/scratch/kocevski/621/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin5.fits ra=175.788 dec=61.3801 rad=12.0 tmin=240624001.0 tmax=240883201.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 1.40
user 1.20
sys 0.17

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.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/621/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin5.fits evtable="EVENTS" outfile="/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits" evtable="EVENTS" scfile=/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits sctable="SC_DATA" outfile=/scratch/kocevski/621/ltcube_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.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/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits
.....................!
real 12.68
user 12.33
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits sctable="SC_DATA" expcube=/scratch/kocevski/621/ltcube_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.fits outfile=/scratch/kocevski/621/expmap_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.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/621/ltcube_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.fits
.....................!
real 191.17
user 185.04
sys 5.60

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 227 point sources and 0 extended sources

Setting source of interest to:
4FGL J1143.1+6122 @ 175.788 61.3801

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits scfile=/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits outfile=/scratch/kocevski/621/cmap_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.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.788 yref=61.3801 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.35
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits scfile=/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits outfile=/scratch/kocevski/621/cmap_HighResolution_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.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.788 yref=61.3801 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.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits evtable="EVENTS" scfile=/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/621/Model_4FGL_J1143.1+6122_daily_bin5.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/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits.....................!
real 49.80
user 48.56
sys 1.13

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits', '/scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits', expMap='/scratch/kocevski/621/expmap_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.fits', expCube='/scratch/kocevski/621/ltcube_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/621/Model_4FGL_J1143.1+6122_daily_bin5.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1143.1+6122'

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  2.057e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.738e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  2.503e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/621/ft1_filtered_4FGL_J1143.1+6122_daily_bin5.fits
Spacecraft file(s): /scratch/kocevski/621/ft2_4FGL_J1143.1+6122_daily_bin5.fits
Exposure map: /scratch/kocevski/621/expmap_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.fits
Exposure cube: /scratch/kocevski/621/ltcube_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/621/Model_4FGL_J1143.1+6122_daily_bin5.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) = 4699.50349195

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .96639       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10024E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.2294       1.0000         .10000E-03   10000.    
     4 'norm      '    .96156       1.0000         .10000E-03   10000.    
     5 'Prefactor '    147.15       1.0000         .10000E-03   10000.    
     6 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .12840E-02   1.0000         .10000E-03   10000.    
     9 'norm      '    3.9782       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.5701       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10933E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10196E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.7631       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.7294       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .13899E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    9.8486       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10167E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10231E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10123E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.185       1.0000         .10000E-03   10000.    
    22 'norm      '    .10039E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    106.31       1.0000         .10000E-03   10000.    
    25 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    2.9229       1.0000         .10000E-03   10000.    
    27 'norm      '    .25931       1.0000         .10000E-03   10000.    
    28 'Prefactor '    25.979       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .21870E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1088       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .80772       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4699.474     FROM MIGRAD    STATUS=CONVERGED    866 CALLS     4413 TOTAL
                     EDM=   .62E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .96372        42.366        .72537E-05   -.11178E-05
   2  Prefactor     .10000E-03    10.034        .38486E-08** at limit **
   3  norm          4.2298        2.8681        .18618E-07   -.68989E-04
   4  norm          .96087        1.6375        .22755E-06    .26446E-03
   5  Prefactor     147.27        159.72        .11076E-05    .53952E-04
   6  norm          .10000E-03    .27899        .80152E-07** at limit **
   7  norm          .10000E-03    1.3767        .33124E-06** at limit **
   8  Prefactor     .10000E-03    324.04       -.79037E-06** at limit **
   9  norm          3.9782        2.9365       -.35546E-07   -.15194E-04
  10  Prefactor     4.5675        4.6052        .38445E-07   -.62121E-04
  11  Prefactor     .10000E-03    89.992       -.48598E-07** at limit **
  12  Prefactor     .10000E-03    11.324       -.37524E-07** at limit **
  13  Prefactor     3.7652        7.6219        .39733E-06   -.61752E-06
  14  Prefactor     3.7340        39.005        .39846E-06   -.20523E-05
  15  Prefactor     .10000E-03    15.050       -.31246E-06** at limit **
  16  Prefactor     .10000E-03    2.0996        .20246E-07** at limit **
  17  norm          9.8487        9.9359       -.28968E-07   -.10773E-04
  18  Prefactor     .10000E-03    5.3027       -.68298E-07** at limit **
  19  norm          .10000E-03    5.5692       -.17526E-06** at limit **
  20  Prefactor     .10000E-03    7.4872       -.12393E-06** at limit **
  21  Prefactor     12.188        18.277        .84832E-07    .63617E-06
  22  norm          .10000E-03    1.0850       -.43276E-07** at limit **
  23  Prefactor     .10000E-03    8.6233       -.60770E-07** at limit **
  24  Prefactor     106.30        86.201       -.33672E-07   -.15904E-04
  25  norm          .10000E-03    1.8484       -.16048E-07** at limit **
  26  Prefactor     2.9227        4.3313       -.21217E-06   -.52927E-04
  27  norm          .25996        1.9233        .13259E-05    .42981E-04
  28  Prefactor     25.980        26.550        .22932E-08   -.53878E-05
  29  Prefactor     .10000E-03    4.8678       -.73520E-07** at limit **
  30  Prefactor     .10000E-03    194.79       -.43583E-07** at limit **
  31  Normalizat    1.1086        .18599        .20601E-06   -.10196E-03
  32  Prefactor     .80781        .22087       -.97993E-06   -.45697E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.963715
  Prefactor  = 0.0001
  norm       = 4.22978
  norm       = 0.960871
  Prefactor  = 147.273
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 3.9782
  Prefactor  = 4.56746
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.76524
  Prefactor  = 3.734
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 9.8487
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.1882
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 106.302
  norm       = 0.0001
  Prefactor  = 2.92274
  norm       = 0.259962
  Prefactor  = 25.9803
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.10861
  Prefactor  = 0.807809
 **********
 **   18 **HESSE 
 **********

 FCN=   4699.474     FROM HESSE     STATUS=OK           655 CALLS     5068 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .96372        42.314        .52185E-03   -1.5512    
   2  Prefactor     .10000E-03    10.046        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.2298        2.8634        .92331E-04   -1.5297    
   4  norm          .96087        1.4236        .11235E-02   -1.5512    
   5  Prefactor     147.27        161.94        .16610E-03   -1.3275    
   6  norm          .10000E-03    .28801        .70510E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.3965        .15616E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    324.81        .20589E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.9782        2.9320        .97290E-04   -1.5309    
  10  Prefactor     4.5675        4.5700        .14085E-03   -1.5281    
  11  Prefactor     .10000E-03    90.200        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.332        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.7652        7.6210        .20812E-03   -1.5320    
  14  Prefactor     3.7340        38.721        .20909E-03   -1.5321    
  15  Prefactor     .10000E-03    63.987        .51620E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    2.1118        .96979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          9.8487        9.9377        .12769E-03   -1.5080    
  18  Prefactor     .10000E-03    5.5004        .30814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    5.7015        .31536E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    7.5542        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.188        18.247        .11476E-03   -1.5010    
  22  norm          .10000E-03    1.1147        .13932E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    8.6333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     106.30        86.242        .39003E-04   -1.3642    
  25  norm          .10000E-03    1.8663        .91008E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     2.9227        4.2965        .16253E-03   -1.5366    
  27  norm          .25996        1.9144        .17945E-03   -1.5606    
  28  Prefactor     25.980        26.551        .78595E-04   -1.4688    
  29  Prefactor     .10000E-03    4.8862        .14771E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    195.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.1086        .22120        .21051E-03   -.89476    
  32  Prefactor     .80781        .26096        .29224E-03   -.99441    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.85674e-10
Minuit parameter uncertainties:
  1  12.7807
  2  1.18231e-06
  3  2.86346
  4  1.42363
  5  162.434
  6  2.05487e-08
  7  3.09214e-07
  8  0.00112571
  9  2.93214
  10  4.57033
  11  5.10055e-05
  12  4.9741e-06
  13  7.62295
  14  24.0684
  15  0.00110839
  16  8.87511e-07
  17  9.93936
  18  3.63824e-06
  19  1.51948e-06
  20  3.40113e-06
  21  18.2558
  22  6.4257e-07
  23  1.97201e-06
  24  86.3439
  25  9.93111e-07
  26  4.29692
  27  1.4107
  28  26.5635
  29  4.35433e-06
  30  0.000164393
  31  0.221383
  32  0.261356
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  9.849e+00  9.939e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.738e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
379         beta:  2.503e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  8.078e-01  2.614e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.109e+00  2.214e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 175.788 61.380
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 8.34e-09 +/- 8.42e-09
Energy Flux (Fixed Index): 1.03e-05 +/- 1.04e-05

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) = 4699.15034735
delta logL = 0.324006130073

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4699.14540993
delta logL = 0.328943542825

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    8.8662       1.0000         .10000E-03   10000.    
     2 'alpha     '    .96781       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1122       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80610       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7270E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4699.145     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      193 TOTAL
                     EDM=   .87E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          8.8662        8.9032        .33653E-02   -.31191E-02
   2  alpha         .96807        .76490        .50000       -.13010E-04
   3  Normalizat    1.1122        .18041        .37525E-01    .28081E-05
   4  Prefactor     .80609        .21824        .66124E-01    .14740E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 8.86622
  alpha      = 0.968068
  Normalizat = 1.11221
  Prefactor  = 0.806088
 **********
 **   18 **HESSE 
 **********

 FCN=   4699.145     FROM HESSE     STATUS=OK            29 CALLS      222 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          8.8662        9.9214        .13461E-03   -1.5112    
   2  alpha         .96807        .82756        .26592E-02   -.65956    
   3  Normalizat    1.1122        .21383        .21020E-03   -.89361    
   4  Prefactor     .80609        .25835        .29253E-03   -.99504    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.0495e-08
Minuit parameter uncertainties:
  1  9.92324
  2  0.853896
  3  0.214
  4  0.258742
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/621': 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) = 4699.14540988
delta logL = 0.328943601884

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  8.866e+00  9.923e+00  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  9.681e-01  8.539e-01  0.000e+00  5.000e+00 ( 1.000e+00)
379         beta:  2.503e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
380           Eb:  1.674e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
724    Prefactor:  8.061e-01  2.587e-01  0.000e+00  1.000e+01 ( 1.000e+00)
725        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
726        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
723   Normalization:  1.112e+00  2.140e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.38
Ra Dec: 175.788 61.380
Photon Index (Free Index): 0.97 +/- 0.85
Photon Flux (Free Index): 5.14e-09 +/- 5.54e-09
Energy Flux (Free Index): 2.36e-05 +/- 3.48e-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/621/cmap_HighResolution_240624001_240883201_4FGL_J1143.1+6122_daily_bin5.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.34e-09', energy_flux2='2.36e-05', photon_flux_error='8.42e-09', dlogl='3.29e-01', energy_flux='1.03e-05', photon_flux2='5.14e-09', job_status='DONE', time_completed='2021-09-04 08:02:26.953399', photon_index_error2='0.85', photon_index2='0.97', ts='5.72', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='3.48e-05', EG='1.11', time_epoch_completed='1630767746.95', return_code='0', job_id='621', GAL2='0.81', EG2='1.11', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='5.54e-09', ts2='6.38', photon_index='1.74' WHERE bin_id='5' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:02:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0213>
Subject: Job 621: <4FGL_J1143.1+6122_daily_bin5> in cluster <slac> Done

Job <4FGL_J1143.1+6122_daily_bin5> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep  4 07:46:47 2021
Job was executed on host(s) <bullet0213>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 07:46:49 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:46:49 2021
Terminated at Sat Sep  4 08:02:27 2021
Results reported at Sat Sep  4 08:02:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin5 175.788 61.3801 240624001 240883201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1143.1+6122 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   764.16 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             289.34 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   938 sec.
    Turnaround time :                            940 sec.

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

