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


Performing analysis on: 4FGL_J1648.2+4232_monthly_bin170
RA = 252.072, Dec = 42.5498
tmin = 677635201, tmax = 680227201
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='110302', job_status='RUN', time_executed='2022-07-23 02:16:43.049754', time_epoch_executed='1658567803.05' WHERE source_name='4FGL J1648.2+4232' and cadence='monthly' and bin_id='170'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/110302

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

Retrieving the FT1 file...

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

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

Retrieving 455 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/110302/ft1_4FGL_J1648.2+4232_monthly_bin170.fits


Retrieving the FT1 file...

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

Retrieving 455 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/110302/ft1_4FGL_J1648.2+4232_monthly_bin170.fits outfile=/scratch/kocevski/110302/ft1_filteredMKT_4FGL_J1648.2+4232_monthly_bin170.fits ra=252.072 dec=42.5498 rad=12.0 tmin=677635201.0 tmax=680227201.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 32.24
user 31.69
sys 0.48

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.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/110302/ft1_filteredMKT_4FGL_J1648.2+4232_monthly_bin170.fits evtable="EVENTS" outfile="/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.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.87
user 0.67
sys 0.19

Number of photons that the gtmktime cut: 7564

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits" evtable="EVENTS" scfile=/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits sctable="SC_DATA" outfile=/scratch/kocevski/110302/ltcube_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.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/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits
.....................!
real 110.97
user 110.40
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits sctable="SC_DATA" expcube=/scratch/kocevski/110302/ltcube_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.fits outfile=/scratch/kocevski/110302/expmap_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.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/110302/ltcube_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.fits
.....................!
real 192.34
user 187.59
sys 4.39

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

Setting source of interest to:
4FGL J1648.2+4232 @ 252.072 42.5498

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits scfile=/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits outfile=/scratch/kocevski/110302/cmap_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.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=252.072 yref=42.5498 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.78
user 0.62
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits scfile=/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits outfile=/scratch/kocevski/110302/cmap_HighResolution_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.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=252.072 yref=42.5498 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.78
user 0.62
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits evtable="EVENTS" scfile=/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/110302/Model_4FGL_J1648.2+4232_monthly_bin170.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/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits.....................!
real 498.04
user 496.05
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits', '/scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits', expMap='/scratch/kocevski/110302/expmap_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.fits', expCube='/scratch/kocevski/110302/ltcube_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/110302/Model_4FGL_J1648.2+4232_monthly_bin170.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1648.2+4232'

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.067e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
356        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  8.460e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/110302/ft1_filtered_4FGL_J1648.2+4232_monthly_bin170.fits
Spacecraft file(s): /scratch/kocevski/110302/ft2_4FGL_J1648.2+4232_monthly_bin170.fits
Exposure map: /scratch/kocevski/110302/expmap_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.fits
Exposure cube: /scratch/kocevski/110302/ltcube_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/110302/Model_4FGL_J1648.2+4232_monthly_bin170.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) = 80567.7279605

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.9045       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .42771       1.0000         .10000E-03   10000.    
     3 'Prefactor '    1.0014       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.5401       1.0000         .10000E-03   10000.    
     6 'Prefactor '    1.5712       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .22610       1.0000         .10000E-03   10000.    
     9 'norm      '    2.1356       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .11363E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    1.3318       1.0000         .10000E-03   10000.    
    12 'norm      '    .10164E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    3.0384       1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.2395       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .56106       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.9669       1.0000         .10000E-03   10000.    
    18 'norm      '    4.1748       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    .22244       1.0000         .10000E-03   10000.    
    22 'norm      '    6.1192       1.0000         .10000E-03   10000.    
    23 'norm      '    2.2161       1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.3536       1.0000         .10000E-03   10000.    
    25 'Prefactor '    7.2456       1.0000         .10000E-03   10000.    
    26 'norm      '    11.915       1.0000         .10000E-03   10000.    
    27 'Prefactor '    6.8428       1.0000         .10000E-03   10000.    
    28 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    10.593       1.0000         .10000E-03   10000.    
    30 'Prefactor '    10.819       1.0000         .10000E-03   10000.    
    31 'Prefactor '    4.3872       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .95316       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .98395       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   80567.07     FROM MIGRAD    STATUS=CONVERGED    902 CALLS     4020 TOTAL
                     EDM=   .26E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.9042        9.2901        .20648E-06    .80941E-06
   2  Prefactor     .42767        .59896       -.35819E-07   -.14378E-02
   3  Prefactor     1.0015        1.0653       -.16546E-07   -.13264E-03
   4  Prefactor     .10000E-03    2.2455       -.81062E-07** at limit **
   5  Prefactor     3.5400        1.6257       -.29831E-07   -.30552E-03
   6  Prefactor     1.5713        .77950       -.17937E-07   -.48289E-03
   7  norm          .10000E-03    1.8830       -.39202E-07** at limit **
   8  norm          .22608        .42131E-01   -.18257E-08   -.84824E-03
   9  norm          2.1355        1.8631        .10837E-06   -.11050E-04
  10  Prefactor     .10000E-03    1.1202        .89943E-08** at limit **
  11  Prefactor     1.3318        .85458        .11477E-07   -.35636E-03
  12  norm          .10000E-03    2.0658        .45719E-07** at limit **
  13  Prefactor     3.0383        .61095       -.50173E-09   -.27148E-03
  14  Prefactor     2.2395        .57962        .24140E-08   -.35181E-03
  15  Prefactor     .56121        .70443       -.70482E-07   -.13115E-02
  16  Prefactor     .10000E-03    .11537       -.71206E-08** at limit **
  17  Prefactor     5.9669        2.2838        .12222E-06   -.14043E-02
  18  norm          4.1748        .53814       -.94612E-09    .50394E-04
  19  norm          .10000E-03    .38781E-01    .68720E-08** at limit **
  20  Prefactor     .10000E-03    .35489        .21169E-07** at limit **
  21  norm          .22251        .15813       -.16811E-07   -.13842E-02
  22  norm          6.1192        2.1095       -.24374E-06   -.89649E-04
  23  norm          2.2161        .45958        .19875E-07   -.79512E-04
  24  Prefactor     1.3537        .66279        .12362E-07   -.15690E-03
  25  Prefactor     7.2458        6.1979        .24483E-07   -.16358E-03
  26  norm          11.915        1.7751        .45635E-07   -.12214E-02
  27  Prefactor     6.8429        12.536       -.19399E-06   -.89043E-06
  28  norm          .10000E-03    .36605       -.22973E-08** at limit **
  29  Prefactor     10.587        12.035       -.37931E-05   -.43024E-04
  30  Prefactor     10.823        10.327        .24550E-05    .47545E-04
  31  Prefactor     4.3873        1.9387       -.15488E-06   -.72500E-04
  32  Normalizat    .95317        .56129E-01    .53808E-07    .44466E-04
  33  Prefactor     .98393        .45639E-01   -.35993E-08    .53688E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.9042
  Prefactor  = 0.427675
  Prefactor  = 1.00149
  Prefactor  = 0.0001
  Prefactor  = 3.53998
  Prefactor  = 1.57129
  norm       = 0.0001
  norm       = 0.226084
  norm       = 2.13553
  Prefactor  = 0.0001
  Prefactor  = 1.33182
  norm       = 0.000100001
  Prefactor  = 3.03831
  Prefactor  = 2.23952
  Prefactor  = 0.561213
  Prefactor  = 0.0001
  Prefactor  = 5.96693
  norm       = 4.17483
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.222507
  norm       = 6.11918
  norm       = 2.21609
  Prefactor  = 1.3537
  Prefactor  = 7.24579
  norm       = 11.9155
  Prefactor  = 6.84289
  norm       = 0.0001
  Prefactor  = 10.5873
  Prefactor  = 10.8229
  Prefactor  = 4.38726
  Normalizat = 0.953172
  Prefactor  = 0.983935
 **********
 **   18 **HESSE 
 **********

 FCN=   80567.07     FROM HESSE     STATUS=OK           735 CALLS     4755 TOTAL
                     EDM=   .68E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.9042        9.2640        .15268E-03   -1.5182    
   2  Prefactor     .42767        .79378        .32475E-03   -1.5577    
   3  Prefactor     1.0015        .87922        .28481E-02   -1.5508    
   4  Prefactor     .10000E-03    2.2634        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.5400        1.6313        .21483E-03   -1.5332    
   6  Prefactor     1.5713        .77858        .16780E-03   -1.5457    
   7  norm          .10000E-03    1.9212        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .22608        .39930E-01    .21948E-04   -1.5613    
   9  norm          2.1355        1.8590        .28209E-03   -1.5416    
  10  Prefactor     .10000E-03    6.1781        .55065E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     1.3318        .84002        .19864E-03   -1.5477    
  12  norm          .10000E-03    2.0950        .14881       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     3.0383        .63727        .61221E-04   -1.5359    
  14  Prefactor     2.2395        .60192        .69172E-04   -1.5409    
  15  Prefactor     .56121        .73209        .25971E-03   -1.5558    
  16  Prefactor     .10000E-03    .22138        .18464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.9669        2.6276        .82192E-03   -1.5219    
  18  norm          4.1748        .53744        .71634E-04   -1.5299    
  19  norm          .10000E-03    .79760E-01    .10546E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.1454        .31479E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          .22251        .14799        .89962E-03   -1.5614    
  22  norm          6.1192        2.1035        .16230E-03   -1.5213    
  23  norm          2.2161        .45564        .82697E-04   -1.5410    
  24  Prefactor     1.3537        .66127        .15734E-03   -1.5475    
  25  Prefactor     7.2458        6.2498        .74506E-03   -1.5170    
  26  norm          11.915        1.8284        .58026E-03   -1.5017    
  27  Prefactor     6.8429        12.500        .15338E-03   -1.5185    
  28  norm          .10000E-03    .37384        .16757E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     10.587        12.049        .12310E-03   -1.5057    
  30  Prefactor     10.823        10.331        .12181E-03   -1.5050    
  31  Prefactor     4.3873        1.9402        .19228E-03   -1.5289    
  32  Normalizat    .95317        .65894E-01    .27018E-03   -.94616    
  33  Prefactor     .98393        .54261E-01    .22780E-03   -.93267    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.82542e-08
Minuit parameter uncertainties:
  1  9.26588
  2  0.793795
  3  0.879228
  4  7.6882e-08
  5  1.63129
  6  0.778582
  7  8.27037e-08
  8  0.0399303
  9  1.85906
  10  4.23018e-06
  11  0.84003
  12  8.77994e-05
  13  0.637273
  14  0.601923
  15  0.7321
  16  2.62603e-07
  17  2.62761
  18  0.537443
  19  6.34366e-08
  20  2.36409e-07
  21  0.147988
  22  2.10356
  23  0.455642
  24  0.661274
  25  6.25039
  26  1.82844
  27  12.5046
  28  6.52137e-07
  29  12.0515
  30  10.3325
  31  1.94023
  32  0.0658993
  33  0.0542641
Done.

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

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  2.626e-07  1.000e-04  1.000e+04 ( 1.000e-12)
356        Index:  2.425e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
357        Scale:  8.460e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.839e-01  5.426e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  9.532e-01  6.590e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 252.072 42.550
Photon Flux Upper Limit: 1.07e-08 ph cm-2 s-1
Energy Flux Upper Limit: 8.26e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/110302/likelihoodResults_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 80567.0956953
delta logL = -0.0215396785497

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 80567.0741587
delta logL = -3.13590862788e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4223       1.0000          .0000       10.000    
     3 'Normalizat'    .95325       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98393       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   80567.07     FROM MIGRAD    STATUS=FAILED        97 CALLS      262 TOTAL
                     EDM=   .25E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    3.0890        .18493E-02** at limit **
   2  Index         2.4040        5.0058        .50000        .71632E-04
   3  Normalizat    .95317        .48137E-02    .27018E-03   -.54532E-03
   4  Prefactor     .98393        .41386E-02    .22780E-03   -.41043E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   80567.07     FROM SIMPLEX   STATUS=UNCHANGED    133 CALLS      395 TOTAL
                     EDM=   .78E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10005E-03    3.0890        .72420E-04** at limit **
   2  Index         2.4040        5.0058        .13468E-02    .71632E-04
   3  Normalizat    .95317        .48137E-02    .37396E-05   -.54532E-03
   4  Prefactor     .98393        .41386E-02    .34991E-05   -.41043E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   80567.07     FROM MIGRAD    STATUS=CONVERGED     42 CALLS      437 TOTAL
                     EDM=   .69E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.633        .36986E-03** at limit **
   2  Index         2.3708        5.6729        .50000        .16433E-05
   3  Normalizat    .95317        .12060E-01    .10807E-04    .36389E-02
   4  Prefactor     .98394        .10364E-01    .91119E-05    .44477E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.37082
  Normalizat = 0.953172
  Prefactor  = 0.983935
 **********
 **   18 **HESSE 
 **********

 FCN=   80567.07     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      466 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    52.190        .73972E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3708        7.7582        .50000       -.55370    
   3  Normalizat    .95317        .43169E-01    .21615E-05   -.94616    
   4  Prefactor     .98394        .36775E-01    .18224E-05   -.93267    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.07536e-08
Minuit parameter uncertainties:
  1  6.85527e-06
  2  334.288
  3  0.0431709
  4  0.0367758
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/110302': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 80567.0741549
delta logL = 7.34318746254e-07

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  6.855e-06  1.000e-04  1.000e+04 ( 1.000e-12)
356        Index:  2.371e+00  3.343e+02  0.000e+00  1.000e+01 (-1.000e+00)
357        Scale:  8.460e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
687    Prefactor:  9.839e-01  3.678e-02  0.000e+00  1.000e+01 ( 1.000e+00)
688        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
689        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
686   Normalization:  9.532e-01  4.317e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 252.072 42.550

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.003e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.113e+00 [aplpy.core]
Saving /scratch/kocevski/110302/cmap_HighResolution_677635201_680227201_4FGL_J1648.2+4232_monthly_bin170.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.26e-04', job_status='DONE', photon_flux_upper_limit='1.07e-08', time_completed='2022-07-23 05:07:16.501072', job_id='110302', GAL2='0.98', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1658578036.5', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.34e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='170' AND source_name='4FGL J1648.2+4232' AND cadence='monthly';

Database successfully updated.


Analysis Complete.


Sat Jul 23 05:07:16 PDT 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 110302: <4FGL_J1648.2+4232_monthly_bin170> in cluster <slac> Done

Job <4FGL_J1648.2+4232_monthly_bin170> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Sat Jul 23 02:15:26 2022
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Jul 23 02:15:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Jul 23 02:15:27 2022
Terminated at Sat Jul 23 05:07:17 2022
Results reported at Sat Jul 23 05:07:17 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.2+4232_monthly_bin170 252.072 42.5498 677635201 680227201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1648.2+4232 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10148.00 sec.
    Max Memory :                                 630 MB
    Average Memory :                             425.08 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10310 sec.
    Turnaround time :                            10311 sec.

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

