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


Performing analysis on: 4FGL_J1143.1+6122_daily_bin7
RA = 175.788, Dec = 61.3801
tmin = 241142401, tmax = 241401601
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='624', job_status='RUN', time_executed='2021-09-04 07:47:13.754128', time_epoch_executed='1630766833.75' WHERE source_name='4FGL J1143.1+6122' and cadence='daily' and bin_id='7'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624/ft1_4FGL_J1143.1+6122_daily_bin7.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/624/ft2_4FGL_J1143.1+6122_daily_bin7.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624/ft1_4FGL_J1143.1+6122_daily_bin7.fits outfile=/scratch/kocevski/624/ft1_filteredMKT_4FGL_J1143.1+6122_daily_bin7.fits ra=175.788 dec=61.3801 rad=12.0 tmin=241142401.0 tmax=241401601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 1.48
user 1.30
sys 0.17

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624/ft1_filtered_4FGL_J1143.1+6122_daily_bin7.fits" evtable="EVENTS" scfile=/scratch/kocevski/624/ft2_4FGL_J1143.1+6122_daily_bin7.fits sctable="SC_DATA" outfile=/scratch/kocevski/624/ltcube_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.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/624/ft2_4FGL_J1143.1+6122_daily_bin7.fits
.....................!
real 13.47
user 11.99
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624/ft1_filtered_4FGL_J1143.1+6122_daily_bin7.fits evtable="EVENTS" scfile=/scratch/kocevski/624/ft2_4FGL_J1143.1+6122_daily_bin7.fits sctable="SC_DATA" expcube=/scratch/kocevski/624/ltcube_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.fits outfile=/scratch/kocevski/624/expmap_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.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/624/ltcube_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.fits
.....................!
real 191.42
user 185.85
sys 4.42

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/624/ft1_filtered_4FGL_J1143.1+6122_daily_bin7.fits scfile=/scratch/kocevski/624/ft2_4FGL_J1143.1+6122_daily_bin7.fits outfile=/scratch/kocevski/624/cmap_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.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 3.15
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624/ft1_filtered_4FGL_J1143.1+6122_daily_bin7.fits scfile=/scratch/kocevski/624/ft2_4FGL_J1143.1+6122_daily_bin7.fits outfile=/scratch/kocevski/624/cmap_HighResolution_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.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 2.65
user 0.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10428E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    7.4419       1.0000         .10000E-03   10000.    
     3 'norm      '    .11757E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    2.1424       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11621E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    1.2102       1.0000         .10000E-03   10000.    
     7 'norm      '    .10210E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.3286       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10467E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10967E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10201E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.4777       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    15.244       1.0000         .10000E-03   10000.    
    18 'Prefactor '    2.7159       1.0000         .10000E-03   10000.    
    19 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .27641E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    2.6022       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10306E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    111.46       1.0000         .10000E-03   10000.    
    25 'norm      '    .83074       1.0000         .10000E-03   10000.    
    26 'Prefactor '    11.253       1.0000         .10000E-03   10000.    
    27 'norm      '    8.8630       1.0000         .10000E-03   10000.    
    28 'Prefactor '    39.818       1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.4678       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.0749       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .69619       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=   6016.716     FROM MIGRAD    STATUS=CONVERGED    844 CALLS     3717 TOTAL
                     EDM=   .20E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    11.568       -.11570E-04** at limit **
   2  Prefactor     7.4502        16.369       -.19269E-05   -.46780E-04
   3  norm          .10000E-03    1.4756        .52624E-07** at limit **
   4  norm          2.1427        1.4937       -.10112E-06   -.55599E-04
   5  Prefactor     .10001E-03    64.966       -.24387E-04** at limit **
   6  norm          1.2102        .75691       -.10260E-06   -.24929E-03
   7  norm          .10000E-03    1.1719       -.30736E-07** at limit **
   8  Prefactor     .10001E-03    47.042        .23430E-04** at limit **
   9  norm          3.3290        1.8787       -.90971E-07    .42921E-04
  10  Prefactor     .10000E-03    3.6060       -.17326E-06** at limit **
  11  Prefactor     .10000E-03    22.137       -.62859E-05** at limit **
  12  Prefactor     .10000E-03    5.6114       -.22827E-06** at limit **
  13  Prefactor     9.4821        6.9277       -.25302E-06   -.35920E-03
  14  Prefactor     .10000E-03    13.614        .14406E-04** at limit **
  15  Prefactor     .10000E-03    9.0226        .21335E-05** at limit **
  16  Prefactor     .10000E-03    1.6164       -.96129E-07** at limit **
  17  norm          15.238        10.667       -.11644E-06   -.17773E-03
  18  Prefactor     2.7181        4.3185       -.13589E-05   -.45100E-03
  19  norm          .10000E-03    2.1630        .56548E-07** at limit **
  20  Prefactor     .10000E-03    2.8733        .14201E-06** at limit **
  21  Prefactor     .10017E-03    14.327        .10820E-04** at limit **
  22  norm          2.6032        2.3849       -.20159E-06   -.57732E-03
  23  Prefactor     .10000E-03    34.148        .33638E-05** at limit **
  24  Prefactor     111.41        66.861       -.38706E-04   -.11372E-04
  25  norm          .83077        3.1530       -.21311E-05   -.11982E-02
  26  Prefactor     11.255        7.0813        .75592E-07   -.67824E-04
  27  norm          8.8637        3.1316       -.44316E-06    .26698E-03
  28  Prefactor     39.821        38.773        .31177E-05   -.76679E-04
  29  Prefactor     2.4701        7.0477       -.94392E-06   -.32339E-03
  30  Prefactor     .10000E-03    21.959       -.53783E-05** at limit **
  31  Normalizat    1.0744        .16545        .34979E-05   -.82830E-03
  32  Prefactor     .69640        .19191        .91640E-07   -.35282E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  Prefactor  = 7.45021
  norm       = 0.0001
  norm       = 2.14269
  Prefactor  = 0.000100006
  norm       = 1.2102
  norm       = 0.0001
  Prefactor  = 0.000100006
  norm       = 3.32899
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.48206
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 15.2379
  Prefactor  = 2.7181
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100168
  norm       = 2.60317
  Prefactor  = 0.0001
  Prefactor  = 111.409
  norm       = 0.830772
  Prefactor  = 11.2547
  norm       = 8.86368
  Prefactor  = 39.8206
  Prefactor  = 2.47011
  Prefactor  = 0.0001
  Normalizat = 1.07439
  Prefactor  = 0.6964
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.716     FROM HESSE     STATUS=OK           657 CALLS     4374 TOTAL
                     EDM=   .61E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    11.560        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     7.4502        14.934        .14702E-03   -1.5162    
   3  norm          .10000E-03    2.3359        .16525E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.1427        1.4923        .76670E-04   -1.5415    
   5  Prefactor     .10001E-03    64.804        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          1.2102        .74355        .50963E-04   -1.5488    
   7  norm          .10000E-03    1.2141        .16317E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    46.881        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.3290        1.8802        .77610E-04   -1.5343    
  10  Prefactor     .10000E-03    3.7036        .28674E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    22.141        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    5.6154        .17945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.4821        6.9443        .13017E-03   -1.5092    
  14  Prefactor     .10000E-03    13.595        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.0370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    1.6313        .96290E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          15.238        10.666        .10258E-03   -1.4927    
  18  Prefactor     2.7181        4.3143        .19533E-03   -1.5378    
  19  norm          .10000E-03    2.1960        .11133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    2.8806        .12837E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10017E-03    56.222        .55752E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          2.6032        2.3785        .10752E-03   -1.5385    
  23  Prefactor     .10000E-03    34.843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     111.41        67.026        .19051E-03   -1.3593    
  25  norm          .83077        3.1291        .25967E-03   -1.5526    
  26  Prefactor     11.255        7.0855        .11943E-03   -1.5037    
  27  norm          8.8637        3.1295        .75337E-04   -1.5112    
  28  Prefactor     39.821        38.784        .63522E-04   -1.4445    
  29  Prefactor     2.4701        7.0127        .26031E-03   -1.5394    
  30  Prefactor     .10000E-03    21.952        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Normalizat    1.0744        .19544        .20913E-03   -.90578    
  32  Prefactor     .69640        .22502        .30812E-03   -1.0367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.13745e-09
Minuit parameter uncertainties:
  1  0.000246509
  2  14.9417
  3  1.45647e-05
  4  1.49236
  5  0.00124923
  6  0.74356
  7  7.48397e-06
  8  0.001068
  9  1.88021
  10  1.75651e-05
  11  0.000163263
  12  3.50309e-06
  13  6.94494
  14  0.000380718
  15  5.57316e-05
  16  3.88277e-06
  17  10.6669
  18  4.31478
  19  2.18148e-05
  20  4.52565e-05
  21  0.00614942
  22  2.37862
  23  0.000174534
  24  67.072
  25  3.12975
  26  7.08601
  27  3.12958
  28  38.8086
  29  7.01503
  30  0.000158729
  31  0.195572
  32  0.22531
Done.

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

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.524e+01  1.067e+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.964e-01  2.253e-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.074e+00  1.956e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.71
Ra Dec: 175.788 61.380
Photon Index (Fixed Index): 1.74 +/- 0.00
Photon Flux (Fixed Index): 1.29e-08 +/- 9.04e-09
Energy Flux (Fixed Index): 1.60e-05 +/- 1.12e-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) = 6016.69617743
delta logL = 0.0194386704443

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6016.69583935
delta logL = 0.0197767479813

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    15.493       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6008       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0748       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .69724       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=   6016.696     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      258 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          15.493        10.982        .10176E-03   -.95298E-03
   2  alpha         1.6007        .68015        .18471E-01   -.11591E-03
   3  Normalizat    1.0748        .18141        .20910E-03    .12643E-03
   4  Prefactor     .69718        .22044        .30799E-03    .86412E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 15.4935
  alpha      = 1.60071
  Normalizat = 1.07483
  Prefactor  = 0.697177
 **********
 **   18 **HESSE 
 **********

 FCN=   6016.696     FROM HESSE     STATUS=OK            23 CALLS      281 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          15.493        10.968        .20351E-04   -1.4921    
   2  alpha         1.6007        .67939        .73883E-03   -.36797    
   3  Normalizat    1.0748        .18156        .41820E-04   -.90564    
   4  Prefactor     .69718        .22062        .12320E-04   -1.0364    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87982e-09
Minuit parameter uncertainties:
  1  10.9691
  2  0.689381
  3  0.181662
  4  0.220897
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624': 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) = 6016.6958393
delta logL = 0.0197767970012

Extracting fit parameters...

4FGL J1143.1+6122
   Spectrum: LogParabola
377         norm:  1.549e+01  1.097e+01  1.000e-04  1.000e+04 ( 1.000e-13)
378        alpha:  1.601e+00  6.894e-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.972e-01  2.209e-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.075e+00  1.817e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.75
Ra Dec: 175.788 61.380
Photon Index (Free Index): 1.60 +/- 0.69
Photon Flux (Free Index): 1.15e-08 +/- 1.05e-08
Energy Flux (Free Index): 1.78e-05 +/- 1.61e-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/624/cmap_HighResolution_241142401_241401601_4FGL_J1143.1+6122_daily_bin7.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.29e-08', energy_flux2='1.78e-05', photon_flux_error='9.04e-09', dlogl='1.98e-02', energy_flux='1.60e-05', photon_flux2='1.15e-08', job_status='DONE', time_completed='2021-09-04 08:01:21.356184', photon_index_error2='0.69', photon_index2='1.60', ts='8.71', fit_tolerance='1e-08', GAL='0.70', photon_index_error='0.00', energy_flux_error2='1.61e-05', EG='1.07', time_epoch_completed='1630767681.36', return_code='0', job_id='624', GAL2='0.70', EG2='1.07', return_code2='0', energy_flux_error='1.12e-05', photon_flux_error2='1.05e-08', ts2='8.75', photon_index='1.74' WHERE bin_id='7' AND source_name='4FGL J1143.1+6122' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep  4 08:01:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 624: <4FGL_J1143.1+6122_daily_bin7> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1143.1+6122_daily_bin7 175.788 61.3801 241142401 241401601 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 :                                   832.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             352.74 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            875 sec.

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

