/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 50 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 = 7505
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0921.6+6216_daily_bin1524
RA = 140.419, Dec = 62.2708
tmin = 634348801, tmax = 634608001
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='150321', job_status='RUN', time_executed='2021-08-31 07:53:25.203629', time_epoch_executed='1630421605.2' WHERE source_name='4FGL J0921.6+6216' and cadence='daily' and bin_id='1524'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/150321

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/150321/ft1_4FGL_J0921.6+6216_daily_bin1524.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/150321/ft1_4FGL_J0921.6+6216_daily_bin1524.fits outfile=/scratch/kocevski/150321/ft1_filteredMKT_4FGL_J0921.6+6216_daily_bin1524.fits ra=140.419 dec=62.2708 rad=12.0 tmin=634348801.0 tmax=634608001.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.99
user 3.49
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.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/150321/ft1_filteredMKT_4FGL_J0921.6+6216_daily_bin1524.fits evtable="EVENTS" outfile="/scratch/kocevski/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.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.33
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.fits" evtable="EVENTS" scfile=/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits sctable="SC_DATA" outfile=/scratch/kocevski/150321/ltcube_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.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/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits
.....................!
real 12.21
user 11.80
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.fits evtable="EVENTS" scfile=/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits sctable="SC_DATA" expcube=/scratch/kocevski/150321/ltcube_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.fits outfile=/scratch/kocevski/150321/expmap_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.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/150321/ltcube_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.fits
.....................!
real 191.44
user 186.44
sys 3.90

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/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.fits scfile=/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits outfile=/scratch/kocevski/150321/cmap_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.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.58
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.fits scfile=/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits outfile=/scratch/kocevski/150321/cmap_HighResolution_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.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.53
user 0.39
sys 0.13

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.fits', '/scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits', expMap='/scratch/kocevski/150321/expmap_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.fits', expCube='/scratch/kocevski/150321/ltcube_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/150321/Model_4FGL_J0921.6+6216_daily_bin1524.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/150321/ft1_filtered_4FGL_J0921.6+6216_daily_bin1524.fits
Spacecraft file(s): /scratch/kocevski/150321/ft2_4FGL_J0921.6+6216_daily_bin1524.fits
Exposure map: /scratch/kocevski/150321/expmap_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.fits
Exposure cube: /scratch/kocevski/150321/ltcube_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/150321/Model_4FGL_J0921.6+6216_daily_bin1524.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) = 3581.96547628

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11089E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .44812E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    15.816       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0279       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .20224       1.0000         .10000E-03   10000.    
     8 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10175E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.243       1.0000         .10000E-03   10000.    
    15 'Prefactor '    24.090       1.0000         .10000E-03   10000.    
    16 'norm      '    2.1791       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .29469E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10033E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    2.4429       1.0000         .10000E-03   10000.    
    22 'norm      '    .10035E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    121.53       1.0000         .10000E-03   10000.    
    24 'norm      '    .54106       1.0000         .10000E-03   10000.    
    25 'norm      '    4.3089       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .12539E-03   1.0000         .10000E-03   10000.    
    27 'norm      '    .11163E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    2.5541       1.0000         .10000E-03   10000.    
    30 'norm      '    3.6011       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .16405E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .84963       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .94777       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.

 FCN=   3581.925     FROM MIGRAD    STATUS=CONVERGED    930 CALLS     4687 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    122.63       -.60102E-05** at limit **
   2  Prefactor     .10000E-03    23.803        .50989E-06** at limit **
   3  norm          .10000E-03    2.7859        .20388E-06** at limit **
   4  Prefactor     16.018        72.768       -.56767E-05   -.49077E-04
   5  Prefactor     .10000E-03    .84638       -.48282E-07** at limit **
   6  Prefactor     3.8583        43.845        .78584E-05    .44881E-04
   7  Prefactor     .34233        17.542        .37352E-05   -.46059E-03
   8  norm          .10000E-03    1.2274       -.41030E-08** at limit **
   9  Prefactor     .10000E-03    3.4711        .62018E-07** at limit **
  10  Prefactor     .10000E-03    16.426       -.19012E-07** at limit **
  11  norm          .10000E-03    9.1057        .36845E-06** at limit **
  12  Prefactor     .10000E-03    10.960        .77863E-06** at limit **
  13  Prefactor     .10000E-03    10.895       -.59128E-06** at limit **
  14  Prefactor     11.245        13.200        .16107E-05   -.15621E-03
  15  Prefactor     24.086        36.961       -.12990E-05    .41831E-04
  16  norm          2.1798        1.3925       -.77497E-07   -.66978E-04
  17  Prefactor     .10003E-03    12.705       -.69294E-06** at limit **
  18  Prefactor     .10000E-03    1.9726        .13525E-06** at limit **
  19  Prefactor     .10000E-03    6.1202       -.60294E-09** at limit **
  20  Prefactor     .10000E-03    3.5667        .83973E-08** at limit **
  21  Prefactor     2.4478        7.4479        .54776E-05    .29704E-03
  22  norm          .10000E-03    13.161        .21266E-06** at limit **
  23  Prefactor     121.56        65.022       -.50571E-06    .20751E-04
  24  norm          .54114        .69480        .31930E-07    .22813E-03
  25  norm          4.3106        1.5109        .21305E-07    .17542E-03
  26  Prefactor     .10000E-03    79.495        .28241E-09** at limit **
  27  norm          .10000E-03    23.733       -.53281E-06** at limit **
  28  Prefactor     .10000E-03    11.812       -.16778E-06** at limit **
  29  norm          2.5548        2.7004       -.10065E-06   -.40167E-04
  30  norm          3.6017        2.9012        .13237E-07    .38091E-06
  31  Prefactor     .10000E-03    114.09       -.56670E-06** at limit **
  32  Normalizat    .84883        .24320       -.16169E-05    .56118E-04
  33  Prefactor     .94798        .19292        .90328E-06    .81292E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 16.0175
  Prefactor  = 0.0001
  Prefactor  = 3.85832
  Prefactor  = 0.342332
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.2447
  Prefactor  = 24.0864
  norm       = 2.17984
  Prefactor  = 0.000100025
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 2.44781
  norm       = 0.0001
  Prefactor  = 121.557
  norm       = 0.541136
  norm       = 4.31058
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 2.55484
  norm       = 3.60172
  Prefactor  = 0.0001
  Normalizat = 0.84883
  Prefactor  = 0.947984
 **********
 **   18 **HESSE 
 **********

 FCN=   3581.925     FROM HESSE     STATUS=OK           695 CALLS     5382 TOTAL
                     EDM=   .63E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    121.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    23.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    8.5123        .17648E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     16.018        63.366        .10071E-03   -1.4907    
   5  Prefactor     .10000E-03    .85772        .53712E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     3.8583        44.580        .20093E-03   -1.5315    
   7  Prefactor     .34233        71.668        .36700E-02   -1.5591    
   8  norm          .10000E-03    1.2457        .64649E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    3.4719        .10890E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    16.429        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    9.1453        .17636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    11.033        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    10.903        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.245        13.093        .11948E-03   -1.5037    
  15  Prefactor     24.086        36.948        .81612E-04   -1.4726    
  16  norm          2.1798        1.3863        .53170E-04   -1.5413    
  17  Prefactor     .10003E-03    115.63        .40133E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1.9781        .82106E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    6.1207        .14461E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    3.5691        .11038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     2.4478        7.5320        .13088E-02   -1.5395    
  22  norm          .10000E-03    13.171        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     121.56        65.014        .18254E-03   -1.3498    
  24  norm          .54114        .65677        .54620E-03   -1.5561    
  25  norm          4.3106        1.5036        .41273E-04   -1.5293    
  26  Prefactor     .10000E-03    79.728        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  norm          .10000E-03    23.770        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10000E-03    11.822        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          2.5548        2.7055        .49182E-03   -1.5388    
  30  norm          3.6017        2.9043        .89181E-04   -1.5328    
  31  Prefactor     .10000E-03    114.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .84883        .27535        .28018E-03   -.98282    
  33  Prefactor     .94798        .22158        .22285E-03   -.94484    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.32598e-09
Minuit parameter uncertainties:
  1  0.00117588
  2  4.73609e-05
  3  7.57697e-05
  4  63.6343
  5  2.22472e-06
  6  26.2542
  7  9.91699
  8  3.35353e-07
  9  2.99525e-06
  10  1.67365e-05
  11  4.57581e-05
  12  4.74245e-05
  13  3.66248e-05
  14  13.0964
  15  36.9835
  16  1.38636
  17  0.00342687
  18  2.76977e-06
  19  9.61454e-08
  20  1.45199e-07
  21  7.53492
  22  2.98093e-05
  23  65.0524
  24  0.65678
  25  1.50364
  26  5.14424e-05
  27  5.25977e-05
  28  1.4261e-05
  29  2.70564
  30  2.90439
  31  0.000110715
  32  0.275805
  33  0.221796
Done.

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

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  2.180e+00  1.386e+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

GAL_V02
   Spectrum: PowerLaw
762    Prefactor:  9.480e-01  2.218e-01  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:  8.488e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.33
Ra Dec: 140.419 62.271
Photon Index (Fixed Index): 2.22 +/- 0.00
Photon Flux (Fixed Index): 8.12e-08 +/- 5.16e-08
Energy Flux (Fixed Index): 3.07e-05 +/- 1.95e-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) = 3581.61790685
delta logL = 0.307334610352

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 3581.61150488
delta logL = 0.313736578931

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    1.9040       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7095       1.0000          .0000       5.0000    
     3 'Normalizat'    .81819       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96047       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=   3581.612     FROM MIGRAD    STATUS=CONVERGED     49 CALLS      229 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          1.9045        27.447        .75341E-03    .68190E-04
   2  alpha         2.7092        3.3129        .26939        .23441E-04
   3  Normalizat    .81804        .17404        .64325E-01    .13615E-04
   4  Prefactor     .96064        .11753        .45771E-01    .15962E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 1.90453
  alpha      = 2.70921
  Normalizat = 0.818036
  Prefactor  = 0.960643
 **********
 **   18 **HESSE 
 **********

 FCN=   3581.612     FROM HESSE     STATUS=OK            33 CALLS      262 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          1.9045        1.3133        .30136E-04   -1.5432    
   2  alpha         2.7092        .63097        .11096E-01    .83780E-01
   3  Normalizat    .81804        .26251        .28455E-03   -.99403    
   4  Prefactor     .96064        .21812        .22136E-03   -.94053    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.03237e-12
Minuit parameter uncertainties:
  1  1.31335
  2  0.63792
  3  0.262915
  4  0.218324
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/150321': 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) = 3581.61150436
delta logL = 0.313737092786

Extracting fit parameters...

4FGL J0921.6+6216
   Spectrum: LogParabola
366         norm:  1.905e+00  1.313e+00  1.000e-04  1.000e+04 ( 1.000e-11)
367        alpha:  2.709e+00  6.379e-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:  9.606e-01  2.183e-01  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:  8.180e-01  2.629e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 5.98
Ra Dec: 140.419 62.271
Photon Index (Free Index): 2.71 +/- 0.64
Photon Flux (Free Index): 1.18e-07 +/- 7.83e-08
Energy Flux (Free Index): 2.86e-05 +/- 1.64e-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/150321/cmap_HighResolution_634348801_634608001_4FGL_J0921.6+6216_daily_bin1524.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.12e-08', energy_flux2='2.86e-05', photon_flux_error='5.16e-08', dlogl='3.14e-01', energy_flux='3.07e-05', photon_flux2='1.18e-07', job_status='DONE', time_completed='2021-08-31 08:05:41.749178', photon_index_error2='0.64', photon_index2='2.71', ts='5.33', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='1.64e-05', EG='0.85', time_epoch_completed='1630422341.75', return_code='0', job_id='150321', GAL2='0.96', EG2='0.82', return_code2='0', energy_flux_error='1.95e-05', photon_flux_error2='7.83e-08', ts2='5.98', photon_index='2.22' WHERE bin_id='1524' AND source_name='4FGL J0921.6+6216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Aug 31 08:05:41 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0199>
Subject: Job 150321: <4FGL_J0921.6+6216_daily_bin1524> in cluster <slac> Done

Job <4FGL_J0921.6+6216_daily_bin1524> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Aug 31 07:52:15 2021
Job was executed on host(s) <bullet0199>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Aug 31 07:52:16 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Aug 31 07:52:16 2021
Terminated at Tue Aug 31 08:05:42 2021
Results reported at Tue Aug 31 08:05:42 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0921.6+6216_daily_bin1524 140.419 62.2708 634348801 634608001 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 :                                   724.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             312.69 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   806 sec.
    Turnaround time :                            807 sec.

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

