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


Performing analysis on: 4FGL_J0921.6+6216_monthly_bin168
RA = 140.419, Dec = 62.2708
tmin = 672451201, tmax = 675043201
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='628271', job_status='RUN', time_executed='2022-05-24 02:49:57.865582', time_epoch_executed='1653385797.87' WHERE source_name='4FGL J0921.6+6216' and cadence='monthly' and bin_id='168'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/628271

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/628271/ft1_4FGL_J0921.6+6216_monthly_bin168.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/628271/ft1_4FGL_J0921.6+6216_monthly_bin168.fits outfile=/scratch/kocevski/628271/ft1_filteredMKT_4FGL_J0921.6+6216_monthly_bin168.fits ra=140.419 dec=62.2708 rad=12.0 tmin=672451201.0 tmax=675043201.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 29.22
user 28.39
sys 0.69

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.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/628271/ft1_filteredMKT_4FGL_J0921.6+6216_monthly_bin168.fits evtable="EVENTS" outfile="/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.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.90
user 0.69
sys 0.19

Number of photons that the gtmktime cut: 11435

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits" evtable="EVENTS" scfile=/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits sctable="SC_DATA" outfile=/scratch/kocevski/628271/ltcube_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.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/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits
.....................!
real 161.09
user 160.37
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits sctable="SC_DATA" expcube=/scratch/kocevski/628271/ltcube_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.fits outfile=/scratch/kocevski/628271/expmap_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.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/628271/ltcube_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.fits
.....................!
real 191.39
user 186.45
sys 4.58

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 239 point sources and 0 extended sources

Setting source of interest to:
4FGL J0921.6+6216 @ 140.419 62.2708

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits scfile=/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits outfile=/scratch/kocevski/628271/cmap_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.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=140.419 yref=62.2708 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.82
user 0.64
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits scfile=/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits outfile=/scratch/kocevski/628271/cmap_HighResolution_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.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=140.419 yref=62.2708 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.81
user 0.62
sys 0.18

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits evtable="EVENTS" scfile=/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/628271/Model_4FGL_J0921.6+6216_monthly_bin168.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/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits.....................!
real 1079.99
user 1076.48
sys 1.25

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits', '/scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits', expMap='/scratch/kocevski/628271/expmap_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.fits', expCube='/scratch/kocevski/628271/ltcube_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/628271/Model_4FGL_J0921.6+6216_monthly_bin168.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0921.6+6216'

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.245e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.223e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/628271/ft1_filtered_4FGL_J0921.6+6216_monthly_bin168.fits
Spacecraft file(s): /scratch/kocevski/628271/ft2_4FGL_J0921.6+6216_monthly_bin168.fits
Exposure map: /scratch/kocevski/628271/expmap_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.fits
Exposure cube: /scratch/kocevski/628271/ltcube_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/628271/Model_4FGL_J0921.6+6216_monthly_bin168.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) = 120475.816431

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .27584E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    6.5417       1.0000         .10000E-03   10000.    
     3 'norm      '    1.2302       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.9693       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .27782       1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.6631       1.0000         .10000E-03   10000.    
     7 'Prefactor '    4.1151       1.0000         .10000E-03   10000.    
     8 'norm      '    .43074       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0150       1.0000         .10000E-03   10000.    
    10 'Prefactor '    8.3039       1.0000         .10000E-03   10000.    
    11 'norm      '    2.6396       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.3883       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    1.9588       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .47521       1.0000         .10000E-03   10000.    
    16 'norm      '    .93721       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .76930       1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.0540       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .34672       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.7368       1.0000         .10000E-03   10000.    
    22 'norm      '    1.0056       1.0000         .10000E-03   10000.    
    23 'Prefactor '    8.3043       1.0000         .10000E-03   10000.    
    24 'norm      '    1.5334       1.0000         .10000E-03   10000.    
    25 'norm      '    9.0873       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    21.630       1.0000         .10000E-03   10000.    
    28 'Prefactor '    13.118       1.0000         .10000E-03   10000.    
    29 'norm      '    1.6880       1.0000         .10000E-03   10000.    
    30 'norm      '    3.5558       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.9270       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .96602       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.0688       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   120474.9     FROM MIGRAD    STATUS=FAILED      1663 CALLS     4816 TOTAL
                     EDM=   .67E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10036E-03    5.8598        .32714    ** at limit **
   2  Prefactor     6.5416        3.7829        .15691E-03    .38257E-03
   3  norm          1.2303        .61383        .18211E-03    .61590E-03
   4  Prefactor     1.9692        3.7102        .29549E-03    .24069E-03
   5  Prefactor     .27783        .27366        .13743E-02    .80427E-02
   6  Prefactor     4.6633        2.2061        .93184E-03   -.37343E-03
   7  Prefactor     4.1153        1.5965        .19872E-03    .33776E-03
   8  norm          .43085        .39935        .20000E-03    .52658E-03
   9  Prefactor     1.0150        .89205        .29731E-03    .13521E-03
  10  Prefactor     8.3042        5.1862        .13912E-03    .84987E-04
  11  norm          2.6392        1.7249        .12548E-02    .35704E-03
  12  Prefactor     3.3883        2.3556        .21980E-03    .12992E-03
  13  Prefactor     .10000E-03    1.1474        .18142E-02** at limit **
  14  Prefactor     1.9590        1.4026        .14821E-02    .57524E-02
  15  Prefactor     .48640        9.7738        .67148E-02    .21597E-02
  16  norm          .93721        .19730        .69244E-03    .40834E-01
  17  Prefactor     .76969        1.6599        .24650E-02    .14148E-01
  18  Prefactor     3.0549        .90789        .16929E-03    .22349E-03
  19  Prefactor     .34680        .73680        .37601E-02    .59757E-01
  20  Prefactor     .10000E-03    .66230        .36285E-03** at limit **
  21  Prefactor     2.7366        1.5527        .12306E-02    .67531E-02
  22  norm          1.0056        .99441        .36898E-02    .13396E-02
  23  Prefactor     8.3052        7.7153        .13912E-03   -.29419E-03
  24  norm          1.5334        .14715        .39506E-04   -.40657E-02
  25  norm          9.0873        .33311        .36297E-04   -.74671E-03
  26  Prefactor     .10000E-03    6.1707        .36285E-03** at limit **
  27  norm          21.630        4.6060        .86124E-04   -.73922E-04
  28  Prefactor     13.119        4.6300        .11059E-03   -.64146E-04
  29  norm          1.6880        .54704        .11988E-03    .72833E-04
  30  norm          3.5559        .45009        .80341E-04   -.49810E-04
  31  Prefactor     6.9112        15.229        .15243E-03   -.71598E-05
  32  Normalizat    .96600        .52858E-01    .28981E-03    .33642E-03
  33  Prefactor     1.0688        .44104E-01    .24888E-03    .28358E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   120474.9     FROM SIMPLEX   STATUS=UNCHANGED   1309 CALLS     6125 TOTAL
                     EDM=   .20E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10036E-03    5.8598        .27812E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5416        3.7829        .27855E-05   -1.5196    
   3  norm          1.2303        .61383        .19725E-05   -1.5486    
   4  Prefactor     1.9692        3.7102        .40932E-05   -1.5427    
   5  Prefactor     .27783        .27366        .20018E-05   -1.5603    
   6  Prefactor     4.6633        2.2061        .23765E-05   -1.5276    
   7  Prefactor     4.1153        1.5965        .23198E-05   -1.5302    
   8  norm          .43085        .39935        .21372E-05   -1.5577    
   9  Prefactor     1.0150        .89205        .25066E-05   -1.5506    
  10  Prefactor     8.3042        5.1862        .34062E-05   -1.5132    
  11  norm          2.6392        1.7249        .27980E-05   -1.5383    
  12  Prefactor     3.3883        2.3556        .30224E-05   -1.5340    
  13  Prefactor     .10000E-03    1.1474        .15666E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9590        1.4026        .17262E-05   -1.5428    
  15  Prefactor     .48640        9.7738        .17758E-05   -1.5568    
  16  norm          .93721        .19730        .17356E-05   -1.5514    
  17  Prefactor     .76969        1.6599        .17408E-05   -1.5533    
  18  Prefactor     3.0549        .90789        .17183E-05   -1.5358    
  19  Prefactor     .34680        .73680        .17448E-05   -1.5590    
  20  Prefactor     .10000E-03    .66230        .71686E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7366        1.5527        .17188E-05   -1.5377    
  22  norm          1.0056        .99441        .17368E-05   -1.5507    
  23  Prefactor     8.3052        7.7153        .17044E-05   -1.5132    
  24  norm          1.5334        .14715        .17290E-05   -1.5460    
  25  norm          9.0873        .33311        .16893E-05   -1.5105    
  26  Prefactor     .10000E-03    6.1707        .33324E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          21.630        4.6060        .16518E-05   -1.4777    
  28  Prefactor     13.119        4.6300        .16738E-05   -1.4983    
  29  norm          1.6880        .54704        .17268E-05   -1.5448    
  30  norm          3.5559        .45009        .17135E-05   -1.5331    
  31  Prefactor     6.9112        15.229        .16889E-05   -1.5182    
  32  Normalizat    .96600        .52858E-01    .10532E-05   -.94178    
  33  Prefactor     1.0688        .44104E-01    .10111E-05   -.90470    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   120474.9     FROM MIGRAD    STATUS=CONVERGED    696 CALLS     6821 TOTAL
                     EDM=   .23E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10034E-03    5.8605        .32703    ** at limit **
   2  Prefactor     6.5416        3.7800        .62762E-05    .46372E-04
   3  norm          1.2303        .61332        .36421E-04    .10988E-03
   4  Prefactor     1.9692        3.7096        .11820E-04    .61558E-05
   5  Prefactor     .27782        .27277        .54970E-04    .52945E-04
   6  Prefactor     4.6633        2.2049        .37273E-04    .19520E-04
   7  Prefactor     4.1153        1.5957        .79489E-05    .82381E-04
   8  norm          .43085        .39911        .80002E-05    .18189E-04
   9  Prefactor     1.0150        .89187        .11892E-04    .10095E-03
  10  Prefactor     8.3042        5.1858        .55648E-05    .52299E-05
  11  norm          2.6392        1.7152        .50192E-04    .36240E-03
  12  Prefactor     3.3883        2.3550        .87922E-05    .95168E-04
  13  Prefactor     .10000E-03    1.1478        .36285E-03** at limit **
  14  Prefactor     1.9590        1.4015        .29641E-03    .19024E-04
  15  Prefactor     .48600        9.9520        .26859E-03    .50792E-04
  16  norm          .93721        .19715        .13849E-03    .76181E-04
  17  Prefactor     .76971        1.6575        .49300E-03    .59543E-03
  18  Prefactor     3.0549        .90722        .67715E-05    .30086E-03
  19  Prefactor     .34681        .72809        .75203E-03    .12142E-03
  20  Prefactor     .10000E-03    .66233        .72569E-04** at limit **
  21  Prefactor     2.7366        1.5513        .24612E-03    .79080E-04
  22  norm          1.0056        .98928        .14759E-03   -.73947E-05
  23  Prefactor     8.3052        7.6930        .55647E-05    .65376E-05
  24  norm          1.5334        .14713        .15802E-05    .11844E-03
  25  norm          9.0873        .33295        .14519E-05   -.40407E-04
  26  Prefactor     .10000E-03    6.1709        .72569E-04** at limit **
  27  norm          21.630        4.6058        .34449E-05     .0000    
  28  Prefactor     13.119        4.6286        .44237E-05    .32895E-05
  29  norm          1.6880        .54704        .47951E-05    .75868E-05
  30  norm          3.5559        .45005        .32136E-05    .11320E-04
  31  Prefactor     6.9112        15.233        .60973E-05     .0000    
  32  Normalizat    .96600        .52647E-01    .11592E-04    .49584E-03
  33  Prefactor     1.0688        .44103E-01    .99552E-05    .43487E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100339
  Prefactor  = 6.54161
  norm       = 1.23033
  Prefactor  = 1.96921
  Prefactor  = 0.277819
  Prefactor  = 4.66327
  Prefactor  = 4.11527
  norm       = 0.430847
  Prefactor  = 1.01502
  Prefactor  = 8.30416
  norm       = 2.63924
  Prefactor  = 3.38834
  Prefactor  = 0.0001
  Prefactor  = 1.95895
  Prefactor  = 0.486002
  norm       = 0.937211
  Prefactor  = 0.769711
  Prefactor  = 3.05491
  Prefactor  = 0.346812
  Prefactor  = 0.0001
  Prefactor  = 2.73663
  norm       = 1.00561
  Prefactor  = 8.30519
  norm       = 1.53336
  norm       = 9.08733
  Prefactor  = 0.0001
  norm       = 21.6298
  Prefactor  = 13.1186
  norm       = 1.688
  norm       = 3.55585
  Prefactor  = 6.91124
  Normalizat = 0.966005
  Prefactor  = 1.0688
 **********
 **   18 **HESSE 
 **********

 FCN=   120474.9     FROM HESSE     STATUS=OK           675 CALLS     7496 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10034E-03    5.8604        .32703       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     6.5416        3.7813        .12552E-05   -1.5196    
   3  norm          1.2303        .61326        .14568E-05   -1.5486    
   4  Prefactor     1.9692        3.7080        .23639E-05   -1.5427    
   5  Prefactor     .27782        .27274        .21988E-05   -1.5603    
   6  Prefactor     4.6633        2.2046        .14909E-05   -1.5276    
   7  Prefactor     4.1153        1.5954        .15898E-05   -1.5302    
   8  norm          .43085        .39911        .16000E-05   -1.5577    
   9  Prefactor     1.0150        .89176        .23785E-05   -1.5506    
  10  Prefactor     8.3042        5.1860        .55648E-05   -1.5132    
  11  norm          2.6392        1.7147        .20077E-05   -1.5383    
  12  Prefactor     3.3883        2.3532        .17584E-05   -1.5340    
  13  Prefactor     .10000E-03    1.1478        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     1.9590        1.4013        .11857E-04   -1.5428    
  15  Prefactor     .48600        9.9327        .10744E-04   -1.5569    
  16  norm          .93721        .19712        .55395E-05   -1.5514    
  17  Prefactor     .76971        1.6571        .98600E-04   -1.5533    
  18  Prefactor     3.0549        .90710        .13543E-05   -1.5358    
  19  Prefactor     .34681        .72770        .30081E-04   -1.5590    
  20  Prefactor     .10000E-03    .66232        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.7366        1.5510        .98448E-05   -1.5377    
  22  norm          1.0056        .98916        .59037E-05   -1.5507    
  23  Prefactor     8.3052        7.7022        .11129E-05   -1.5132    
  24  norm          1.5334        .14712        .36860E-06   -1.5460    
  25  norm          9.0873        .33294        .36013E-06   -1.5105    
  26  Prefactor     .10000E-03    6.1703        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          21.630        4.6057        .34449E-05   -1.4777    
  28  Prefactor     13.119        4.6278        .44237E-05   -1.4983    
  29  norm          1.6880        .54700        .95903E-06   -1.5448    
  30  norm          3.5559        .44999        .64273E-06   -1.5331    
  31  Prefactor     6.9112        15.232        .60973E-05   -1.5182    
  32  Normalizat    .96600        .52536E-01    .23185E-05   -.94178    
  33  Prefactor     1.0688        .44028E-01    .19910E-05   -.90470    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02095e-10
Minuit parameter uncertainties:
  1  0.00282106
  2  3.78148
  3  0.613261
  4  3.70839
  5  0.27274
  6  2.20466
  7  1.59541
  8  0.399109
  9  0.891773
  10  5.18629
  11  1.7147
  12  2.35322
  13  2.73661e-08
  14  1.40131
  15  4.39462
  16  0.197123
  17  1.65723
  18  0.907107
  19  0.727716
  20  7.72581e-08
  21  1.55102
  22  0.989177
  23  7.70308
  24  0.147121
  25  0.332938
  26  3.18849e-07
  27  4.6058
  28  4.62792
  29  0.547005
  30  0.449991
  31  15.2403
  32  0.0525391
  33  0.0440297
Done.

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

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  9.372e-01  1.971e-01  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.223e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.069e+00  4.403e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  9.660e-01  5.254e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 42.91
Ra Dec: 140.419 62.271
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 3.49e-08 +/- 7.34e-09
Energy Flux (Fixed Index): 1.32e-05 +/- 2.77e-06

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) = 120474.741533
delta logL = 0.157861045242

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 120474.735079
delta logL = 0.164314589027

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92573       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3357       1.0000          .0000       5.0000    
     3 'Normalizat'    .96221       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0705       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7650E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   120474.7     FROM MIGRAD    STATUS=CONVERGED     85 CALLS      286 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92573        .19700        .67276E-03    .31491E-02
   2  alpha         2.3357        .20258        .20635E-01    .16489E-03
   3  Normalizat    .96221        .47678E-01    .29031E-03    .13597E-03
   4  Prefactor     1.0705        .42693E-01    .24870E-03    .34521E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.925734
  alpha      = 2.33571
  Normalizat = 0.962215
  Prefactor  = 1.07045
 **********
 **   18 **HESSE 
 **********

 FCN=   120474.7     FROM HESSE     STATUS=OK            27 CALLS      313 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92573        .19309        .26910E-04   -1.5516    
   2  alpha         2.3357        .19855        .82538E-03   -.65765E-01
   3  Normalizat    .96221        .47698E-01    .11612E-04   -.94307    
   4  Prefactor     1.0705        .42705E-01    .99482E-05   -.90417    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03084e-10
Minuit parameter uncertainties:
  1  0.193094
  2  0.198756
  3  0.0477004
  4  0.0427067
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/628271': 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) = 120474.735079
delta logL = 0.164314589216

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  9.257e-01  1.931e-01  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.336e+00  1.988e-01  0.000e+00  5.000e+00 ( 1.000e+00)
368         beta:  8.311e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
369           Eb:  5.899e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  1.070e+00  4.271e-02  0.000e+00  1.000e+01 ( 1.000e+00)
763        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
764        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
761   Normalization:  9.622e-01  4.770e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 43.09
Ra Dec: 140.419 62.271
Photon Index (Free Index): 2.34 +/- 0.20
Photon Flux (Free Index): 3.85e-08 +/- 9.84e-09
Energy Flux (Free Index): 1.27e-05 +/- 2.70e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/628271/cmap_HighResolution_672451201_675043201_4FGL_J0921.6+6216_monthly_bin168.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.49e-08', energy_flux2='1.27e-05', photon_flux_error='7.34e-09', dlogl='1.64e-01', energy_flux='1.32e-05', photon_flux2='3.85e-08', job_status='DONE', time_completed='2022-05-24 08:16:05.681742', photon_index_error2='0.20', photon_index2='2.34', ts='42.91', fit_tolerance='1e-08', GAL='1.07', photon_index_error='0.00', energy_flux_error2='2.70e-06', EG='0.97', time_epoch_completed='1653405365.68', return_code='0', job_id='628271', GAL2='1.07', EG2='0.96', return_code2='0', energy_flux_error='2.77e-06', photon_flux_error2='9.84e-09', ts2='43.09', photon_index='2.22' WHERE bin_id='168' AND source_name='4FGL J0921.6+6216' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Tue May 24 08:16:05 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0055>
Subject: Job 628271: <4FGL_J0921.6+6216_monthly_bin168> in cluster <slac> Done

Job <4FGL_J0921.6+6216_monthly_bin168> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue May 24 02:45:37 2022
Job was executed on host(s) <bullet0055>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue May 24 02:48:42 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue May 24 02:48:42 2022
Terminated at Tue May 24 08:16:08 2022
Results reported at Tue May 24 08:16:08 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0921.6+6216_monthly_bin168 140.419 62.2708 672451201 675043201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0921.6+6216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   19530.00 sec.
    Max Memory :                                 1101 MB
    Average Memory :                             518.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   19644 sec.
    Turnaround time :                            19831 sec.

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

