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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin733
RA = 175.788, Dec = 61.3801
tmin = 429321601, tmax = 429580801
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='5233', job_status='RUN', time_executed='2021-09-04 08:04:22.057218', time_epoch_executed='1630767862.06' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='733'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/5233

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/5233/ft1_4FGL_J1143.1+6122_daily_bin733.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/5233/ft2_4FGL_J1143.1+6122_daily_bin733.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/5233/ft1_4FGL_J1143.1+6122_daily_bin733.fits outfile=/scratch/kocevski/5233/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin733.fits ra=175.788 dec=61.3801 rad=12.0 tmin=429321601.0 tmax=429580801.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 6.58
user 6.23
sys 0.26

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

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

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/5233/ft1_filtered_4FGL_J1143.1+6122_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/5233/ft2_4FGL_J1143.1+6122_daily_bin733.fits sctable="SC_DATA" expcube=/scratch/kocevski/5233/ltcube_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.fits outfile=/scratch/kocevski/5233/expmap_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.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/5233/ltcube_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.fits
.....................!
real 190.45
user 185.39
sys 4.67

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/5233/ft1_filtered_4FGL_J1143.1+6122_daily_bin733.fits scfile=/scratch/kocevski/5233/ft2_4FGL_J1143.1+6122_daily_bin733.fits outfile=/scratch/kocevski/5233/cmap_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.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.54
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/5233/ft1_filtered_4FGL_J1143.1+6122_daily_bin733.fits scfile=/scratch/kocevski/5233/ft2_4FGL_J1143.1+6122_daily_bin733.fits outfile=/scratch/kocevski/5233/cmap_HighResolution_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.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/5233/ft1_filtered_4FGL_J1143.1+6122_daily_bin733.fits evtable="EVENTS" scfile=/scratch/kocevski/5233/ft2_4FGL_J1143.1+6122_daily_bin733.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/5233/Model_4FGL_J1143.1+6122_daily_bin733.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/5233/ft1_filtered_4FGL_J1143.1+6122_daily_bin733.fits.....................!
real 30.41
user 28.67
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    75.123       1.0000         .10000E-03   10000.    
     3 'norm      '    2.6445       1.0000         .10000E-03   10000.    
     4 'norm      '    1.9840       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10408E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.3463       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    142.79       1.0000         .10000E-03   10000.    
     9 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    30.494       1.0000         .10000E-03   10000.    
    12 'Prefactor '    92.967       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.369       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .15510       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10367E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .11664E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    114.01       1.0000         .10000E-03   10000.    
    22 'norm      '    3.3217       1.0000         .10000E-03   10000.    
    23 'Prefactor '    46.740       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .44242E-01   1.0000         .10000E-03   10000.    
    25 'norm      '    15.119       1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.2981       1.0000         .10000E-03   10000.    
    27 'norm      '    .11707E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    9.8346       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    .83124       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .88268       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=   2135.266     FROM MIGRAD    STATUS=CONVERGED    847 CALLS     5819 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    48.099        .56538E-06** at limit **
   2  Prefactor     75.143        78.291        .11759E-06    .17315E-04
   3  norm          2.6425        8.7558        .72518E-06   -.83896E-05
   4  norm          1.9835        3.3899        .29966E-06   -.69585E-05
   5  Prefactor     .10002E-03    249.48        .25433E-05** at limit **
   6  norm          1.3459        1.5128        .17783E-06   -.10577E-03
   7  norm          .10000E-03    5.1248        .28948E-06** at limit **
   8  Prefactor     142.84        241.77        .15479E-05    .25508E-05
   9  norm          .10000E-03    2.5663        .24698E-07** at limit **
  10  Prefactor     .10000E-03    13.201        .41448E-06** at limit **
  11  Prefactor     30.307        95.394       -.23202E-05   -.13410E-03
  12  Prefactor     92.982        66.979        .61129E-06    .11635E-04
  13  Prefactor     13.374        17.963        .73305E-06   -.12776E-04
  14  Prefactor     .10000E-03    77.083        .10252E-05** at limit **
  15  Prefactor     .10000E-03    21.291        .12436E-06** at limit **
  16  Prefactor     .14740        12.542        .35482E-06    .43335E-05
  17  norm          .10000E-03    14.764        .77316E-07** at limit **
  18  Prefactor     .10000E-03    14.410        .51031E-06** at limit **
  19  norm          .10000E-03    12.661        .22862E-05** at limit **
  20  Prefactor     .10003E-03    33.107        .53278E-05** at limit **
  21  Prefactor     114.05        98.644       -.38554E-04    .10701E-03
  22  norm          3.3217        4.2864        .16666E-06    .69068E-04
  23  Prefactor     46.733        50.047        .48350E-06    .17030E-04
  24  Prefactor     .10467E-03    6429.0        .11765E-03** at limit **
  25  norm          15.117        15.228        .38349E-06   -.12207E-04
  26  Prefactor     7.3085        11.773       -.14991E-05   -.29625E-04
  27  norm          .10000E-03    4.8589        .86447E-06** at limit **
  28  Prefactor     .10000E-03    28.861       -.28345E-06** at limit **
  29  Prefactor     9.8360        13.461       -.19451E-06    .53977E-05
  30  Prefactor     .10000E-03    65.868       -.39842E-06** at limit **
  31  Normalizat    .83089        .31046       -.61003E-05   -.18342E-04
  32  Prefactor     .88316        .33586        .12500E-05   -.88397E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 75.1429
  norm       = 2.64249
  norm       = 1.9835
  Prefactor  = 0.000100015
  norm       = 1.34594
  norm       = 0.0001
  Prefactor  = 142.837
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 30.3069
  Prefactor  = 92.982
  Prefactor  = 13.3739
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.147398
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100004
  Prefactor  = 0.000100029
  Prefactor  = 114.047
  norm       = 3.32169
  Prefactor  = 46.7333
  Prefactor  = 0.000104666
  norm       = 15.1173
  Prefactor  = 7.30854
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 9.83599
  Prefactor  = 0.000100001
  Normalizat = 0.830891
  Prefactor  = 0.883159
 **********
 **   18 **HESSE 
 **********

 FCN=   2135.266     FROM HESSE     STATUS=OK           651 CALLS     6470 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    48.213        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     75.143        77.412        .46325E-04   -1.3972    
   3  norm          2.6425        8.5896        .15412E-03   -1.5383    
   4  norm          1.9835        3.3693        .10603E-03   -1.5426    
   5  Prefactor     .10002E-03    249.37        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.3459        1.4869        .56861E-04   -1.5476    
   7  norm          .10000E-03    5.2314        .20329E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     142.84        241.59        .33716E-04   -1.3312    
   9  norm          .10000E-03    2.5697        .72207E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.339        .16354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     30.307        95.486        .36278E-03   -1.4606    
  12  Prefactor     92.982        67.010        .41680E-04   -1.3776    
  13  Prefactor     13.374        18.051        .10955E-03   -1.4976    
  14  Prefactor     .10000E-03    77.239        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.291        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .14740        93.182        .31536E-02   -1.5631    
  17  norm          .10000E-03    14.764        .17345E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    14.633        .17117E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    12.801        .16092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    33.584        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     114.05        98.838        .18839E-03   -1.3568    
  22  norm          3.3217        4.2894        .99852E-04   -1.5343    
  23  Prefactor     46.733        50.057        .58649E-04   -1.4340    
  24  Prefactor     .10467E-03    6499.1        .18484E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          15.117        15.232        .10301E-03   -1.4930    
  26  Prefactor     7.3085        11.618        .14847E-03   -1.5167    
  27  norm          .10000E-03    4.9340        .19596E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    28.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     9.8360        13.446        .12778E-03   -1.5081    
  30  Prefactor     .10000E-03    65.866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    .83089        .36107        .26168E-03   -.98933    
  32  Prefactor     .88316        .39081        .29508E-03   -.96732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.75825e-09
Minuit parameter uncertainties:
  1  0.000140678
  2  77.5159
  3  8.59356
  4  3.36958
  5  0.00393637
  6  1.4869
  7  6.86393e-06
  8  243.296
  9  3.11503e-06
  10  4.40102e-05
  11  95.9733
  12  67.0642
  13  18.0582
  14  0.000387809
  15  5.18754e-05
  16  7.42121
  17  1.0521e-05
  18  0.000114507
  19  0.00046661
  20  0.00197447
  21  98.9811
  22  4.28983
  23  50.1025
  24  0.250338
  25  15.2357
  26  11.6219
  27  0.000177752
  28  0.00014885
  29  13.4504
  30  0.0003807
  31  0.362126
  32  0.392053
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  1.052e-05  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.832e-01  3.921e-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:  8.309e-01  3.621e-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: 7.45e-08 ph cm-2 s-1
Energy Flux Upper Limit: 9.21e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/5233/likelihoodResults_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.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) = 2135.26609001
delta logL = -0.000101053719391

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 2135.26599371
delta logL = -4.74708895126e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10217E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8597       1.0000          .0000       5.0000    
     3 'Normalizat'    .83090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88314       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=   2135.266     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      281 TOTAL
                     EDM=   .24E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    879.57        .11476E-01** at limit **
   2  alpha         1.3284        2.9232        .16681       -.14653E-08
   3  Normalizat    .83089        .57132E-01    .26167E-03    .95060E-04
   4  Prefactor     .88316        .66578E-01    .29508E-03    .85262E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.32844
  Normalizat = 0.830889
  Prefactor  = 0.883163
 **********
 **   18 **HESSE 
 **********

 FCN=   2135.266     FROM HESSE     STATUS=OK            23 CALLS      304 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.019        .18049E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3284        3.3936        .66725E-02   -.48773    
   3  Normalizat    .83089        .31879        .10467E-04   -.98933    
   4  Prefactor     .88316        .37128        .11803E-04   -.96732    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30145e-11
Minuit parameter uncertainties:
  1  5.89135e-06
  2  561.465
  3  0.319515
  4  0.372348
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/5233': 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) = 2135.2659887
delta logL = 2.58721684077e-07

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  5.891e-06  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.328e+00  5.615e+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:  8.832e-01  3.723e-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:  8.309e-01  3.195e-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/5233/cmap_HighResolution_429321601_429580801_4FGL_J1143.1+6122_daily_bin733.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.21e-05', job_status='DONE', photon_flux_upper_limit='7.45e-08', time_completed='2021-09-04 08:14:59.584632', job_id='5233', GAL2='0.88', fit_tolerance='1e-08', EG2='0.83', EG='0.83', time_epoch_completed='1630768499.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='2.59e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='733' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:14:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0266>
Subject: Job 5233: <4FGL_J1143.1+6122_daily_bin733> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin733 175.788 61.3801 429321601 429580801 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 :                                   635.33 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             297.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   831 sec.
    Turnaround time :                            833 sec.

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

