/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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_grinumber of points = 7474
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1639
RA = 200.296, Dec = 22.2808
tmin = 664156801, tmax = 664416001
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 sDone.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1639
RA = 200.296, Dec = 22.2808
tmin = 664156801, tmax = 664416001
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='193535', job_status='RUN', time_executed='2022-01-21 00:14:27.046185', time_epoch_executed='1642752867.05' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1639'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/193535

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/193535/ft1_4FGL_J1321.1+2216_daily_bin1639.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/193535/ft1_4FGL_J1321.1+2216_daily_bin1639.fits outfile=/scratch/kocevski/193535/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1639.fits ra=200.296 dec=22.2808 rad=12.0 tmin=664156801.0 tmax=664416001.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 3.95
user 3.74
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.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/193535/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1639.fits evtable="EVENTS" outfile="/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.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.55
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits" evtable="EVENTS" scfile=/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits sctable="SC_DATA" outfile=/scratch/kocevski/193535/ltcube_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.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/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits
.....................!
real 19.90
user 19.53
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits sctable="SC_DATA" expcube=/scratch/kocevski/193535/ltcube_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.fits outfile=/scratch/kocevski/193535/expmap_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.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/193535/ltcube_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.fits
.....................!
real 190.00
user 185.37
sys 4.28

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 175 point sources and 0 extended sources

Setting source of interest to:
4FGL J1321.1+2216 @ 200.296 22.2808

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits scfile=/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits outfile=/scratch/kocevski/193535/cmap_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.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=200.296 yref=22.2808 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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits scfile=/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits outfile=/scratch/kocevski/193535/cmap_HighResolution_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.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=200.296 yref=22.2808 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits evtable="EVENTS" scfile=/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/193535/Model_4FGL_J1321.1+2216_daily_bin1639.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/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits.....................!
real 55.93
user 53.95
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits', '/scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits', expMap='/scratch/kocevski/193535/expmap_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.fits', expCube='/scratch/kocevski/193535/ltcube_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/193535/Model_4FGL_J1321.1+2216_daily_bin1639.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1321.1+2216'

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  7.564e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/193535/ft1_filtered_4FGL_J1321.1+2216_daily_bin1639.fits
Spacecraft file(s): /scratch/kocevski/193535/ft2_4FGL_J1321.1+2216_daily_bin1639.fits
Exposure map: /scratch/kocevski/193535/expmap_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.fits
Exposure cube: /scratch/kocevski/193535/ltcube_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/193535/Model_4FGL_J1321.1+2216_daily_bin1639.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) = 6919.84625248

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.028       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.6076       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10336E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .11364       1.0000         .10000E-03   10000.    
     6 'norm      '    26.159       1.0000         .10000E-03   10000.    
     7 'norm      '    9.6690       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.0224       1.0000         .10000E-03   10000.    
    10 'norm      '    17.690       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.5353       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.6277       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .28076       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.085       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0096       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0147       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6919.739     FROM MIGRAD    STATUS=CONVERGED    410 CALLS     1770 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.019        53.341       -.21340E-04   -.78178E-05
   2  Prefactor     .10000E-03    1.9706       -.15062E-09** at limit **
   3  norm          1.6073        4.9552        .26767E-05   -.81166E-03
   4  Prefactor     .10000E-03    8.7839       -.60056E-06** at limit **
   5  norm          .10786        1.6180       -.14833E-05    .15157E-02
   6  norm          26.158        8.4651        .61149E-06    .12588E-04
   7  norm          9.6708        10.098       -.59304E-06   -.44841E-04
   8  norm          .10000E-03    8.1409        .55273E-06** at limit **
   9  Prefactor     6.0173        17.213       -.25333E-05   -.45216E-04
  10  norm          17.687        7.1507       -.77485E-07    .19263E-03
  11  Prefactor     .10000E-03    21.040       -.46329E-05** at limit **
  12  norm          .10000E-03    2.3699       -.19549E-08** at limit **
  13  Prefactor     9.5302        15.183        .32255E-05    .83049E-04
  14  Prefactor     2.6130        34.365       -.16637E-04   -.62087E-04
  15  Prefactor     .10000E-03    21.695        .57038E-05** at limit **
  16  Prefactor     .27606        2.2545       -.81796E-06   -.61693E-03
  17  Prefactor     .10000E-03    6.3561       -.22873E-06** at limit **
  18  Prefactor     14.083        12.049       -.60013E-07   -.14563E-04
  19  Normalizat    1.0099        .18366        .12182E-05    .36534E-03
  20  Prefactor     1.0144        .16892        .13141E-07    .37070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.0192
  Prefactor  = 0.0001
  norm       = 1.6073
  Prefactor  = 0.0001
  norm       = 0.107864
  norm       = 26.1575
  norm       = 9.67085
  norm       = 0.0001
  Prefactor  = 6.01733
  norm       = 17.6869
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 9.53019
  Prefactor  = 2.61296
  Prefactor  = 0.0001
  Prefactor  = 0.276058
  Prefactor  = 0.0001
  Prefactor  = 14.0829
  Normalizat = 1.00993
  Prefactor  = 1.01441
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.739     FROM HESSE     STATUS=OK           299 CALLS     2069 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.019        52.107        .11097E-03   -1.4986    
   2  Prefactor     .10000E-03    1.9767        .11403E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.6073        4.7443        .29561E-03   -1.5454    
   4  Prefactor     .10000E-03    43.958        .46710E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10786        12.637        .19847E-02   -1.5642    
   6  norm          26.158        8.5060        .78325E-04   -1.4685    
   7  norm          9.6708        10.144        .12887E-03   -1.5086    
   8  norm          .10000E-03    8.1511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.0173        17.230        .16361E-03   -1.5217    
  10  norm          17.687        7.1545        .95227E-04   -1.4867    
  11  Prefactor     .10000E-03    21.103        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.3731        .12502E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     9.5302        15.191        .12978E-03   -1.5090    
  14  Prefactor     2.6130        35.697        .25157E-03   -1.5385    
  15  Prefactor     .10000E-03    21.666        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .27606        5.6084        .24306E-02   -1.5603    
  17  Prefactor     .10000E-03    6.3749        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     14.083        12.043        .10672E-03   -1.4957    
  19  Normalizat    1.0099        .21700        .25726E-03   -.92699    
  20  Prefactor     1.0144        .20033        .24831E-03   -.92251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4163e-08
Minuit parameter uncertainties:
  1  52.1712
  2  6.31634e-07
  3  4.74543
  4  0.00016218
  5  2.33445
  6  8.50639
  7  10.1458
  8  6.31162e-06
  9  17.2439
  10  7.15481
  11  8.51825e-06
  12  1.42707e-06
  13  15.1976
  14  19.3295
  15  1.03814e-05
  16  2.48839
  17  6.4002e-06
  18  12.0455
  19  0.217186
  20  0.200476
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.769e+01  7.155e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  1.014e+00  2.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.010e+00  2.172e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 17.12
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 8.76e-08 +/- 3.54e-08
Energy Flux (Fixed Index): 3.15e-05 +/- 1.28e-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) = 6919.55095556
delta logL = 0.188367920134

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6919.53411419
delta logL = 0.205209288032

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.879       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0195       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0318       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99955       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6919.534     FROM MIGRAD    STATUS=CONVERGED     43 CALLS      197 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.879        12.360        .23045E-02    .15538E-03
   2  alpha         2.0195        .55628        .28971        .58758E-04
   3  Normalizat    1.0318        .17632        .41988E-01    .52644E-04
   4  Prefactor     .99954        .16971        .46261E-01   -.11116E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 18.8787
  alpha      = 2.01949
  Normalizat = 1.03181
  Prefactor  = 0.999544
 **********
 **   18 **HESSE 
 **********

 FCN=   6919.534     FROM HESSE     STATUS=OK            33 CALLS      230 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.879        7.8063        .92180E-04   -1.4839    
   2  alpha         2.0195        .39356        .11431E-01   -.19341    
   3  Normalizat    1.0318        .20653        .25480E-03   -.91972    
   4  Prefactor     .99954        .19851        .24991E-03   -.92745    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.05018e-10
Minuit parameter uncertainties:
  1  7.8067
  2  0.395266
  3  0.206694
  4  0.198651
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/193535': 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) = 6919.53411419
delta logL = 0.205209288813

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.888e+01  7.807e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.019e+00  3.953e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  9.995e-01  1.987e-01  0.000e+00  1.000e+01 ( 1.000e+00)
559        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
560        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
557   Normalization:  1.032e+00  2.067e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 17.48
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.02 +/- 0.40
Photon Flux (Free Index): 7.24e-08 +/- 3.80e-08
Energy Flux (Free Index): 3.78e-05 +/- 2.01e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/193535/cmap_HighResolution_664156801_664416001_4FGL_J1321.1+2216_daily_bin1639.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.76e-08', energy_flux2='3.78e-05', photon_flux_error='3.54e-08', dlogl='2.05e-01', energy_flux='3.15e-05', photon_flux2='7.24e-08', job_status='DONE', time_completed='2022-01-21 00:23:46.252600', photon_index_error2='0.40', photon_index2='2.02', ts='17.12', fit_tolerance='1e-08', GAL='1.01', photon_index_error='0.00', energy_flux_error2='2.01e-05', EG='1.01', time_epoch_completed='1642753426.25', return_code='0', job_id='193535', GAL2='1.00', EG2='1.03', return_code2='0', energy_flux_error='1.28e-05', photon_flux_error2='3.80e-08', ts2='17.48', photon_index='2.28' WHERE bin_id='1639' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Jan 21 00:23:46 PST 2022

er <slac> at Fri Jan 21 00:07:26 2022
Job was executed on host(s) <bullet0225>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:11:57 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:11:57 2022
Terminated at Fri Jan 21 00:23:15 2022
Results reported at Fri Jan 21 00:23:15 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1639 200.296 22.2808 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1321.1+2216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   557.13 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             285.36 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            949 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0166>
Subject: Job 193535: <4FGL_J1321.1+2216_daily_bin1639> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1639> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Jan 21 00:07:24 2022
Job was executed on host(s) <bullet0166>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Jan 21 00:11:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Jan 21 00:11:36 2022
Terminated at Fri Jan 21 00:23:47 2022
Results reported at Fri Jan 21 00:23:47 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1639 200.296 22.2808 664156801 664416001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1321.1+2216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   551.00 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             283.09 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   730 sec.
    Turnaround time :                            983 sec.

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

