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


Performing analysis on: 4FGL_J1648.2+4232_weekly_bin715
RA = 252.072, Dec = 42.5498
tmin = 671414401, tmax = 672019201
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='935200', job_status='RUN', time_executed='2022-04-19 02:33:30.729082', time_epoch_executed='1650360810.73' WHERE source_name='4FGL J1648.2+4232' and cadence='weekly' and bin_id='715'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/935200

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

Retrieving the FT1 file...

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

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

Retrieving 107 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/935200/ft1_4FGL_J1648.2+4232_weekly_bin715.fits


Retrieving the FT1 file...

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

Retrieving 107 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/935200/ft1_4FGL_J1648.2+4232_weekly_bin715.fits outfile=/scratch/kocevski/935200/ft1_filteredMKT_4FGL_J1648.2+4232_weekly_bin715.fits ra=252.072 dec=42.5498 rad=12.0 tmin=671414401.0 tmax=672019201.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 7.57
user 7.23
sys 0.28

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.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/935200/ft1_filteredMKT_4FGL_J1648.2+4232_weekly_bin715.fits evtable="EVENTS" outfile="/scratch/kocevski/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.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.56
user 0.39
sys 0.15

Number of photons that the gtmktime cut: 1850

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.fits" evtable="EVENTS" scfile=/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits sctable="SC_DATA" outfile=/scratch/kocevski/935200/ltcube_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.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/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits
.....................!
real 27.39
user 26.57
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.fits evtable="EVENTS" scfile=/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits sctable="SC_DATA" expcube=/scratch/kocevski/935200/ltcube_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.fits outfile=/scratch/kocevski/935200/expmap_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.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/935200/ltcube_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.fits
.....................!
real 193.22
user 186.25
sys 5.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 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/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.fits scfile=/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits outfile=/scratch/kocevski/935200/cmap_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.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.58
user 0.42
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.fits scfile=/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits outfile=/scratch/kocevski/935200/cmap_HighResolution_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.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.59
user 0.42
sys 0.17

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.fits', '/scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits', expMap='/scratch/kocevski/935200/expmap_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.fits', expCube='/scratch/kocevski/935200/ltcube_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/935200/Model_4FGL_J1648.2+4232_weekly_bin715.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/935200/ft1_filtered_4FGL_J1648.2+4232_weekly_bin715.fits
Spacecraft file(s): /scratch/kocevski/935200/ft2_4FGL_J1648.2+4232_weekly_bin715.fits
Exposure map: /scratch/kocevski/935200/expmap_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.fits
Exposure cube: /scratch/kocevski/935200/ltcube_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/935200/Model_4FGL_J1648.2+4232_weekly_bin715.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) = 19620.4518186

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.6131       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.5455       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10216E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    35.732       1.0000         .10000E-03   10000.    
     8 'norm      '    .21633       1.0000         .10000E-03   10000.    
     9 'norm      '    .75176       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .64232E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    24.371       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .94822E-01   1.0000         .10000E-03   10000.    
    14 'Prefactor '    10.304       1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.5138       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.8570       1.0000         .10000E-03   10000.    
    18 'norm      '    4.3909       1.0000         .10000E-03   10000.    
    19 'norm      '    .48500       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.4045       1.0000         .10000E-03   10000.    
    21 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.957       1.0000         .10000E-03   10000.    
    23 'norm      '    4.6869       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    .70609       1.0000         .10000E-03   10000.    
    27 'Prefactor '    37.864       1.0000         .10000E-03   10000.    
    28 'norm      '    3.7688       1.0000         .10000E-03   10000.    
    29 'Prefactor '    18.620       1.0000         .10000E-03   10000.    
    30 'Prefactor '    14.721       1.0000         .10000E-03   10000.    
    31 'Prefactor '    6.4673       1.0000         .10000E-03   10000.    
    32 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
    33 'Prefactor '    .88007       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=   19620.42     FROM MIGRAD    STATUS=CONVERGED    911 CALLS     4076 TOTAL
                     EDM=   .51E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    17.585       -.13356E-05** at limit **
   2  Prefactor     1.6132        2.0329        .24131E-06    .10453E-03
   3  Prefactor     4.5450        3.0051        .77445E-06    .76444E-03
   4  Prefactor     .10000E-03    8.6150       -.66911E-07** at limit **
   5  Prefactor     .10000E-03    1.4323       -.29652E-06** at limit **
   6  Prefactor     .10000E-03    .66803        .75118E-07** at limit **
   7  norm          35.735        12.854       -.77751E-07    .76246E-04
   8  norm          .21634        .77552E-01    .90259E-09    .58629E-03
   9  norm          .75492        3.1489        .30697E-06   -.14274E-03
  10  Prefactor     .10000E-03    12.415        .10463E-05** at limit **
  11  Prefactor     .10197E-03    .93999       -.66304E-06** at limit **
  12  norm          24.371        21.576       -.19425E-07    .36002E-04
  13  Prefactor     .92821E-01    .39324       -.95554E-07    .32560E-03
  14  Prefactor     10.306        1.4490        .47214E-07    .19033E-02
  15  Prefactor     3.5138        2.0874        .77244E-07    .62680E-03
  16  Prefactor     .10000E-03    .45107       -.14236E-07** at limit **
  17  Prefactor     5.8572        5.0202        .66808E-06    .26825E-03
  18  norm          4.3908        1.1346        .52120E-08    .20821E-03
  19  norm          .48519        .47093       -.19235E-07    .23981E-03
  20  Prefactor     2.4044        3.5462        .33880E-06    .20410E-03
  21  norm          .10000E-03    .13645       -.39392E-08** at limit **
  22  norm          11.955        5.1617        .27002E-07    .12481E-03
  23  norm          4.6869        1.2362        .88725E-08    .16580E-03
  24  Prefactor     .10000E-03    .44384       -.16812E-08** at limit **
  25  Prefactor     .10000E-03    8.9261       -.21746E-06** at limit **
  26  norm          .70909        2.1465       -.11158E-06   -.17573E-03
  27  Prefactor     37.840        31.192        .35264E-05    .11575E-03
  28  norm          3.7688        2.7561        .14089E-07    .14692E-04
  29  Prefactor     18.620        18.049        .76097E-07    .46431E-05
  30  Prefactor     14.721        18.972        .73381E-07    .38534E-05
  31  Prefactor     6.4673        4.7624       -.62047E-08    .74521E-05
  32  Normalizat    1.1036        .12243       -.49916E-06    .47789E-03
  33  Prefactor     .88007        .95515E-01   -.19204E-07    .36205E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.61325
  Prefactor  = 4.54499
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  norm       = 35.7346
  norm       = 0.216342
  norm       = 0.754919
  Prefactor  = 0.0001
  Prefactor  = 0.000101974
  norm       = 24.3713
  Prefactor  = 0.0928211
  Prefactor  = 10.3057
  Prefactor  = 3.5138
  Prefactor  = 0.0001
  Prefactor  = 5.85719
  norm       = 4.39079
  norm       = 0.485195
  Prefactor  = 2.40436
  norm       = 0.0001
  norm       = 11.9551
  norm       = 4.68685
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.709085
  Prefactor  = 37.8401
  norm       = 3.76881
  Prefactor  = 18.6195
  Prefactor  = 14.7206
  Prefactor  = 6.46732
  Normalizat = 1.10356
  Prefactor  = 0.880066
 **********
 **   18 **HESSE 
 **********

 FCN=   19620.42     FROM HESSE     STATUS=OK           723 CALLS     4799 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.6132        2.0204        .21429E-03   -1.5454    
   3  Prefactor     4.5450        3.0084        .94411E-03   -1.5282    
   4  Prefactor     .10000E-03    8.6926        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.1174        .31689E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.7079        .21408E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          35.735        12.770        .67042E-04   -1.4512    
   8  norm          .21634        .76331E-01    .21705E-04   -1.5615    
   9  norm          .75492        12.886        .47824E-02   -1.5534    
  10  Prefactor     .10000E-03    12.684        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10197E-03    1.7279        .39283E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          24.371        21.562        .81143E-04   -1.4720    
  13  Prefactor     .92821E-01    2.5518        .12405E-02   -1.5647    
  14  Prefactor     10.306        1.5052        .45336E-04   -1.5066    
  15  Prefactor     3.5138        2.0529        .14247E-03   -1.5333    
  16  Prefactor     .10000E-03    .45767        .91791E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     5.8572        5.0159        .82970E-03   -1.5224    
  18  norm          4.3908        1.1352        .73208E-04   -1.5289    
  19  norm          .48519        .39057        .86348E-03   -1.5569    
  20  Prefactor     2.4044        3.4782        .26404E-03   -1.5398    
  21  norm          .10000E-03    .62198        .99597E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.955        5.1439        .11585E-03   -1.5016    
  23  norm          4.6869        1.2325        .75154E-04   -1.5275    
  24  Prefactor     .10000E-03    .44705        .91115E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10000E-03    8.9426        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          .70909        2.1385        .33385E-03   -1.5540    
  27  Prefactor     37.840        31.068        .65134E-04   -1.4477    
  28  norm          3.7688        2.7543        .19230E-03   -1.5320    
  29  Prefactor     18.620        18.036        .92818E-04   -1.4845    
  30  Prefactor     14.721        18.952        .10439E-03   -1.4940    
  31  Prefactor     6.4673        4.7626        .15782E-03   -1.5199    
  32  Normalizat    1.1036        .14341        .27604E-03   -.89638    
  33  Prefactor     .88007        .11397        .25309E-03   -.96841    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07289e-07
Minuit parameter uncertainties:
  1  1.98199e-05
  2  2.0205
  3  3.00852
  4  1.52107e-06
  5  0.000253548
  6  3.54262e-06
  7  12.7706
  8  0.0763315
  9  6.23913
  10  9.79333e-06
  11  0.00369362
  12  21.5688
  13  0.972886
  14  1.50521
  15  2.05292
  16  6.95601e-08
  17  5.01626
  18  1.13516
  19  0.390568
  20  3.47852
  21  2.75382e-07
  22  5.14405
  23  1.23248
  24  1.13595e-07
  25  6.54088e-06
  26  2.13874
  27  31.0813
  28  2.75439
  29  18.0417
  30  18.9598
  31  4.76286
  32  0.143457
  33  0.113996
Done.

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

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  6.956e-08  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:  8.801e-01  1.140e-01  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:  1.104e+00  1.435e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/935200/likelihoodResults_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.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) = 19620.4174879
delta logL = -0.0012439236998

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 19620.4162434
delta logL = 5.7379656937e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.4147       1.0000          .0000       10.000    
     3 'Normalizat'    1.1036       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88007       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.

 FCN=   19620.42     FROM MIGRAD    STATUS=CONVERGED     65 CALLS      226 TOTAL
                     EDM=   .75E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.4654        .90712E-02** at limit **
   2  Index         2.0451        8.4055        .50000       -.43729E-06
   3  Normalizat    1.1036        .62688E-02    .62409E-01    .46963E-04
   4  Prefactor     .88007        .52205E-02    .44750E-01    .53371E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.04512
  Normalizat = 1.10356
  Prefactor  = 0.880066
 **********
 **   18 **HESSE 
 **********

 FCN=   19620.42     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      259 TOTAL
                     EDM=   .89E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    32.053        .96856E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0451        8.8216        .50000       -.63227    
   3  Normalizat    1.1036        .24125E-01    .27604E-03   -.89638    
   4  Prefactor     .88007        .20101E-01    .25309E-03   -.96841    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.94665e-12
Minuit parameter uncertainties:
  1  3.28051e-05
  2  322.003
  3  0.024125
  4  0.0201016
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/935200': 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) = 19620.4162335
delta logL = 1.04918035504e-05

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  3.281e-05  1.000e-04  1.000e+04 ( 1.000e-12)
356        Index:  2.045e+00  3.220e+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:  8.801e-01  2.010e-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:  1.104e+00  2.412e-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.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/935200/cmap_HighResolution_671414401_672019201_4FGL_J1648.2+4232_weekly_bin715.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.13e-03', job_status='DONE', photon_flux_upper_limit='2.76e-08', time_completed='2022-04-19 03:17:47.642731', job_id='935200', GAL2='0.88', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1650363467.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.88', dlogl='1.05e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='715' AND source_name='4FGL J1648.2+4232' AND cadence='weekly';

Database successfully updated.


Analysis Complete.


Tue Apr 19 03:17:47 PDT 2022



------------------------------------------------------------
Sender: LSF System <lsf@bullet0080>
Subject: Job 931408: <4FGL_J1648.2+4232_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1648.2+4232_weekly_bin715> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Tue Apr 19 00:07:23 2022
Job was executed on host(s) <bullet0080>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:18:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:18:25 2022
Terminated at Tue Apr 19 03:06:24 2022
Results reported at Tue Apr 19 03:06:24 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.2+4232_weekly_bin715 252.072 42.5498 671414401 672019201 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 :                                   2659.00 sec.
    Max Memory :                                 1096 MB
    Average Memory :                             330.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2878 sec.
    Turnaround time :                            10741 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0013>
Subject: Job 935200: <4FGL_J1648.2+4232_weekly_bin715> in cluster <slac> Done

Job <4FGL_J1648.2+4232_weekly_bin715> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Tue Apr 19 00:18:45 2022
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Apr 19 02:32:36 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Apr 19 02:32:36 2022
Terminated at Tue Apr 19 03:17:48 2022
Results reported at Tue Apr 19 03:17:48 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.2+4232_weekly_bin715 252.072 42.5498 671414401 672019201 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 :                                   2649.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             342.62 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   2712 sec.
    Turnaround time :                            10743 sec.

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

