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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin838
RA = 175.788, Dec = 61.3801
tmin = 456537601, tmax = 456796801
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='5385', job_status='RUN', time_executed='2021-09-04 08:01:29.258955', time_epoch_executed='1630767689.26' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='838'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5385

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5385/ft1_4FGL_J1143.1+6122_daily_bin838.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5385/ft1_4FGL_J1143.1+6122_daily_bin838.fits outfile=/scratch/kocevski/5385/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin838.fits ra=175.788 dec=61.3801 rad=12.0 tmin=456537601.0 tmax=456796801.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.31
user 5.03
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.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/5385/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin838.fits evtable="EVENTS" outfile="/scratch/kocevski/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.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.53
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.fits" evtable="EVENTS" scfile=/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits sctable="SC_DATA" outfile=/scratch/kocevski/5385/ltcube_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.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/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits
.....................!
real 11.99
user 11.66
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.fits evtable="EVENTS" scfile=/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits sctable="SC_DATA" expcube=/scratch/kocevski/5385/ltcube_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.fits outfile=/scratch/kocevski/5385/expmap_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.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/5385/ltcube_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.fits
.....................!
real 189.49
user 184.85
sys 4.27

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/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.fits scfile=/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits outfile=/scratch/kocevski/5385/cmap_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.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 1.19
user 0.38
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.fits scfile=/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits outfile=/scratch/kocevski/5385/cmap_HighResolution_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.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.54
user 0.38
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.fits', '/scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits', expMap='/scratch/kocevski/5385/expmap_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.fits', expCube='/scratch/kocevski/5385/ltcube_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/5385/Model_4FGL_J1143.1+6122_daily_bin838.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/5385/ft1_filtered_4FGL_J1143.1+6122_daily_bin838.fits
Spacecraft file(s): /scratch/kocevski/5385/ft2_4FGL_J1143.1+6122_daily_bin838.fits
Exposure map: /scratch/kocevski/5385/expmap_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.fits
Exposure cube: /scratch/kocevski/5385/ltcube_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/5385/Model_4FGL_J1143.1+6122_daily_bin838.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 3332.84704887

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.5617       1.0000         .10000E-03   10000.    
     3 'norm      '    5.0088       1.0000         .10000E-03   10000.    
     4 'norm      '    2.7763       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .92587       1.0000         .10000E-03   10000.    
     7 'norm      '    5.8546       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4181       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16239E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    76.017       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .83578E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.2424       1.0000         .10000E-03   10000.    
    17 'norm      '    .10055E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .13618E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    14.733       1.0000         .10000E-03   10000.    
    21 'Prefactor '    10.020       1.0000         .10000E-03   10000.    
    22 'norm      '    3.0135       1.0000         .10000E-03   10000.    
    23 'Prefactor '    92.516       1.0000         .10000E-03   10000.    
    24 'Prefactor '    52.497       1.0000         .10000E-03   10000.    
    25 'norm      '    14.376       1.0000         .10000E-03   10000.    
    26 'Prefactor '    4.3699       1.0000         .10000E-03   10000.    
    27 'norm      '    9.4635       1.0000         .10000E-03   10000.    
    28 'Prefactor '    46.392       1.0000         .10000E-03   10000.    
    29 'Prefactor '    19.830       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .54933       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0920       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   3332.813     FROM MIGRAD    STATUS=CONVERGED   1556 CALLS     5864 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    10.187        .17992E-02** at limit **
   2  Prefactor     2.5664        80.766        .25506E-03    .14263E-05
   3  norm          5.0088        3.8821        .83937E-04   -.59731E-04
   4  norm          2.7765        2.7792        .93204E-04   -.20675E-04
   5  Prefactor     .10000E-03    205.67        .18142E-02** at limit **
   6  norm          .92588        .63531        .35360E-04    .65116E-03
   7  norm          5.8539        2.7351        .29551E-03    .93000E-03
   8  Prefactor     .10000E-03    80.868        .18142E-02** at limit **
   9  norm          3.4183        3.6831        .10930E-03   -.18202E-04
  10  Prefactor     .10001E-03    15.178        .20613E-02** at limit **
  11  Prefactor     .10000E-03    68.556        .18142E-02** at limit **
  12  Prefactor     76.020        55.890        .46054E-04   -.81486E-04
  13  Prefactor     .10000E-03    59.411        .36285E-03** at limit **
  14  Prefactor     .10000E-03    106.56        .18142E-02** at limit **
  15  Prefactor     .92947E-01    38.464        .88151E-01    .56398E-04
  16  Prefactor     2.2417        2.9790        .11156E-03   -.79487E-05
  17  norm          .10001E-03    133.17        .36285E-03** at limit **
  18  Prefactor     .10000E-03    3.1184        .99262E-03** at limit **
  19  norm          .10013E-03    87.028        .42097E-02** at limit **
  20  Prefactor     14.749        35.606        .10435E-03   -.26160E-03
  21  Prefactor     9.9756        203.76        .12658E-03   -.60218E-04
  22  norm          3.0140        3.4862        .11006E-03   -.15500E-03
  23  Prefactor     92.514        45.768        .41781E-04   -.11771E-03
  24  Prefactor     52.496        155.43        .55355E-04   -.25097E-04
  25  norm          14.375        7.1805        .10424E-03   -.13094E-03
  26  Prefactor     4.3696        7.9526        .96337E-03   -.14179E-03
  27  norm          9.4636        5.2231        .87596E-04   -.74627E-04
  28  Prefactor     46.410        63.881        .58868E-04   -.14967E-04
  29  Prefactor     19.830        16.279        .89944E-04    .26543E-05
  30  Prefactor     .10000E-03    217.76        .18142E-02** at limit **
  31  Normalizat    .54958        .28009        .29606E-03   -.10581E-03
  32  Prefactor     1.0917        .31486        .25876E-03   -.21722E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 2.56642
  norm       = 5.00883
  norm       = 2.77646
  Prefactor  = 0.000100001
  norm       = 0.925881
  norm       = 5.85393
  Prefactor  = 0.0001
  norm       = 3.41829
  Prefactor  = 0.000100008
  Prefactor  = 0.000100001
  Prefactor  = 76.0203
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.0929471
  Prefactor  = 2.2417
  norm       = 0.000100006
  Prefactor  = 0.0001
  norm       = 0.000100126
  Prefactor  = 14.7489
  Prefactor  = 9.97558
  norm       = 3.01404
  Prefactor  = 92.5138
  Prefactor  = 52.496
  norm       = 14.3754
  Prefactor  = 4.36965
  norm       = 9.46365
  Prefactor  = 46.41
  Prefactor  = 19.83
  Prefactor  = 0.000100005
  Normalizat = 0.549579
  Prefactor  = 1.09167
 **********
 **   18 **HESSE 
 **********

 FCN=   3332.813     FROM HESSE     STATUS=OK           635 CALLS     6499 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    10.188        .35985E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.5664        80.547        .10203E-04   -1.5388    
   3  norm          5.0088        3.8783        .33575E-05   -1.5260    
   4  norm          2.7765        2.7791        .37282E-05   -1.5375    
   5  Prefactor     .10000E-03    205.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .92588        .63537        .70720E-05   -1.5516    
   7  norm          5.8539        2.7309        .11821E-04   -1.5224    
   8  Prefactor     .10000E-03    80.868        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4183        3.6831        .43720E-05   -1.5338    
  10  Prefactor     .10001E-03    15.185        .41227E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    68.558        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     76.020        55.889        .92109E-05   -1.3962    
  13  Prefactor     .10000E-03    59.413        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    106.56        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .92947E-01    35.209        .93263E-01   -1.5647    
  16  Prefactor     2.2417        2.9787        .44624E-05   -1.5409    
  17  norm          .10001E-03    133.18        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.1186        .19852E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10013E-03    87.260        .84194E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     14.749        35.459        .20870E-04   -1.4940    
  21  Prefactor     9.9756        203.18        .50634E-05   -1.5076    
  22  norm          3.0140        3.4860        .44022E-05   -1.5361    
  23  Prefactor     92.514        45.765        .83562E-05   -1.3781    
  24  Prefactor     52.496        155.35        .11071E-04   -1.4258    
  25  norm          14.375        7.1803        .41694E-05   -1.4949    
  26  Prefactor     4.3696        7.9502        .38535E-04   -1.5290    
  27  norm          9.4636        5.2227        .35038E-05   -1.5093    
  28  Prefactor     46.410        63.887        .23547E-05   -1.4344    
  29  Prefactor     19.830        16.278        .35978E-05   -1.4817    
  30  Prefactor     .10000E-03    217.80        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .54958        .28024        .11843E-04   -1.1017    
  32  Prefactor     1.0917        .31504        .51752E-04   -.89733    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69887e-09
Minuit parameter uncertainties:
  1  8.72704e-06
  2  28.7973
  3  3.87849
  4  2.77923
  5  0.00101423
  6  0.635372
  7  2.73094
  8  0.000330916
  9  3.68333
  10  0.000715299
  11  0.000508832
  12  55.9277
  13  7.72036e-05
  14  0.00061749
  15  3.61827
  16  2.97893
  17  0.00179944
  18  7.86483e-06
  19  0.00664446
  20  35.5094
  21  90.3949
  22  3.4862
  23  45.7824
  24  156.57
  25  7.18078
  26  7.95214
  27  5.22299
  28  63.9811
  29  16.2821
  30  0.00205478
  31  0.280961
  32  0.315583
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  1.799e-03  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:  1.092e+00  3.156e-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:  5.496e-01  2.810e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 175.788 61.380
Photon Flux Upper Limit: 8.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5385/likelihoodResults_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.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) = 3332.81330361
delta logL = -3.56859932253e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3332.81326802
delta logL = -9.46693035075e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7159       1.0000          .0000       5.0000    
     3 'Normalizat'    .54958       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0917       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=   3332.087     FROM MIGRAD    STATUS=CONVERGED    140 CALLS      316 TOTAL
                     EDM=   .10E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.3057        50.986        .90712E-02   -.70682E-04
   2  alpha         4.0132        4.4933        .29122        .45141E-04
   3  Normalizat    .47934        .68229E-01    .71218E-01    .19578E-03
   4  Prefactor     1.1256        .74663E-01    .57608E-01    .22842E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.3057
  alpha      = 4.01318
  Normalizat = 0.47934
  Prefactor  = 1.12564
 **********
 **   18 **HESSE 
 **********

 FCN=   3332.087     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      347 TOTAL
                     EDM=   .12E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.3057        97.005        .80665E-04   -1.5404    
   2  alpha         4.0132        3.9033        .11676E-01    .65011    
   3  Normalizat    .47934        .34906        .31529E-03   -1.1338    
   4  Prefactor     1.1256        .37534        .25472E-03   -.88651    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.23971e-08
Minuit parameter uncertainties:
  1  29.9623
  2  6.46357
  3  0.350669
  4  0.376232
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5385': 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) = 3332.08705258
delta logL = 0.726215349735

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  2.306e+00  2.996e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  4.013e+00  6.464e+00  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:  1.126e+00  3.762e-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:  4.793e-01  3.507e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.50
Ra Dec: 175.788 61.380
Photon Index (Free Index): 4.01 +/- 6.46
Photon Flux (Free Index): 1.40e-07 +/- 3.24e-07
Energy Flux (Free Index): 2.59e-05 +/- 2.57e-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/5385/cmap_HighResolution_456537601_456796801_4FGL_J1143.1+6122_daily_bin838.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-04', comment='SUCCESS', energy_flux2='2.59e-05', dlogl='7.26e-01', photon_flux2='1.40e-07', job_status='DONE', time_completed='2021-09-04 08:15:03.170541', photon_index_error2='6.46', photon_index2='4.01', ts='-0.00', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', photon_flux_upper_limit='8.59e-08', energy_flux_error2='2.57e-05', EG='0.55', time_epoch_completed='1630768503.17', return_code='0', job_id='5385', GAL2='1.13', EG2='0.48', return_code2='102', photon_flux_error2='3.24e-07', ts2='1.50', photon_index='1.74' WHERE bin_id='838' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:15:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 5385: <4FGL_J1143.1+6122_daily_bin838> in cluster <slac> Done

Job <4FGL_J1143.1+6122_daily_bin838> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Sep  4 08:01:18 2021
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 08:01:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 08:01:19 2021
Terminated at Sat Sep  4 08:15:03 2021
Results reported at Sat Sep  4 08:15:03 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin838 175.788 61.3801 456537601 456796801 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 :                                   810.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   824 sec.
    Turnaround time :                            825 sec.

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

