/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 6 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 = 7432
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1143.1+6122_daily_bin127
RA = 175.788, Dec = 61.3801
tmin = 272246401, tmax = 272505601
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='171359', job_status='RUN', time_executed='2021-09-04 16:11:18.254753', time_epoch_executed='1630797078.25' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='127'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/171359

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/171359/ft1_4FGL_J1143.1+6122_daily_bin127.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/171359/ft2_4FGL_J1143.1+6122_daily_bin127.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/171359/ft1_4FGL_J1143.1+6122_daily_bin127.fits outfile=/scratch/kocevski/171359/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin127.fits ra=175.788 dec=61.3801 rad=12.0 tmin=272246401.0 tmax=272505601.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 2.50
user 2.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/171359/ft1_filtered_4FGL_J1143.1+6122_daily_bin127.fits" evtable="EVENTS" scfile=/scratch/kocevski/171359/ft2_4FGL_J1143.1+6122_daily_bin127.fits sctable="SC_DATA" outfile=/scratch/kocevski/171359/ltcube_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.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/171359/ft2_4FGL_J1143.1+6122_daily_bin127.fits
.....................!
real 13.15
user 12.64
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/171359/ft1_filtered_4FGL_J1143.1+6122_daily_bin127.fits evtable="EVENTS" scfile=/scratch/kocevski/171359/ft2_4FGL_J1143.1+6122_daily_bin127.fits sctable="SC_DATA" expcube=/scratch/kocevski/171359/ltcube_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.fits outfile=/scratch/kocevski/171359/expmap_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.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/171359/ltcube_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.fits
.....................!
real 191.55
user 185.37
sys 5.62

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/171359/ft1_filtered_4FGL_J1143.1+6122_daily_bin127.fits scfile=/scratch/kocevski/171359/ft2_4FGL_J1143.1+6122_daily_bin127.fits outfile=/scratch/kocevski/171359/cmap_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.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.57
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/171359/ft1_filtered_4FGL_J1143.1+6122_daily_bin127.fits scfile=/scratch/kocevski/171359/ft2_4FGL_J1143.1+6122_daily_bin127.fits outfile=/scratch/kocevski/171359/cmap_HighResolution_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.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.55
user 0.39
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10229E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.0188       1.0000         .10000E-03   10000.    
     4 'norm      '    .80320       1.0000         .10000E-03   10000.    
     5 'Prefactor '    39.569       1.0000         .10000E-03   10000.    
     6 'norm      '    1.6144       1.0000         .10000E-03   10000.    
     7 'norm      '    2.6255       1.0000         .10000E-03   10000.    
     8 'Prefactor '    191.10       1.0000         .10000E-03   10000.    
     9 'norm      '    4.0250       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10486E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .39826E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.8506       1.0000         .10000E-03   10000.    
    14 'Prefactor '    14.959       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .11194E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    10.306       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12077E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    3.3188       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.8675       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.6356       1.0000         .10000E-03   10000.    
    23 'Prefactor '    1.0171       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    9.4066       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .25315E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    7.8636       1.0000         .10000E-03   10000.    
    28 'Prefactor '    66.643       1.0000         .10000E-03   10000.    
    29 'Prefactor '    8.9108       1.0000         .10000E-03   10000.    
    30 'Prefactor '    18.134       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.1145       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69850       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=   4781.939     FROM MIGRAD    STATUS=CONVERGED    891 CALLS     4433 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.4991       -.23686E-07** at limit **
   2  Prefactor     .10000E-03    8.1861       -.25168E-07** at limit **
   3  norm          1.0181        1.6027       -.11538E-06   -.27137E-03
   4  norm          .80282        1.6026       -.50272E-06   -.11754E-02
   5  Prefactor     39.480        100.13       -.48181E-04    .38990E-05
   6  norm          1.6146        .87014       -.36771E-07    .16121E-03
   7  norm          2.6284        2.9306       -.10263E-06   -.18194E-03
   8  Prefactor     191.12        217.82        .66041E-05    .26500E-04
   9  norm          4.0244        3.4156       -.33221E-06    .15183E-03
  10  Prefactor     .10000E-03    4.5185       -.44615E-07** at limit **
  11  Prefactor     .10000E-03    111.98       -.23739E-04** at limit **
  12  Prefactor     .10000E-03    38.821       -.31002E-06** at limit **
  13  Prefactor     8.8412        11.524        .92635E-05    .22771E-03
  14  Prefactor     14.982        48.841       -.82541E-04   -.20390E-04
  15  Prefactor     .10000E-03    14.422        .19013E-05** at limit **
  16  Prefactor     .10000E-03    1.0708       -.16445E-07** at limit **
  17  norm          10.301        10.306        .49517E-06    .43193E-04
  18  Prefactor     .10000E-03    2.8415       -.36614E-06** at limit **
  19  norm          3.3208        10.658        .98101E-05    .21721E-03
  20  Prefactor     5.8667        13.129       -.53073E-05   -.38204E-04
  21  Prefactor     .10000E-03    14.836       -.29543E-05** at limit **
  22  norm          4.6368        3.0433       -.51246E-06   -.20325E-03
  23  Prefactor     1.0102        27.160       -.60647E-05   -.13667E-04
  24  Prefactor     .10000E-03    46.372        .23266E-05** at limit **
  25  norm          9.4089        5.1480       -.58942E-07    .16105E-03
  26  Prefactor     .10015E-03    8.4363        .28984E-05** at limit **
  27  norm          7.8657        4.0212       -.60938E-06   -.11815E-02
  28  Prefactor     66.572        60.454        .51741E-04    .36154E-04
  29  Prefactor     8.9064        15.349       -.28049E-05   -.31476E-03
  30  Prefactor     17.817        123.48       -.15973E-03    .15761E-04
  31  Normalizat    1.1144        .20030        .66954E-05    .52192E-04
  32  Prefactor     .69870        .21781       -.12918E-05    .28705E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.01809
  norm       = 0.802825
  Prefactor  = 39.4801
  norm       = 1.61458
  norm       = 2.62841
  Prefactor  = 191.118
  norm       = 4.02444
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 8.84121
  Prefactor  = 14.9822
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.3005
  Prefactor  = 0.0001
  norm       = 3.32079
  Prefactor  = 5.86673
  Prefactor  = 0.0001
  norm       = 4.63676
  Prefactor  = 1.01015
  Prefactor  = 0.0001
  norm       = 9.40891
  Prefactor  = 0.000100147
  norm       = 7.86569
  Prefactor  = 66.5724
  Prefactor  = 8.90643
  Prefactor  = 17.8172
  Normalizat = 1.11442
  Prefactor  = 0.698702
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.939     FROM HESSE     STATUS=OK           673 CALLS     5106 TOTAL
                     EDM=   .33E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    8.5164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.2081        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.0181        1.3945        .10599E-02   -1.5506    
   4  norm          .80282        1.4028        .11859E-02   -1.5529    
   5  Prefactor     39.480        100.17        .63720E-04   -1.4450    
   6  norm          1.6146        .86324        .42912E-04   -1.5454    
   7  norm          2.6284        2.4793        .95226E-04   -1.5384    
   8  Prefactor     191.12        217.86        .29216E-04   -1.2934    
   9  norm          4.0244        3.4124        .10153E-03   -1.5307    
  10  Prefactor     .10000E-03    9.4181        .23162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    112.47        .21266E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    39.013        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.8412        11.505        .13473E-03   -1.5113    
  14  Prefactor     14.982        48.631        .10356E-03   -1.4934    
  15  Prefactor     .10000E-03    14.458        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.0716        .69879E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          10.301        10.304        .12481E-03   -1.5066    
  18  Prefactor     .10000E-03    5.5385        .22680E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          3.3208        10.276        .22220E-03   -1.5343    
  20  Prefactor     5.8667        12.766        .16579E-03   -1.5223    
  21  Prefactor     .10000E-03    14.847        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.6368        3.0464        .92911E-04   -1.5277    
  23  Prefactor     1.0102        207.30        .66163E-02   -1.5507    
  24  Prefactor     .10000E-03    46.392        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          9.4089        5.1481        .11239E-03   -1.5094    
  26  Prefactor     .10015E-03    22.162        .36424E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          7.8657        3.9004        .88733E-04   -1.5147    
  28  Prefactor     66.572        60.393        .24582E-03   -1.4074    
  29  Prefactor     8.9064        15.146        .13427E-03   -1.5111    
  30  Prefactor     17.817        123.79        .94053E-04   -1.4864    
  31  Normalizat    1.1144        .22966        .21894E-03   -.89290    
  32  Prefactor     .69870        .24998        .31809E-03   -1.0358    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25212e-08
Minuit parameter uncertainties:
  1  9.87194e-06
  2  2.60715e-06
  3  1.39457
  4  1.40287
  5  100.599
  6  0.863244
  7  2.4794
  8  218.794
  9  3.41255
  10  1.06542e-06
  11  0.000696531
  12  0.00071442
  13  11.5083
  14  48.7605
  15  2.75381e-05
  16  1.50748e-06
  17  10.3057
  18  8.87074e-05
  19  10.2813
  20  12.7718
  21  2.8218e-05
  22  3.04648
  23  29.0428
  24  0.000129024
  25  5.14835
  26  0.00361311
  27  3.90055
  28  60.4486
  29  15.1527
  30  94.2053
  31  0.229868
  32  0.25038
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.030e+01  1.031e+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:  6.987e-01  2.504e-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.114e+00  2.299e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.72
Ra Dec: 175.788 61.380
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 8.72e-09 +/- 8.73e-09
Energy Flux (Fixed Index): 1.08e-05 +/- 1.08e-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) = 4781.66235569
delta logL = 0.276544456936

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4781.66045896
delta logL = 0.27844117836

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    9.6605       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0517       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1154       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69971       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=   4781.660     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      225 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          9.6645        10.652        .12893E-03   -.70982E-04
   2  alpha         1.0511        .86190        .26317E-02    .21772E-05
   3  Normalizat    1.1155        .20545        .21885E-03   -.19949E-03
   4  Prefactor     .69978        .24234        .31788E-03   -.11555E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 9.66445
  alpha      = 1.05114
  Normalizat = 1.11545
  Prefactor  = 0.69978
 **********
 **   18 **HESSE 
 **********

 FCN=   4781.660     FROM HESSE     STATUS=OK            23 CALLS      248 TOTAL
                     EDM=   .47E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          9.6645        10.664        .51572E-05   -1.5086    
   2  alpha         1.0511        .86289        .10527E-03   -.61817    
   3  Normalizat    1.1155        .20561        .43770E-04   -.89257    
   4  Prefactor     .69978        .24252        .12715E-04   -1.0354    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.66056e-11
Minuit parameter uncertainties:
  1  10.6665
  2  0.891023
  3  0.205753
  4  0.242888
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/171359': 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) = 4781.66045776
delta logL = 0.278442383501

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  9.664e+00  1.067e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.051e+00  8.910e-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.998e-01  2.429e-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.115e+00  2.058e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.28
Ra Dec: 175.788 61.380
Photon Index (Free Index): 1.05 +/- 0.89
Photon Flux (Free Index): 5.58e-09 +/- 6.20e-09
Energy Flux (Free Index): 2.22e-05 +/- 3.26e-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/171359/cmap_HighResolution_272246401_272505601_4FGL_J1143.1+6122_daily_bin127.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.72e-09', energy_flux2='2.22e-05', photon_flux_error='8.73e-09', dlogl='2.78e-01', energy_flux='1.08e-05', photon_flux2='5.58e-09', job_status='DONE', time_completed='2021-09-04 16:24:31.537723', photon_index_error2='0.89', photon_index2='1.05', ts='5.72', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='3.26e-05', EG='1.11', time_epoch_completed='1630797871.54', return_code='0', job_id='171359', GAL2='0.70', EG2='1.12', return_code2='0', energy_flux_error='1.08e-05', photon_flux_error2='6.20e-09', ts2='6.28', photon_index='1.74' WHERE bin_id='127' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 16:24:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 171359: <4FGL_J1143.1+6122_daily_bin127> in cluster <slac> Done

Job <4FGL_J1143.1+6122_daily_bin127> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep  4 16:11:00 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep  4 16:11:02 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep  4 16:11:02 2021
Terminated at Sat Sep  4 16:24:32 2021
Results reported at Sat Sep  4 16:24:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin127 175.788 61.3801 272246401 272505601 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 :                                   791.07 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             371.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   809 sec.
    Turnaround time :                            812 sec.

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

