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


Performing analysis on: 4FGL_J1748.6+7005_daily_bin1693
RA = 267.158, Dec = 70.0969
tmin = 678153601, tmax = 678412801
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='541656', job_status='RUN', time_executed='2022-07-02 02:40:35.989190', time_epoch_executed='1656754835.99' WHERE source_name='4FGL J1748.6+7005' and cadence='daily' and bin_id='1693'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/541656

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/541656/ft1_4FGL_J1748.6+7005_daily_bin1693.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/541656/ft1_4FGL_J1748.6+7005_daily_bin1693.fits outfile=/scratch/kocevski/541656/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin1693.fits ra=267.158 dec=70.0969 rad=12.0 tmin=678153601.0 tmax=678412801.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 4.18
user 3.93
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.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/541656/ft1_filteredMKT_4FGL_J1748.6+7005_daily_bin1693.fits evtable="EVENTS" outfile="/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.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.17

Number of photons that the gtmktime cut: 1098

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits" evtable="EVENTS" scfile=/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits sctable="SC_DATA" outfile=/scratch/kocevski/541656/ltcube_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.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/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits
.....................!
real 13.19
user 12.64
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits sctable="SC_DATA" expcube=/scratch/kocevski/541656/ltcube_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.fits outfile=/scratch/kocevski/541656/expmap_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.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/541656/ltcube_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.fits
.....................!
real 199.75
user 193.77
sys 5.25

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

Setting source of interest to:
4FGL J1748.6+7005 @ 267.158 70.0969

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits scfile=/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits outfile=/scratch/kocevski/541656/cmap_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.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.158 yref=70.0969 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

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits scfile=/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits outfile=/scratch/kocevski/541656/cmap_HighResolution_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.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.158 yref=70.0969 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits evtable="EVENTS" scfile=/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/541656/Model_4FGL_J1748.6+7005_daily_bin1693.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/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits.....................!
real 116.01
user 114.35
sys 1.27

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits', '/scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits', expMap='/scratch/kocevski/541656/expmap_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.fits', expCube='/scratch/kocevski/541656/ltcube_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/541656/Model_4FGL_J1748.6+7005_daily_bin1693.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1748.6+7005'

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  4.089e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/541656/ft1_filtered_4FGL_J1748.6+7005_daily_bin1693.fits
Spacecraft file(s): /scratch/kocevski/541656/ft2_4FGL_J1748.6+7005_daily_bin1693.fits
Exposure map: /scratch/kocevski/541656/expmap_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.fits
Exposure cube: /scratch/kocevski/541656/ltcube_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/541656/Model_4FGL_J1748.6+7005_daily_bin1693.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) = 11172.1482292

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.291       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    8.9140       1.0000         .10000E-03   10000.    
     4 'norm      '    15.950       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .62097       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10248E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .70070       1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.0925       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    22.531       1.0000         .10000E-03   10000.    
    14 'norm      '    5.4172       1.0000         .10000E-03   10000.    
    15 'norm      '    2.7934       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    4.9286       1.0000         .10000E-03   10000.    
    18 'Prefactor '    29.788       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.9947       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'norm      '    3.4638       1.0000         .10000E-03   10000.    
    26 'Prefactor '    .20523E-02   1.0000         .10000E-03   10000.    
    27 'Prefactor '    .12253E-03   1.0000         .10000E-03   10000.    
    28 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    29 'norm      '    4.1585       1.0000         .10000E-03   10000.    
    30 'norm      '    2.9551       1.0000         .10000E-03   10000.    
    31 'Normalizat'    1.2726       1.0000         .10000E-01   10.000    
    32 'Prefactor '    .74953       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6170E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   11172.13     FROM MIGRAD    STATUS=CONVERGED    865 CALLS     4404 TOTAL
                     EDM=   .97E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.295        21.769        .49824E-08    .10575E-04
   2  Prefactor     .10000E-03    33.925        .21173E-05** at limit **
   3  Prefactor     8.8681        26.086       -.10339E-05    .74467E-04
   4  norm          15.950        8.0545        .16589E-07   -.26189E-04
   5  Prefactor     .10000E-03    3.7291       -.62270E-07** at limit **
   6  norm          .62238        .58968       -.60995E-06   -.19217E-02
   7  Prefactor     .10000E-03    2.4402        .53729E-07** at limit **
   8  Prefactor     .10000E-03    1.5380       -.49457E-07** at limit **
   9  Prefactor     .10000E-03    5.4719        .25102E-06** at limit **
  10  Prefactor     .68999        7.0024       -.45458E-05   -.87394E-03
  11  Prefactor     9.0955        13.607       -.37343E-06    .25310E-04
  12  Prefactor     .10000E-03    2.2955       -.20738E-06** at limit **
  13  Prefactor     22.562        57.371        .25020E-05   -.13778E-03
  14  norm          5.4169        2.6113        .11267E-07    .96747E-04
  15  norm          2.7934        .73708       -.35826E-07    .27757E-03
  16  Prefactor     .10000E-03    10.195       -.11286E-05** at limit **
  17  norm          4.9287        4.1681       -.26457E-06    .77839E-04
  18  Prefactor     29.787        16.610       -.22762E-08   -.34191E-04
  19  Prefactor     .10000E-03    168.08        .50932E-05** at limit **
  20  Prefactor     4.9922        5.9976        .30124E-06   -.80509E-04
  21  Prefactor     .10000E-03    11.494        .63960E-06** at limit **
  22  Prefactor     .10000E-03    35.622        .33233E-05** at limit **
  23  Prefactor     .10000E-03    34.732        .20980E-05** at limit **
  24  Prefactor     .10000E-03    29.421       -.32942E-05** at limit **
  25  norm          3.4637        2.6441       -.16971E-06   -.31259E-03
  26  Prefactor     .10018E-03    35.764        .11554E-04** at limit **
  27  Prefactor     .10000E-03    2.8514       -.99543E-06** at limit **
  28  norm          .10000E-03    12.418       -.42601E-06** at limit **
  29  norm          4.1585        3.8643       -.48494E-06    .23762E-03
  30  norm          2.9551        2.4950       -.20312E-06    .36367E-03
  31  Normalizat    1.2725        .16015        .17169E-05   -.19108E-03
  32  Prefactor     .74955        .93526E-01    .35572E-06    .84109E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 46.2949
  Prefactor  = 0.0001
  Prefactor  = 8.86809
  norm       = 15.9497
  Prefactor  = 0.0001
  norm       = 0.622381
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.689991
  Prefactor  = 9.09546
  Prefactor  = 0.0001
  Prefactor  = 22.5619
  norm       = 5.41692
  norm       = 2.79341
  Prefactor  = 0.0001
  norm       = 4.92875
  Prefactor  = 29.7871
  Prefactor  = 0.000100001
  Prefactor  = 4.99225
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.46373
  Prefactor  = 0.000100179
  Prefactor  = 0.000100003
  norm       = 0.0001
  norm       = 4.15847
  norm       = 2.95506
  Normalizat = 1.27255
  Prefactor  = 0.749553
 **********
 **   18 **HESSE 
 **********

 FCN=   11172.13     FROM HESSE     STATUS=OK           667 CALLS     5071 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.295        21.755        .58931E-04   -1.4346    
   2  Prefactor     .10000E-03    33.905        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     8.8681        25.710        .13425E-03   -1.5112    
   4  norm          15.950        8.0692        .10029E-03   -1.4909    
   5  Prefactor     .10000E-03    3.7308        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .62238        .57473        .78684E-03   -1.5550    
   7  Prefactor     .10000E-03    2.4613        .16116E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.5892        .25496E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    5.4900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .68999        12.972        .29196E-02   -1.5542    
  11  Prefactor     9.0955        13.577        .13292E-03   -1.5105    
  12  Prefactor     .10000E-03    2.2969        .15636E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     22.562        64.355        .84385E-04   -1.4758    
  14  norm          5.4169        2.6063        .11099E-03   -1.5242    
  15  norm          2.7934        .73682        .44577E-04   -1.5374    
  16  Prefactor     .10000E-03    10.415        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          4.9287        4.1379        .17780E-03   -1.5264    
  18  Prefactor     29.787        16.610        .73409E-04   -1.4616    
  19  Prefactor     .10000E-03    168.03        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.9922        5.9750        .17994E-03   -1.5261    
  21  Prefactor     .10000E-03    11.600        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    35.283        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    34.700        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    29.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  norm          3.4637        2.6340        .14176E-03   -1.5336    
  26  Prefactor     .10018E-03    58.438        .57228E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10000E-03    10.837        .33363E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          .10000E-03    12.423        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  norm          4.1585        3.8581        .19329E-03   -1.5300    
  30  norm          2.9551        2.4820        .14666E-03   -1.5364    
  31  Normalizat    1.2725        .18299        .28414E-03   -.84390    
  32  Prefactor     .74955        .10666        .21887E-03   -1.0162    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.33313e-09
Minuit parameter uncertainties:
  1  21.7583
  2  7.16354e-05
  3  25.7417
  4  8.06971
  5  3.30355e-06
  6  0.574736
  7  7.51026e-06
  8  1.19992e-05
  9  2.32801e-05
  10  5.98448
  11  13.5817
  12  2.72667e-06
  13  64.5536
  14  2.60636
  15  0.736825
  16  3.84392e-05
  17  4.13818
  18  16.6125
  19  0.000788048
  20  5.97576
  21  7.75537e-05
  22  0.000771833
  23  9.71823e-05
  24  6.51935e-05
  25  2.6341
  26  0.00647155
  27  0.000343264
  28  3.95045e-06
  29  3.85834
  30  2.48204
  31  0.183085
  32  0.106692
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  5.417e+00  2.606e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  1.953e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  7.496e-01  1.067e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.273e+00  1.831e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 16.05
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 5.19e-08 +/- 2.50e-08
Energy Flux (Fixed Index): 3.66e-05 +/- 1.76e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11172.1118937
delta logL = 0.0221851725746

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11172.1107918
delta logL = 0.0232870707296

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11172.11     FROM MIGRAD    STATUS=CONVERGED     60 CALLS      222 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          5.3454        48.859        .43456E-02    .16513E-02
   2  alpha         2.0421        3.4130        .26749        .55224E-04
   3  Normalizat    1.2666        .14238        .64356E-01   -.11140E-04
   4  Prefactor     .75107        .51771E-01    .43077E-01    .22708E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 5.34543
  alpha      = 2.04207
  Normalizat = 1.26655
  Prefactor  = 0.751074
 **********
 **   18 **HESSE 
 **********

 FCN=   11172.11     FROM HESSE     STATUS=OK            33 CALLS      255 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          5.3454        2.5243        .10742E-03   -1.5246    
   2  alpha         2.0421        .41599        .13674E-01   -.18421    
   3  Normalizat    1.2666        .17222        .28467E-03   -.84570    
   4  Prefactor     .75107        .10367        .21864E-03   -1.0156    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.43034e-09
Minuit parameter uncertainties:
  1  2.52434
  2  0.418
  3  0.172298
  4  0.103694
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/541656': 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) = 11172.1107918
delta logL = 0.0232870740201

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  5.345e+00  2.524e+00  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.042e+00  4.180e-01  0.000e+00  5.000e+00 ( 1.000e+00)
355         beta:  4.795e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
356           Eb:  1.080e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
614    Prefactor:  7.511e-01  1.037e-01  0.000e+00  1.000e+01 ( 1.000e+00)
615        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
616        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
613   Normalization:  1.267e+00  1.723e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.11
Ra Dec: 267.158 70.097
Photon Index (Free Index): 2.04 +/- 0.42
Photon Flux (Free Index): 5.78e-08 +/- 3.70e-08
Energy Flux (Free Index): 3.39e-05 +/- 1.98e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/541656/cmap_HighResolution_678153601_678412801_4FGL_J1748.6+7005_daily_bin1693.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.19e-08', energy_flux2='3.39e-05', photon_flux_error='2.50e-08', dlogl='2.33e-02', energy_flux='3.66e-05', photon_flux2='5.78e-08', job_status='DONE', time_completed='2022-07-02 03:02:42.316591', photon_index_error2='0.42', photon_index2='2.04', ts='16.05', fit_tolerance='1e-08', GAL='0.75', photon_index_error='0.00', energy_flux_error2='1.98e-05', EG='1.27', time_epoch_completed='1656756162.32', return_code='0', job_id='541656', GAL2='0.75', EG2='1.27', return_code2='0', energy_flux_error='1.76e-05', photon_flux_error2='3.70e-08', ts2='16.11', photon_index='1.95' WHERE bin_id='1693' AND source_name='4FGL J1748.6+7005' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Jul  2 03:02:42 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0169>
Subject: Job 541657: <4FGL_J1748.6+7005_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin1693> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Jul  2 00:07:01 2022
Job was executed on host(s) <bullet0169>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:39:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:39:26 2022
Terminated at Sat Jul  2 03:02:42 2022
Results reported at Sat Jul  2 03:02:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin1693 267.158 70.0969 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1325.00 sec.
    Max Memory :                                 618 MB
    Average Memory :                             310.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1396 sec.
    Turnaround time :                            10541 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 541656: <4FGL_J1748.6+7005_daily_bin1693> in cluster <slac> Done

Job <4FGL_J1748.6+7005_daily_bin1693> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul  2 00:07:01 2022
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul  2 02:39:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul  2 02:39:26 2022
Terminated at Sat Jul  2 03:02:42 2022
Results reported at Sat Jul  2 03:02:42 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_daily_bin1693 267.158 70.0969 678153601 678412801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1748.6+7005 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   1326.26 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             348.17 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   1396 sec.
    Turnaround time :                            10541 sec.

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

