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


Performing analysis on: 4FGL_J1630.7+5221_daily_bin451
RA = 247.682, Dec = 52.3543
tmin = 356227201, tmax = 356486401
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='624573', job_status='RUN', time_executed='2021-09-14 18:06:06.114628', time_epoch_executed='1631667966.11' WHERE source_name='4FGL J1630.7+5221' and cadence='daily' and bin_id='451'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/624573

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/624573/ft1_4FGL_J1630.7+5221_daily_bin451.fits


Retrieving the FT1 file...

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

Retrieving 45 files...
Done.


Merging files...
fmerge4.1 : Error, missing column list names, file /scratch/kocevski/624573/ft2_filtered_0009.fits
fmerge4.1 : Fatal error!
FCCMPL: not found in table: RA_SUN
FCCMPL: not found in table: DEC_SUN

Merged file saved to:
/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/624573/ft1_4FGL_J1630.7+5221_daily_bin451.fits outfile=/scratch/kocevski/624573/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin451.fits ra=247.682 dec=52.3543 rad=12.0 tmin=356227201.0 tmax=356486401.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.11
user 2.91
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.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/624573/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin451.fits evtable="EVENTS" outfile="/scratch/kocevski/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.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.49
user 0.32
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits" evtable="EVENTS" scfile=/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits sctable="SC_DATA" outfile=/scratch/kocevski/624573/ltcube_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.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/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits
.....................!
real 3.70
user 3.35
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits sctable="SC_DATA" expcube=/scratch/kocevski/624573/ltcube_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.fits outfile=/scratch/kocevski/624573/expmap_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.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/624573/ltcube_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.fits
.....................!
real 190.56
user 185.91
sys 4.13

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/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits scfile=/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits outfile=/scratch/kocevski/624573/cmap_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits scfile=/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits outfile=/scratch/kocevski/624573/cmap_HighResolution_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.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
gtbin: WARNING: Spacecraft data ceases before end of last GTI.
gtbin: WARNING: EXPOSURE keyword calculation may not be accurate.
real 0.55
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits evtable="EVENTS" scfile=/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/624573/Model_4FGL_J1630.7+5221_daily_bin451.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/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits......................!
real 24.37
user 23.03
sys 1.21

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits', '/scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits', expMap='/scratch/kocevski/624573/expmap_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.fits', expCube='/scratch/kocevski/624573/ltcube_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/624573/Model_4FGL_J1630.7+5221_daily_bin451.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/624573/ft1_filtered_4FGL_J1630.7+5221_daily_bin451.fits
Spacecraft file(s): /scratch/kocevski/624573/ft2_4FGL_J1630.7+5221_daily_bin451.fits
Exposure map: /scratch/kocevski/624573/expmap_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.fits
Exposure cube: /scratch/kocevski/624573/ltcube_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/624573/Model_4FGL_J1630.7+5221_daily_bin451.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) = 1576.42032492

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    28.914       1.0000         .10000E-03   10000.    
     3 'norm      '    .13841E-02   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    2.2285       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6895       1.0000         .10000E-03   10000.    
     9 'Prefactor '    29.711       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .23407E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.146       1.0000         .10000E-03   10000.    
    14 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    6.4710       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.2198       1.0000         .10000E-03   10000.    
    18 'Prefactor '    20.359       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .96150       1.0000         .10000E-03   10000.    
    20 'norm      '    1.1210       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.8513       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10385E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    7.1523       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    18.276       1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    30 'Prefactor '    72.465       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.2274       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .48154       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=   1576.348     FROM MIGRAD    STATUS=CONVERGED    873 CALLS     4629 TOTAL
                     EDM=   .92E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  7.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.8689        .19849E-07** at limit **
   2  Prefactor     28.801        23.522       -.15660E-05   -.13811E-03
   3  norm          .10000E-03    76.010        .68286E-05** at limit **
   4  Prefactor     .10000E-03    77.795        .43060E-06** at limit **
   5  Prefactor     .10000E-03    115.59        .48166E-05** at limit **
   6  Prefactor     2.2329        21.235       -.29706E-05    .10603E-05
   7  Prefactor     .10000E-03    35.318        .33217E-06** at limit **
   8  Prefactor     4.6875        11.904        .18317E-06   -.27355E-04
   9  Prefactor     29.712        13.120        .30283E-07    .83565E-04
  10  norm          .10000E-03    14.773       -.21617E-07** at limit **
  11  norm          .10000E-03    194.34       -.55860E-05** at limit **
  12  Prefactor     .10000E-03    2.5723        .27920E-08** at limit **
  13  Prefactor     18.126        18.448       -.41839E-06   -.68563E-04
  14  norm          .10000E-03    67.589       -.15087E-05** at limit **
  15  norm          6.4583        20.417       -.89931E-06   -.18025E-04
  16  Prefactor     .10000E-03    1.9974        .52553E-08** at limit **
  17  Prefactor     2.2221        9.4701       -.64079E-06    .96009E-04
  18  Prefactor     20.359        24.803        .90726E-07    .29170E-05
  19  Prefactor     1.1304        412.72        .22097E-04   -.61612E-05
  20  norm          1.1213        1.7554       -.58703E-07    .17490E-03
  21  Prefactor     .10000E-03    33.332       -.95144E-06** at limit **
  22  norm          4.8519        2.8295       -.43919E-08    .29429E-03
  23  Prefactor     .10000E-03    35.546        .13052E-05** at limit **
  24  Prefactor     .10000E-03    18.929       -.34749E-07** at limit **
  25  norm          .10000E-03    2.1959        .14983E-07** at limit **
  26  Prefactor     7.1539        9.9229        .10613E-07    .11422E-04
  27  Prefactor     .10000E-03    168.42        .79150E-07** at limit **
  28  norm          18.277        14.835        .13783E-07    .10665E-04
  29  Prefactor     .10000E-03    3.5328       -.13866E-07** at limit **
  30  Prefactor     72.470        83.686        .23368E-06    .27740E-05
  31  Prefactor     .10000E-03    71.311       -.94188E-06** at limit **
  32  Normalizat    1.2277        .38771       -.20959E-07   -.53366E-04
  33  Prefactor     .48118        .31988        .97708E-08    .71854E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  Prefactor  = 28.8006
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 2.2329
  Prefactor  = 0.0001
  Prefactor  = 4.68751
  Prefactor  = 29.7123
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 18.1256
  norm       = 0.0001
  norm       = 6.45831
  Prefactor  = 0.0001
  Prefactor  = 2.22214
  Prefactor  = 20.3592
  Prefactor  = 1.13039
  norm       = 1.12132
  Prefactor  = 0.0001
  norm       = 4.85192
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 7.15388
  Prefactor  = 0.0001
  norm       = 18.2774
  Prefactor  = 0.0001
  Prefactor  = 72.4699
  Prefactor  = 0.0001
  Normalizat = 1.22771
  Prefactor  = 0.481182
 **********
 **   18 **HESSE 
 **********

 FCN=   1576.348     FROM HESSE     STATUS=OK           689 CALLS     5318 TOTAL
                     EDM=   .60E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.8720        .65681E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     28.801        24.757        .74508E-04   -1.4634    
   3  norm          .10000E-03    83.018        .41066E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    77.895        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    116.60        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     2.2329        21.324        .13770E-02   -1.5409    
   7  Prefactor     .10000E-03    35.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     4.6875        11.972        .18583E-03   -1.5275    
   9  Prefactor     29.712        13.115        .73504E-04   -1.4617    
  10  norm          .10000E-03    14.773        .14908E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    196.23        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.5732        .62195E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     18.126        18.413        .94023E-04   -1.4856    
  14  norm          .10000E-03    67.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          6.4583        20.281        .78885E-03   -1.5200    
  16  Prefactor     .10000E-03    1.9985        .54801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.2221        9.2445        .22253E-03   -1.5410    
  18  Prefactor     20.359        24.795        .88769E-04   -1.4805    
  19  Prefactor     1.1304        422.82        .53513E-02   -1.5495    
  20  norm          1.1213        1.7020        .62692E-03   -1.5496    
  21  Prefactor     .10000E-03    33.531        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.8519        2.8207        .47978E-04   -1.5267    
  23  Prefactor     .10000E-03    36.385        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    19.080        .16870E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          .10000E-03    2.2056        .57447E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     7.1539        9.9185        .13893E-03   -1.5173    
  27  Prefactor     .10000E-03    168.50        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          18.277        14.830        .93687E-04   -1.4853    
  29  Prefactor     .10000E-03    3.5349        .72885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Prefactor     72.470        83.678        .23581E-03   -1.4003    
  31  Prefactor     .10000E-03    71.348        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    1.2277        .44828        .23143E-03   -.85751    
  33  Prefactor     .48118        .36659        .31977E-03   -1.1285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.98156e-09
Minuit parameter uncertainties:
  1  2.21243e-08
  2  24.7656
  3  0.000428721
  4  3.67153e-05
  5  0.000788551
  6  13.8068
  7  4.42462e-05
  8  11.9779
  9  13.1167
  10  1.02071e-06
  11  0.000685576
  12  1.90807e-06
  13  18.4186
  14  0.000107441
  15  20.303
  16  9.225e-07
  17  9.067
  18  24.8075
  19  44.0387
  20  1.70207
  21  5.56199e-05
  22  2.8208
  23  1.42877e-05
  24  1.09087e-05
  25  2.02271e-06
  26  9.9208
  27  5.42561e-05
  28  14.8334
  29  1.28292e-06
  30  83.8139
  31  0.000119633
  32  0.4497
  33  0.368409
Done.

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

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.000e-04  1.021e-06  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:  4.812e-01  3.684e-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:  1.228e+00  4.497e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 247.682 52.354
Photon Flux Upper Limit: 9.15e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.56e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/624573/likelihoodResults_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.txt

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): 102
logL (Free Index) = 1576.34804029
delta logL = -0.000249898207812

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1576.34779563
delta logL = -5.24360780219e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10054E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9638       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2277       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48119       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=   1576.348     FROM MIGRAD    STATUS=CONVERGED    104 CALLS      282 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    880.38        .95207E-02** at limit **
   2  alpha         1.5639        3.4462        .16834       -.82731E-08
   3  Normalizat    1.2277        .69048E-01    .23143E-03   -.70128E-04
   4  Prefactor     .48118        .62341E-01    .31977E-03   -.62049E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.56394
  Normalizat = 1.22772
  Prefactor  = 0.481178
 **********
 **   18 **HESSE 
 **********

 FCN=   1576.348     FROM HESSE     STATUS=OK            23 CALLS      305 TOTAL
                     EDM=   .29E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    16.454        .15714E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5639        3.9538        .67335E-02   -.38377    
   3  Normalizat    1.2277        .39384        .46287E-04   -.85751    
   4  Prefactor     .48118        .35483        .12791E-04   -1.1285    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.90886e-11
Minuit parameter uncertainties:
  1  1.66756e-05
  2  448.53
  3  0.394796
  4  0.356472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/624573': 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) = 1576.34779005
delta logL = 3.37954588758e-07

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.000e-04  1.668e-05  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.564e+00  4.485e+02  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:  4.812e-01  3.565e-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:  1.228e+00  3.948e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 247.682 52.354

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/624573/cmap_HighResolution_356227201_356486401_4FGL_J1630.7+5221_daily_bin451.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.56e-05', job_status='DONE', photon_flux_upper_limit='9.15e-08', time_completed='2021-09-14 18:14:52.517619', job_id='624573', GAL2='0.48', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1631668492.52', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.48', dlogl='3.38e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='451' AND source_name='4FGL J1630.7+5221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 14 18:14:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 624573: <4FGL_J1630.7+5221_daily_bin451> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin451> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Tue Sep 14 18:05:17 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 14 18:05:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 14 18:05:50 2021
Terminated at Tue Sep 14 18:14:53 2021
Results reported at Tue Sep 14 18:14:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin451 247.682 52.3543 356227201 356486401 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 :                                   522.28 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             320.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   542 sec.
    Turnaround time :                            576 sec.

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

