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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1492
RA = 200.296, Dec = 22.2808
tmin = 626054401, tmax = 626313601
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='500321', job_status='RUN', time_executed='2021-09-07 13:29:24.096782', time_epoch_executed='1631046564.1' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1492'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/500321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/500321/ft1_4FGL_J1321.1+2216_daily_bin1492.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/500321/ft2_4FGL_J1321.1+2216_daily_bin1492.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/500321/ft1_4FGL_J1321.1+2216_daily_bin1492.fits outfile=/scratch/kocevski/500321/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1492.fits ra=200.296 dec=22.2808 rad=12.0 tmin=626054401.0 tmax=626313601.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.36
user 3.97
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/500321/ft1_filtered_4FGL_J1321.1+2216_daily_bin1492.fits" evtable="EVENTS" scfile=/scratch/kocevski/500321/ft2_4FGL_J1321.1+2216_daily_bin1492.fits sctable="SC_DATA" outfile=/scratch/kocevski/500321/ltcube_626054401_626313601_4FGL_J1321.1+2216_daily_bin1492.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/500321/ft2_4FGL_J1321.1+2216_daily_bin1492.fits
.....................!
real 15.88
user 15.46
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/500321/ft1_filtered_4FGL_J1321.1+2216_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/500321/ft2_4FGL_J1321.1+2216_daily_bin1492.fits sctable="SC_DATA" expcube=/scratch/kocevski/500321/ltcube_626054401_626313601_4FGL_J1321.1+2216_daily_bin1492.fits outfile=/scratch/kocevski/500321/expmap_626054401_626313601_4FGL_J1321.1+2216_daily_bin1492.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/500321/ltcube_626054401_626313601_4FGL_J1321.1+2216_daily_bin1492.fits
.....................!
real 192.64
user 187.05
sys 4.97

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

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

This is gtbin version HEAD
real 0.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/500321/ft1_filtered_4FGL_J1321.1+2216_daily_bin1492.fits scfile=/scratch/kocevski/500321/ft2_4FGL_J1321.1+2216_daily_bin1492.fits outfile=/scratch/kocevski/500321/cmap_HighResolution_626054401_626313601_4FGL_J1321.1+2216_daily_bin1492.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/500321/ft1_filtered_4FGL_J1321.1+2216_daily_bin1492.fits evtable="EVENTS" scfile=/scratch/kocevski/500321/ft2_4FGL_J1321.1+2216_daily_bin1492.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/500321/Model_4FGL_J1321.1+2216_daily_bin1492.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/500321/ft1_filtered_4FGL_J1321.1+2216_daily_bin1492.fits....................!
real 46.82
user 45.36
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    55.387       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    19.659       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    4.6319       1.0000         .10000E-03   10000.    
     6 'norm      '    5.2691       1.0000         .10000E-03   10000.    
     7 'norm      '    3.9532       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    10.516       1.0000         .10000E-03   10000.    
    10 'norm      '    11.201       1.0000         .10000E-03   10000.    
    11 'Prefactor '    15.781       1.0000         .10000E-03   10000.    
    12 'norm      '    4.1060       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.6985       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    28.517       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.4502       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    7.7333       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .85370       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0890       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=   5503.924     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     2001 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     55.388        56.691        .90780E-07    .15985E-04
   2  Prefactor     .10000E-03    5.2756        .94710E-07** at limit **
   3  norm          19.661        7.0005        .41663E-06    .18531E-04
   4  Prefactor     .10000E-03    10.127       -.67320E-07** at limit **
   5  norm          4.6316        3.5877       -.77610E-07    .28326E-03
   6  norm          5.2576        7.2874       -.59967E-05   -.80508E-03
   7  norm          3.9686        9.8091        .11855E-04   -.44133E-03
   8  norm          .10000E-03    8.2689        .36919E-06** at limit **
   9  Prefactor     10.522        15.325        .15226E-05    .57160E-03
  10  norm          11.201        7.4906       -.15865E-06   -.13750E-03
  11  Prefactor     15.781        21.488        .20198E-07   -.17233E-04
  12  norm          4.1060        9.4306        .17065E-06   -.62072E-04
  13  Prefactor     9.6982        13.709        .10679E-05   -.68851E-04
  14  Prefactor     .10000E-03    6.4996       -.16183E-06** at limit **
  15  Prefactor     28.514        43.763        .21647E-06   -.96551E-04
  16  Prefactor     1.4506        4.2774        .46187E-06   -.90443E-04
  17  Prefactor     .10000E-03    10.073       -.14470E-06** at limit **
  18  Prefactor     7.7333        10.588        .15257E-07   -.31852E-04
  19  Normalizat    .85367        .18537        .76821E-06   -.22050E-04
  20  Prefactor     1.0891        .18108       -.36719E-06    .12877E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 55.3876
  Prefactor  = 0.0001
  norm       = 19.6609
  Prefactor  = 0.000100001
  norm       = 4.63156
  norm       = 5.25765
  norm       = 3.96855
  norm       = 0.000100005
  Prefactor  = 10.5225
  norm       = 11.2009
  Prefactor  = 15.7806
  norm       = 4.10596
  Prefactor  = 9.69819
  Prefactor  = 0.000100001
  Prefactor  = 28.5145
  Prefactor  = 1.45061
  Prefactor  = 0.0001
  Prefactor  = 7.73334
  Normalizat = 0.853668
  Prefactor  = 1.08907
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.924     FROM HESSE     STATUS=OK           295 CALLS     2296 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     55.388        56.702        .53899E-04   -1.4218    
   2  Prefactor     .10000E-03    5.3839        .16636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          19.661        6.9998        .90333E-04   -1.4821    
   4  Prefactor     .10000E-03    10.260        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          4.6316        3.5861        .11942E-03   -1.5278    
   6  norm          5.2576        7.2533        .12473E-03   -1.5249    
   7  norm          3.9686        9.7271        .10128E-02   -1.5310    
   8  norm          .10000E-03    8.3792        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     10.522        15.489        .12356E-03   -1.5059    
  10  norm          11.201        7.4434        .11971E-03   -1.5038    
  11  Prefactor     15.781        21.492        .10082E-03   -1.4913    
  12  norm          4.1060        9.3565        .19895E-03   -1.5303    
  13  Prefactor     9.6982        13.730        .64338E-03   -1.5085    
  14  Prefactor     .10000E-03    6.5155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     28.514        43.825        .75023E-04   -1.4639    
  16  Prefactor     1.4506        4.2661        .24719E-03   -1.5467    
  17  Prefactor     .10000E-03    10.129        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     7.7333        10.584        .14420E-03   -1.5152    
  19  Normalizat    .85367        .21284        .25556E-03   -.98108    
  20  Prefactor     1.0891        .20834        .23498E-03   -.89817    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.21197e-09
Minuit parameter uncertainties:
  1  56.7569
  2  1.62214e-05
  3  7.00009
  4  0.000202817
  5  3.58624
  6  7.25446
  7  9.731
  8  0.000406456
  9  15.4945
  10  7.44403
  11  21.5026
  12  9.35979
  13  13.7344
  14  0.000119187
  15  43.8742
  16  4.26695
  17  0.000114206
  18  10.5865
  19  0.213052
  20  0.208494
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.120e+01  7.444e+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.089e+00  2.085e-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.537e-01  2.131e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.50
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 5.55e-08 +/- 3.69e-08
Energy Flux (Fixed Index): 2.00e-05 +/- 1.33e-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) = 5503.90804623
delta logL = 0.0163033816089

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5503.90620816
delta logL = 0.0181414468634

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.862       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3917       1.0000          .0000       5.0000    
     3 'Normalizat'    .84752       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0926       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=   5503.906     FROM MIGRAD    STATUS=CONVERGED     81 CALLS      231 TOTAL
                     EDM=   .72E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.861        7.0108        .12157E-03    .10519E-02
   2  alpha         2.3917        .58489        .13044E-01    .10229E-03
   3  Normalizat    .84749        .20131        .25638E-03   -.69221E-04
   4  Prefactor     1.0926        .20460        .23463E-03   -.99601E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 10.8614
  alpha      = 2.39172
  Normalizat = 0.847486
  Prefactor  = 1.09262
 **********
 **   18 **HESSE 
 **********

 FCN=   5503.906     FROM HESSE     STATUS=OK            23 CALLS      254 TOTAL
                     EDM=   .70E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.861        6.9113        .48626E-05   -1.5049    
   2  alpha         2.3917        .57633        .52177E-03   -.43324E-01
   3  Normalizat    .84749        .20143        .10255E-04   -.98331    
   4  Prefactor     1.0926        .20472        .46926E-04   -.89703    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.04513e-10
Minuit parameter uncertainties:
  1  6.91183
  2  0.58157
  3  0.201606
  4  0.204867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/500321': 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) = 5503.90620813
delta logL = 0.0181414821509

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.086e+01  6.912e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.392e+00  5.816e-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.093e+00  2.049e-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.475e-01  2.016e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.53
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.39 +/- 0.58
Photon Flux (Free Index): 6.07e-08 +/- 4.49e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.20e-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/500321/cmap_HighResolution_626054401_626313601_4FGL_J1321.1+2216_daily_bin1492.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.55e-08', energy_flux2='1.93e-05', photon_flux_error='3.69e-08', dlogl='1.81e-02', energy_flux='2.00e-05', photon_flux2='6.07e-08', job_status='DONE', time_completed='2021-09-07 13:38:11.246485', photon_index_error2='0.58', photon_index2='2.39', ts='7.50', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='0.85', time_epoch_completed='1631047091.25', return_code='0', job_id='500321', GAL2='1.09', EG2='0.85', return_code2='0', energy_flux_error='1.33e-05', photon_flux_error2='4.49e-08', ts2='7.53', photon_index='2.28' WHERE bin_id='1492' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:38:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0123>
Subject: Job 500321: <4FGL_J1321.1+2216_daily_bin1492> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1492> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Sep  7 13:26:06 2021
Job was executed on host(s) <bullet0123>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:29:08 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:29:08 2021
Terminated at Tue Sep  7 13:38:12 2021
Results reported at Tue Sep  7 13:38:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1492 200.296 22.2808 626054401 626313601 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 :                                   525.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             352.20 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   543 sec.
    Turnaround time :                            726 sec.

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

