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


Performing analysis on: 4FGL_J1748.6+7005_monthly_bin169
RA = 267.158, Dec = 70.0969
tmin = 675043201, tmax = 677635201
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='182828', job_status='RUN', time_executed='2022-06-23 02:42:18.488622', time_epoch_executed='1655977338.49' WHERE source_name='4FGL J1748.6+7005' and cadence='monthly' and bin_id='169'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/182828

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

Retrieving the FT1 file...

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

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

Retrieving 456 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/182828/ft1_4FGL_J1748.6+7005_monthly_bin169.fits


Retrieving the FT1 file...

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

Retrieving 456 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/182828/ft1_4FGL_J1748.6+7005_monthly_bin169.fits outfile=/scratch/kocevski/182828/ft1_filteredMKT_4FGL_J1748.6+7005_monthly_bin169.fits ra=267.158 dec=70.0969 rad=12.0 tmin=675043201.0 tmax=677635201.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 27.95
user 27.16
sys 0.68

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.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/182828/ft1_filteredMKT_4FGL_J1748.6+7005_monthly_bin169.fits evtable="EVENTS" outfile="/scratch/kocevski/182828/ft1_filtered_4FGL_J1748.6+7005_monthly_bin169.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.86
user 0.66
sys 0.18

Number of photons that the gtmktime cut: 15606

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

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/182828/ft1_filtered_4FGL_J1748.6+7005_monthly_bin169.fits evtable="EVENTS" scfile=/scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.fits sctable="SC_DATA" expcube=/scratch/kocevski/182828/ltcube_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.fits outfile=/scratch/kocevski/182828/expmap_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.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/182828/ltcube_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.fits
.....................!
real 192.64
user 187.07
sys 4.86

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/182828/ft1_filtered_4FGL_J1748.6+7005_monthly_bin169.fits scfile=/scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.fits outfile=/scratch/kocevski/182828/cmap_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.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.81
user 0.62
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/182828/ft1_filtered_4FGL_J1748.6+7005_monthly_bin169.fits scfile=/scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.fits outfile=/scratch/kocevski/182828/cmap_HighResolution_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.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.83
user 0.64
sys 0.18

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/182828/ft1_filtered_4FGL_J1748.6+7005_monthly_bin169.fits', '/scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.fits', expMap='/scratch/kocevski/182828/expmap_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.fits', expCube='/scratch/kocevski/182828/ltcube_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/182828/Model_4FGL_J1748.6+7005_monthly_bin169.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/182828/ft1_filtered_4FGL_J1748.6+7005_monthly_bin169.fits
Spacecraft file(s): /scratch/kocevski/182828/ft2_4FGL_J1748.6+7005_monthly_bin169.fits
Exposure map: /scratch/kocevski/182828/expmap_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.fits
Exposure cube: /scratch/kocevski/182828/ltcube_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/182828/Model_4FGL_J1748.6+7005_monthly_bin169.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) = 160058.630723

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.4981       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10088E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .51287E-02   1.0000         .10000E-03   10000.    
     4 'norm      '    5.6279       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .67070       1.0000         .10000E-03   10000.    
     6 'norm      '    .78380E-01   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11300       1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.0751       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10220E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.1074       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.8623       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.3936       1.0000         .10000E-03   10000.    
    14 'norm      '    3.0384       1.0000         .10000E-03   10000.    
    15 'norm      '    7.5096       1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.8164       1.0000         .10000E-03   10000.    
    17 'norm      '    4.9239       1.0000         .10000E-03   10000.    
    18 'Prefactor '    5.1318       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10666E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.4756       1.0000         .10000E-03   10000.    
    21 'Prefactor '    11.713       1.0000         .10000E-03   10000.    
    22 'Prefactor '    2.1660       1.0000         .10000E-03   10000.    
    23 'Prefactor '    13.672       1.0000         .10000E-03   10000.    
    24 'Prefactor '    5.2571       1.0000         .10000E-03   10000.    
    25 'norm      '    1.5806       1.0000         .10000E-03   10000.    
    26 'Prefactor '    5.2130       1.0000         .10000E-03   10000.    
    27 'Prefactor '    1.6209       1.0000         .10000E-03   10000.    
    28 'norm      '    9.2791       1.0000         .10000E-03   10000.    
    29 'norm      '    2.9126       1.0000         .10000E-03   10000.    
    30 'norm      '    1.0600       1.0000         .10000E-03   10000.    
    31 'Normalizat'    .86304       1.0000         .10000E-01   10.000    
    32 'Prefactor '    1.1127       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   160058.6     FROM MIGRAD    STATUS=CONVERGED    853 CALLS     3843 TOTAL
                     EDM=   .36E-04    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.4987        1.9388         .0000        .17209E-02
   2  Prefactor     .10000E-03    4.9457         .0000    ** at limit **
   3  Prefactor     .10000E-03    1.0951         .0000    ** at limit **
   4  norm          5.6276        1.8685         .0000        .61278E-01
   5  Prefactor     .67114        1.2778         .0000        .64310E-02
   6  norm          .78411E-01    .10622         .0000        .95821E-01
   7  Prefactor     .10000E-03    .18694         .0000    ** at limit **
   8  Prefactor     .11332        .18847         .0000        .17119E-01
   9  Prefactor     1.0755        2.4474         .0000        .23498    
  10  Prefactor     .10000E-03    .22387         .0000    ** at limit **
  11  Prefactor     9.1096        5.8772         .0000        .78794E-02
  12  Prefactor     2.8631        1.7754         .0000        .42489E-02
  13  Prefactor     2.3892        9.5047         .0000       -.48438E-03
  14  norm          3.0384        .56561         .0000        .26567E-02
  15  norm          7.5096        .30263         .0000        .27867E-03
  16  Prefactor     1.8168        2.4522         .0000        .12734    
  17  norm          4.9239        1.0751         .0000        .24487E-03
  18  Prefactor     5.1319        3.2893         .0000        .68417E-03
  19  Prefactor     .10000E-03    7.1540         .0000    ** at limit **
  20  Prefactor     3.4753        1.4282         .0000        .21769    
  21  Prefactor     11.712        3.6197         .0000       -.21787E-02
  22  Prefactor     2.1665        3.6240         .0000        .33443E-02
  23  Prefactor     13.669        12.812         .0000        .82106E-03
  24  Prefactor     5.2672        13.586         .0000       -.20656E-02
  25  norm          1.5805        .56684         .0000        .93222E-02
  26  Prefactor     5.2128        3.5885         .0000        .27258E-01
  27  Prefactor     1.6211        1.1719         .0000        .60058    
  28  norm          9.2804        5.7871         .0000       -.67359E-04
  29  norm          2.9125        .92688         .0000        .56606E-02
  30  norm          1.0602        .65310         .0000        .15904E-01
  31  Normalizat    .86307        .46682E-01     .0000        .70447E-03
  32  Prefactor     1.1127        .27911E-01     .0000        .19944E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 2.49874
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 5.6276
  Prefactor  = 0.671139
  norm       = 0.0784105
  Prefactor  = 0.0001
  Prefactor  = 0.113322
  Prefactor  = 1.07551
  Prefactor  = 0.0001
  Prefactor  = 9.1096
  Prefactor  = 2.86312
  Prefactor  = 2.38925
  norm       = 3.03841
  norm       = 7.50955
  Prefactor  = 1.81676
  norm       = 4.92395
  Prefactor  = 5.13192
  Prefactor  = 0.0001
  Prefactor  = 3.47532
  Prefactor  = 11.7123
  Prefactor  = 2.16649
  Prefactor  = 13.6691
  Prefactor  = 5.26716
  norm       = 1.58051
  Prefactor  = 5.21282
  Prefactor  = 1.62109
  norm       = 9.28037
  norm       = 2.91247
  norm       = 1.06015
  Normalizat = 0.863067
  Prefactor  = 1.11269
 **********
 **   18 **HESSE 
 **********

 FCN=   160058.6     FROM HESSE     STATUS=OK           689 CALLS     4532 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.4987        1.9337        .25858E-03   -1.5392    
   2  Prefactor     .10000E-03    4.9489        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    1.1137        .14809       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.6276        1.8606        .84668E-03   -1.5233    
   5  Prefactor     .67114        3.7916        .59267E-02   -1.5544    
   6  norm          .78411E-01    .10035        .13309E-03   -1.5652    
   7  Prefactor     .10000E-03    .94081        .32171E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .11332        .44129        .19817E-02   -1.5641    
   9  Prefactor     1.0755        2.3567        .23332E-02   -1.5501    
  10  Prefactor     .10000E-03    .57959        .33789E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.1096        5.7971        .66403E-03   -1.5104    
  12  Prefactor     2.8631        1.7578        .24028E-03   -1.5370    
  13  Prefactor     2.3892        9.0089        .26470E-03   -1.5399    
  14  norm          3.0384        .56400        .12285E-03   -1.5359    
  15  norm          7.5096        .30234        .41358E-04   -1.5160    
  16  Prefactor     1.8168        2.4481        .15495E-02   -1.5438    
  17  norm          4.9239        1.0713        .18126E-04   -1.5264    
  18  Prefactor     5.1319        3.2845        .17747E-03   -1.5255    
  19  Prefactor     .10000E-03    7.1681        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.4753        1.4055        .10845E-02   -1.5335    
  21  Prefactor     11.712        3.6140        .11705E-03   -1.5023    
  22  Prefactor     2.1665        3.5236        .27984E-03   -1.5414    
  23  Prefactor     13.669        12.815        .10833E-03   -1.4968    
  24  Prefactor     5.2672        13.566        .17531E-03   -1.5249    
  25  norm          1.5805        .55407        .16386E-03   -1.5457    
  26  Prefactor     5.2128        3.5848        .88029E-03   -1.5251    
  27  Prefactor     1.6211        1.1603        .16621E-02   -1.5453    
  28  norm          9.2804        5.7914        .13157E-03   -1.5099    
  29  norm          2.9125        .92576        .21068E-03   -1.5367    
  30  norm          1.0602        .64638        .23906E-03   -1.5502    
  31  Normalizat    .86307        .50866E-01    .35094E-03   -.97770    
  32  Prefactor     1.1127        .31316E-01    .19992E-03   -.89062    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.09859e-06
Minuit parameter uncertainties:
  1  1.93373
  2  1.77118e-06
  3  9.401e-05
  4  1.86057
  5  3.19051
  6  0.10035
  7  7.70381e-07
  8  0.441301
  9  2.35694
  10  2.99725e-07
  11  5.79748
  12  1.75786
  13  9.01401
  14  0.564
  15  0.302343
  16  2.44823
  17  1.07134
  18  3.28466
  19  3.33452e-06
  20  1.40551
  21  3.61406
  22  3.52396
  23  12.8178
  24  13.5735
  25  0.554068
  26  3.58495
  27  1.16034
  28  5.79178
  29  0.925762
  30  0.646385
  31  0.0508689
  32  0.0313169
Done.

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

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  3.038e+00  5.640e-01  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:  1.113e+00  3.132e-02  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:  8.631e-01  5.087e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 83.10
Ra Dec: 267.158 70.097
Photon Index (Fixed Index): 1.95 +/- 0.00
Photon Flux (Fixed Index): 2.91e-08 +/- 5.41e-09
Energy Flux (Fixed Index): 2.06e-05 +/- 3.81e-06

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) = 160058.209065
delta logL = 0.36697812358

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 160058.203338
delta logL = 0.372705272079

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.9988       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.0964       1.0000          .0000       5.0000    
     3 'Normalizat'    .85674       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1144       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=   160058.2     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      217 TOTAL
                     EDM=   .55E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.9987        5.6989        .58601E-02    .35790E-02
   2  alpha         2.0964        1.0870        .41851        .42686E-03
   3  Normalizat    .85674        .20935E-01    .79530E-01    .56489E-03
   4  Prefactor     1.1144        .97617E-02    .37065E-01    .46618E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 2.99866
  alpha      = 2.09638
  Normalizat = 0.856744
  Prefactor  = 1.11436
 **********
 **   18 **HESSE 
 **********

 FCN=   160058.2     FROM HESSE     STATUS=OK            31 CALLS      248 TOTAL
                     EDM=   .21E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.9987        .54650        .11750E-03   -1.5362    
   2  alpha         2.0964        .16890        .16205E-01   -.16216    
   3  Normalizat    .85674        .47084E-01    .35207E-03   -.97997    
   4  Prefactor     1.1144        .29838E-01    .19978E-03   -.89009    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.10454e-11
Minuit parameter uncertainties:
  1  0.546501
  2  0.169034
  3  0.0470862
  4  0.0298382
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/182828': 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) = 160058.203338
delta logL = 0.372705295216

Extracting fit parameters...

4FGL J1748.6+7005
   Spectrum: LogParabola
353         norm:  2.999e+00  5.465e-01  1.000e-04  1.000e+04 ( 1.000e-12)
354        alpha:  2.096e+00  1.690e-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:  1.114e+00  2.984e-02  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:  8.567e-01  4.709e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 83.86
Ra Dec: 267.158 70.097
Photon Index (Free Index): 2.10 +/- 0.17
Photon Flux (Free Index): 3.50e-08 +/- 9.05e-09
Energy Flux (Free Index): 1.85e-05 +/- 3.92e-06

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  2.220e+00 [aplpy.core]
Saving /scratch/kocevski/182828/cmap_HighResolution_675043201_677635201_4FGL_J1748.6+7005_monthly_bin169.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.91e-08', energy_flux2='1.85e-05', photon_flux_error='5.41e-09', dlogl='3.73e-01', energy_flux='2.06e-05', photon_flux2='3.50e-08', job_status='DONE', time_completed='2022-06-23 06:24:56.903978', photon_index_error2='0.17', photon_index2='2.10', ts='83.10', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', energy_flux_error2='3.92e-06', EG='0.86', time_epoch_completed='1655990696.9', return_code='0', job_id='182828', GAL2='1.11', EG2='0.86', return_code2='0', energy_flux_error='3.81e-06', photon_flux_error2='9.05e-09', ts2='83.86', photon_index='1.95' WHERE bin_id='169' AND source_name='4FGL J1748.6+7005' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Thu Jun 23 06:24:56 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0094>
Subject: Job 182828: <4FGL_J1748.6+7005_monthly_bin169> in cluster <slac> Done

Job <4FGL_J1748.6+7005_monthly_bin169> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Thu Jun 23 02:40:26 2022
Job was executed on host(s) <bullet0094>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Jun 23 02:40:40 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Jun 23 02:40:40 2022
Terminated at Thu Jun 23 06:24:58 2022
Results reported at Thu Jun 23 06:24:58 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1748.6+7005_monthly_bin169 267.158 70.0969 675043201 677635201 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 :                                   13319.00 sec.
    Max Memory :                                 776 MB
    Average Memory :                             532.04 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   13457 sec.
    Turnaround time :                            13472 sec.

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

