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


Performing analysis on: 4FGL_J1324.9+4748_daily_bin1694
RA = 201.24, Dec = 47.8086
tmin = 678412801, tmax = 678672001
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='640148', job_status='RUN', time_executed='2022-07-05 03:47:34.832791', time_epoch_executed='1657018054.83' WHERE source_name='4FGL J1324.9+4748' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640148

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/640148/ft1_4FGL_J1324.9+4748_daily_bin1694.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640148/ft1_4FGL_J1324.9+4748_daily_bin1694.fits outfile=/scratch/kocevski/640148/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1694.fits ra=201.24 dec=47.8086 rad=12.0 tmin=678412801.0 tmax=678672001.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.66
user 3.41
sys 0.21

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.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/640148/ft1_filteredMKT_4FGL_J1324.9+4748_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.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.53
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 562

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640148/ltcube_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.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/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits
.....................!
real 14.16
user 13.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640148/ltcube_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.fits outfile=/scratch/kocevski/640148/expmap_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.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/640148/ltcube_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.fits
.....................!
real 191.98
user 186.23
sys 5.16

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

Setting source of interest to:
4FGL J1324.9+4748 @ 201.24 47.8086

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits scfile=/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits outfile=/scratch/kocevski/640148/cmap_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.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=201.24 yref=47.8086 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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits scfile=/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits outfile=/scratch/kocevski/640148/cmap_HighResolution_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.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=201.24 yref=47.8086 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.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640148/Model_4FGL_J1324.9+4748_daily_bin1694.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/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits.....................!
real 50.47
user 49.05
sys 1.30

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits', '/scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits', expMap='/scratch/kocevski/640148/expmap_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.fits', expCube='/scratch/kocevski/640148/ltcube_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640148/Model_4FGL_J1324.9+4748_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1324.9+4748'

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  9.462e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640148/ft1_filtered_4FGL_J1324.9+4748_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640148/ft2_4FGL_J1324.9+4748_daily_bin1694.fits
Exposure map: /scratch/kocevski/640148/expmap_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640148/ltcube_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640148/Model_4FGL_J1324.9+4748_daily_bin1694.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) = 6179.66924107

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5779       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10240E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .13163E-01   1.0000         .10000E-03   10000.    
     4 'norm      '    2.3166       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.269       1.0000         .10000E-03   10000.    
     6 'norm      '    3.1870       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10973E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.600       1.0000         .10000E-03   10000.    
    10 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    42.900       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10061E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.3371       1.0000         .10000E-03   10000.    
    16 'Prefactor '    57.309       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .68574E-01   1.0000         .10000E-03   10000.    
    20 'norm      '    41.818       1.0000         .10000E-03   10000.    
    21 'norm      '    .10063E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    4.5637       1.0000         .10000E-03   10000.    
    26 'Prefactor '    6.1679       1.0000         .10000E-03   10000.    
    27 'Prefactor '    4.4166       1.0000         .10000E-03   10000.    
    28 'Prefactor '    .57134E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    14.532       1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.0577       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .98837       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   6179.660     FROM MIGRAD    STATUS=FAILED      1476 CALLS     4832 TOTAL
                     EDM=   .32E-07    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5787        5.4706        .25419E-03    .82920E-04
   2  Prefactor     .10000E-03    23.513        .18142E-02** at limit **
   3  Prefactor     .10002E-03    7.7531        .50860E-01** at limit **
   4  norm          2.3144        2.5158        .11750E-03    .41864E-03
   5  Prefactor     10.274        15.800        .12503E-03    .20003E-05
   6  norm          3.1868        1.9545        .83296E-04    .52410E-04
   7  Prefactor     .10000E-03    16.524        .18142E-02** at limit **
   8  Prefactor     .10006E-03    23.002        .33198E-02** at limit **
   9  Prefactor     23.600        18.594        .82455E-04    .82726E-06
  10  norm          .10000E-03    5.5670        .18099E-02** at limit **
  11  norm          .10000E-03    3.1407        .13449E-02** at limit **
  12  Prefactor     42.889        33.960        .61206E-04    .44578E-05
  13  Prefactor     .10000E-03    4.2262        .15775E-02** at limit **
  14  Prefactor     .10000E-03    20.377        .18142E-02** at limit **
  15  norm          1.3369        1.8268        .12244E-03    .33427E-05
  16  Prefactor     57.308        53.065        .52992E-04   -.17163E-05
  17  Prefactor     .10000E-03    38.213        .18142E-02** at limit **
  18  Prefactor     .10000E-03    34.516        .18142E-02** at limit **
  19  norm          .67988E-01    .82464        .10308E-02    .94549E-02
  20  norm          41.843        63.569        .61990E-04    .28683E-04
  21  norm          .10000E-03    2.4404        .11847E-02** at limit **
  22  norm          .10000E-03    10.587        .18142E-02** at limit **
  23  Prefactor     .10000E-03    15.126        .18142E-02** at limit **
  24  Prefactor     .10000E-03    12.285        .18142E-02** at limit **
  25  Prefactor     4.5634        3.9051        .13869E-03    .18854E-04
  26  Prefactor     6.1712        14.694        .16165E-03    .68220E-05
  27  Prefactor     4.4065        3.1493        .10136E-03    .72117E-03
  28  Prefactor     .10004E-03    32.676        .11007    ** at limit **
  29  Prefactor     14.509        48.315        .10507E-03   -.10063E-04
  30  Normalizat    1.0574        .20159        .21969E-03    .77211E-04
  31  Prefactor     .98874        .24150        .28208E-03    .10733E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   6179.660     FROM SIMPLEX   STATUS=PROGRESS    1537 CALLS     6369 TOTAL
                     EDM=   .19E-04    STRATEGY= 1      ERR MATRIX APPROXIMATE

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5787        5.4706        .87812E-06   -1.5387    
   2  Prefactor     .10000E-03    23.513        .82017E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    7.7531        .50169E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3144        2.5158        .86583E-06   -1.5404    
   5  Prefactor     10.274        15.800        .84767E-06   -1.5067    
   6  norm          3.1868        1.9545        .86563E-06   -1.5351    
   7  Prefactor     .10000E-03    16.524        .46357E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10006E-03    23.002        .17595E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.600        18.594        .83317E-06   -1.4736    
  10  norm          .10000E-03    5.5670        .30624E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1407        .12508E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.889        33.960        .81434E-06   -1.4397    
  13  Prefactor     .10000E-03    4.2262        .96611E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.377        .45861E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3369        1.8268        .87559E-06   -1.5477    
  16  Prefactor     57.308        53.065        .80261E-06   -1.4192    
  17  Prefactor     .10000E-03    38.213        .38280E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.516        .52024E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .67988E-01    .82464        .88532E-06   -1.5656    
  20  norm          41.843        63.569        .81378E-06   -1.4413    
  21  norm          .10000E-03    2.4404        .15134E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.587        .37284E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.126        .11386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.285        .51007E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5634        3.9051        .86441E-06   -1.5281    
  26  Prefactor     6.1712        14.694        .86086E-06   -1.5211    
  27  Prefactor     4.4065        3.1493        .86483E-06   -1.5288    
  28  Prefactor     .10004E-03    32.676        .35399E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.509        48.315        .84546E-06   -1.4946    
  30  Normalizat    1.0574        .20159        .51550E-06   -.91133    
  31  Prefactor     .98874        .24150        .52665E-06   -.93106    
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6179.660     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     6984 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5787        5.4701        .10168E-04   -.89450E-06
   2  Prefactor     .10000E-03    23.518        .36285E-03** at limit **
   3  Prefactor     .10002E-03    7.1902        .53317E-01** at limit **
   4  norm          2.3144        2.5112        .47002E-05   -.64823E-04
   5  Prefactor     10.274        15.799        .50014E-05   -.90924E-06
   6  norm          3.1868        1.9545        .33319E-05   -.81891E-05
   7  Prefactor     .10000E-03    16.524        .36285E-03** at limit **
   8  Prefactor     .10000E-03    23.384        .66397E-03** at limit **
   9  Prefactor     23.600        18.592        .32982E-05   -.13788E-06
  10  norm          .10000E-03    5.5674        .36198E-03** at limit **
  11  norm          .10000E-03    3.1421        .26898E-03** at limit **
  12  Prefactor     42.889        33.946        .24483E-05   -.92872E-06
  13  Prefactor     .10000E-03    4.2263        .31549E-03** at limit **
  14  Prefactor     .10000E-03    20.379        .36285E-03** at limit **
  15  norm          1.3369        1.8268        .48975E-05   -.23213E-05
  16  Prefactor     57.308        53.088        .21197E-05   -.42907E-05
  17  Prefactor     .10000E-03    38.215        .36285E-03** at limit **
  18  Prefactor     .10000E-03    34.522        .36285E-03** at limit **
  19  norm          .67994E-01    .82404        .20615E-03    .16820E-04
  20  norm          41.843        63.569        .12398E-04   -.18340E-06
  21  norm          .10000E-03    2.4413        .23694E-03** at limit **
  22  norm          .10000E-03    10.592        .36285E-03** at limit **
  23  Prefactor     .10000E-03    15.127        .36285E-03** at limit **
  24  Prefactor     .10000E-03    12.285        .36285E-03** at limit **
  25  Prefactor     4.5634        3.9050        .55475E-05   -.40987E-05
  26  Prefactor     6.1712        14.693        .64659E-05   -.14066E-05
  27  Prefactor     4.4065        3.1446        .40545E-05   -.12674E-03
  28  Prefactor     .10005E-03    30.871        .11441    ** at limit **
  29  Prefactor     14.509        48.315        .42027E-05   -.21641E-05
  30  Normalizat    1.0574        .20183        .87874E-05   -.42694E-04
  31  Prefactor     .98874        .24176        .11283E-04   -.32646E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.57868
  Prefactor  = 0.0001
  Prefactor  = 0.000100015
  norm       = 2.31439
  Prefactor  = 10.2741
  norm       = 3.18682
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 23.6002
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 42.8893
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.33694
  Prefactor  = 57.3082
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.067994
  norm       = 41.8427
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.56341
  Prefactor  = 6.17122
  Prefactor  = 4.40649
  Prefactor  = 0.000100048
  Prefactor  = 14.5094
  Normalizat = 1.05736
  Prefactor  = 0.988741
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.660     FROM HESSE     STATUS=OK           612 CALLS     7596 TOTAL
                     EDM=   .22E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5787        5.4710        .20335E-05   -1.5387    
   2  Prefactor     .10000E-03    23.518        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10002E-03    7.3677        .52502E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          2.3144        2.5124        .94003E-06   -1.5404    
   5  Prefactor     10.274        15.781        .10003E-05   -1.5067    
   6  norm          3.1868        1.9545        .66637E-06   -1.5351    
   7  Prefactor     .10000E-03    16.524        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.400        .13279E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.600        18.593        .32982E-05   -1.4736    
  10  norm          .10000E-03    5.5674        .72396E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.1421        .53796E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     42.889        33.744        .48965E-06   -1.4397    
  13  Prefactor     .10000E-03    4.2263        .63099E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    20.379        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.3369        1.8265        .97949E-06   -1.5477    
  16  Prefactor     57.308        52.653        .42394E-06   -1.4192    
  17  Prefactor     .10000E-03    38.215        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    34.523        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .67994E-01    .82385        .82462E-05   -1.5656    
  20  norm          41.843        63.507        .24796E-05   -1.4413    
  21  norm          .10000E-03    2.4413        .47389E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    10.592        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    15.127        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    12.285        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     4.5634        3.9056        .11095E-05   -1.5281    
  26  Prefactor     6.1712        14.700        .12932E-05   -1.5211    
  27  Prefactor     4.4065        3.1459        .81091E-06   -1.5288    
  28  Prefactor     .10005E-03    31.320        .11327       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     14.509        48.149        .84055E-06   -1.4946    
  30  Normalizat    1.0574        .20095        .17575E-05   -.91133    
  31  Prefactor     .98874        .24103        .22566E-05   -.93106    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.17553e-11
Minuit parameter uncertainties:
  1  5.47205
  2  2.64144e-08
  3  0.000670989
  4  2.5125
  5  15.7873
  6  1.95459
  7  4.71814e-08
  8  3.05199e-05
  9  18.5974
  10  5.81819e-08
  11  5.24309e-08
  12  33.7594
  13  3.91514e-09
  14  8.15289e-08
  15  1.82662
  16  52.6963
  17  1.38807e-08
  18  2.65479e-07
  19  0.473019
  20  63.61
  21  1.89485e-07
  22  1.4763e-07
  23  6.31323e-07
  24  1.11325e-07
  25  3.90581
  26  14.7084
  27  3.14605
  28  0.00246117
  29  48.2781
  30  0.201091
  31  0.241288
Done.

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

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  4.289e+01  3.376e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.674e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.887e-01  2.413e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.057e+00  2.011e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 201.240 47.809
Photon Index (Fixed Index): 2.67 +/- 0.00
Photon Flux (Fixed Index): 4.56e-08 +/- 3.59e-08
Energy Flux (Fixed Index): 1.12e-05 +/- 8.82e-06

TS (Fixed Index): 2.49
Ra Dec: 201.240 47.809
Photon Flux Upper Limit: 1.22e-07 ph cm-2 s-1
Energy Flux Upper Limit: 9.55e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640148/likelihoodResults_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.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): 0
logL (Free Index) = 6179.61727861
delta logL = 0.0429850653836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6179.61548904
delta logL = 0.0447746331929

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    35.236       1.0000         .10000E-03   10000.    
     2 'Index     '    2.9030       1.0000          .0000       10.000    
     3 'Normalizat'    1.0488       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99644       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6710E+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=   6179.615     FROM MIGRAD    STATUS=CONVERGED     79 CALLS      277 TOTAL
                     EDM=   .24E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     35.227        42.746        .67511E-04    .70821E-03
   2  Index         2.9024        .86218        .74581E-02    .29171E-03
   3  Normalizat    1.0489        .19390        .22046E-03   -.84269E-03
   4  Prefactor     .99639        .23861        .28113E-03   -.71593E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 35.2272
  Index      = 2.90239
  Normalizat = 1.04887
  Prefactor  = 0.996387
 **********
 **   18 **HESSE 
 **********

 FCN=   6179.615     FROM HESSE     STATUS=OK            25 CALLS      302 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     35.227        39.095        .13502E-04   -1.4520    
   2  Index         2.9024        .78835        .29832E-03   -.43292    
   3  Normalizat    1.0489        .19394        .44092E-04   -.91411    
   4  Prefactor     .99639        .23861        .56227E-04   -.92850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.33086e-09
Minuit parameter uncertainties:
  1  39.1229
  2  0.792372
  3  0.194072
  4  0.238867
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640148': 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) = 6179.61548794
delta logL = 0.044775734731

Extracting fit parameters...

4FGL J1324.9+4748
   Spectrum: PowerLaw
347    Prefactor:  3.523e+01  3.912e+01  1.000e-04  1.000e+04 ( 1.000e-13)
348        Index:  2.902e+00  7.924e-01  0.000e+00  1.000e+01 (-1.000e+00)
349        Scale:  6.942e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
668    Prefactor:  9.964e-01  2.389e-01  0.000e+00  1.000e+01 ( 1.000e+00)
669        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
670        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
667   Normalization:  1.049e+00  1.941e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.59
Ra Dec: 201.240 47.809
Photon Index (Free Index): 2.90 +/- 0.79
Photon Flux (Free Index): 5.13e-08 +/- 4.22e-08
Energy Flux (Free Index): 1.08e-05 +/- 8.36e-06

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/640148/cmap_HighResolution_678412801_678672001_4FGL_J1324.9+4748_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.55e-03', comment='SUCCESS', photon_flux='4.56e-08', energy_flux2='1.08e-05', photon_flux_error='3.59e-08', dlogl='4.48e-02', energy_flux='1.12e-05', photon_flux2='5.13e-08', job_status='DONE', time_completed='2022-07-05 04:08:34.868488', photon_index_error2='0.79', photon_index2='2.90', ts='2.49', fit_tolerance='1e-08', GAL='0.99', photon_index_error='0.00', photon_flux_upper_limit='1.22e-07', energy_flux_error2='8.36e-06', EG='1.06', time_epoch_completed='1657019314.87', return_code='0', job_id='640148', GAL2='1.00', EG2='1.05', return_code2='0', energy_flux_error='8.82e-06', photon_flux_error2='4.22e-08', ts2='2.59', photon_index='2.67' WHERE bin_id='1694' AND source_name='4FGL J1324.9+4748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:08:34 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0086>
Subject: Job 640244: <4FGL_J1324.9+4748_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:34 2022
Job was executed on host(s) <bullet0086>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:47:04 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:47:04 2022
Terminated at Tue Jul  5 04:05:48 2022
Results reported at Tue Jul  5 04:05:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin1694 201.24 47.8086 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1324.9+4748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1031.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             301.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1123 sec.
    Turnaround time :                            14354 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 640148: <4FGL_J1324.9+4748_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1324.9+4748_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:06:30 2022
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:45:49 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Jul  5 03:45:49 2022
Terminated at Tue Jul  5 04:08:35 2022
Results reported at Tue Jul  5 04:08:35 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1324.9+4748_daily_bin1694 201.24 47.8086 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1324.9+4748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1261.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             304.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1369 sec.
    Turnaround time :                            14525 sec.

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

