aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/pyfits/__init__.py:22: PyFITSDeprecationWarning: PyFITS is deprecated, please use astropy.io.fits
  PyFITSDeprecationWarning)  # noqa

Likelihood Analysis Tool
Support Contact: Daniel Kocevski (daniel.kocevski@nasa.gov)


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


Performing analysis on: 4FGL_J1630.7+5221_daily_bin1691
RA = 247.682, Dec = 52.3543
tmin = 677635201, tmax = 677894401
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='293016', job_status='RUN', time_executed='2022-06-26 00:54:49.259906', time_epoch_executed='1656230089.26' WHERE source_name='4FGL J1630.7+5221' and cadence='daily' and bin_id='1691'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/293016

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/293016/ft1_4FGL_J1630.7+5221_daily_bin1691.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/293016/ft1_4FGL_J1630.7+5221_daily_bin1691.fits outfile=/scratch/kocevski/293016/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin1691.fits ra=247.682 dec=52.3543 rad=12.0 tmin=677635201.0 tmax=677894401.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 2.39
user 2.16
sys 0.18

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.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/293016/ft1_filteredMKT_4FGL_J1630.7+5221_daily_bin1691.fits evtable="EVENTS" outfile="/scratch/kocevski/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.32
sys 0.16

Number of photons that the gtmktime cut: 1069

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits" evtable="EVENTS" scfile=/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits sctable="SC_DATA" outfile=/scratch/kocevski/293016/ltcube_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.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/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits
.....................!
real 14.29
user 13.43
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits sctable="SC_DATA" expcube=/scratch/kocevski/293016/ltcube_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.fits outfile=/scratch/kocevski/293016/expmap_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.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/293016/ltcube_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.fits
.....................!
real 192.95
user 186.38
sys 5.28

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/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits scfile=/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits outfile=/scratch/kocevski/293016/cmap_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits scfile=/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits outfile=/scratch/kocevski/293016/cmap_HighResolution_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits evtable="EVENTS" scfile=/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/293016/Model_4FGL_J1630.7+5221_daily_bin1691.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/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits.....................!
real 84.50
user 82.64
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits', '/scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits', expMap='/scratch/kocevski/293016/expmap_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.fits', expCube='/scratch/kocevski/293016/ltcube_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/293016/Model_4FGL_J1630.7+5221_daily_bin1691.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/293016/ft1_filtered_4FGL_J1630.7+5221_daily_bin1691.fits
Spacecraft file(s): /scratch/kocevski/293016/ft2_4FGL_J1630.7+5221_daily_bin1691.fits
Exposure map: /scratch/kocevski/293016/expmap_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.fits
Exposure cube: /scratch/kocevski/293016/ltcube_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/293016/Model_4FGL_J1630.7+5221_daily_bin1691.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 102
logL (Fixed Index) = 11611.8071429

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    5.5071       1.0000         .10000E-03   10000.    
     2 'Prefactor '    10.598       1.0000         .10000E-03   10000.    
     3 'norm      '    .10013E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.1546       1.0000         .10000E-03   10000.    
     7 'Prefactor '    1.1933       1.0000         .10000E-03   10000.    
     8 'Prefactor '    4.6083       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.6313       1.0000         .10000E-03   10000.    
    10 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    6.0402       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .61801       1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0839       1.0000         .10000E-03   10000.    
    14 'norm      '    .10073E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.175       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.1665       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    3.1109       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .67187E-01   1.0000         .10000E-03   10000.    
    21 'Prefactor '    1.2042       1.0000         .10000E-03   10000.    
    22 'norm      '    .94709E-01   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .17053E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    2.8367       1.0000         .10000E-03   10000.    
    26 'Prefactor '    1.5661       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .10155E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    2.3357       1.0000         .10000E-03   10000.    
    30 'Prefactor '    8.5419       1.0000         .10000E-03   10000.    
    31 'Prefactor '    7.7651       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .88066       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1347       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   11611.64     FROM MIGRAD    STATUS=FAILED      1611 CALLS     5363 TOTAL
                     EDM=   .24E-06    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5070        2.4917        .11072E-03   -.38811E-04
   2  Prefactor     10.597        5.9615        .12308E-03   -.47848E-04
   3  norm          .10000E-03    2.8241        .17562E-02** at limit **
   4  Prefactor     .10000E-03    8.1442        .18142E-02** at limit **
   5  Prefactor     .10000E-03    31.168        .18142E-02** at limit **
   6  Prefactor     1.1568        10.378        .42872E-03   -.92653E-04
   7  Prefactor     1.1664        100.63        .41657E-03   -.68064E-04
   8  Prefactor     4.6079        4.1631        .18750E-03   -.50083E-04
   9  Prefactor     1.6308        2.7292        .22003E-03   -.82980E-04
  10  norm          .10000E-03    9.9776        .18142E-02** at limit **
  11  norm          6.0397        6.6987        .81685E-03    .13528E-04
  12  Prefactor     .61717        3.2138        .34985E-02    .11654E-01
  13  Prefactor     3.0831        4.8175        .11548E-02   -.54899E-03
  14  norm          .10000E-03    15.053        .18142E-02** at limit **
  15  norm          12.175        5.8599        .11480E-03    .30104E-04
  16  Prefactor     1.1666        2.4124        .21662E-03   -.16343E-03
  17  Prefactor     .10000E-03    .90390        .99206E-03** at limit **
  18  Prefactor     3.1112        4.7309        .11495E-02   -.31036E-03
  19  Prefactor     .10000E-03    5.5258        .18142E-02** at limit **
  20  norm          .66197E-01    1.6862        .10273E-02    .40394E-03
  21  Prefactor     1.2000        5.2389        .41317E-03   -.11887E-04
  22  norm          .94993E-01    .58230        .11262E-02    .15813E-01
  23  Prefactor     .10000E-03    8.5577        .30986E-02** at limit **
  24  Prefactor     .10000E-03    6.7439        .36285E-03** at limit **
  25  norm          2.8367        1.2786        .78800E-04   -.11455E-03
  26  Prefactor     1.5665        1.5842        .13365E-03    .18713E-05
  27  Prefactor     .10000E-03    22.681        .18142E-02** at limit **
  28  norm          .10000E-03    1.9081        .28686E-03** at limit **
  29  Prefactor     2.3368        3.2490        .21401E-03   -.12505E-03
  30  Prefactor     8.5283        23.984        .13716E-03   -.16578E-05
  31  Prefactor     7.7102        126.17        .14390E-03    .14221E-05
  32  Normalizat    .88075        .16555        .26343E-03    .55413E-04
  33  Prefactor     1.1346        .15232        .22710E-03    .30337E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   11611.64     FROM SIMPLEX   STATUS=UNCHANGED   1921 CALLS     7284 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5070        2.4917        .60405E-06   -1.5239    
   2  Prefactor     10.597        5.9615        .60739E-06   -1.5057    
   3  norm          .10000E-03    2.8241        .30129E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1442        .44467E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.168        .98401E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1568        10.378        .60630E-06   -1.5493    
   7  Prefactor     1.1664        100.63        .61775E-06   -1.5492    
   8  Prefactor     4.6079        4.1631        .59833E-06   -1.5279    
   9  Prefactor     1.6308        2.7292        .60540E-06   -1.5453    
  10  norm          .10000E-03    9.9776        .39719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.0397        6.6987        .59395E-06   -1.5216    
  12  Prefactor     .61717        3.2138        .60652E-06   -1.5551    
  13  Prefactor     3.0831        4.8175        .59986E-06   -1.5357    
  14  norm          .10000E-03    15.053        .73870E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.175        5.8599        .58518E-06   -1.5010    
  16  Prefactor     1.1666        2.4124        .60402E-06   -1.5492    
  17  Prefactor     .10000E-03    .90390        .56216E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1112        4.7309        .59866E-06   -1.5355    
  19  Prefactor     .10000E-03    5.5258        .31227E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .66197E-01    1.6862        .61039E-06   -1.5657    
  21  Prefactor     1.2000        5.2389        .60385E-06   -1.5489    
  22  norm          .94993E-01    .58230        .61001E-06   -1.5646    
  23  Prefactor     .10000E-03    8.5577        .52333E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7439        .73590E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8367        1.2786        .59926E-06   -1.5371    
  26  Prefactor     1.5665        1.5842        .60263E-06   -1.5458    
  27  Prefactor     .10000E-03    22.681        .52767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.9081        .20126E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.3368        3.2490        .60037E-06   -1.5402    
  30  Prefactor     8.5283        23.984        .58949E-06   -1.5124    
  31  Prefactor     7.7102        126.17        .59132E-06   -1.5153    
  32  Normalizat    .88075        .16555        .37874E-06   -.97140    
  33  Prefactor     1.1346        .15232        .34452E-06   -.88367    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11611.64     FROM MIGRAD    STATUS=CONVERGED    674 CALLS     7958 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.5070        2.4914        .44290E-05    .61605E-06
   2  Prefactor     10.597        5.9600        .49230E-05    .92372E-06
   3  norm          .10000E-03    2.8251        .35124E-03** at limit **
   4  Prefactor     .10000E-03    8.1444        .36285E-03** at limit **
   5  Prefactor     .10000E-03    31.172        .36285E-03** at limit **
   6  Prefactor     1.1568        9.9548        .17149E-04   -.45080E-05
   7  Prefactor     1.1666        96.447        .16663E-04    .27291E-06
   8  Prefactor     4.6079        4.1622        .74999E-05   -.12127E-05
   9  Prefactor     1.6308        2.7285        .88012E-05   -.51669E-06
  10  norm          .10000E-03    9.9822        .36285E-03** at limit **
  11  norm          6.0397        6.6987        .32674E-04   -.13918E-06
  12  Prefactor     .61718        3.1749        .69971E-03    .19985E-04
  13  Prefactor     3.0832        4.8103        .46192E-04    .44302E-05
  14  norm          .10000E-03    15.053        .36285E-03** at limit **
  15  norm          12.175        5.8596        .45921E-05    .39611E-05
  16  Prefactor     1.1666        2.3952        .86648E-05    .52482E-06
  17  Prefactor     .10000E-03    .90406        .19841E-03** at limit **
  18  Prefactor     3.1112        4.7295        .45979E-04    .69232E-06
  19  Prefactor     .10000E-03    5.5269        .36285E-03** at limit **
  20  norm          .66195E-01    1.6401        .41091E-04   -.44267E-05
  21  Prefactor     1.2000        5.1487        .16527E-04    .11006E-05
  22  norm          .94994E-01    .57687        .22524E-03    .29174E-04
  23  Prefactor     .10000E-03    8.6716        .61972E-03** at limit **
  24  Prefactor     .10000E-03    6.7442        .72569E-04** at limit **
  25  norm          2.8368        1.2783        .31520E-05     .0000    
  26  Prefactor     1.5665        1.5842        .53462E-05    .11908E-05
  27  Prefactor     .10000E-03    22.682        .36285E-03** at limit **
  28  norm          .10000E-03    1.9082        .57372E-04** at limit **
  29  Prefactor     2.3368        3.2479        .85603E-05    .15937E-05
  30  Prefactor     8.5283        23.982        .54863E-05    .82888E-06
  31  Prefactor     7.7103        125.84        .57560E-05    .79004E-06
  32  Normalizat    .88075        .16540        .10537E-04    .94944E-05
  33  Prefactor     1.1346        .15245        .90839E-05    .12015E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.50697
  Prefactor  = 10.5974
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.15681
  Prefactor  = 1.16664
  Prefactor  = 4.60787
  Prefactor  = 1.63083
  norm       = 0.0001
  norm       = 6.03966
  Prefactor  = 0.617184
  Prefactor  = 3.08321
  norm       = 0.0001
  norm       = 12.1749
  Prefactor  = 1.16663
  Prefactor  = 0.0001
  Prefactor  = 3.11123
  Prefactor  = 0.0001
  norm       = 0.0661952
  Prefactor  = 1.19997
  norm       = 0.094994
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.83675
  Prefactor  = 1.56646
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 2.33679
  Prefactor  = 8.52828
  Prefactor  = 7.71029
  Normalizat = 0.880754
  Prefactor  = 1.13464
 **********
 **   18 **HESSE 
 **********

 FCN=   11611.64     FROM HESSE     STATUS=OK           671 CALLS     8629 TOTAL
                     EDM=   .38E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.5070        2.4913        .44290E-05   -1.5239    
   2  Prefactor     10.597        5.9593        .98460E-06   -1.5057    
   3  norm          .10000E-03    2.8251        .70248E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    8.1444        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    31.172        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     1.1568        9.8842        .34297E-05   -1.5493    
   7  Prefactor     1.1666        95.411        .33325E-05   -1.5492    
   8  Prefactor     4.6079        4.1601        .15000E-05   -1.5279    
   9  Prefactor     1.6308        2.7285        .17602E-05   -1.5453    
  10  norm          .10000E-03    9.9824        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          6.0397        6.6988        .65348E-05   -1.5216    
  12  Prefactor     .61718        3.1640        .27988E-04   -1.5551    
  13  Prefactor     3.0832        4.8064        .18477E-05   -1.5357    
  14  norm          .10000E-03    15.053        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.175        5.8587        .91843E-06   -1.5010    
  16  Prefactor     1.1666        2.3927        .17330E-05   -1.5492    
  17  Prefactor     .10000E-03    .90407        .39682E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     3.1112        4.7293        .91958E-05   -1.5355    
  19  Prefactor     .10000E-03    5.5269        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .66195E-01    1.6365        .16436E-05   -1.5657    
  21  Prefactor     1.2000        5.1390        .33054E-05   -1.5489    
  22  norm          .94994E-01    .57560        .90096E-05   -1.5646    
  23  Prefactor     .10000E-03    8.6762        .12394E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    6.7444        .14514E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          2.8368        1.2783        .31520E-05   -1.5371    
  26  Prefactor     1.5665        1.5841        .53462E-05   -1.5458    
  27  Prefactor     .10000E-03    22.682        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    1.9082        .57372E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     2.3368        3.2457        .17121E-05   -1.5402    
  30  Prefactor     8.5283        23.756        .10973E-05   -1.5124    
  31  Prefactor     7.7103        126.11        .11512E-03   -1.5153    
  32  Normalizat    .88075        .16473        .21074E-05   -.97140    
  33  Prefactor     1.1346        .15196        .18168E-05   -.88367    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.82655e-13
Minuit parameter uncertainties:
  1  2.4914
  2  5.95967
  3  2.34081e-08
  4  7.85574e-08
  5  4.17874e-07
  6  6.76407
  7  21.1348
  8  4.1604
  9  2.7287
  10  1.80009e-07
  11  6.69963
  12  2.79483
  13  4.80699
  14  9.04482e-08
  15  5.85895
  16  2.39286
  17  2.50063e-08
  18  4.72992
  19  8.2903e-08
  20  0.657779
  21  4.96707
  22  0.46743
  23  6.48052e-06
  24  1.34515e-07
  25  1.27831
  26  1.58419
  27  8.07669e-07
  28  5.76822e-09
  29  3.24592
  30  23.7819
  31  62.5212
  32  0.16482
  33  0.152019
Done.

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

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.000e-04  1.800e-07  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.135e+00  1.520e-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.808e-01  1.648e-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: 2.77e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.99e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/293016/likelihoodResults_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.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) = 11611.6415032
delta logL = -0.000477705034427

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11611.6410266
delta logL = -1.12383168016e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9349       1.0000          .0000       5.0000    
     3 'Normalizat'    .88078       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1345       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=   11611.64     FROM MIGRAD    STATUS=CONVERGED    102 CALLS      237 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    6.5400        .97468E-01** at limit **
   2  alpha         1.6083        4.0690        .50000       -.35379E-07
   3  Normalizat    .88075        .34639E-02    .26343E-03   -.54351E-03
   4  Prefactor     1.1346        .33624E-02    .22710E-03   -.47268E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.60833
  Normalizat = 0.880752
  Prefactor  = 1.13464
 **********
 **   18 **HESSE 
 **********

 FCN=   11611.64     FROM HESSE     STATUS=NOT POSDEF    31 CALLS      268 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6246.5        .49006E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6083        3.6134        .50000       -.36470    
   3  Normalizat    .88075        .14349        .10537E-04   -.97140    
   4  Prefactor     1.1346        .13979        .45419E-04   -.88367    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.28945e-09
Minuit parameter uncertainties:
  1  0.000246351
  2  3710.57
  3  0.143556
  4  0.139831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/293016': 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): 102
logL (Free Index) = 11611.641025
delta logL = 4.82878022012e-07

Extracting fit parameters...

4FGL J1630.7+5221
   Spectrum: LogParabola
317         norm:  1.000e-04  2.464e-04  1.000e-04  1.000e+04 ( 1.000e-13)
318        alpha:  1.608e+00  3.711e+03  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.135e+00  1.398e-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.808e-01  1.436e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/293016/cmap_HighResolution_677635201_677894401_4FGL_J1630.7+5221_daily_bin1691.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.99e-05', job_status='DONE', photon_flux_upper_limit='2.77e-08', time_completed='2022-06-26 01:36:33.884401', job_id='293016', GAL2='1.13', fit_tolerance='1e-08', EG2='0.88', EG='0.88', time_epoch_completed='1656232593.88', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.13', dlogl='4.83e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.95' WHERE bin_id='1691' AND source_name='4FGL J1630.7+5221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Jun 26 01:36:33 PDT 2022


------------------------------------------------------------
Sender: LSF System <scs@bullet0160>
Subject: Job 292844: <4FGL_J1630.7+5221_daily_bin1691> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin1691> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sun Jun 26 00:06:38 2022
Job was executed on host(s) <bullet0160>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun 26 00:53:11 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun 26 00:53:11 2022
Terminated at Sun Jun 26 01:36:16 2022
Results reported at Sun Jun 26 01:36:16 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin1691 247.682 52.3543 677635201 677894401 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 :                                   2521.00 sec.
    Max Memory :                                 926 MB
    Average Memory :                             319.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   2584 sec.
    Turnaround time :                            5378 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0145>
Subject: Job 293016: <4FGL_J1630.7+5221_daily_bin1691> in cluster <slac> Done

Job <4FGL_J1630.7+5221_daily_bin1691> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sun Jun 26 00:06:43 2022
Job was executed on host(s) <bullet0145>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Jun 26 00:54:18 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Jun 26 00:54:18 2022
Terminated at Sun Jun 26 01:36:34 2022
Results reported at Sun Jun 26 01:36:34 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1630.7+5221_daily_bin1691 247.682 52.3543 677635201 677894401 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 :                                   2500.19 sec.
    Max Memory :                                 1091 MB
    Average Memory :                             331.98 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2931 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   2536 sec.
    Turnaround time :                            5391 sec.

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

