/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 82 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 = 7476
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1143.1+6122_daily_bin98
RA = 175.788, Dec = 61.3801
tmin = 264729601, tmax = 264988801
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='768', job_status='RUN', time_executed='2021-09-04 07:48:41.476035', time_epoch_executed='1630766921.48' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='98'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/768

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/768/ft1_4FGL_J1143.1+6122_daily_bin98.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/768/ft1_4FGL_J1143.1+6122_daily_bin98.fits outfile=/scratch/kocevski/768/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin98.fits ra=175.788 dec=61.3801 rad=12.0 tmin=264729601.0 tmax=264988801.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.50
user 1.28
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/768/ft1_filtered_4FGL_J1143.1+6122_daily_bin98.fits" evtable="EVENTS" scfile=/scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits sctable="SC_DATA" outfile=/scratch/kocevski/768/ltcube_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.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/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits
.....................!
real 12.53
user 12.15
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/768/ft1_filtered_4FGL_J1143.1+6122_daily_bin98.fits evtable="EVENTS" scfile=/scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits sctable="SC_DATA" expcube=/scratch/kocevski/768/ltcube_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.fits outfile=/scratch/kocevski/768/expmap_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.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/768/ltcube_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.fits
.....................!
real 191.16
user 186.42
sys 4.32

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/768/ft1_filtered_4FGL_J1143.1+6122_daily_bin98.fits scfile=/scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits outfile=/scratch/kocevski/768/cmap_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/768/ft1_filtered_4FGL_J1143.1+6122_daily_bin98.fits scfile=/scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits outfile=/scratch/kocevski/768/cmap_HighResolution_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.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.37
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/768/ft1_filtered_4FGL_J1143.1+6122_daily_bin98.fits', '/scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits', expMap='/scratch/kocevski/768/expmap_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.fits', expCube='/scratch/kocevski/768/ltcube_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/768/Model_4FGL_J1143.1+6122_daily_bin98.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/768/ft1_filtered_4FGL_J1143.1+6122_daily_bin98.fits
Spacecraft file(s): /scratch/kocevski/768/ft2_4FGL_J1143.1+6122_daily_bin98.fits
Exposure map: /scratch/kocevski/768/expmap_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.fits
Exposure cube: /scratch/kocevski/768/ltcube_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/768/Model_4FGL_J1143.1+6122_daily_bin98.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) = 6507.11158379

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.5194       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.7669       1.0000         .10000E-03   10000.    
     3 'norm      '    .19833E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.9672       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10116E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10026E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .12059E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    129.52       1.0000         .10000E-03   10000.    
     9 'norm      '    8.6145       1.0000         .10000E-03   10000.    
    10 'Prefactor '    4.3928       1.0000         .10000E-03   10000.    
    11 'Prefactor '    3.1170       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.690       1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.365       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    25.808       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.9194       1.0000         .10000E-03   10000.    
    19 'norm      '    .63030E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.450       1.0000         .10000E-03   10000.    
    22 'norm      '    .26545E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    7.8131       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10039E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    4.6609       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    8.7013       1.0000         .10000E-03   10000.    
    28 'Prefactor '    47.502       1.0000         .10000E-03   10000.    
    29 'Prefactor '    5.2298       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .98192       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .81298       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=   6507.022     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     3812 TOTAL
                     EDM=   .83E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.5196        18.070        .54624E-06   -.28746E-04
   2  Prefactor     9.7620        17.592       -.13196E-05   -.20551E-03
   3  norm          .10000E-03    1.4280        .29457E-06** at limit **
   4  norm          2.9673        1.5845       -.32193E-08   -.19598E-03
   5  Prefactor     .10000E-03    63.932        .32334E-06** at limit **
   6  norm          .10000E-03    .29604        .70267E-07** at limit **
   7  norm          .10000E-03    1.1889       -.94264E-07** at limit **
   8  Prefactor     129.42        101.78       -.13970E-05   -.83676E-04
   9  norm          8.6153        2.8779       -.74375E-07   -.23385E-03
  10  Prefactor     4.4039        5.0457        .65118E-06    .25766E-03
  11  Prefactor     3.0017        234.50       -.15664E-04   -.39029E-04
  12  Prefactor     .10000E-03    8.8090       -.23570E-06** at limit **
  13  Prefactor     .10000E-03    3.3169       -.79392E-07** at limit **
  14  Prefactor     26.702        23.996       -.83921E-06   -.75863E-04
  15  Prefactor     38.369        21.375        .74323E-07   -.10989E-04
  16  Prefactor     .10000E-03    1.5603        .15497E-06** at limit **
  17  norm          25.807        15.558       -.21855E-06   -.15101E-03
  18  Prefactor     2.9188        4.4344        .35554E-06    .77800E-04
  19  norm          .10002E-03    2.1410        .19442E-06** at limit **
  20  Prefactor     .10000E-03    2.8291        .14716E-06** at limit **
  21  Prefactor     12.444        16.802       -.21798E-06   -.78154E-04
  22  norm          .34898E-01    .81263       -.24955E-06    .90763E-03
  23  Prefactor     7.8121        14.391        .17679E-07   -.22221E-04
  24  Prefactor     .10000E-03    25.792        .38793E-06** at limit **
  25  norm          4.6609        3.8681        .12533E-06   -.83874E-05
  26  Prefactor     .10000E-03    5.5002        .37144E-06** at limit **
  27  norm          8.7009        3.4109       -.10606E-06   -.19184E-03
  28  Prefactor     47.506        38.880        .47860E-07   -.31403E-05
  29  Prefactor     5.2302        11.547        .37876E-06    .11283E-04
  30  Prefactor     .10000E-03    32.939        .13629E-06** at limit **
  31  Normalizat    .98198        .18735        .46732E-05   -.67792E-03
  32  Prefactor     .81286        .21803       -.84472E-05   -.21765E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.51961
  Prefactor  = 9.76198
  norm       = 0.000100001
  norm       = 2.96733
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 129.419
  norm       = 8.61534
  Prefactor  = 4.40388
  Prefactor  = 3.0017
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 26.7015
  Prefactor  = 38.3689
  Prefactor  = 0.0001
  norm       = 25.8068
  Prefactor  = 2.91878
  norm       = 0.000100024
  Prefactor  = 0.0001
  Prefactor  = 12.4443
  norm       = 0.0348979
  Prefactor  = 7.81213
  Prefactor  = 0.0001
  norm       = 4.66093
  Prefactor  = 0.0001
  norm       = 8.7009
  Prefactor  = 47.5062
  Prefactor  = 5.23016
  Prefactor  = 0.0001
  Normalizat = 0.98198
  Prefactor  = 0.812861
 **********
 **   18 **HESSE 
 **********

 FCN=   6507.022     FROM HESSE     STATUS=OK           667 CALLS     4479 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.5196        18.028        .14625E-03   -1.5159    
   2  Prefactor     9.7620        15.684        .12822E-03   -1.5083    
   3  norm          .10000E-03    3.8453        .16333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.9673        1.5828        .71890E-04   -1.5363    
   5  Prefactor     .10000E-03    63.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    .52179        .82326E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.9489        .14516E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     129.42        102.02        .17688E-03   -1.3428    
   9  norm          8.6153        2.8785        .75366E-04   -1.5121    
  10  Prefactor     4.4039        4.3597        .15851E-03   -1.5288    
  11  Prefactor     3.0017        238.51        .22966E-03   -1.5361    
  12  Prefactor     .10000E-03    8.8208        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    3.3570        .14333E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.702        23.927        .77543E-04   -1.4674    
  15  Prefactor     38.369        21.387        .64709E-04   -1.4468    
  16  Prefactor     .10000E-03    1.5697        .98387E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          25.807        15.388        .78854E-04   -1.4692    
  18  Prefactor     2.9188        4.4395        .20058E-03   -1.5366    
  19  norm          .10002E-03    39.363        .22061E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8346        .13245E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.444        16.703        .11353E-03   -1.5002    
  22  norm          .34898E-01    26.723        .13464E-02   -1.5671    
  23  Prefactor     7.8121        14.409        .14345E-03   -1.5149    
  24  Prefactor     .10000E-03    25.812        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          4.6609        3.8701        .13999E-03   -1.5276    
  26  Prefactor     .10000E-03    5.5686        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          8.7009        3.3937        .84324E-04   -1.5118    
  28  Prefactor     47.506        38.921        .58179E-04   -1.4328    
  29  Prefactor     5.2302        11.533        .17577E-03   -1.5251    
  30  Prefactor     .10000E-03    32.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .98198        .19709        .21975E-03   -.93637    
  32  Prefactor     .81286        .22134        .29369E-03   -.99256    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.30978e-08
Minuit parameter uncertainties:
  1  18.0411
  2  15.6905
  3  0.000122583
  4  1.58286
  5  0.000161138
  6  2.49183e-07
  7  0.000174295
  8  102.162
  9  2.87857
  10  4.36003
  11  53.7363
  12  4.55512e-06
  13  5.24977e-06
  14  23.936
  15  21.3909
  16  3.04048e-06
  17  15.3906
  18  4.43998
  19  0.00195197
  20  8.46304e-06
  21  16.7088
  22  1.92949
  23  14.4151
  24  7.29715e-05
  25  3.87032
  26  2.35479e-05
  27  3.39381
  28  38.9421
  29  11.538
  30  4.21207e-05
  31  0.197235
  32  0.221579
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  2.581e+01  1.539e+01  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.129e-01  2.216e-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:  9.820e-01  1.972e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.32
Ra Dec: 175.788 61.380
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 2.19e-08 +/- 1.30e-08
Energy Flux (Fixed Index): 2.70e-05 +/- 1.61e-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) = 6506.55488174
delta logL = 0.46679207796

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6506.53796718
delta logL = 0.483706637267

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.573       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2611       1.0000          .0000       5.0000    
     3 'Normalizat'    .97317       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .81086       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=   6506.538     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      277 TOTAL
                     EDM=   .25E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.573        14.440        .86237E-04   -.18934E-03
   2  alpha         2.2611        .51642        .10430E-01   -.10944E-04
   3  Normalizat    .97317        .17625        .22049E-03   -.37072E-04
   4  Prefactor     .81086        .21672        .29369E-03   -.14903E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 21.5732
  alpha      = 2.26106
  Normalizat = 0.973167
  Prefactor  = 0.810863
 **********
 **   18 **HESSE 
 **********

 FCN=   6506.538     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .23E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.573        14.009        .17247E-04   -1.4779    
   2  alpha         2.2611        .50112        .41719E-03   -.95721E-01
   3  Normalizat    .97317        .17634        .88197E-05   -.93935    
   4  Prefactor     .81086        .21689        .11747E-04   -.99329    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.25019e-11
Minuit parameter uncertainties:
  1  14.0111
  2  0.504566
  3  0.176444
  4  0.217122
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/768': 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) = 6506.53796716
delta logL = 0.483706651402

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  2.157e+01  1.401e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  2.261e+00  5.046e-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.109e-01  2.171e-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:  9.732e-01  1.764e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.25
Ra Dec: 175.788 61.380
Photon Index (Free Index): 2.26 +/- 0.50
Photon Flux (Free Index): 3.66e-08 +/- 2.43e-08
Energy Flux (Free Index): 2.17e-05 +/- 1.22e-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/768/cmap_HighResolution_264729601_264988801_4FGL_J1143.1+6122_daily_bin98.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.19e-08', energy_flux2='2.17e-05', photon_flux_error='1.30e-08', dlogl='4.84e-01', energy_flux='2.70e-05', photon_flux2='3.66e-08', job_status='DONE', time_completed='2021-09-04 08:03:30.150973', photon_index_error2='0.50', photon_index2='2.26', ts='9.32', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.98', time_epoch_completed='1630767810.15', return_code='0', job_id='768', GAL2='0.81', EG2='0.97', return_code2='0', energy_flux_error='1.61e-05', photon_flux_error2='2.43e-08', ts2='10.25', photon_index='1.74' WHERE bin_id='98' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:03:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0237>
Subject: Job 768: <4FGL_J1143.1+6122_daily_bin98> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin98 175.788 61.3801 264729601 264988801 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 :                                   886.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             311.43 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   990 sec.
    Turnaround time :                            992 sec.

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

