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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin756
RA = 200.296, Dec = 22.2808
tmin = 435283201, tmax = 435542401
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='497320', job_status='RUN', time_executed='2021-09-07 13:20:10.137189', time_epoch_executed='1631046010.14' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='756'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497320

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497320/ft1_4FGL_J1321.1+2216_daily_bin756.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497320/ft1_4FGL_J1321.1+2216_daily_bin756.fits outfile=/scratch/kocevski/497320/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin756.fits ra=200.296 dec=22.2808 rad=12.0 tmin=435283201.0 tmax=435542401.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 5.25
user 4.93
sys 0.26

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.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/497320/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin756.fits evtable="EVENTS" outfile="/scratch/kocevski/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.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.52
user 0.35
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.fits" evtable="EVENTS" scfile=/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits sctable="SC_DATA" outfile=/scratch/kocevski/497320/ltcube_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.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/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits
.....................!
real 17.65
user 17.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.fits evtable="EVENTS" scfile=/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits sctable="SC_DATA" expcube=/scratch/kocevski/497320/ltcube_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.fits outfile=/scratch/kocevski/497320/expmap_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.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/497320/ltcube_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.fits
.....................!
real 193.28
user 187.17
sys 4.87

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/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.fits scfile=/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits outfile=/scratch/kocevski/497320/cmap_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.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.56
user 0.39
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.fits scfile=/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits outfile=/scratch/kocevski/497320/cmap_HighResolution_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.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.57
user 0.40
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.fits', '/scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits', expMap='/scratch/kocevski/497320/expmap_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.fits', expCube='/scratch/kocevski/497320/ltcube_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/497320/Model_4FGL_J1321.1+2216_daily_bin756.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/497320/ft1_filtered_4FGL_J1321.1+2216_daily_bin756.fits
Spacecraft file(s): /scratch/kocevski/497320/ft2_4FGL_J1321.1+2216_daily_bin756.fits
Exposure map: /scratch/kocevski/497320/expmap_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.fits
Exposure cube: /scratch/kocevski/497320/ltcube_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/497320/Model_4FGL_J1321.1+2216_daily_bin756.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) = 5168.67911959

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10376E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    8.9615       1.0000         .10000E-03   10000.    
     4 'Prefactor '    24.693       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    3.3962       1.0000         .10000E-03   10000.    
     7 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .67747E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    20.255       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    4.6816       1.0000         .10000E-03   10000.    
    15 'Prefactor '    43.170       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .62116       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    8.3282       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3847       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .89060       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   5168.674     FROM MIGRAD    STATUS=FAILED       768 CALLS     2673 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.327        .18142E-02** at limit **
   2  Prefactor     .10009E-03    116.73        .33978E-02** at limit **
   3  norm          8.9610        6.9934        .13389E-03    .20888E-04
   4  Prefactor     24.686        19.908        .80612E-04    .16359E-04
   5  norm          .10000E-03    1.7266        .92058E-03** at limit **
   6  norm          3.3998        4.1904        .15349E-03   -.12147E-04
   7  norm          .10000E-03    5.0773        .15742E-02** at limit **
   8  norm          .10000E-03    12.813        .18142E-02** at limit **
   9  Prefactor     .38598E-03    26.662        .85686E-01** at limit **
  10  norm          .10000E-03    3.9759        .13931E-02** at limit **
  11  Prefactor     20.226        40.107        .88995E-04   -.63362E-04
  12  norm          .10000E-03    12.434        .18142E-02** at limit **
  13  Prefactor     .10000E-03    7.4792        .18142E-02** at limit **
  14  Prefactor     4.6805        30.968        .18599E-03    .12286E-04
  15  Prefactor     43.161        72.652        .61015E-04   -.78257E-05
  16  Prefactor     .62066        6.0355        .25005E-02    .29326E-02
  17  Prefactor     .10000E-03    5.7752        .16863E-02** at limit **
  18  Prefactor     8.3230        16.106        .13892E-03    .26843E-04
  19  Normalizat    1.3850        .26151        .24263E-03    .32352E-03
  20  Prefactor     .89047        .24422        .27483E-03    .10309E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5168.674     FROM SIMPLEX   STATUS=UNCHANGED   1072 CALLS     3745 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.327        .10132E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10009E-03    116.73        .31147E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9610        6.9934        .45162E-06   -1.5109    
   4  Prefactor     24.686        19.908        .44338E-06   -1.4714    
   5  norm          .10000E-03    1.7266        .13037E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3998        4.1904        .45831E-06   -1.5339    
   7  norm          .10000E-03    5.0773        .22818E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.813        .40316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38598E-03    26.662        .75624E-06   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9759        .25707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.226        40.107        .44595E-06   -1.4808    
  12  norm          .10000E-03    12.434        .42500E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4792        .33085E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6805        30.968        .45615E-06   -1.5275    
  15  Prefactor     43.161        72.652        .42953E-06   -1.4393    
  16  Prefactor     .62066        6.0355        .46506E-06   -1.5550    
  17  Prefactor     .10000E-03    5.7752        .37986E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3230        16.106        .45234E-06   -1.5131    
  19  Normalizat    1.3850        .26151        .24383E-06   -.81064    
  20  Prefactor     .89047        .24422        .28819E-06   -.96475    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5168.674     FROM MIGRAD    STATUS=CONVERGED    288 CALLS     4033 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    52.328        .36285E-03** at limit **
   2  Prefactor     .10000E-03    121.42        .13591E-02** at limit **
   3  norm          8.9610        6.9932        .53556E-05   -.21228E-05
   4  Prefactor     24.686        19.905        .32245E-05   -.35257E-05
   5  norm          .10000E-03    1.7267        .18412E-03** at limit **
   6  norm          3.3998        4.1870        .61396E-05   -.44440E-05
   7  norm          .10000E-03    5.0774        .31484E-03** at limit **
   8  norm          .10000E-03    12.814        .36285E-03** at limit **
   9  Prefactor     .38609E-03    23.526        .92653E-01** at limit **
  10  norm          .10000E-03    3.9768        .27863E-03** at limit **
  11  Prefactor     20.226        40.100        .35598E-05   -.63873E-06
  12  norm          .10000E-03    12.443        .36285E-03** at limit **
  13  Prefactor     .10000E-03    7.4797        .36285E-03** at limit **
  14  Prefactor     4.6805        30.948        .74396E-05   -.91688E-06
  15  Prefactor     43.161        72.568        .24406E-05     .0000    
  16  Prefactor     .62069        6.0231        .50009E-03    .85931E-05
  17  Prefactor     .10000E-03    5.7754        .33726E-03** at limit **
  18  Prefactor     8.3230        16.100        .55567E-05   -.40919E-06
  19  Normalizat    1.3850        .26154        .48526E-04   -.37016E-04
  20  Prefactor     .89047        .24441        .10993E-04   -.33300E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 8.96096
  Prefactor  = 24.6858
  norm       = 0.0001
  norm       = 3.39981
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000386086
  norm       = 0.0001
  Prefactor  = 20.226
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.68051
  Prefactor  = 43.1609
  Prefactor  = 0.620687
  Prefactor  = 0.0001
  Prefactor  = 8.32302
  Normalizat = 1.38497
  Prefactor  = 0.890468
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.674     FROM HESSE     STATUS=OK           283 CALLS     4316 TOTAL
                     EDM=   .10E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.328        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    122.32        .27182E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          8.9610        6.9904        .10711E-05   -1.5109    
   4  Prefactor     24.686        19.859        .64490E-06   -1.4714    
   5  norm          .10000E-03    1.7267        .36823E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          3.3998        4.1873        .12279E-05   -1.5339    
   7  norm          .10000E-03    5.0774        .62967E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    12.814        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .38609E-03    24.600        .90076E-01   -1.5705    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    3.9769        .55725E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     20.226        39.662        .71196E-06   -1.4808    
  12  norm          .10000E-03    12.444        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    7.4797        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     4.6805        30.988        .14879E-05   -1.5275    
  15  Prefactor     43.161        72.580        .24406E-05   -1.4393    
  16  Prefactor     .62069        6.0174        .20004E-04   -1.5550    
  17  Prefactor     .10000E-03    5.7754        .67453E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     8.3230        16.072        .11113E-05   -1.5131    
  19  Normalizat    1.3850        .26163        .97052E-05   -.81064    
  20  Prefactor     .89047        .24460        .21986E-05   -.96475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.04678e-11
Minuit parameter uncertainties:
  1  1.3194e-06
  2  0.000216824
  3  6.99108
  4  19.8639
  5  1.22783e-07
  6  4.18768
  7  1.84276e-07
  8  6.40864e-07
  9  0.167851
  10  4.26858e-07
  11  39.714
  12  3.28749e-06
  13  3.73054e-07
  14  24.1042
  15  72.729
  16  3.86537
  17  2.80345e-07
  18  16.0799
  19  0.261883
  20  0.244897
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.000e-04  4.269e-07  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:  8.905e-01  2.449e-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.385e+00  2.619e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 7.17e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497320/likelihoodResults_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.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) = 5168.67471358
delta logL = -0.00119506776718

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5168.67351853
delta logL = -9.30140231503e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2861       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3850       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .89048       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5168.674     FROM MIGRAD    STATUS=CONVERGED    100 CALLS      244 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    8.2652        .13942E-02** at limit **
   2  alpha         2.5152        2.5590        .16537        .32310E-08
   3  Normalizat    1.3850        .25307        .24263E-03   -.10247E-03
   4  Prefactor     .89047        .23715        .27483E-03   -.93530E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.51524
  Normalizat = 1.38497
  Prefactor  = 0.890468
 **********
 **   18 **HESSE 
 **********

 FCN=   5168.674     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .14E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.0618        .27884E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.5152        3.5395        .66150E-02    .60942E-02
   3  Normalizat    1.3850        .25332        .48525E-04   -.81064    
   4  Prefactor     .89047        .23738        .10993E-04   -.96475    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.4345e-11
Minuit parameter uncertainties:
  1  2.81715e-06
  2  340.213
  3  0.253548
  4  0.237657
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497320': 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) = 5168.67351825
delta logL = 2.62451067101e-07

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.000e-04  2.817e-06  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.515e+00  3.402e+02  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:  8.905e-01  2.377e-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.385e+00  2.535e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.296 22.281

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/497320/cmap_HighResolution_435283201_435542401_4FGL_J1321.1+2216_daily_bin756.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.58e-05', job_status='DONE', photon_flux_upper_limit='7.17e-08', time_completed='2021-09-07 13:31:31.580250', job_id='497320', GAL2='0.89', fit_tolerance='1e-08', EG2='1.38', EG='1.38', time_epoch_completed='1631046691.58', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.89', dlogl='2.62e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='756' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:31:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0300>
Subject: Job 497320: <4FGL_J1321.1+2216_daily_bin756> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin756> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Sep  7 13:16:03 2021
Job was executed on host(s) <bullet0300>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:18:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep  7 13:18:22 2021
Terminated at Tue Sep  7 13:31:32 2021
Results reported at Tue Sep  7 13:31:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin756 200.296 22.2808 435283201 435542401 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 :                                   676.43 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             299.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   789 sec.
    Turnaround time :                            929 sec.

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

