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 65 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_J1749.0+4321_daily_bin1694
RA = 267.255, Dec = 43.3616
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='640914', job_status='RUN', time_executed='2022-07-05 03:57:14.459774', time_epoch_executed='1657018634.46' WHERE source_name='4FGL J1749.0+4321' and cadence='daily' and bin_id='1694'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/640914

Creating custom pfile directory:
/scratch/kocevski/640914/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/640914/ft1_4FGL_J1749.0+4321_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/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/640914/ft1_4FGL_J1749.0+4321_daily_bin1694.fits outfile=/scratch/kocevski/640914/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1694.fits ra=267.255 dec=43.3616 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.42
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_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/640914/ft1_filteredMKT_4FGL_J1749.0+4321_daily_bin1694.fits evtable="EVENTS" outfile="/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_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.51
user 0.34
sys 0.16

Number of photons that the gtmktime cut: 875

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits" evtable="EVENTS" scfile=/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits sctable="SC_DATA" outfile=/scratch/kocevski/640914/ltcube_678412801_678672001_4FGL_J1749.0+4321_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/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits
.....................!
real 15.08
user 14.65
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits sctable="SC_DATA" expcube=/scratch/kocevski/640914/ltcube_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.fits outfile=/scratch/kocevski/640914/expmap_678412801_678672001_4FGL_J1749.0+4321_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/640914/ltcube_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.fits
.....................!
real 195.57
user 186.57
sys 5.18

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

Setting source of interest to:
4FGL J1749.0+4321 @ 267.255 43.3616

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits scfile=/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits outfile=/scratch/kocevski/640914/cmap_678412801_678672001_4FGL_J1749.0+4321_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=267.255 yref=43.3616 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.95
user 0.41
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits scfile=/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits outfile=/scratch/kocevski/640914/cmap_HighResolution_678412801_678672001_4FGL_J1749.0+4321_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=267.255 yref=43.3616 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.64
user 0.39
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits evtable="EVENTS" scfile=/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/640914/Model_4FGL_J1749.0+4321_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/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits.....................!
real 78.95
user 75.64
sys 1.31

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits', '/scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits', expMap='/scratch/kocevski/640914/expmap_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.fits', expCube='/scratch/kocevski/640914/ltcube_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/640914/Model_4FGL_J1749.0+4321_daily_bin1694.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1749.0+4321'

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  4.281e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/640914/ft1_filtered_4FGL_J1749.0+4321_daily_bin1694.fits
Spacecraft file(s): /scratch/kocevski/640914/ft2_4FGL_J1749.0+4321_daily_bin1694.fits
Exposure map: /scratch/kocevski/640914/expmap_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.fits
Exposure cube: /scratch/kocevski/640914/ltcube_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/640914/Model_4FGL_J1749.0+4321_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) = 9095.83528498

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10136E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    5.7208       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .63075       1.0000         .10000E-03   10000.    
     6 'norm      '    11.389       1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    7.5320       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.919       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10040E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10106E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10117E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .86738       1.0000         .10000E-03   10000.    
    16 'Prefactor '    32.301       1.0000         .10000E-03   10000.    
    17 'Prefactor '    14.699       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .12263E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.6164       1.0000         .10000E-03   10000.    
    20 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    14.353       1.0000         .10000E-03   10000.    
    22 'norm      '    15.624       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .96144       1.0000         .10000E-03   10000.    
    25 'norm      '    27.102       1.0000         .10000E-03   10000.    
    26 'norm      '    7.2355       1.0000         .10000E-03   10000.    
    27 'Normalizat'    1.2870       1.0000         .10000E-01   10.000    
    28 'Prefactor '    .82376       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9095.825     FROM MIGRAD    STATUS=CONVERGED    712 CALLS     3544 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1.5777       -.23375E-06** at limit **
   2  norm          5.7208        2.0118        .40345E-07    .10713E-03
   3  norm          .10000E-03    .25472       -.63471E-07** at limit **
   4  Prefactor     .10000E-03    2.4700       -.52927E-07** at limit **
   5  norm          .63070        .72780        .31903E-07    .33686E-04
   6  norm          11.387        8.1566        .75918E-07    .11703E-03
   7  norm          .10000E-03    .61762       -.68673E-07** at limit **
   8  Prefactor     7.5346        3.7861       -.34371E-06   -.46142E-03
   9  Prefactor     .10000E-03    10.358        .68732E-07** at limit **
  10  norm          14.917        6.0933       -.15302E-06    .43932E-03
  11  Prefactor     .10000E-03    46.106        .64230E-06** at limit **
  12  Prefactor     .10000E-03    100.02       -.23155E-05** at limit **
  13  norm          .10000E-03    3.8165       -.44617E-06** at limit **
  14  Prefactor     .10000E-03    12.552       -.13412E-06** at limit **
  15  Prefactor     .86420        6.0211        .97178E-05    .63394E-03
  16  Prefactor     32.442        60.321       -.21104E-04    .10073E-03
  17  Prefactor     14.702        22.068       -.20246E-06   -.35955E-04
  18  Prefactor     .10000E-03    19.107       -.19950E-05** at limit **
  19  Prefactor     1.6163        5.1956        .53990E-05   -.70767E-03
  20  norm          .10000E-03    .42614       -.85127E-07** at limit **
  21  norm          14.307        54.636        .53354E-05   -.93287E-04
  22  norm          15.623        8.2649        .48794E-07   -.41602E-04
  23  Prefactor     .10000E-03    4.1218       -.12557E-07** at limit **
  24  Prefactor     .96070        3.0859       -.16832E-06   -.13657E-03
  25  norm          27.101        10.011        .52077E-07   -.55954E-04
  26  norm          7.2349        9.6875        .20767E-07   -.49012E-05
  27  Normalizat    1.2871        .18922       -.16662E-05   -.18527E-03
  28  Prefactor     .82379        .11263        .67248E-06   -.31008E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 5.7208
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.630702
  norm       = 11.3873
  norm       = 0.0001
  Prefactor  = 7.53464
  Prefactor  = 0.0001
  norm       = 14.9171
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.864204
  Prefactor  = 32.4422
  Prefactor  = 14.7021
  Prefactor  = 0.0001
  Prefactor  = 1.61627
  norm       = 0.0001
  norm       = 14.3067
  norm       = 15.6231
  Prefactor  = 0.0001
  Prefactor  = 0.960697
  norm       = 27.1014
  norm       = 7.23488
  Normalizat = 1.28708
  Prefactor  = 0.823785
 **********
 **   18 **HESSE 
 **********

 FCN=   9095.825     FROM HESSE     STATUS=OK           525 CALLS     4069 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    4.3376        .23112E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          5.7208        2.0080        .77814E-04   -1.5230    
   3  norm          .10000E-03    .43864        .93171E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    2.4854        .14624E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .63070        .65884        .81980E-03   -1.5549    
   6  norm          11.387        8.1479        .11871E-03   -1.5033    
   7  norm          .10000E-03    3.4523        .14162E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     7.5346        3.7847        .12662E-03   -1.5159    
   9  Prefactor     .10000E-03    10.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.917        6.0835        .10369E-03   -1.4935    
  11  Prefactor     .10000E-03    46.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    100.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    3.9165        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.557        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .86420        6.5548        .39604E-02   -1.5522    
  16  Prefactor     32.442        61.754        .70503E-04   -1.4568    
  17  Prefactor     14.702        22.057        .10447E-03   -1.4941    
  18  Prefactor     .10000E-03    19.428        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.6163        5.2571        .16650E-02   -1.5454    
  20  norm          .10000E-03    .42741        .60793E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          14.307        54.427        .10572E-03   -1.4951    
  22  norm          15.623        8.2646        .50663E-03   -1.4917    
  23  Prefactor     .10000E-03    4.1283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .96070        3.0427        .29002E-03   -1.5512    
  25  norm          27.101        10.003        .76953E-04   -1.4666    
  26  norm          7.2349        9.6882        .14912E-03   -1.5170    
  27  Normalizat    1.2871        .21959        .28057E-03   -.83953    
  28  Prefactor     .82379        .13391        .21355E-03   -.98857    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.45408e-09
Minuit parameter uncertainties:
  1  9.00764e-05
  2  2.008
  3  4.21613e-06
  4  1.32028e-06
  5  0.658846
  6  8.14872
  7  4.28698e-05
  8  3.78483
  9  7.55996e-06
  10  6.08372
  11  6.09489e-05
  12  0.000865344
  13  6.14427e-05
  14  7.98055e-06
  15  4.76057
  16  61.8756
  17  22.0689
  18  0.000196427
  19  5.25861
  20  1.33897e-06
  21  54.6171
  22  8.26519
  23  8.97392e-06
  24  3.04323
  25  10.0037
  26  9.69027
  27  0.219748
  28  0.133965
Done.

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

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  1.616e+00  5.259e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  2.087e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.238e-01  1.340e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.287e+00  2.197e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 267.255 43.362
Photon Flux Upper Limit: 5.27e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.98e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/640914/likelihoodResults_678412801_678672001_4FGL_J1749.0+4321_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) = 9095.69665671
delta logL = 0.128829726913

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9095.69628062
delta logL = 0.129205817993

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9265       1.0000         .10000E-03   10000.    
     2 'Index     '    1.5238       1.0000          .0000       10.000    
     3 'Normalizat'    1.2909       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82136       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6770E+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=   9095.696     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      324 TOTAL
                     EDM=   .30E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9270        5.9321        .23746E-03   -.32556E-04
   2  Index         1.5238        .93262        .18326E-01   -.61464E-05
   3  Normalizat    1.2910        .20977        .28020E-03   -.17333E-03
   4  Prefactor     .82135        .13175        .21380E-03   -.20366E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.92698
  Index      = 1.52384
  Normalizat = 1.291
  Prefactor  = 0.821349
 **********
 **   18 **HESSE 
 **********

 FCN=   9095.696     FROM HESSE     STATUS=OK            25 CALLS      349 TOTAL
                     EDM=   .28E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9270        6.0042        .94984E-05   -1.5366    
   2  Index         1.5238        .94450        .73305E-03   -.76874    
   3  Normalizat    1.2910        .20999        .11208E-04   -.83836    
   4  Prefactor     .82135        .13189        .85520E-05   -.98946    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83322e-11
Minuit parameter uncertainties:
  1  6.00542
  2  0.955727
  3  0.210124
  4  0.131941
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/640914': 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) = 9095.69628032
delta logL = 0.129206115587

Extracting fit parameters...

4FGL J1749.0+4321
   Spectrum: PowerLaw
367    Prefactor:  2.927e+00  6.005e+00  1.000e-04  1.000e+04 ( 1.000e-13)
368        Index:  1.524e+00  9.557e-01  0.000e+00  1.000e+01 (-1.000e+00)
369        Scale:  1.563e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
674    Prefactor:  8.213e-01  1.319e-01  0.000e+00  1.000e+01 ( 1.000e+00)
675        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
676        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
673   Normalization:  1.291e+00  2.101e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
Ra Dec: 267.255 43.362

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/640914/cmap_HighResolution_678412801_678672001_4FGL_J1749.0+4321_daily_bin1694.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.98e-03', job_status='DONE', photon_flux_upper_limit='5.27e-08', time_completed='2022-07-05 04:16:55.012214', job_id='640914', GAL2='0.82', fit_tolerance='1e-08', EG2='1.29', EG='1.29', time_epoch_completed='1657019815.01', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='1.29e-01', ts2='0.37', photon_index_error='0.00', photon_index='2.09' WHERE bin_id='1694' AND source_name='4FGL J1749.0+4321' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Jul  5 04:16:55 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0200>
Subject: Job 640801: <4FGL_J1749.0+4321_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1694> was submitted from host <rhel6-64l> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:00 2022
Job was executed on host(s) <bullet0200>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:54:44 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:54:44 2022
Terminated at Tue Jul  5 04:16:10 2022
Results reported at Tue Jul  5 04:16:10 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1694 267.255 43.3616 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1749.0+4321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1177.74 sec.
    Max Memory :                                 1108 MB
    Average Memory :                             331.48 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3407 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   1286 sec.
    Turnaround time :                            14950 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0209>
Subject: Job 640914: <4FGL_J1749.0+4321_daily_bin1694> in cluster <slac> Done

Job <4FGL_J1749.0+4321_daily_bin1694> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Tue Jul  5 00:07:05 2022
Job was executed on host(s) <bullet0209>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Jul  5 03:55:59 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:55:59 2022
Terminated at Tue Jul  5 04:16:55 2022
Results reported at Tue Jul  5 04:16:55 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1749.0+4321_daily_bin1694 267.255 43.3616 678412801 678672001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1749.0+4321 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1174.10 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             303.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1256 sec.
    Turnaround time :                            14990 sec.

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

