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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin75
RA = 175.788, Dec = 61.3801
tmin = 258768001, tmax = 259027201
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='727', job_status='RUN', time_executed='2021-09-04 07:48:32.638289', time_epoch_executed='1630766912.64' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='75'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727

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

Retrieving the FT1 file...

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

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

Retrieving 31 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727/ft1_4FGL_J1143.1+6122_daily_bin75.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727/ft2_4FGL_J1143.1+6122_daily_bin75.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727/ft1_4FGL_J1143.1+6122_daily_bin75.fits outfile=/scratch/kocevski/727/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin75.fits ra=175.788 dec=61.3801 rad=12.0 tmin=258768001.0 tmax=259027201.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.15
user 0.95
sys 0.17

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727/ft1_filtered_4FGL_J1143.1+6122_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/727/ft2_4FGL_J1143.1+6122_daily_bin75.fits sctable="SC_DATA" expcube=/scratch/kocevski/727/ltcube_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.fits outfile=/scratch/kocevski/727/expmap_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.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/727/ltcube_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.fits
.....................!
real 191.81
user 187.16
sys 4.00

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/727/ft1_filtered_4FGL_J1143.1+6122_daily_bin75.fits scfile=/scratch/kocevski/727/ft2_4FGL_J1143.1+6122_daily_bin75.fits outfile=/scratch/kocevski/727/cmap_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.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/727/ft1_filtered_4FGL_J1143.1+6122_daily_bin75.fits scfile=/scratch/kocevski/727/ft2_4FGL_J1143.1+6122_daily_bin75.fits outfile=/scratch/kocevski/727/cmap_HighResolution_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.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/727/ft1_filtered_4FGL_J1143.1+6122_daily_bin75.fits evtable="EVENTS" scfile=/scratch/kocevski/727/ft2_4FGL_J1143.1+6122_daily_bin75.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727/Model_4FGL_J1143.1+6122_daily_bin75.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/727/ft1_filtered_4FGL_J1143.1+6122_daily_bin75.fits.....................!
real 37.55
user 36.23
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.837       1.0000         .10000E-03   10000.    
     3 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    4.1472       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2480       1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    9.7462       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.2313       1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.975       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    10.755       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .93509       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11312E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7643       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10253E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    5.9537       1.0000         .10000E-03   10000.    
    28 'Prefactor '    14.979       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.2154       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2510       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .67772       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=   3220.883     FROM MIGRAD    STATUS=CONVERGED    850 CALLS     4337 TOTAL
                     EDM=   .12E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.595        .12040E-06** at limit **
   2  Prefactor     35.837        29.967        .36714E-06   -.14126E-04
   3  norm          .10000E-03    3.1986        .25844E-07** at limit **
   4  norm          4.1473        3.1186        .62960E-07   -.18091E-04
   5  Prefactor     .10000E-03    107.05       -.15806E-06** at limit **
   6  norm          1.2479        .87290        .27050E-07    .14845E-04
   7  norm          .10000E-03    1.6953        .25602E-07** at limit **
   8  Prefactor     .10000E-03    73.468        .98049E-06** at limit **
   9  norm          9.7463        4.4806        .19974E-07   -.64431E-04
  10  Prefactor     .10000E-03    2.6557        .17881E-07** at limit **
  11  Prefactor     .10000E-03    25.263        .53562E-08** at limit **
  12  Prefactor     .10000E-03    24.147        .52264E-06** at limit **
  13  Prefactor     2.2324        11.825        .25367E-05   -.53136E-05
  14  Prefactor     12.006        59.383       -.42425E-06    .24530E-04
  15  Prefactor     .10000E-03    20.091        .48964E-06** at limit **
  16  Prefactor     10.755        6.5848        .10787E-06   -.16863E-04
  17  norm          .10000E-03    7.4947        .15343E-06** at limit **
  18  Prefactor     .10000E-03    4.1706        .98061E-08** at limit **
  19  norm          .10000E-03    4.4233        .32118E-06** at limit **
  20  Prefactor     .93764        9.0901        .28781E-06    .10794E-05
  21  Prefactor     .10000E-03    106.52       -.10539E-05** at limit **
  22  norm          3.7645        2.9167        .39951E-07   -.47792E-04
  23  Prefactor     .10000E-03    54.829        .17045E-06** at limit **
  24  Prefactor     .10000E-03    28.877       -.60661E-06** at limit **
  25  norm          .10000E-03    8.2647       -.61292E-07** at limit **
  26  Prefactor     .10000E-03    15.054       -.10186E-05** at limit **
  27  norm          5.9532        3.8235       -.48506E-06   -.27235E-04
  28  Prefactor     14.962        39.377       -.17604E-06   -.38116E-04
  29  Prefactor     6.2103        15.897        .56032E-05   -.81112E-05
  30  Prefactor     .10000E-03    114.23       -.75364E-06** at limit **
  31  Normalizat    1.2508        .24241       -.24760E-05    .13274E-04
  32  Prefactor     .67794        .26702        .12584E-05   -.73404E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 35.8373
  norm       = 0.0001
  norm       = 4.14728
  Prefactor  = 0.0001
  norm       = 1.24793
  norm       = 0.0001
  Prefactor  = 0.000100002
  norm       = 9.74634
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.23245
  Prefactor  = 12.006
  Prefactor  = 0.000100001
  Prefactor  = 10.7548
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.937638
  Prefactor  = 0.0001
  norm       = 3.7645
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.95323
  Prefactor  = 14.9623
  Prefactor  = 6.21031
  Prefactor  = 0.000100001
  Normalizat = 1.25076
  Prefactor  = 0.677942
 **********
 **   18 **HESSE 
 **********

 FCN=   3220.883     FROM HESSE     STATUS=OK           655 CALLS     4992 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.596        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.837        29.842        .66945E-04   -1.4510    
   3  norm          .10000E-03    3.2206        .98423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          4.1473        3.1167        .84097E-04   -1.5301    
   5  Prefactor     .10000E-03    107.05        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.2479        .86759        .42912E-04   -1.5485    
   7  norm          .10000E-03    1.7422        .14407E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    73.452        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          9.7463        4.4814        .78913E-04   -1.5083    
  10  Prefactor     .10000E-03    2.6638        .90296E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    25.265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    24.182        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.2324        11.613        .27522E-03   -1.5409    
  14  Prefactor     12.006        58.735        .11576E-03   -1.5015    
  15  Prefactor     .10000E-03    20.115        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     10.755        6.5853        .11030E-03   -1.5052    
  17  norm          .10000E-03    7.4963        .15176E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    4.1928        .11318E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    4.4446        .11644E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .93764        31.551        .32123E-02   -1.5514    
  21  Prefactor     .10000E-03    108.33        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7645        2.9215        .81858E-04   -1.5320    
  23  Prefactor     .10000E-03    55.909        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    28.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    8.4946        .31842E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    15.436        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          5.9532        3.8182        .82950E-04   -1.5220    
  28  Prefactor     14.962        39.394        .10349E-03   -1.4934    
  29  Prefactor     6.2103        15.926        .80510E-03   -1.5210    
  30  Prefactor     .10000E-03    114.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.2508        .28015        .21322E-03   -.85048    
  32  Prefactor     .67794        .31051        .32822E-03   -1.0440    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.72168e-10
Minuit parameter uncertainties:
  1  3.99376e-05
  2  29.8548
  3  5.60678e-07
  4  3.11685
  5  0.000164852
  6  0.867598
  7  3.61944e-06
  8  0.000840388
  9  4.48152
  10  3.14229e-06
  11  3.92466e-06
  12  8.50463e-05
  13  10.1864
  14  53.1943
  15  0.000210483
  16  6.58575
  17  6.05197e-06
  18  5.6282e-06
  19  5.11543e-06
  20  10.8837
  21  0.00016453
  22  2.9216
  23  0.000182482
  24  0.000307752
  25  1.00362e-05
  26  0.000138595
  27  3.81834
  28  39.4623
  29  15.9372
  30  0.000711317
  31  0.28049
  32  0.311301
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  6.052e-06  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:  6.779e-01  3.113e-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.251e+00  2.805e-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: 3.57e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.42e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727/likelihoodResults_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.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): 102
logL (Free Index) = 3220.88321962
delta logL = -0.000589122263136

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3220.88263052
delta logL = -2.10775397136e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7404       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2508       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .67789       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=   3220.799     FROM MIGRAD    STATUS=CONVERGED    179 CALLS      331 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .32542        13.557        .15181E-01    .11857E-02
   2  alpha         4.1768        4.5624        .50000        .42022E-04
   3  Normalizat    1.2181        .33384E-01    .21323E-03    .65719E-04
   4  Prefactor     .69621        .39155E-01    .32822E-03    .27710E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.325419
  alpha      = 4.17679
  Normalizat = 1.21813
  Prefactor  = 0.696215
 **********
 **   18 **HESSE 
 **********

 FCN=   3220.799     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      362 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .32542        89.961        .71908E-03   -1.5594    
   2  alpha         4.1768        3.3618        .24509E-01    7.0184    
   3  Normalizat    1.2181        .18938        .42645E-04   -.86044    
   4  Prefactor     .69621        .21472        .13129E-04   -1.0368    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.24528e-09
Minuit parameter uncertainties:
  1  10.8361
  2  13.0488
  3  0.189484
  4  0.214973
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727': 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) = 3220.79854646
delta logL = 0.0840840399833

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  3.254e-01  1.084e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  4.177e+00  1.305e+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:  6.962e-01  2.150e-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.218e+00  1.895e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 175.788 61.380

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/727/cmap_HighResolution_258768001_259027201_4FGL_J1143.1+6122_daily_bin75.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.42e-05', job_status='DONE', photon_flux_upper_limit='3.57e-08', time_completed='2021-09-04 08:00:10.587651', job_id='727', GAL2='0.70', fit_tolerance='1e-08', EG2='1.22', EG='1.25', time_epoch_completed='1630767610.59', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.68', dlogl='8.41e-02', ts2='0.18', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='75' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:00:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0228>
Subject: Job 727: <4FGL_J1143.1+6122_daily_bin75> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin75 175.788 61.3801 258768001 259027201 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 :                                   697.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   793 sec.
    Turnaround time :                            796 sec.

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

