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


Performing analysis on: 4FGL_J1321.1+2216_daily_bin865
RA = 200.296, Dec = 22.2808
tmin = 463536001, tmax = 463795201
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='498404', job_status='RUN', time_executed='2021-09-07 13:20:58.399087', time_epoch_executed='1631046058.4' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='865'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/498404

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/498404/ft1_4FGL_J1321.1+2216_daily_bin865.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/498404/ft1_4FGL_J1321.1+2216_daily_bin865.fits outfile=/scratch/kocevski/498404/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin865.fits ra=200.296 dec=22.2808 rad=12.0 tmin=463536001.0 tmax=463795201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 3.02
user 2.70
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/498404/ft1_filtered_4FGL_J1321.1+2216_daily_bin865.fits" evtable="EVENTS" scfile=/scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits sctable="SC_DATA" outfile=/scratch/kocevski/498404/ltcube_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.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/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits
.....................!
real 15.15
user 14.79
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/498404/ft1_filtered_4FGL_J1321.1+2216_daily_bin865.fits evtable="EVENTS" scfile=/scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits sctable="SC_DATA" expcube=/scratch/kocevski/498404/ltcube_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.fits outfile=/scratch/kocevski/498404/expmap_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.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/498404/ltcube_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.fits
.....................!
real 156.82
user 152.85
sys 3.32

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/498404/ft1_filtered_4FGL_J1321.1+2216_daily_bin865.fits scfile=/scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits outfile=/scratch/kocevski/498404/cmap_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.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.53
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/498404/ft1_filtered_4FGL_J1321.1+2216_daily_bin865.fits scfile=/scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits outfile=/scratch/kocevski/498404/cmap_HighResolution_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.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.50
user 0.34
sys 0.15

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/498404/ft1_filtered_4FGL_J1321.1+2216_daily_bin865.fits', '/scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits', expMap='/scratch/kocevski/498404/expmap_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.fits', expCube='/scratch/kocevski/498404/ltcube_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/498404/Model_4FGL_J1321.1+2216_daily_bin865.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/498404/ft1_filtered_4FGL_J1321.1+2216_daily_bin865.fits
Spacecraft file(s): /scratch/kocevski/498404/ft2_4FGL_J1321.1+2216_daily_bin865.fits
Exposure map: /scratch/kocevski/498404/expmap_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.fits
Exposure cube: /scratch/kocevski/498404/ltcube_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/498404/Model_4FGL_J1321.1+2216_daily_bin865.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 6203.18015545

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.7992       1.0000         .10000E-03   10000.    
     2 'Prefactor '    3.7626       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.2801       1.0000         .10000E-03   10000.    
     5 'norm      '    .94413       1.0000         .10000E-03   10000.    
     6 'norm      '    4.5541       1.0000         .10000E-03   10000.    
     7 'norm      '    4.6943       1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    5.2607       1.0000         .10000E-03   10000.    
    10 'norm      '    18.274       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10060E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    8.0831       1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.8870       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .94784       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    1.4927       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0460       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.2919       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=   6203.097     FROM MIGRAD    STATUS=CONVERGED    443 CALLS     1803 TOTAL
                     EDM=   .66E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.5659        501.19       -.20644E-05   -.29377E-05
   2  Prefactor     3.7623        6.2423        .25136E-06   -.49174E-04
   3  norm          .10000E-03    3.8943       -.37702E-06** at limit **
   4  Prefactor     6.2798        13.798        .10330E-05    .16641E-04
   5  norm          .94412        3.2024        .13715E-05   -.31060E-04
   6  norm          4.5602        7.8858       -.60686E-06   -.68454E-04
   7  norm          4.6778        11.274        .13420E-05    .16421E-04
   8  norm          .10000E-03    7.7675        .96211E-07** at limit **
   9  Prefactor     5.2506        17.168        .24264E-05    .51537E-04
  10  norm          18.273        7.8434        .53455E-06    .18734E-03
  11  Prefactor     .10000E-03    39.782       -.21998E-06** at limit **
  12  norm          .10000E-03    2.6454        .19276E-06** at limit **
  13  Prefactor     .10000E-03    9.3430        .81522E-07** at limit **
  14  Prefactor     8.0817        19.015        .21087E-06   -.17740E-04
  15  Prefactor     6.8899        133.92       -.10106E-05   -.71667E-05
  16  Prefactor     .94837        4.6479        .22786E-05   -.99192E-04
  17  Prefactor     .10000E-03    8.4944       -.41122E-07** at limit **
  18  Prefactor     1.4949        20.500        .49104E-06   -.49321E-04
  19  Normalizat    1.0460        .20387       -.21321E-05   -.34428E-04
  20  Prefactor     1.2919        .19361        .37343E-06   -.16617E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.56589
  Prefactor  = 3.76231
  norm       = 0.0001
  Prefactor  = 6.27979
  norm       = 0.94412
  norm       = 4.56018
  norm       = 4.67778
  norm       = 0.0001
  Prefactor  = 5.25064
  norm       = 18.2731
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 8.08166
  Prefactor  = 6.88994
  Prefactor  = 0.948371
  Prefactor  = 0.0001
  Prefactor  = 1.49492
  Normalizat = 1.04597
  Prefactor  = 1.29188
 **********
 **   18 **HESSE 
 **********

 FCN=   6203.097     FROM HESSE     STATUS=OK           297 CALLS     2100 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.5659        505.30        .24316E-03   -1.5388    
   2  Prefactor     3.7623        6.2304        .20813E-03   -1.5320    
   3  norm          .10000E-03    3.9056        .15130E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.2798        13.807        .16018E-03   -1.5207    
   5  norm          .94412        3.2080        .25226E-03   -1.5514    
   6  norm          4.5602        8.1009        .17142E-03   -1.5281    
   7  norm          4.6778        11.550        .18573E-03   -1.5275    
   8  norm          .10000E-03    7.7730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     5.2506        17.298        .17525E-03   -1.5250    
  10  norm          18.273        7.9024        .93693E-04   -1.4853    
  11  Prefactor     .10000E-03    39.899        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6489        .12505E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    9.3786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     8.0817        19.011        .14102E-03   -1.5139    
  15  Prefactor     6.8899        135.12        .15288E-03   -1.5183    
  16  Prefactor     .94837        4.8408        .32544E-03   -1.5513    
  17  Prefactor     .10000E-03    8.5219        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     1.4949        21.419        .35080E-03   -1.5463    
  19  Normalizat    1.0460        .24270        .27862E-03   -.91506    
  20  Prefactor     1.2919        .23432        .24903E-03   -.83549    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59673e-10
Minuit parameter uncertainties:
  1  72.6437
  2  6.23146
  3  1.36825e-05
  4  13.8139
  5  3.20862
  6  8.10281
  7  11.5555
  8  3.66612e-06
  9  17.3149
  10  7.90286
  11  1.69877e-07
  12  2.84059e-06
  13  1.08332e-06
  14  19.0256
  15  61.1827
  16  4.28558
  17  7.99683e-06
  18  11.3216
  19  0.242959
  20  0.23451
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.827e+01  7.903e+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.292e+00  2.345e-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.046e+00  2.430e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 13.15
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 9.05e-08 +/- 3.91e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.41e-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) = 6202.66821156
delta logL = 0.428594410754

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6202.65689353
delta logL = 0.439912434194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    18.003       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8771       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0806       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2725       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=   6202.657     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      220 TOTAL
                     EDM=   .42E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 12.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          18.001        8.6284       -.12021E-05   -.72847E-04
   2  alpha         1.8764        .42318       -.19780E-04    .15249E-04
   3  Normalizat    1.0810        .19434        .17310E-05    .20317E-03
   4  Prefactor     1.2721        .18856       -.58794E-06    .23295E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 18.001
  alpha      = 1.8764
  Normalizat = 1.08102
  Prefactor  = 1.27207
 **********
 **   18 **HESSE 
 **********

 FCN=   6202.657     FROM HESSE     STATUS=OK            31 CALLS      251 TOTAL
                     EDM=   .65E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          18.001        8.5829        .94395E-04   -1.4859    
   2  alpha         1.8764        .42044        .11575E-01   -.25210    
   3  Normalizat    1.0810        .23294        .27467E-03   -.90364    
   4  Prefactor     1.2721        .22717        .25070E-03   -.84141    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5043e-11
Minuit parameter uncertainties:
  1  8.58344
  2  0.42258
  3  0.233159
  4  0.227349
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/498404': 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) = 6202.65689083
delta logL = 0.439915138125

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  1.800e+01  8.583e+00  1.000e-04  1.000e+04 ( 1.000e-12)
325        alpha:  1.876e+00  4.226e-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.272e+00  2.273e-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.081e+00  2.332e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.01
Ra Dec: 200.296 22.281
Photon Index (Free Index): 1.88 +/- 0.42
Photon Flux (Free Index): 6.13e-08 +/- 3.98e-08
Energy Flux (Free Index): 4.16e-05 +/- 2.43e-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/498404/cmap_HighResolution_463536001_463795201_4FGL_J1321.1+2216_daily_bin865.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.05e-08', energy_flux2='4.16e-05', photon_flux_error='3.91e-08', dlogl='4.40e-01', energy_flux='3.26e-05', photon_flux2='6.13e-08', job_status='DONE', time_completed='2021-09-07 13:28:18.216153', photon_index_error2='0.42', photon_index2='1.88', ts='13.15', fit_tolerance='1e-08', GAL='1.29', photon_index_error='0.00', energy_flux_error2='2.43e-05', EG='1.05', time_epoch_completed='1631046498.22', return_code='0', job_id='498404', GAL2='1.27', EG2='1.08', return_code2='0', energy_flux_error='1.41e-05', photon_flux_error2='3.98e-08', ts2='14.01', photon_index='2.28' WHERE bin_id='865' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep  7 13:28:18 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 498404: <4FGL_J1321.1+2216_daily_bin865> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin865> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Tue Sep  7 13:20:43 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep  7 13:20:45 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:20:45 2021
Terminated at Tue Sep  7 13:28:19 2021
Results reported at Tue Sep  7 13:28:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin865 200.296 22.2808 463536001 463795201 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 :                                   437.40 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   453 sec.
    Turnaround time :                            456 sec.

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

