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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1153
RA = 200.296, Dec = 22.2808
tmin = 538185601, tmax = 538444801
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='498796', job_status='RUN', time_executed='2021-09-07 13:21:51.148999', time_epoch_executed='1631046111.15' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1153'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498796

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498796/ft1_4FGL_J1321.1+2216_daily_bin1153.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498796/ft2_4FGL_J1321.1+2216_daily_bin1153.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498796/ft1_4FGL_J1321.1+2216_daily_bin1153.fits outfile=/scratch/kocevski/498796/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1153.fits ra=200.296 dec=22.2808 rad=12.0 tmin=538185601.0 tmax=538444801.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.48
user 5.09
sys 0.33

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498796/ft1_filtered_4FGL_J1321.1+2216_daily_bin1153.fits" evtable="EVENTS" scfile=/scratch/kocevski/498796/ft2_4FGL_J1321.1+2216_daily_bin1153.fits sctable="SC_DATA" outfile=/scratch/kocevski/498796/ltcube_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.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/498796/ft2_4FGL_J1321.1+2216_daily_bin1153.fits
.....................!
real 16.93
user 16.10
sys 0.42

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498796/ft1_filtered_4FGL_J1321.1+2216_daily_bin1153.fits evtable="EVENTS" scfile=/scratch/kocevski/498796/ft2_4FGL_J1321.1+2216_daily_bin1153.fits sctable="SC_DATA" expcube=/scratch/kocevski/498796/ltcube_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.fits outfile=/scratch/kocevski/498796/expmap_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.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/498796/ltcube_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.fits
.....................!
real 193.76
user 188.15
sys 4.92

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/498796/ft1_filtered_4FGL_J1321.1+2216_daily_bin1153.fits scfile=/scratch/kocevski/498796/ft2_4FGL_J1321.1+2216_daily_bin1153.fits outfile=/scratch/kocevski/498796/cmap_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.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.54
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498796/ft1_filtered_4FGL_J1321.1+2216_daily_bin1153.fits scfile=/scratch/kocevski/498796/ft2_4FGL_J1321.1+2216_daily_bin1153.fits outfile=/scratch/kocevski/498796/cmap_HighResolution_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.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.39
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    8.0715       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    20.356       1.0000         .10000E-03   10000.    
    11 'Prefactor '    17.392       1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    24.829       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    44.472       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.3294       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0434       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=   2284.041     FROM MIGRAD    STATUS=CONVERGED    412 CALLS     2054 TOTAL
                     EDM=   .42E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    133.34       -.39138E-04** at limit **
   2  Prefactor     8.0707        13.943       -.41053E-06   -.45294E-04
   3  norm          .10000E-03    3.8820        .17054E-06** at limit **
   4  Prefactor     .10000E-03    9.7317        .32212E-06** at limit **
   5  norm          .10000E-03    3.6419        .24057E-06** at limit **
   6  norm          .10000E-03    2.9972        .38557E-06** at limit **
   7  norm          .10000E-03    3.8436        .11105E-06** at limit **
   8  norm          .10000E-03    24.502        .33421E-05** at limit **
   9  Prefactor     .10000E-03    24.535       -.36517E-05** at limit **
  10  norm          20.356        14.188        .89139E-07    .14516E-05
  11  Prefactor     17.383        50.573       -.11685E-04   -.64897E-05
  12  norm          .10000E-03    7.3617       -.19393E-06** at limit **
  13  Prefactor     24.829        39.817        .94704E-06    .12625E-04
  14  Prefactor     .10000E-03    60.961       -.54953E-05** at limit **
  15  Prefactor     .10000E-03    117.20        .29738E-04** at limit **
  16  Prefactor     .10000E-03    5.7176       -.57770E-07** at limit **
  17  Prefactor     44.478        42.706        .37054E-05   -.10331E-04
  18  Prefactor     .10000E-03    11.024       -.85954E-08** at limit **
  19  Normalizat    1.3294        .32015        .10024E-05    .21180E-05
  20  Prefactor     1.0434        .30424       -.25015E-06    .42160E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 8.0707
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 20.3563
  Prefactor  = 17.3834
  norm       = 0.0001
  Prefactor  = 24.8294
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 44.4777
  Prefactor  = 0.0001
  Normalizat = 1.32941
  Prefactor  = 1.0434
 **********
 **   18 **HESSE 
 **********

 FCN=   2284.041     FROM HESSE     STATUS=OK           285 CALLS     2339 TOTAL
                     EDM=   .84E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    133.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     8.0707        13.947        .14112E-03   -1.5140    
   3  norm          .10000E-03    3.8887        .91966E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    9.7435        .14562E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    3.6505        .89061E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    3.0051        .80794E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    3.8441        .91515E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    24.508        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    24.665        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          20.356        14.199        .88774E-04   -1.4805    
  11  Prefactor     17.383        50.783        .96039E-04   -1.4874    
  12  norm          .10000E-03    7.3702        .12664E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     24.829        40.244        .80392E-04   -1.4711    
  14  Prefactor     .10000E-03    61.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    117.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    5.7346        .11159E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     44.478        42.716        .60119E-04   -1.4373    
  18  Prefactor     .10000E-03    11.033        .15500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.3294        .38299        .25262E-03   -.82693    
  20  Prefactor     1.0434        .36267        .27030E-03   -.91297    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.37606e-12
Minuit parameter uncertainties:
  1  4.3814e-05
  2  13.9527
  3  6.70737e-07
  4  5.48923e-07
  5  1.27907e-06
  6  1.69952e-06
  7  4.29962e-07
  8  4.85444e-06
  9  7.39582e-06
  10  14.2016
  11  50.9099
  12  2.96499e-06
  13  40.2876
  14  4.40243e-05
  15  4.72521e-05
  16  5.02304e-06
  17  42.745
  18  1.22655e-05
  19  0.383812
  20  0.363524
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.036e+01  1.420e+01  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.043e+00  3.635e-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.329e+00  3.838e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.73
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.01e-07 +/- 7.03e-08
Energy Flux (Fixed Index): 3.63e-05 +/- 2.53e-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) = 2284.03982979
delta logL = 0.00110580738783

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 2284.03962319
delta logL = 0.0013124056677

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    20.650       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2479       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3314       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0421       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=   2284.040     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      255 TOTAL
                     EDM=   .96E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          20.646        15.526        .44071E-03    .66787E-04
   2  alpha         2.2482        .64524        .10630E-01    .11302E-04
   3  Normalizat    1.3314        .36923        .25246E-03    .16253E-03
   4  Prefactor     1.0422        .35442        .27044E-03    .16596E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 20.6458
  alpha      = 2.24817
  Normalizat = 1.33141
  Prefactor  = 1.04217
 **********
 **   18 **HESSE 
 **********

 FCN=   2284.040     FROM HESSE     STATUS=OK            25 CALLS      280 TOTAL
                     EDM=   .95E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          20.646        15.391        .17628E-04   -1.4799    
   2  alpha         2.2482        .63960        .42519E-03   -.10090    
   3  Normalizat    1.3314        .36947        .50492E-04   -.82634    
   4  Prefactor     1.0422        .35466        .54088E-04   -.91337    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.52414e-11
Minuit parameter uncertainties:
  1  15.394
  2  0.646864
  3  0.370203
  4  0.355462
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498796': 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) = 2284.03962286
delta logL = 0.0013127373436

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.065e+01  1.539e+01  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.248e+00  6.469e-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.042e+00  3.555e-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.331e+00  3.702e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.72
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.25 +/- 0.65
Photon Flux (Free Index): 9.88e-08 +/- 8.01e-08
Energy Flux (Free Index): 3.70e-05 +/- 2.97e-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/498796/cmap_HighResolution_538185601_538444801_4FGL_J1321.1+2216_daily_bin1153.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.01e-07', energy_flux2='3.70e-05', photon_flux_error='7.03e-08', dlogl='1.31e-03', energy_flux='3.63e-05', photon_flux2='9.88e-08', job_status='DONE', time_completed='2021-09-07 13:28:56.230510', photon_index_error2='0.65', photon_index2='2.25', ts='5.73', fit_tolerance='1e-08', GAL='1.04', photon_index_error='0.00', energy_flux_error2='2.97e-05', EG='1.33', time_epoch_completed='1631046536.23', return_code='0', job_id='498796', GAL2='1.04', EG2='1.33', return_code2='0', energy_flux_error='2.53e-05', photon_flux_error2='8.01e-08', ts2='5.72', photon_index='2.28' WHERE bin_id='1153' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:28:56 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 498796: <4FGL_J1321.1+2216_daily_bin1153> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1153 200.296 22.2808 538185601 538444801 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 :                                   422.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             342.31 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   437 sec.
    Turnaround time :                            455 sec.

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

