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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin1156
RA = 175.788, Dec = 61.3801
tmin = 538963201, tmax = 539222401
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='7233', job_status='RUN', time_executed='2021-09-04 08:09:26.962132', time_epoch_executed='1630768166.96' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='1156'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/7233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/7233/ft1_4FGL_J1143.1+6122_daily_bin1156.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/7233/ft2_4FGL_J1143.1+6122_daily_bin1156.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/7233/ft1_4FGL_J1143.1+6122_daily_bin1156.fits outfile=/scratch/kocevski/7233/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin1156.fits ra=175.788 dec=61.3801 rad=12.0 tmin=538963201.0 tmax=539222401.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 4.68
user 4.34
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/7233/ft2_4FGL_J1143.1+6122_daily_bin1156.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/7233/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin1156.fits evtable="EVENTS" outfile="/scratch/kocevski/7233/ft1_filtered_4FGL_J1143.1+6122_daily_bin1156.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.34
sys 0.14

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/7233/ft1_filtered_4FGL_J1143.1+6122_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/7233/ft2_4FGL_J1143.1+6122_daily_bin1156.fits sctable="SC_DATA" expcube=/scratch/kocevski/7233/ltcube_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.fits outfile=/scratch/kocevski/7233/expmap_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.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/7233/ltcube_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.fits
.....................!
real 190.34
user 185.63
sys 4.33

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/7233/ft1_filtered_4FGL_J1143.1+6122_daily_bin1156.fits scfile=/scratch/kocevski/7233/ft2_4FGL_J1143.1+6122_daily_bin1156.fits outfile=/scratch/kocevski/7233/cmap_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.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/7233/ft1_filtered_4FGL_J1143.1+6122_daily_bin1156.fits scfile=/scratch/kocevski/7233/ft2_4FGL_J1143.1+6122_daily_bin1156.fits outfile=/scratch/kocevski/7233/cmap_HighResolution_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.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/7233/ft1_filtered_4FGL_J1143.1+6122_daily_bin1156.fits evtable="EVENTS" scfile=/scratch/kocevski/7233/ft2_4FGL_J1143.1+6122_daily_bin1156.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/7233/Model_4FGL_J1143.1+6122_daily_bin1156.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/7233/ft1_filtered_4FGL_J1143.1+6122_daily_bin1156.fits......................!
real 39.49
user 38.11
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    40.151       1.0000         .10000E-03   10000.    
     3 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.2882       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10188E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .87980       1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .22487E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    2.5700       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .16368E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    188.63       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    21.087       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10075E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .16010E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    3.7833       1.0000         .10000E-03   10000.    
    23 'Prefactor '    28.442       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    13.160       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12459E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .10247E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    37.136       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .92065       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .78694       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=   3223.359     FROM MIGRAD    STATUS=CONVERGED    876 CALLS     4497 TOTAL
                     EDM=   .75E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    14.062        .64555E-07** at limit **
   2  Prefactor     40.120        35.771       -.13234E-05   -.14263E-03
   3  norm          .10000E-03    4.2391       -.17922E-05** at limit **
   4  norm          1.2881        1.7076        .30380E-07    .16229E-03
   5  Prefactor     .10000E-03    110.67       -.44579E-06** at limit **
   6  norm          .87971        .70715       -.40064E-06   -.10492E-02
   7  norm          .10000E-03    2.2818        .63016E-06** at limit **
   8  Prefactor     .10001E-03    170.18        .70324E-06** at limit **
   9  norm          2.5693        3.0412        .66732E-07    .22476E-03
  10  Prefactor     .10000E-03    3.9772        .25421E-06** at limit **
  11  Prefactor     188.86        130.25       -.49173E-06   -.94752E-05
  12  Prefactor     .10000E-03    44.145        .29199E-06** at limit **
  13  Prefactor     21.085        15.999        .33329E-06   -.15807E-04
  14  Prefactor     .10000E-03    23.147        .57019E-07** at limit **
  15  Prefactor     .10000E-03    18.033        .57522E-07** at limit **
  16  Prefactor     .10000E-03    1.4381        .23408E-07** at limit **
  17  norm          .10000E-03    6.0904       -.26155E-07** at limit **
  18  Prefactor     .10001E-03    23.161        .76994E-05** at limit **
  19  norm          .10000E-03    2.3395        .24063E-07** at limit **
  20  Prefactor     .10000E-03    4.3768        .28363E-07** at limit **
  21  Prefactor     .10000E-03    16.721       -.10262E-07** at limit **
  22  norm          3.7838        3.4312        .10620E-06    .98828E-04
  23  Prefactor     28.440        22.268        .19640E-06    .44909E-04
  24  Prefactor     .10000E-03    42.898        .10290E-06** at limit **
  25  norm          13.160        6.2209        .37818E-07    .62304E-04
  26  Prefactor     .10012E-03    10.941       -.28091E-05** at limit **
  27  norm          .10000E-03    2.2016       -.67944E-08** at limit **
  28  Prefactor     .10000E-03    18.647        .59928E-07** at limit **
  29  Prefactor     .10000E-03    5.9438       -.26734E-08** at limit **
  30  Prefactor     37.197        81.105        .13441E-06    .91344E-05
  31  Normalizat    .92061        .21314       -.26987E-05   -.18634E-03
  32  Prefactor     .78688        .24137        .20784E-05    .16961E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 40.1202
  norm       = 0.000100001
  norm       = 1.28807
  Prefactor  = 0.0001
  norm       = 0.879705
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 2.5693
  Prefactor  = 0.000100001
  Prefactor  = 188.855
  Prefactor  = 0.000100001
  Prefactor  = 21.0846
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100013
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.7838
  Prefactor  = 28.4398
  Prefactor  = 0.0001
  norm       = 13.1603
  Prefactor  = 0.000100116
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 37.1967
  Normalizat = 0.92061
  Prefactor  = 0.786881
 **********
 **   18 **HESSE 
 **********

 FCN=   3223.359     FROM HESSE     STATUS=OK           657 CALLS     5154 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    14.076        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     40.120        32.117        .63259E-04   -1.4440    
   3  norm          .10000E-03    6.0806        .18150E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.2881        1.6846        .83110E-04   -1.5481    
   5  Prefactor     .10000E-03    110.72        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .87971        .70380        .41462E-04   -1.5520    
   7  norm          .10000E-03    3.5363        .15167E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    170.43        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          2.5693        3.0378        .10444E-03   -1.5387    
  10  Prefactor     .10000E-03    12.344        .19444E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     188.86        130.28        .14701E-03   -1.2951    
  12  Prefactor     .10000E-03    44.271        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     21.085        16.051        .87224E-04   -1.4789    
  14  Prefactor     .10000E-03    23.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.095        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.4427        .66488E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    6.0914        .13685E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10001E-03    33.275        .33322E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    2.3488        .84806E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.3860        .11601E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    16.762        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          3.7838        3.4237        .95788E-04   -1.5319    
  23  Prefactor     28.440        22.309        .75122E-04   -1.4641    
  24  Prefactor     .10000E-03    42.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          13.160        6.2227        .93928E-04   -1.4982    
  26  Prefactor     .10012E-03    61.072        .30979E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    2.2677        .16299E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    18.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.9606        .13517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     37.197        81.136        .65767E-04   -1.4487    
  31  Normalizat    .92061        .24831        .21745E-03   -.95740    
  32  Prefactor     .78688        .27759        .27397E-03   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.59324e-09
Minuit parameter uncertainties:
  1  2.36745e-05
  2  32.1308
  3  0.000148403
  4  1.68467
  5  2.75718e-05
  6  0.703808
  7  2.46761e-05
  8  0.0019225
  9  3.03799
  10  0.000214909
  11  130.484
  12  0.000429911
  13  16.0539
  14  5.10748e-05
  15  5.439e-05
  16  3.26044e-06
  17  1.6865e-06
  18  0.00132051
  19  7.91494e-06
  20  9.77595e-06
  21  2.5816e-05
  22  3.42387
  23  22.3155
  24  6.43533e-05
  25  6.22303
  26  0.00531763
  27  3.45744e-06
  28  1.77152e-05
  29  1.4264e-05
  30  81.3782
  31  0.248615
  32  0.278082
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  1.687e-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:  7.869e-01  2.781e-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.206e-01  2.486e-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: 2.99e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.70e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/7233/likelihoodResults_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.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) = 3223.35925943
delta logL = -0.000671240001338

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 3223.35858822
delta logL = -2.31857484323e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.7290       1.0000          .0000       5.0000    
     3 'Normalizat'    .92058       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78687       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=   3223.359     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      234 TOTAL
                     EDM=   .80E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    270.63        .13737E-01** at limit **
   2  alpha         1.3722        4.0704        .17579       -.30428E-07
   3  Normalizat    .92062        .34015E-01    .21746E-03   -.54110E-05
   4  Prefactor     .78687        .40129E-01    .27397E-03   -.79881E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.37216
  Normalizat = 0.920617
  Prefactor  = 0.786872
 **********
 **   18 **HESSE 
 **********

 FCN=   3223.359     FROM HESSE     STATUS=OK            23 CALLS      257 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.5744        .14210E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3722        3.0846        .70316E-02   -.46804    
   3  Normalizat    .92062        .23180        .86982E-05   -.95739    
   4  Prefactor     .78687        .27329        .10959E-04   -1.0021    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15255e-11
Minuit parameter uncertainties:
  1  1.3474e-06
  2  335.367
  3  0.23205
  4  0.273764
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/7233': 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) = 3223.3585876
delta logL = 5.94568064116e-07

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  1.347e-06  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.372e+00  3.354e+02  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:  7.869e-01  2.738e-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.206e-01  2.320e-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/7233/cmap_HighResolution_538963201_539222401_4FGL_J1143.1+6122_daily_bin1156.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.70e-05', job_status='DONE', photon_flux_upper_limit='2.99e-08', time_completed='2021-09-04 08:21:39.544848', job_id='7233', GAL2='0.79', fit_tolerance='1e-08', EG2='0.92', EG='0.92', time_epoch_completed='1630768899.54', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='5.95e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='1156' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:21:39 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0162>
Subject: Job 7233: <4FGL_J1143.1+6122_daily_bin1156> in cluster <slac> Done

Job <4FGL_J1143.1+6122_daily_bin1156> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Sat Sep  4 08:06:50 2021
Job was executed on host(s) <bullet0162>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 08:06:52 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:06:52 2021
Terminated at Sat Sep  4 08:21:40 2021
Results reported at Sat Sep  4 08:21:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin1156 175.788 61.3801 538963201 539222401 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 :                                   726.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             289.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   887 sec.
    Turnaround time :                            890 sec.

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

