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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1122
RA = 200.296, Dec = 22.2808
tmin = 530150401, tmax = 530409601
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='498762', job_status='RUN', time_executed='2021-09-07 13:22:42.253960', time_epoch_executed='1631046162.25' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1122'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498762

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498762/ft1_4FGL_J1321.1+2216_daily_bin1122.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498762/ft1_4FGL_J1321.1+2216_daily_bin1122.fits outfile=/scratch/kocevski/498762/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1122.fits ra=200.296 dec=22.2808 rad=12.0 tmin=530150401.0 tmax=530409601.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.02
user 2.74
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.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/498762/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1122.fits evtable="EVENTS" outfile="/scratch/kocevski/498762/ft1_filtered_4FGL_J1321.1+2216_daily_bin1122.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.47
user 0.30
sys 0.13

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498762/ft1_filtered_4FGL_J1321.1+2216_daily_bin1122.fits" evtable="EVENTS" scfile=/scratch/kocevski/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.fits sctable="SC_DATA" outfile=/scratch/kocevski/498762/ltcube_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.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/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.fits
.....................!
real 13.17
user 12.66
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498762/ft1_filtered_4FGL_J1321.1+2216_daily_bin1122.fits evtable="EVENTS" scfile=/scratch/kocevski/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.fits sctable="SC_DATA" expcube=/scratch/kocevski/498762/ltcube_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.fits outfile=/scratch/kocevski/498762/expmap_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.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/498762/ltcube_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.fits
.....................!
real 156.16
user 152.10
sys 3.51

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/498762/ft1_filtered_4FGL_J1321.1+2216_daily_bin1122.fits scfile=/scratch/kocevski/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.fits outfile=/scratch/kocevski/498762/cmap_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.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.48
user 0.34
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498762/ft1_filtered_4FGL_J1321.1+2216_daily_bin1122.fits scfile=/scratch/kocevski/498762/ft2_4FGL_J1321.1+2216_daily_bin1122.fits outfile=/scratch/kocevski/498762/cmap_HighResolution_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.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.49
user 0.35
sys 0.13

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10414E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.8566       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.8394       1.0000         .10000E-03   10000.    
     6 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10072E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    26.322       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.4805       1.0000         .10000E-03   10000.    
    12 'norm      '    10.602       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10153E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    4.8894       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.4347       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10044E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .64924       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.5036       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=   5872.080     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1748 TOTAL
                     EDM=   .28E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.682        .55929E-05** at limit **
   2  Prefactor     .10000E-03    2.6195        .43257E-08** at limit **
   3  norm          1.8538        3.7941        .60040E-07   -.10648E-03
   4  Prefactor     .10000E-03    6.9844       -.35463E-06** at limit **
   5  norm          2.8400        2.6547        .12113E-07    .11902E-05
   6  norm          .10000E-03    .94439        .18597E-07** at limit **
   7  norm          .10000E-03    1.2911       -.34722E-07** at limit **
   8  norm          .10000E-03    7.5143        .27474E-07** at limit **
   9  Prefactor     .10000E-03    18.685       -.43607E-06** at limit **
  10  norm          26.321        9.4371       -.31907E-06   -.23937E-04
  11  Prefactor     9.3248        34.336       -.18818E-06   -.26350E-05
  12  norm          10.599        9.0729       -.50542E-06   -.24992E-04
  13  Prefactor     .10000E-03    28.568       -.10595E-04** at limit **
  14  Prefactor     .10000E-03    5.4260        .83080E-07** at limit **
  15  Prefactor     .10000E-03    25.052        .61292E-05** at limit **
  16  Prefactor     4.8909        4.8779       -.86356E-07    .26826E-04
  17  Prefactor     2.4326        4.7111        .82425E-06   -.75503E-03
  18  Prefactor     .10000E-03    6.3844        .81143E-07** at limit **
  19  Normalizat    .64901        .18002        .43161E-06    .88648E-04
  20  Prefactor     1.5039        .18566       -.10607E-06    .91978E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.85376
  Prefactor  = 0.0001
  norm       = 2.84003
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 26.3215
  Prefactor  = 9.32476
  norm       = 10.599
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.89088
  Prefactor  = 2.43259
  Prefactor  = 0.0001
  Normalizat = 0.649015
  Prefactor  = 1.50388
 **********
 **   18 **HESSE 
 **********

 FCN=   5872.080     FROM HESSE     STATUS=OK           287 CALLS     2035 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.769        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    2.6320        .12111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.8538        3.7778        .20672E-03   -1.5436    
   4  Prefactor     .10000E-03    7.0169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.8400        2.6536        .11723E-03   -1.5371    
   6  norm          .10000E-03    .94859        .72695E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.2915        .85034E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    7.5286        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    19.194        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          26.321        9.4407        .78082E-04   -1.4681    
  11  Prefactor     9.3248        34.347        .13015E-03   -1.5097    
  12  norm          10.599        9.0729        .12305E-03   -1.5057    
  13  Prefactor     .10000E-03    28.788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.4280        .17433E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    25.158        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     4.8909        4.8958        .15943E-03   -1.5266    
  17  Prefactor     2.4326        12.409        .13112E-02   -1.5396    
  18  Prefactor     .10000E-03    6.4203        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .64901        .20966        .30318E-03   -1.0594    
  20  Prefactor     1.5039        .21836        .22063E-03   -.77431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.85595e-09
Minuit parameter uncertainties:
  1  0.000113053
  2  2.85954e-07
  3  3.77832
  4  4.57576e-06
  5  2.65373
  6  2.34273e-08
  7  1.63364e-07
  8  3.17397e-06
  9  2.7996e-06
  10  9.44121
  11  34.42
  12  9.07406
  13  8.07246e-05
  14  2.65657e-06
  15  0.000109038
  16  4.89624
  17  10.9916
  18  3.87654e-07
  19  0.209923
  20  0.218493
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.632e+01  9.441e+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.504e+00  2.185e-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:  6.490e-01  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 21.45
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.30e-07 +/- 4.68e-08
Energy Flux (Fixed Index): 4.70e-05 +/- 1.68e-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) = 5871.64322577
delta logL = 0.436408565311

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5871.58790241
delta logL = 0.491731925199

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.753       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9498       1.0000          .0000       5.0000    
     3 'Normalizat'    .68217       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4818       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=   5871.588     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      212 TOTAL
                     EDM=   .18E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.753        11.676        .18679E-02   -.61069E-02
   2  alpha         1.9500        .35238        .21923       -.21973E-05
   3  Normalizat    .68224        .17550        .66982E-01    .25133E-04
   4  Prefactor     1.4818        .18445        .50206E-01   -.84622E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 28.7526
  alpha      = 1.95003
  Normalizat = 0.682236
  Prefactor  = 1.4818
 **********
 **   18 **HESSE 
 **********

 FCN=   5871.588     FROM HESSE     STATUS=OK            31 CALLS      243 TOTAL
                     EDM=   .13E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.753        10.049        .74716E-04   -1.4635    
   2  alpha         1.9500        .32120        .91145E-02   -.22180    
   3  Normalizat    .68224        .20460        .29639E-03   -1.0460    
   4  Prefactor     1.4818        .21553        .22194E-03   -.78051    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31555e-08
Minuit parameter uncertainties:
  1  10.05
  2  0.322137
  3  0.204833
  4  0.215667
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498762': 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) = 5871.58790188
delta logL = 0.491732446592

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.875e+01  1.005e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.950e+00  3.221e-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:  1.482e+00  2.157e-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:  6.822e-01  2.048e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 22.57
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.95 +/- 0.32
Photon Flux (Free Index): 1.04e-07 +/- 4.52e-08
Energy Flux (Free Index): 6.13e-05 +/- 2.92e-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/498762/cmap_HighResolution_530150401_530409601_4FGL_J1321.1+2216_daily_bin1122.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.30e-07', energy_flux2='6.13e-05', photon_flux_error='4.68e-08', dlogl='4.92e-01', energy_flux='4.70e-05', photon_flux2='1.04e-07', job_status='DONE', time_completed='2021-09-07 13:29:45.707358', photon_index_error2='0.32', photon_index2='1.95', ts='21.45', fit_tolerance='1e-08', GAL='1.50', photon_index_error='0.00', energy_flux_error2='2.92e-05', EG='0.65', time_epoch_completed='1631046585.71', return_code='0', job_id='498762', GAL2='1.48', EG2='0.68', return_code2='0', energy_flux_error='1.68e-05', photon_flux_error2='4.52e-08', ts2='22.57', photon_index='2.28' WHERE bin_id='1122' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:29:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0135>
Subject: Job 498762: <4FGL_J1321.1+2216_daily_bin1122> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1122> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 13:21:18 2021
Job was executed on host(s) <bullet0135>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:21:28 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:28 2021
Terminated at Tue Sep  7 13:29:46 2021
Results reported at Tue Sep  7 13:29:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1122 200.296 22.2808 530150401 530409601 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 :                                   421.35 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             347.18 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   497 sec.
    Turnaround time :                            508 sec.

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

