aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 185 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7719
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1321.1+2216_daily_bin1751
RA = 200.296, Dec = 22.2808
tmin = 693187201, tmax = 693446401
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='79038', job_status='RUN', time_executed='2022-12-23 00:48:37.278869', time_epoch_executed='1671785317.28' WHERE source_name='4FGL J1321.1+2216' and cadence='daily' and bin_id='1751'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/79038

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/79038/ft1_4FGL_J1321.1+2216_daily_bin1751.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/79038/ft2_4FGL_J1321.1+2216_daily_bin1751.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/79038/ft1_4FGL_J1321.1+2216_daily_bin1751.fits outfile=/scratch/kocevski/79038/ft1_filteredMKT_4FGL_J1321.1+2216_daily_bin1751.fits ra=200.296 dec=22.2808 rad=12.0 tmin=693187201.0 tmax=693446401.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.64
user 3.41
sys 0.22

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

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

Number of photons that the gtmktime cut: 624

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/79038/ft1_filtered_4FGL_J1321.1+2216_daily_bin1751.fits evtable="EVENTS" scfile=/scratch/kocevski/79038/ft2_4FGL_J1321.1+2216_daily_bin1751.fits sctable="SC_DATA" expcube=/scratch/kocevski/79038/ltcube_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.fits outfile=/scratch/kocevski/79038/expmap_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.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/79038/ltcube_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.fits
.....................!
real 193.39
user 187.76
sys 5.29

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

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

This is gtbin version HEAD
real 0.54
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/79038/ft1_filtered_4FGL_J1321.1+2216_daily_bin1751.fits scfile=/scratch/kocevski/79038/ft2_4FGL_J1321.1+2216_daily_bin1751.fits outfile=/scratch/kocevski/79038/cmap_HighResolution_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/79038/ft1_filtered_4FGL_J1321.1+2216_daily_bin1751.fits', '/scratch/kocevski/79038/ft2_4FGL_J1321.1+2216_daily_bin1751.fits', expMap='/scratch/kocevski/79038/expmap_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.fits', expCube='/scratch/kocevski/79038/ltcube_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/79038/Model_4FGL_J1321.1+2216_daily_bin1751.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  0.000e+00  1.000e+06 ( 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 -5.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/79038/ft1_filtered_4FGL_J1321.1+2216_daily_bin1751.fits
Spacecraft file(s): /scratch/kocevski/79038/ft2_4FGL_J1321.1+2216_daily_bin1751.fits
Exposure map: /scratch/kocevski/79038/expmap_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.fits
Exposure cube: /scratch/kocevski/79038/ltcube_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/79038/Model_4FGL_J1321.1+2216_daily_bin1751.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) = 6682.83985868

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12969E-03   1.0000          .0000       .10000E+07
     2 'norm      '    5.3647       1.0000          .0000       .10000E+07
     3 'Prefactor '    10.853       1.0000          .0000       .10000E+07
     4 'norm      '    1.3438       1.0000          .0000       .10000E+07
     5 'norm      '    30.867       1.0000          .0000       .10000E+07
     6 'norm      '    18.300       1.0000          .0000       .10000E+07
     7 'norm      '    49.301       1.0000          .0000       .10000E+07
     8 'Prefactor '    .98732E-03   1.0000          .0000       .10000E+07
     9 'norm      '    34.968       1.0000          .0000       .10000E+07
    10 'Prefactor '    .10003E-04   1.0000          .0000       .10000E+07
    11 'norm      '    .26308E-04   1.0000          .0000       .10000E+07
    12 'Prefactor '    11.234       1.0000          .0000       .10000E+07
    13 'Prefactor '    24.706       1.0000          .0000       .10000E+07
    14 'Prefactor '    .24297E-06   1.0000          .0000       .10000E+07
    15 'Prefactor '    4.5233       1.0000          .0000       .10000E+07
    16 'Prefactor '    6.4510       1.0000          .0000       .10000E+07
    17 'Prefactor '    25.758       1.0000          .0000       .10000E+07
    18 'Normalizat'    .91515       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .89296       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5610E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6682.714     FROM MIGRAD    STATUS=CONVERGED     98 CALLS     1048 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .12768E-08    6.3903        .12388E-05** at limit **
   2  norm          5.3191        4.9154       -.58413E-07    .34524E-04
   3  Prefactor     10.780        2.7296       -.40404E-06    .82880E-03
   4  norm          1.3394        2.1149       -.95093E-07   -.51013E-02
   5  norm          30.863        5.4749        .35139E-07   -.73595E-02
   6  norm          18.270        3.3157       -.23315E-06    .15820E-02
   7  norm          49.854        26.133        .63048E-06   -.34237E-02
   8  Prefactor     .44409E-09    5.3736       -.62237E-06** at limit **
   9  norm          35.038        9.5081       -.15594E-06    .23254E-02
  10  Prefactor     .24092E-07    8.1724       -.35328E-06** at limit **
  11  norm           .0000        4.4796       -.22565E-07** at limit **
  12  Prefactor     11.208        1.2151        .27116E-07    .48049E-02
  13  Prefactor     24.598        2.9734       -.31857E-06    .29698E-01
  14  Prefactor     .11580E-06    8.2213        .31566E-06** at limit **
  15  Prefactor     4.5194        3.4217        .13566E-07    .12537E-01
  16  Prefactor     6.2187        6.8291       -.15794E-05   -.67644E-02
  17  Prefactor     25.534        10.300       -.12550E-05   -.20562E-02
  18  Normalizat    .91576        .19940        .58052E-05    .27249E-03
  19  Prefactor     .89323        .19164        .22603E-05   -.33253E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.27676e-09
  norm       = 5.31912
  Prefactor  = 10.7799
  norm       = 1.33937
  norm       = 30.8627
  norm       = 18.2701
  norm       = 49.8537
  Prefactor  = 4.44089e-10
  norm       = 35.0385
  Prefactor  = 2.40918e-08
  norm       = 0
  Prefactor  = 11.208
  Prefactor  = 24.5983
  Prefactor  = 1.15796e-07
  Prefactor  = 4.51941
  Prefactor  = 6.21865
  Prefactor  = 25.5337
  Normalizat = 0.91576
  Prefactor  = 0.893227
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.714     FROM HESSE     STATUS=OK           310 CALLS     1358 TOTAL
                     EDM=   .63E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .12768E-08    6.4165        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.3191        4.9338        .43365E-03   -1.5662    
   3  Prefactor     10.780        11.029        .30387E-03   -1.5642    
   4  norm          1.3394        2.1537        .94462E-03   -1.5685    
   5  norm          30.863        8.9932        .18002E-03   -1.5597    
   6  norm          18.270        14.369        .23385E-03   -1.5622    
   7  norm          49.854        26.238        .14243E-03   -1.5567    
   8  Prefactor     .44409E-09    5.3939        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          35.038        9.5384        .16913E-03   -1.5590    
  10  Prefactor     .24092E-07    16.157        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm           .0000        4.4758        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     11.208        10.184        .29866E-03   -1.5641    
  13  Prefactor     24.598        16.895        .20123E-03   -1.5609    
  14  Prefactor     .11580E-06    16.215        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.5194        3.4216        .47312E-03   -1.5665    
  16  Prefactor     6.2187        12.701        .39492E-03   -1.5658    
  17  Prefactor     25.534        13.083        .19707E-03   -1.5607    
  18  Normalizat    .91576        .17553        .45095E-01   -.95909    
  19  Prefactor     .89323        .16707        .44915E-01   -.96378    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.33526e-08
Minuit parameter uncertainties:
  1  0.000181868
  2  4.93384
  3  11.0291
  4  2.15368
  5  8.99318
  6  14.3691
  7  26.2378
  8  9.73854e-05
  9  9.53839
  10  0.00124782
  11  9.81629e-06
  12  10.1843
  13  16.8953
  14  0.00274071
  15  3.42156
  16  12.7006
  17  13.0834
  18  0.175641
  19  0.16717
Done.

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

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  3.504e+01  9.538e+00  0.000e+00  1.000e+06 ( 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 -5.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.932e-01  1.672e-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:  9.158e-01  1.756e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 35.79
Ra Dec: 200.296 22.281
Photon Index (Fixed Index): 2.28 +/- 0.00
Photon Flux (Fixed Index): 1.74e-07 +/- 4.72e-08
Energy Flux (Fixed Index): 6.25e-05 +/- 1.70e-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) = 6682.62410515
delta logL = 0.0903482792446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6682.62052437
delta logL = 0.0939290594979

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.731       1.0000          .0000       .10000E+07
     2 'alpha     '    2.4074       1.0000          .0000       5.0000    
     3 'Normalizat'    .90030       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90350       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=   6682.621     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      226 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.731        119.13        .17482E-03    .44084E-02
   2  alpha         2.4075        3.6676        .16741        .76331E-04
   3  Normalizat    .90018        .19522        .44905E-01   -.11283E-03
   4  Prefactor     .90352        .16828        .45050E-01    .16789E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 32.7305
  alpha      = 2.40749
  Normalizat = 0.900183
  Prefactor  = 0.903522
 **********
 **   18 **HESSE 
 **********

 FCN=   6682.621     FROM HESSE     STATUS=OK            31 CALLS      257 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.731        10.618        .69926E-05   -1.5594    
   2  alpha         2.4075        .29808        .71483E-02   -.37012E-01
   3  Normalizat    .90018        .19718        .26314E-03   -.96454    
   4  Prefactor     .90352        .19171        .25911E-03   -.96018    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16006e-10
Minuit parameter uncertainties:
  1  10.6179
  2  0.298789
  3  0.197334
  4  0.191857
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/79038': 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) = 6682.6205239
delta logL = 0.0939295348471

Extracting fit parameters...

4FGL J1321.1+2216
   Spectrum: LogParabola
324         norm:  3.273e+01  1.062e+01  0.000e+00  1.000e+06 ( 1.000e-12)
325        alpha:  2.407e+00  2.988e-01  0.000e+00  5.000e+00 ( 1.000e+00)
326         beta:  7.755e-02  0.000e+00 -5.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:  9.035e-01  1.919e-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:  9.002e-01  1.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 35.91
Ra Dec: 200.296 22.281
Photon Index (Free Index): 2.41 +/- 0.30
Photon Flux (Free Index): 1.86e-07 +/- 5.60e-08
Energy Flux (Free Index): 5.84e-05 +/- 1.78e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/79038/cmap_HighResolution_693187201_693446401_4FGL_J1321.1+2216_daily_bin1751.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.74e-07', energy_flux2='5.84e-05', photon_flux_error='4.72e-08', dlogl='9.39e-02', energy_flux='6.25e-05', photon_flux2='1.86e-07', job_status='DONE', time_completed='2022-12-23 00:56:41.598987', photon_index_error2='0.30', photon_index2='2.41', ts='35.79', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', energy_flux_error2='1.78e-05', EG='0.92', time_epoch_completed='1671785801.6', return_code='0', job_id='79038', GAL2='0.90', EG2='0.90', return_code2='0', energy_flux_error='1.70e-05', photon_flux_error2='5.60e-08', ts2='35.91', photon_index='2.28' WHERE bin_id='1751' AND source_name='4FGL J1321.1+2216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Dec 23 00:56:41 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0255>
Subject: Job 79038: <4FGL_J1321.1+2216_daily_bin1751> in cluster <slac> Done

Job <4FGL_J1321.1+2216_daily_bin1751> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Dec 23 00:45:21 2022
Job was executed on host(s) <bullet0255>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Dec 23 00:45:23 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Dec 23 00:45:23 2022
Terminated at Fri Dec 23 00:56:42 2022
Results reported at Fri Dec 23 00:56:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1321.1+2216_daily_bin1751 200.296 22.2808 693187201 693446401 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 :                                   487.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             288.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   678 sec.
    Turnaround time :                            681 sec.

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

