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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin92
RA = 175.788, Dec = 61.3801
tmin = 263174401, tmax = 263433601
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='757', job_status='RUN', time_executed='2021-09-04 07:47:10.542149', time_epoch_executed='1630766830.54' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='92'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/757

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/757/ft1_4FGL_J1143.1+6122_daily_bin92.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/757/ft2_4FGL_J1143.1+6122_daily_bin92.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/757/ft1_4FGL_J1143.1+6122_daily_bin92.fits outfile=/scratch/kocevski/757/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin92.fits ra=175.788 dec=61.3801 rad=12.0 tmin=263174401.0 tmax=263433601.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.11
user 1.20
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/757/ft2_4FGL_J1143.1+6122_daily_bin92.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/757/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin92.fits evtable="EVENTS" outfile="/scratch/kocevski/757/ft1_filtered_4FGL_J1143.1+6122_daily_bin92.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.46
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/757/ft1_filtered_4FGL_J1143.1+6122_daily_bin92.fits" evtable="EVENTS" scfile=/scratch/kocevski/757/ft2_4FGL_J1143.1+6122_daily_bin92.fits sctable="SC_DATA" outfile=/scratch/kocevski/757/ltcube_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.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/757/ft2_4FGL_J1143.1+6122_daily_bin92.fits
.....................!
real 11.69
user 11.17
sys 0.39

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/757/ft1_filtered_4FGL_J1143.1+6122_daily_bin92.fits evtable="EVENTS" scfile=/scratch/kocevski/757/ft2_4FGL_J1143.1+6122_daily_bin92.fits sctable="SC_DATA" expcube=/scratch/kocevski/757/ltcube_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.fits outfile=/scratch/kocevski/757/expmap_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.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/757/ltcube_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.fits
.....................!
real 193.79
user 185.93
sys 6.38

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/757/ft1_filtered_4FGL_J1143.1+6122_daily_bin92.fits scfile=/scratch/kocevski/757/ft2_4FGL_J1143.1+6122_daily_bin92.fits outfile=/scratch/kocevski/757/cmap_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.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 1.01
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/757/ft1_filtered_4FGL_J1143.1+6122_daily_bin92.fits scfile=/scratch/kocevski/757/ft2_4FGL_J1143.1+6122_daily_bin92.fits outfile=/scratch/kocevski/757/cmap_HighResolution_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.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 1.89
user 0.40
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    11.170       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10156E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    1.5536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .98788       1.0000         .10000E-03   10000.    
     7 'norm      '    .27152E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10097E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.2068       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.2896       1.0000         .10000E-03   10000.    
    11 'Prefactor '    141.85       1.0000         .10000E-03   10000.    
    12 'Prefactor '    14.676       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10668E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.1999       1.0000         .10000E-03   10000.    
    17 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10401E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.2082       1.0000         .10000E-03   10000.    
    23 'Prefactor '    14.684       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10232E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    3.6114       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10101E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0231       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.0779       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=   4284.959     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4433 TOTAL
                     EDM=   .15E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          11.168        14.151        .68981E-09    .67342E-05
   2  Prefactor     .10000E-03    49.860       -.80264E-06** at limit **
   3  norm          .10000E-03    1.3291       -.11614E-06** at limit **
   4  norm          1.5535        1.4687       -.10343E-07    .12166E-03
   5  Prefactor     .10000E-03    131.77       -.84139E-06** at limit **
   6  norm          .98830        .94494        .89268E-07    .67680E-03
   7  norm          .10000E-03    2.1555       -.17640E-05** at limit **
   8  Prefactor     .10000E-03    69.881        .47520E-06** at limit **
   9  norm          3.2081        2.7175        .27352E-08    .51071E-04
  10  Prefactor     8.3254        7.5253        .18579E-05    .20324E-03
  11  Prefactor     141.90        102.90        .84090E-06    .12342E-03
  12  Prefactor     14.660        39.124       -.52518E-06    .10970E-04
  13  Prefactor     .10000E-03    8.5828       -.34237E-06** at limit **
  14  Prefactor     .10000E-03    14.952       -.13261E-06** at limit **
  15  Prefactor     .10000E-03    8.0625        .10137E-06** at limit **
  16  Prefactor     2.2001        4.0402        .15137E-06    .43716E-04
  17  norm          .10000E-03    6.1025       -.17633E-07** at limit **
  18  Prefactor     .10000E-03    3.8358       -.22275E-07** at limit **
  19  norm          .10000E-03    2.9869       -.20042E-07** at limit **
  20  Prefactor     .10000E-03    3.8571        .54898E-08** at limit **
  21  Prefactor     .10000E-03    37.076        .47665E-07** at limit **
  22  norm          2.2086        2.4812        .34620E-07   -.12396E-03
  23  Prefactor     14.695        32.238        .23446E-06   -.17166E-05
  24  Prefactor     .10000E-03    79.842        .72205E-06** at limit **
  25  norm          .10000E-03    2.4077       -.12503E-07** at limit **
  26  Prefactor     .10000E-03    9.5407        .52059E-07** at limit **
  27  norm          3.6120        2.9749        .23667E-07   -.91339E-04
  28  Prefactor     .10000E-03    58.092       -.23407E-06** at limit **
  29  Prefactor     .10000E-03    5.4669       -.88642E-08** at limit **
  30  Prefactor     .10000E-03    25.059        .76587E-07** at limit **
  31  Normalizat    1.0223        .21307       -.22843E-06    .15444E-03
  32  Prefactor     1.0786        .24051        .29376E-06    .70703E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 11.1682
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.55351
  Prefactor  = 0.000100001
  norm       = 0.9883
  norm       = 0.000100001
  Prefactor  = 0.0001
  norm       = 3.20809
  Prefactor  = 8.32542
  Prefactor  = 141.903
  Prefactor  = 14.6602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.20014
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.20856
  Prefactor  = 14.6949
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.61201
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.02234
  Prefactor  = 1.0786
 **********
 **   18 **HESSE 
 **********

 FCN=   4284.959     FROM HESSE     STATUS=OK           653 CALLS     5086 TOTAL
                     EDM=   .53E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          11.168        14.150        .11987E-03   -1.5039    
   2  Prefactor     .10000E-03    50.753        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    2.2944        .14613E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          1.5535        1.4788        .74975E-04   -1.5459    
   5  Prefactor     .10000E-03    131.76        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .98830        .90434        .54280E-03   -1.5509    
   7  norm          .10000E-03    6.1010        .16418E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    69.838        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.2081        2.7129        .93873E-04   -1.5350    
  10  Prefactor     8.3254        7.7408        .13924E-03   -1.5131    
  11  Prefactor     141.90        102.98        .16913E-03   -1.3320    
  12  Prefactor     14.660        39.416        .10455E-03   -1.4942    
  13  Prefactor     .10000E-03    8.7177        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    14.956        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    8.0636        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.2001        4.0038        .17112E-03   -1.5411    
  17  norm          .10000E-03    6.1052        .15794E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    3.8965        .12518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0153        .11047E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.8614        .12555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    37.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.2086        2.4675        .10494E-03   -1.5411    
  23  Prefactor     14.695        32.424        .10452E-03   -1.4941    
  24  Prefactor     .10000E-03    79.883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.4226        .99183E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     .10000E-03    9.6285        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          3.6120        2.9743        .98917E-04   -1.5328    
  28  Prefactor     .10000E-03    58.187        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    5.4771        .14947E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     .10000E-03    25.059        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0223        .25468        .23731E-03   -.92286    
  32  Prefactor     1.0786        .28675        .27940E-03   -.90154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.31025e-10
Minuit parameter uncertainties:
  1  14.1544
  2  7.08799e-05
  3  4.74895e-05
  4  1.47886
  5  0.000842372
  6  0.904354
  7  0.000177234
  8  0.000208292
  9  2.71303
  10  7.74173
  11  103.111
  12  39.486
  13  1.03911e-05
  14  4.49196e-06
  15  2.91504e-05
  16  4.00428
  17  1.62386e-06
  18  5.87061e-07
  19  3.14194e-06
  20  1.91892e-06
  21  2.38949e-06
  22  2.4676
  23  32.4631
  24  0.000636607
  25  2.78598e-07
  26  3.67834e-05
  27  2.97444
  28  0.000119216
  29  3.41821e-06
  30  4.0756e-05
  31  0.254984
  32  0.287156
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  1.624e-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:  1.079e+00  2.872e-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.022e+00  2.550e-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.84e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.52e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/757/likelihoodResults_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.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): 0
logL (Free Index) = 4284.95970414
delta logL = -0.000748638760342

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4284.9589555
delta logL = -5.29325916432e-10

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 'alpha     '    1.7351       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0223       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0786       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=   4284.959     FROM MIGRAD    STATUS=CONVERGED     86 CALLS      230 TOTAL
                     EDM=   .65E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1395.4        .15798E-02** at limit **
   2  alpha         1.6097        3.0990        .17559        .78601E-07
   3  Normalizat    1.0223        .17483        .23731E-03   -.14954E-02
   4  Prefactor     1.0786        .21162        .27940E-03   -.13072E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100002
  alpha      = 1.60969
  Normalizat = 1.02233
  Prefactor  = 1.0786
 **********
 **   18 **HESSE 
 **********

 FCN=   4284.959     FROM HESSE     STATUS=OK            23 CALLS      253 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.1499        .31597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6097        3.2285        .70236E-02   -.36411    
   3  Normalizat    1.0223        .23038        .47462E-04   -.92286    
   4  Prefactor     1.0786        .27882        .55881E-04   -.90154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82346e-09
Minuit parameter uncertainties:
  1  0.00020209
  2  388.654
  3  0.230608
  4  0.279201
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/757': 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) = 4284.95895545
delta logL = 5.61249180464e-08

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.000e-04  2.021e-04  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.610e+00  3.887e+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:  1.079e+00  2.792e-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.022e+00  2.306e-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/757/cmap_HighResolution_263174401_263433601_4FGL_J1143.1+6122_daily_bin92.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.52e-05', job_status='DONE', photon_flux_upper_limit='2.84e-08', time_completed='2021-09-04 08:01:19.627768', job_id='757', GAL2='1.08', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1630767679.63', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.08', dlogl='5.61e-08', ts2='-0.00', photon_index_error='0.00', photon_index='1.74' WHERE bin_id='92' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:01:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 757: <4FGL_J1143.1+6122_daily_bin92> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin92 175.788 61.3801 263174401 263433601 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 :                                   829.41 sec.
    Max Memory :                                 1083 MB
    Average Memory :                             323.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   859 sec.
    Turnaround time :                            862 sec.

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

