/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 4 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 = 7686
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin347
RA = 200.296, Dec = 22.2808
tmin = 329270401, tmax = 329529601
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='496324', job_status='RUN', time_executed='2021-09-07 13:11:29.027865', time_epoch_executed='1631045489.03' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='347'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496324

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496324/ft1_4FGL_J1321.1+2216_daily_bin347.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496324/ft2_4FGL_J1321.1+2216_daily_bin347.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496324/ft1_4FGL_J1321.1+2216_daily_bin347.fits outfile=/scratch/kocevski/496324/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin347.fits ra=200.296 dec=22.2808 rad=12.0 tmin=329270401.0 tmax=329529601.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.63
user 3.40
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496324/ft1_filtered_4FGL_J1321.1+2216_daily_bin347.fits" evtable="EVENTS" scfile=/scratch/kocevski/496324/ft2_4FGL_J1321.1+2216_daily_bin347.fits sctable="SC_DATA" outfile=/scratch/kocevski/496324/ltcube_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.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/496324/ft2_4FGL_J1321.1+2216_daily_bin347.fits
.....................!
real 15.09
user 14.66
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496324/ft1_filtered_4FGL_J1321.1+2216_daily_bin347.fits evtable="EVENTS" scfile=/scratch/kocevski/496324/ft2_4FGL_J1321.1+2216_daily_bin347.fits sctable="SC_DATA" expcube=/scratch/kocevski/496324/ltcube_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.fits outfile=/scratch/kocevski/496324/expmap_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.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/496324/ltcube_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.fits
.....................!
real 192.80
user 187.44
sys 4.82

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

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

This is gtbin version HEAD
real 0.59
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496324/ft1_filtered_4FGL_J1321.1+2216_daily_bin347.fits scfile=/scratch/kocevski/496324/ft2_4FGL_J1321.1+2216_daily_bin347.fits outfile=/scratch/kocevski/496324/cmap_HighResolution_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.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.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.250       1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.9445       1.0000         .10000E-03   10000.    
     3 'norm      '    6.6354       1.0000         .10000E-03   10000.    
     4 'Prefactor '    20.841       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-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      '    38.079       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .14314E-02   1.0000         .10000E-03   10000.    
    11 'Prefactor '    80.651       1.0000         .10000E-03   10000.    
    12 'norm      '    33.461       1.0000         .10000E-03   10000.    
    13 'Prefactor '    34.108       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.030       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.5582       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.5852       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2508       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .83326       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=   6359.391     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1746 TOTAL
                     EDM=   .53E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.273        44.623        .31480E-04    .58575E-05
   2  Prefactor     5.9442        5.4873        .89171E-07    .73429E-04
   3  norm          6.6348        4.9835       -.90711E-06   -.10416E-02
   4  Prefactor     20.841        15.448       -.11054E-05   -.14922E-04
   5  norm          .10000E-03    1.0693       -.49651E-09** at limit **
   6  norm          .10000E-03    1.7067       -.42392E-08** at limit **
   7  norm          .10000E-03    1.5570        .70774E-08** at limit **
   8  norm          38.068        23.562       -.68467E-05    .46582E-04
   9  Prefactor     .10000E-03    5.7346       -.13860E-07** at limit **
  10  norm          .10000E-03    7.6572       -.58875E-06** at limit **
  11  Prefactor     80.654        40.068        .23304E-05    .13282E-05
  12  norm          33.440        14.023        .21763E-05    .23522E-03
  13  Prefactor     34.108        23.075        .43751E-07    .10133E-04
  14  Prefactor     23.025        25.592       -.52902E-05    .33707E-05
  15  Prefactor     .10000E-03    14.530       -.22749E-06** at limit **
  16  Prefactor     1.5581        3.6866       -.35056E-06   -.77398E-03
  17  Prefactor     9.5860        10.000       -.41873E-06   -.11660E-04
  18  Prefactor     .10000E-03    6.8443        .58945E-07** at limit **
  19  Normalizat    1.2510        .19493       -.32249E-06    .99192E-04
  20  Prefactor     .83301        .17722        .35341E-06    .21002E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2728
  Prefactor  = 5.94417
  norm       = 6.63477
  Prefactor  = 20.8413
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 38.0682
  Prefactor  = 0.0001
  norm       = 0.000100002
  Prefactor  = 80.6536
  norm       = 33.4401
  Prefactor  = 34.1078
  Prefactor  = 23.0247
  Prefactor  = 0.0001
  Prefactor  = 1.55809
  Prefactor  = 9.586
  Prefactor  = 0.0001
  Normalizat = 1.25099
  Prefactor  = 0.833009
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.391     FROM HESSE     STATUS=OK           297 CALLS     2043 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.273        44.555        .32834E-03   -1.4486    
   2  Prefactor     5.9442        5.4945        .16470E-03   -1.5220    
   3  norm          6.6348        5.0137        .75099E-03   -1.5193    
   4  Prefactor     20.841        15.461        .87735E-04   -1.4795    
   5  norm          .10000E-03    1.0733        .80524E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    1.7207        .10169E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.5577        .97178E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          38.068        23.383        .64951E-04   -1.4473    
   9  Prefactor     .10000E-03    5.7454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    47.192        .38468E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     80.654        40.067        .22361E-03   -1.3909    
  12  norm          33.440        12.976        .69273E-04   -1.4551    
  13  Prefactor     34.108        23.177        .68615E-04   -1.4539    
  14  Prefactor     23.025        25.602        .83468E-04   -1.4748    
  15  Prefactor     .10000E-03    14.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.5581        3.6646        .22682E-03   -1.5458    
  17  Prefactor     9.5860        10.002        .12944E-03   -1.5089    
  18  Prefactor     .10000E-03    6.8977        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    1.2510        .23603        .25249E-03   -.85041    
  20  Prefactor     .83301        .21309        .28372E-03   -.98523    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07641e-09
Minuit parameter uncertainties:
  1  44.5944
  2  5.49495
  3  5.01399
  4  15.4637
  5  1.54503e-06
  6  2.44737e-06
  7  4.27455e-07
  8  23.3891
  9  6.96784e-07
  10  0.000572354
  11  40.0805
  12  12.9768
  13  23.1834
  14  25.6138
  15  1.58436e-06
  16  3.66514
  17  10.004
  18  2.33712e-06
  19  0.236234
  20  0.213302
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.000e-04  5.724e-04  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  2.281e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
326         beta:  7.755e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
327           Eb:  6.546e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
558    Prefactor:  8.330e-01  2.133e-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.251e+00  2.362e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 200.296 22.281
Photon Flux Upper Limit: 9.20e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.31e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496324/likelihoodResults_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.39078035
delta logL = -9.94425445242e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6359.39068085
delta logL = 6.55354597257e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10720E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2252       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2510       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83299       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=   6359.391     FROM MIGRAD    STATUS=CONVERGED    121 CALLS      291 TOTAL
                     EDM=   .15E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10383E-03    70.074        .55311E-01** at limit **
   2  alpha         1.6969        3.3617        .50000       -.13556E-06
   3  Normalizat    1.2510        .16567E-01    .25250E-03   -.16885E-04
   4  Prefactor     .83301        .15604E-01    .28372E-03   -.38066E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000103832
  alpha      = 1.69689
  Normalizat = 1.25099
  Prefactor  = 0.83301
 **********
 **   18 **HESSE 
 **********

 FCN=   6359.391     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      330 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10383E-03    57.533        .58822E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6969        3.8667        .50000       -.32704    
   3  Normalizat    1.2510        .15592E-01    .10100E-04   -.85041    
   4  Prefactor     .83301        .14685E-01    .11349E-04   -.98523    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.14345e-09
Minuit parameter uncertainties:
  1  0.0297268
  2  469.889
  3  0.0155918
  4  0.0146853
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496324': 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): 102
logL (Free Index) = 6359.39067966
delta logL = 1.24792404677e-06

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.038e-04  2.973e-02  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.697e+00  4.699e+02  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:  8.330e-01  1.469e-02  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.251e+00  1.559e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 200.296 22.281

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/496324/cmap_HighResolution_329270401_329529601_4FGL_J1321.1+2216_daily_bin347.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.31e-05', job_status='DONE', photon_flux_upper_limit='9.20e-08', time_completed='2021-09-07 13:21:15.184147', job_id='496324', GAL2='0.83', fit_tolerance='1e-08', EG2='1.25', EG='1.25', time_epoch_completed='1631046075.18', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.83', dlogl='1.25e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.28' WHERE bin_id='347' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:21:15 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 496324: <4FGL_J1321.1+2216_daily_bin347> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin347> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Sep  7 13:10:32 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:11:15 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:11:15 2021
Terminated at Tue Sep  7 13:21:16 2021
Results reported at Tue Sep  7 13:21:16 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin347 200.296 22.2808 329270401 329529601 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 :                                   584.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   600 sec.
    Turnaround time :                            644 sec.

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

