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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1007
RA = 200.296, Dec = 22.2808
tmin = 500342401, tmax = 500601601
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='498584', job_status='RUN', time_executed='2021-09-07 13:23:00.537089', time_epoch_executed='1631046180.54' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1007'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498584

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498584/ft1_4FGL_J1321.1+2216_daily_bin1007.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498584/ft1_4FGL_J1321.1+2216_daily_bin1007.fits outfile=/scratch/kocevski/498584/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1007.fits ra=200.296 dec=22.2808 rad=12.0 tmin=500342401.0 tmax=500601601.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 4.84
user 4.44
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498584/ft1_filtered_4FGL_J1321.1+2216_daily_bin1007.fits" evtable="EVENTS" scfile=/scratch/kocevski/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits sctable="SC_DATA" outfile=/scratch/kocevski/498584/ltcube_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.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/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits
.....................!
real 16.67
user 16.25
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498584/ft1_filtered_4FGL_J1321.1+2216_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits sctable="SC_DATA" expcube=/scratch/kocevski/498584/ltcube_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.fits outfile=/scratch/kocevski/498584/expmap_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.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/498584/ltcube_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.fits
.....................!
real 193.07
user 187.28
sys 5.25

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/498584/ft1_filtered_4FGL_J1321.1+2216_daily_bin1007.fits scfile=/scratch/kocevski/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits outfile=/scratch/kocevski/498584/cmap_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.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.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498584/ft1_filtered_4FGL_J1321.1+2216_daily_bin1007.fits scfile=/scratch/kocevski/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits outfile=/scratch/kocevski/498584/cmap_HighResolution_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.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/498584/ft1_filtered_4FGL_J1321.1+2216_daily_bin1007.fits evtable="EVENTS" scfile=/scratch/kocevski/498584/ft2_4FGL_J1321.1+2216_daily_bin1007.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/498584/Model_4FGL_J1321.1+2216_daily_bin1007.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/498584/ft1_filtered_4FGL_J1321.1+2216_daily_bin1007.fits.....................!
real 48.93
user 47.38
sys 1.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10781E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    2.2755       1.0000         .10000E-03   10000.    
     3 'norm      '    .10171E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .11346E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    1.9533       1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10020E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    31.249       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10051E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .12665E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10285E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.320       1.0000         .10000E-03   10000.    
    13 'Prefactor '    30.082       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .38737E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10442E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    2.6524       1.0000         .10000E-03   10000.    
    17 'Prefactor '    21.343       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.682       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.4935       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .70145       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=   5407.831     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2102 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    75.739        .98898E-06** at limit **
   2  Prefactor     2.2778        7.7231        .18629E-05    .38010E-03
   3  norm          .10000E-03    4.7787       -.19869E-07** at limit **
   4  Prefactor     .10000E-03    7.9860       -.22139E-07** at limit **
   5  norm          1.9529        3.5772        .23386E-06   -.88465E-04
   6  norm          .10000E-03    3.4805       -.21708E-07** at limit **
   7  norm          .10000E-03    2.3604        .12022E-07** at limit **
   8  norm          31.295        21.321        .23024E-06    .25771E-03
   9  Prefactor     .10000E-03    4.7305        .12706E-07** at limit **
  10  norm          .10000E-03    7.3585        .22202E-05** at limit **
  11  Prefactor     .10000E-03    16.734       -.33953E-07** at limit **
  12  norm          10.287        10.925       -.22575E-05   -.51867E-03
  13  Prefactor     30.081        26.279        .10630E-06    .23694E-03
  14  Prefactor     .10229E-03    31.650       -.51128E-05** at limit **
  15  Prefactor     .10000E-03    45.990        .41155E-06** at limit **
  16  Prefactor     2.6529        3.8686        .19369E-06    .65083E-04
  17  Prefactor     21.364        22.338        .56331E-06    .12881E-03
  18  Prefactor     14.697        15.960        .86748E-07   -.10379E-03
  19  Normalizat    1.4932        .21005       -.91858E-06   -.74250E-04
  20  Prefactor     .70154        .18835        .23376E-06   -.85696E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 2.27784
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.95293
  norm       = 0.0001
  norm       = 0.0001
  norm       = 31.2955
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 0.0001
  norm       = 10.2872
  Prefactor  = 30.0814
  Prefactor  = 0.000102291
  Prefactor  = 0.0001
  Prefactor  = 2.6529
  Prefactor  = 21.3645
  Prefactor  = 14.6966
  Normalizat = 1.49319
  Prefactor  = 0.701535
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.831     FROM HESSE     STATUS=OK           291 CALLS     2393 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    75.967        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     2.2778        7.5176        .27222E-03   -1.5406    
   3  norm          .10000E-03    4.8470        .15695E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.0088        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          1.9529        3.5471        .18087E-03   -1.5428    
   6  norm          .10000E-03    3.5779        .26775E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3635        .11034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          31.295        21.384        .71676E-04   -1.4589    
   9  Prefactor     .10000E-03    4.7332        .15621E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    30.711        .34615E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    16.745        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.287        11.237        .12472E-03   -1.5066    
  13  Prefactor     30.081        25.868        .73051E-04   -1.4610    
  14  Prefactor     .10229E-03    162.98        .64658E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    46.063        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     2.6529        3.8520        .16853E-03   -1.5382    
  17  Prefactor     21.364        22.348        .86699E-04   -1.4783    
  18  Prefactor     14.697        15.977        .10453E-03   -1.4941    
  19  Normalizat    1.4932        .24825        .23204E-03   -.77970    
  20  Prefactor     .70154        .22188        .29934E-03   -1.0347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.39688e-08
Minuit parameter uncertainties:
  1  0.000892631
  2  7.52069
  3  3.19178e-06
  4  1.59555e-06
  5  3.54745
  6  3.90382e-06
  7  3.0568e-06
  8  21.3895
  9  4.05519e-06
  10  0.000484151
  11  6.68899e-06
  12  11.2398
  13  25.8775
  14  0.038751
  15  0.000279912
  16  3.8524
  17  22.3569
  18  15.9814
  19  0.248454
  20  0.222161
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.000e-04  4.842e-04  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:  7.015e-01  2.222e-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.493e+00  2.485e-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: 9.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.28e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/498584/likelihoodResults_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.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) = 5407.83106075
delta logL = -0.000154917900545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 5407.83090747
delta logL = -1.63694676303e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26896E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4034       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4936       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .70115       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=   5407.831     FROM MIGRAD    STATUS=FAILED       105 CALLS      286 TOTAL
                     EDM=   .26E-03    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .13368E-03    6439.8        .28566E-02** at limit **
   2  alpha         3.1640        .22251        .16476        .54554E-05
   3  Normalizat    1.4932        .17579        .23204E-03    .39052E-03
   4  Prefactor     .70154        .14699        .29934E-03    .31686E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   5407.827     FROM SIMPLEX   STATUS=PROGRESS     161 CALLS      447 TOTAL
                     EDM=   .95E-05    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .33958        6439.8        .52626E-03   -1.5591    
   2  alpha         3.1640        .22251        .32319E-06    .26884    
   3  Normalizat    1.4932        .17579        .19420E-06   -.77970    
   4  Prefactor     .70154        .14699        .79981E-07   -1.0347    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   5407.825     FROM MIGRAD    STATUS=CONVERGED     62 CALLS      509 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .54341        24.220        .11426E-02    .55668E-04
   2  alpha         2.9553        3.9747        .65905E-01    .55695E-05
   3  Normalizat    1.4877        .24308        .46408E-04    .68935E-04
   4  Prefactor     .70367        .22056        .11974E-04    .95137E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.543405
  alpha      = 2.95528
  Normalizat = 1.48768
  Prefactor  = 0.703669
 **********
 **   18 **HESSE 
 **********

 FCN=   5407.825     FROM HESSE     STATUS=OK            27 CALLS      536 TOTAL
                     EDM=   .31E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .54341        12.272        .45705E-04   -1.5561    
   2  alpha         2.9553        3.8531        .26362E-02    .18314    
   3  Normalizat    1.4877        .24239        .92816E-05   -.78125    
   4  Prefactor     .70367        .22053        .23947E-05   -1.0338    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.11682e-11
Minuit parameter uncertainties:
  1  5.16556
  2  3.2048
  3  0.242575
  4  0.220807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498584': 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) = 5407.824578
delta logL = 0.00632782973571

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  5.434e-01  5.166e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.955e+00  3.205e+00  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:  7.037e-01  2.208e-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.488e+00  2.426e-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/498584/cmap_HighResolution_500342401_500601601_4FGL_J1321.1+2216_daily_bin1007.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.28e-05', job_status='DONE', photon_flux_upper_limit='9.12e-08', time_completed='2021-09-07 13:32:51.289573', job_id='498584', GAL2='0.70', fit_tolerance='1e-08', EG2='1.49', EG='1.49', time_epoch_completed='1631046771.29', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.70', dlogl='6.33e-03', ts2='0.01', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='1007' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:32:51 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0102>
Subject: Job 498584: <4FGL_J1321.1+2216_daily_bin1007> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1007> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 13:21:02 2021
Job was executed on host(s) <bullet0102>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:21:06 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:21:06 2021
Terminated at Tue Sep  7 13:32:52 2021
Results reported at Tue Sep  7 13:32:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1007 200.296 22.2808 500342401 500601601 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 :                                   588.38 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            710 sec.

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

