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


Performing analysis on: 4FGL_J1630.7+5221_daily_bin1602
RA = 247.682, Dec = 52.3543
tmin = 654566401, tmax = 654825601
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='856796', job_status='RUN', time_executed='2021-10-02 00:03:54.420271', time_epoch_executed='1633158234.42' WHERE source_name='4FGL J1630.7+5221' and cadence='daily' and bin_id='1602'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/856796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/856796/ft1_4FGL_J1630.7+5221_daily_bin1602.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/856796/ft1_4FGL_J1630.7+5221_daily_bin1602.fits outfile=/scratch/kocevski/856796/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin1602.fits ra=247.682 dec=52.3543 rad=12.0 tmin=654566401.0 tmax=654825601.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.79
user 3.48
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.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/856796/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin1602.fits evtable="EVENTS" outfile="/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.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.92
user 0.54
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits" evtable="EVENTS" scfile=/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits sctable="SC_DATA" outfile=/scratch/kocevski/856796/ltcube_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.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/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits
.....................!
real 8.96
user 8.59
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits sctable="SC_DATA" expcube=/scratch/kocevski/856796/ltcube_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.fits outfile=/scratch/kocevski/856796/expmap_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.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/856796/ltcube_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.fits
.....................!
real 145.00
user 141.56
sys 3.21

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

Setting source of interest to:
4FGL J1630.7+5221 @ 247.682 52.3543

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits scfile=/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits outfile=/scratch/kocevski/856796/cmap_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.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=247.682 yref=52.3543 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.45
user 0.31
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits scfile=/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits outfile=/scratch/kocevski/856796/cmap_HighResolution_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.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=247.682 yref=52.3543 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.46
user 0.32
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits evtable="EVENTS" scfile=/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/856796/Model_4FGL_J1630.7+5221_daily_bin1602.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/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits.....................!
real 51.09
user 50.05
sys 0.95

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits', '/scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits', expMap='/scratch/kocevski/856796/expmap_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.fits', expCube='/scratch/kocevski/856796/ltcube_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/856796/Model_4FGL_J1630.7+5221_daily_bin1602.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1630.7+5221'

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  9.141e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/856796/ft1_filtered_4FGL_J1630.7+5221_daily_bin1602.fits
Spacecraft file(s): /scratch/kocevski/856796/ft2_4FGL_J1630.7+5221_daily_bin1602.fits
Exposure map: /scratch/kocevski/856796/expmap_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.fits
Exposure cube: /scratch/kocevski/856796/ltcube_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/856796/Model_4FGL_J1630.7+5221_daily_bin1602.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) = 8066.47812394

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    5.5358       1.0000         .10000E-03   10000.    
     3 'norm      '    .10257E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    55.930       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .98076       1.0000         .10000E-03   10000.    
    10 'norm      '    16.520       1.0000         .10000E-03   10000.    
    11 'norm      '    .10119E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.3834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2422       1.0000         .10000E-03   10000.    
    14 'norm      '    35.566       1.0000         .10000E-03   10000.    
    15 'norm      '    6.9173       1.0000         .10000E-03   10000.    
    16 'Prefactor '    9.4214       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6404       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .29360E-02   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.1122       1.0000         .10000E-03   10000.    
    22 'norm      '    .49449       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .67639       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    1.7773       1.0000         .10000E-03   10000.    
    26 'Prefactor '    3.4898       1.0000         .10000E-03   10000.    
    27 'Prefactor '    27.105       1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    21.830       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .89422       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1680       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7010E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8066.471     FROM MIGRAD    STATUS=CONVERGED    892 CALLS     4606 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0597        .23137E-07** at limit **
   2  Prefactor     5.5350        5.0756        .56303E-06    .41575E-03
   3  norm          .10000E-03    5.1866       -.22166E-05** at limit **
   4  Prefactor     55.927        32.234       -.57691E-06   -.38342E-04
   5  Prefactor     .10001E-03    64.900       -.69151E-05** at limit **
   6  Prefactor     .10000E-03    6.7364        .39504E-06** at limit **
   7  Prefactor     .10000E-03    15.934        .44375E-05** at limit **
   8  Prefactor     .10000E-03    2.6422        .40883E-07** at limit **
   9  Prefactor     .97970        2.2996        .39128E-06   -.24000E-03
  10  norm          16.518        13.786        .35948E-07   -.28755E-04
  11  norm          .10000E-03    11.316       -.10892E-05** at limit **
  12  Prefactor     2.3839        3.8342        .20073E-06   -.26384E-03
  13  Prefactor     4.2415        5.4985        .15512E-06   -.18651E-03
  14  norm          35.566        45.336       -.68666E-07   -.18797E-05
  15  norm          6.9173        5.7960        .30728E-07   -.47210E-04
  16  Prefactor     9.4202        3.8653        .11690E-07   -.16381E-03
  17  Prefactor     2.6404        3.0837       -.41370E-07   -.23788E-03
  18  Prefactor     .10024E-03    5.0293        .84374E-06** at limit **
  19  Prefactor     .10000E-03    5.2337        .20988E-05** at limit **
  20  norm          .10000E-03    .31343       -.96485E-07** at limit **
  21  Prefactor     6.1121        6.0811        .22130E-05   -.16259E-02
  22  norm          .49447        .54247       -.15431E-06   -.40296E-03
  23  Prefactor     .67618        3.7279        .30436E-06   -.66781E-03
  24  Prefactor     .10000E-03    2.3425       -.10907E-07** at limit **
  25  norm          1.7773        1.5753       -.79839E-07   -.21358E-03
  26  Prefactor     3.4897        2.9451        .16243E-07   -.35615E-04
  27  Prefactor     27.108        38.497        .40522E-06    .28947E-04
  28  norm          .10000E-03    2.9226        .25554E-09** at limit **
  29  Prefactor     21.830        6.3443        .73545E-08    .91105E-05
  30  Prefactor     .10001E-03    20.214       -.55981E-05** at limit **
  31  Prefactor     .10000E-03    39.401        .53361E-05** at limit **
  32  Normalizat    .89420        .16900       -.66143E-06   -.97625E-04
  33  Prefactor     1.1680        .16232       -.17172E-06   -.11175E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 5.53502
  norm       = 0.000100001
  Prefactor  = 55.9271
  Prefactor  = 0.000100008
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  Prefactor  = 0.979702
  norm       = 16.518
  norm       = 0.0001
  Prefactor  = 2.38387
  Prefactor  = 4.24154
  norm       = 35.5659
  norm       = 6.91731
  Prefactor  = 9.42021
  Prefactor  = 2.64037
  Prefactor  = 0.000100242
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 6.11207
  norm       = 0.494468
  Prefactor  = 0.67618
  Prefactor  = 0.0001
  norm       = 1.77727
  Prefactor  = 3.48966
  Prefactor  = 27.1076
  norm       = 0.0001
  Prefactor  = 21.8302
  Prefactor  = 0.000100005
  Prefactor  = 0.000100005
  Normalizat = 0.894205
  Prefactor  = 1.16799
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.471     FROM HESSE     STATUS=OK           699 CALLS     5305 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.1028        .18054E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     5.5350        5.0939        .17076E-03   -1.5237    
   3  norm          .10000E-03    5.3791        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     55.927        32.234        .53638E-04   -1.4211    
   5  Prefactor     .10001E-03    65.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    6.9286        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.325        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    2.6751        .14249E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .97970        2.0988        .20167E-02   -1.5510    
  10  norm          16.518        13.778        .98541E-04   -1.4895    
  11  norm          .10000E-03    11.416        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     2.3839        3.8073        .21022E-03   -1.5399    
  13  Prefactor     4.2415        5.5045        .19563E-03   -1.5296    
  14  norm          35.566        45.194        .67199E-04   -1.4515    
  15  norm          6.9173        5.7944        .15254E-03   -1.5182    
  16  Prefactor     9.4202        3.8322        .10552E-03   -1.5094    
  17  Prefactor     2.6404        3.0630        .16030E-03   -1.5383    
  18  Prefactor     .10024E-03    63.126        .38236E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    5.3319        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    .32187        .97970E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     6.1121        7.0084        .81196E-03   -1.5213    
  22  norm          .49447        .53171        .66495E-04   -1.5567    
  23  Prefactor     .67618        3.9826        .34334E-03   -1.5544    
  24  Prefactor     .10000E-03    2.3484        .13423E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          1.7773        1.5625        .10214E-03   -1.5441    
  26  Prefactor     3.4897        2.9439        .13699E-03   -1.5334    
  27  Prefactor     27.108        38.395        .76948E-04   -1.4666    
  28  norm          .10000E-03    2.9485        .14983E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     21.830        6.3412        .85728E-04   -1.4773    
  30  Prefactor     .10001E-03    20.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10000E-03    39.936        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .89420        .19978        .27783E-03   -.96664    
  33  Prefactor     1.1680        .19302        .24070E-03   -.87322    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.74555e-08
Minuit parameter uncertainties:
  1  1.17469e-06
  2  5.09428
  3  0.000123724
  4  32.2437
  5  0.00143943
  6  1.29764e-05
  7  0.000444934
  8  1.1313e-06
  9  2.09893
  10  13.7809
  11  9.12837e-05
  12  3.80767
  13  5.50514
  14  45.2371
  15  5.79487
  16  3.83227
  17  3.06321
  18  0.00782516
  19  0.000125212
  20  2.09738e-06
  21  7.00935
  22  0.531712
  23  3.28214
  24  5.09998e-07
  25  1.56254
  26  2.94406
  27  38.4302
  28  3.14459e-07
  29  6.3414
  30  0.000652888
  31  0.000868592
  32  0.199948
  33  0.193141
Done.

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

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.652e+01  1.378e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.947e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.168e+00  1.931e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  8.942e-01  1.999e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.61
Ra Dec: 247.682 52.354
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 1.77e-08 +/- 1.47e-08
Energy Flux (Fixed Index): 1.27e-05 +/- 1.06e-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) = 8066.45098726
delta logL = 0.0202931260892

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8066.45058907
delta logL = 0.0206913216498

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8066.451     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      252 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          16.799        14.228        .48861E-03   -.18823E-02
   2  alpha         1.8104        .65578        .18970E-01   -.29603E-03
   3  Normalizat    .89660        .19389        .27750E-03    .31251E-03
   4  Prefactor     1.1672        .19003        .24078E-03    .38869E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 16.7993
  alpha      = 1.81042
  Normalizat = 0.896602
  Prefactor  = 1.16719
 **********
 **   18 **HESSE 
 **********

 FCN=   8066.451     FROM HESSE     STATUS=OK            23 CALLS      275 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          16.799        14.221        .97722E-04   -1.4888    
   2  alpha         1.8104        .65549        .75881E-03   -.27945    
   3  Normalizat    .89660        .19406        .11100E-04   -.96580    
   4  Prefactor     1.1672        .19021        .48156E-04   -.87347    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.13665e-08
Minuit parameter uncertainties:
  1  14.2235
  2  0.663909
  3  0.194213
  4  0.190326
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/856796': 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) = 8066.45058903
delta logL = 0.0206913588463

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.680e+01  1.422e+01  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.810e+00  6.639e-01  0.000e+00  5.000e+00 ( 1.000e+00)
319         beta:  6.119e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
320           Eb:  1.176e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
698    Prefactor:  1.167e+00  1.903e-01  0.000e+00  1.000e+01 ( 1.000e+00)
699        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
700        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
697   Normalization:  8.966e-01  1.942e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.65
Ra Dec: 247.682 52.354
Photon Index (Free Index): 1.81 +/- 0.66
Photon Flux (Free Index): 1.51e-08 +/- 1.75e-08
Energy Flux (Free Index): 1.47e-05 +/- 1.72e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/856796/cmap_HighResolution_654566401_654825601_4FGL_J1630.7+5221_daily_bin1602.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.77e-08', energy_flux2='1.47e-05', photon_flux_error='1.47e-08', dlogl='2.07e-02', energy_flux='1.27e-05', photon_flux2='1.51e-08', job_status='DONE', time_completed='2021-10-02 00:18:44.971093', photon_index_error2='0.66', photon_index2='1.81', ts='4.61', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.72e-05', EG='0.89', time_epoch_completed='1633159124.97', return_code='0', job_id='856796', GAL2='1.17', EG2='0.90', return_code2='0', energy_flux_error='1.06e-05', photon_flux_error2='1.75e-08', ts2='4.65', photon_index='1.95' WHERE bin_id='1602' AND source_name='4FGL J1630.7+5221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Oct  2 00:18:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0095>
Subject: Job 856796: <4FGL_J1630.7+5221_daily_bin1602> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin1602> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Oct  2 00:03:22 2021
Job was executed on host(s) <bullet0095>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Oct  2 00:03:25 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Oct  2 00:03:25 2021
Terminated at Sat Oct  2 00:18:45 2021
Results reported at Sat Oct  2 00:18:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin1602 247.682 52.3543 654566401 654825601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1630.7+5221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   892.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             333.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   920 sec.
    Turnaround time :                            923 sec.

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

