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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1090
RA = 200.296, Dec = 22.2808
tmin = 521856001, tmax = 522115201
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='498718', job_status='RUN', time_executed='2021-09-07 13:25:11.670028', time_epoch_executed='1631046311.67' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498718

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498718/ft1_4FGL_J1321.1+2216_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498718/ft2_4FGL_J1321.1+2216_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498718/ft1_4FGL_J1321.1+2216_daily_bin1090.fits outfile=/scratch/kocevski/498718/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1090.fits ra=200.296 dec=22.2808 rad=12.0 tmin=521856001.0 tmax=522115201.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.78
user 3.53
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498718/ft1_filtered_4FGL_J1321.1+2216_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/498718/ft2_4FGL_J1321.1+2216_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/498718/ltcube_521856001_522115201_4FGL_J1321.1+2216_daily_bin1090.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/498718/ft2_4FGL_J1321.1+2216_daily_bin1090.fits
.....................!
real 16.14
user 15.75
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498718/ft1_filtered_4FGL_J1321.1+2216_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/498718/ft2_4FGL_J1321.1+2216_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/498718/ltcube_521856001_522115201_4FGL_J1321.1+2216_daily_bin1090.fits outfile=/scratch/kocevski/498718/expmap_521856001_522115201_4FGL_J1321.1+2216_daily_bin1090.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/498718/ltcube_521856001_522115201_4FGL_J1321.1+2216_daily_bin1090.fits
.....................!
real 192.26
user 186.69
sys 4.85

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/498718/ft1_filtered_4FGL_J1321.1+2216_daily_bin1090.fits scfile=/scratch/kocevski/498718/ft2_4FGL_J1321.1+2216_daily_bin1090.fits outfile=/scratch/kocevski/498718/cmap_521856001_522115201_4FGL_J1321.1+2216_daily_bin1090.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=200.296 yref=22.2808 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.58
user 0.40
sys 0.17

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .89583E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    1.1402       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1326       1.0000         .10000E-03   10000.    
     6 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    22.518       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .35071E-01   1.0000         .10000E-03   10000.    
    10 'norm      '    24.473       1.0000         .10000E-03   10000.    
    11 'Prefactor '    42.920       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    16.578       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10179E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10198E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    5.5669       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    26.811       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .82668       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2421       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=   6011.286     FROM MIGRAD    STATUS=CONVERGED    436 CALLS     2081 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    39.407       -.65093E-05** at limit **
   2  Prefactor     .10000E-03    40.213       -.11447E-04** at limit **
   3  norm          1.1415        4.2991       -.29762E-05    .22389E-03
   4  Prefactor     .10000E-03    8.3341        .91845E-06** at limit **
   5  norm          6.1326        4.4955       -.50941E-06   -.29438E-05
   6  norm          .10000E-03    1.5370        .14477E-06** at limit **
   7  norm          .10000E-03    4.9131        .78122E-07** at limit **
   8  norm          22.529        21.671        .15654E-05    .52275E-04
   9  Prefactor     .10001E-03    15.358       -.53693E-06** at limit **
  10  norm          24.472        8.8784       -.63731E-07    .24734E-04
  11  Prefactor     42.932        33.087       -.23357E-05   -.60349E-04
  12  norm          .10000E-03    2.1848       -.46456E-07** at limit **
  13  Prefactor     16.561        22.809       -.29278E-05   -.88282E-04
  14  Prefactor     .10000E-03    6.8345        .10961E-06** at limit **
  15  Prefactor     .10000E-03    18.064       -.10142E-05** at limit **
  16  Prefactor     5.5667        5.9551       -.14594E-07    .87788E-04
  17  Prefactor     .10000E-03    7.7888       -.15325E-05** at limit **
  18  Prefactor     26.825        16.919        .21000E-05    .16492E-03
  19  Normalizat    .82642        .19669        .56249E-06   -.29458E-04
  20  Prefactor     1.2422        .18154       -.56499E-07    .61076E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 1.14155
  Prefactor  = 0.0001
  norm       = 6.13257
  norm       = 0.0001
  norm       = 0.0001
  norm       = 22.5287
  Prefactor  = 0.000100013
  norm       = 24.472
  Prefactor  = 42.9316
  norm       = 0.0001
  Prefactor  = 16.561
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.5667
  Prefactor  = 0.0001
  Prefactor  = 26.8251
  Normalizat = 0.826415
  Prefactor  = 1.24224
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.286     FROM HESSE     STATUS=OK           293 CALLS     2374 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    39.680        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.812        .37990E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          1.1415        4.4598        .31399E-03   -1.5494    
   4  Prefactor     .10000E-03    8.3768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1326        4.4727        .13431E-03   -1.5213    
   6  norm          .10000E-03    1.5489        .93829E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    5.0529        .33545E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          22.529        21.719        .84409E-04   -1.4758    
   9  Prefactor     .10001E-03    135.12        .57296E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.472        8.8865        .80973E-04   -1.4718    
  11  Prefactor     42.932        33.205        .61192E-04   -1.4397    
  12  norm          .10000E-03    2.1869        .11190E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     16.561        23.025        .98367E-04   -1.4894    
  14  Prefactor     .10000E-03    6.8403        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    18.079        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     5.5667        5.9861        .17027E-03   -1.5236    
  17  Prefactor     .10000E-03    7.8637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     26.825        17.131        .77368E-04   -1.4672    
  19  Normalizat    .82642        .23141        .29111E-03   -.99096    
  20  Prefactor     1.2422        .21600        .23798E-03   -.85041    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43425e-10
Minuit parameter uncertainties:
  1  0.000192752
  2  0.000320096
  3  4.46113
  4  1.59165e-05
  5  4.47291
  6  8.45927e-06
  7  1.39218e-05
  8  21.7261
  9  0.00270371
  10  8.88696
  11  33.2188
  12  1.80793e-06
  13  23.0371
  14  1.87437e-05
  15  2.8325e-05
  16  5.98673
  17  3.71277e-05
  18  17.1342
  19  0.231688
  20  0.216158
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.447e+01  8.887e+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.242e+00  2.162e-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:  8.264e-01  2.317e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 20.36
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.21e-07 +/- 4.40e-08
Energy Flux (Fixed Index): 4.37e-05 +/- 1.59e-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) = 6011.24867979
delta logL = 0.0373426261249

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6011.24515996
delta logL = 0.04086245085

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    25.122       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1746       1.0000          .0000       5.0000    
     3 'Normalizat'    .83809       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2349       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=   6011.245     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      208 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          25.122        15.975        .19981E-02   -.42658E-02
   2  alpha         2.1746        .59188        .24481        .11147E-04
   3  Normalizat    .83810        .18805        .65400E-01    .21039E-04
   4  Prefactor     1.2349        .18152        .53960E-01   -.23064E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 25.1218
  alpha      = 2.17458
  Normalizat = 0.838105
  Prefactor  = 1.23494
 **********
 **   18 **HESSE 
 **********

 FCN=   6011.245     FROM HESSE     STATUS=OK            31 CALLS      239 TOTAL
                     EDM=   .66E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          25.122        9.2831        .79922E-04   -1.4705    
   2  alpha         2.1746        .37071        .10036E-01   -.13054    
   3  Normalizat    .83810        .21974        .28931E-03   -.98670    
   4  Prefactor     1.2349        .21327        .23858E-03   -.85263    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.55938e-09
Minuit parameter uncertainties:
  1  9.28361
  2  0.372108
  3  0.219977
  4  0.213424
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498718': 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) = 6011.24515993
delta logL = 0.0408624854726

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  2.512e+01  9.284e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.175e+00  3.721e-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.235e+00  2.134e-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:  8.381e-01  2.200e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 20.44
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.17 +/- 0.37
Photon Flux (Free Index): 1.11e-07 +/- 5.24e-08
Energy Flux (Free Index): 4.60e-05 +/- 1.93e-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/498718/cmap_HighResolution_521856001_522115201_4FGL_J1321.1+2216_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.21e-07', energy_flux2='4.60e-05', photon_flux_error='4.40e-08', dlogl='4.09e-02', energy_flux='4.37e-05', photon_flux2='1.11e-07', job_status='DONE', time_completed='2021-09-07 13:34:11.563905', photon_index_error2='0.37', photon_index2='2.17', ts='20.36', fit_tolerance='1e-08', GAL='1.24', photon_index_error='0.00', energy_flux_error2='1.93e-05', EG='0.83', time_epoch_completed='1631046851.56', return_code='0', job_id='498718', GAL2='1.23', EG2='0.84', return_code2='0', energy_flux_error='1.59e-05', photon_flux_error2='5.24e-08', ts2='20.44', photon_index='2.28' WHERE bin_id='1090' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:34:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 498718: <4FGL_J1321.1+2216_daily_bin1090> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1090> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 13:21:14 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:21:23 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:23 2021
Terminated at Tue Sep  7 13:34:11 2021
Results reported at Tue Sep  7 13:34:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1090 200.296 22.2808 521856001 522115201 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 :                                   538.02 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             290.23 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   769 sec.
    Turnaround time :                            777 sec.

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

