/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 208 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 = 7365
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J1648.0+2221_daily_bin927
RA = 252.023, Dec = 22.3523
tmin = 479606401, tmax = 479865601
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='989802', job_status='RUN', time_executed='2021-09-15 15:55:10.251354', time_epoch_executed='1631746510.25' WHERE source_name='4FGL J1648.0+2221' and cadence='daily' and bin_id='927'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989802

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989802/ft1_4FGL_J1648.0+2221_daily_bin927.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989802/ft1_4FGL_J1648.0+2221_daily_bin927.fits outfile=/scratch/kocevski/989802/ft1_filteredMKT_4FGL_J1648.0+2221_daily_bin927.fits ra=252.023 dec=22.3523 rad=12.0 tmin=479606401.0 tmax=479865601.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.46
user 3.20
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.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/989802/ft1_filteredMKT_4FGL_J1648.0+2221_daily_bin927.fits evtable="EVENTS" outfile="/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits" evtable="EVENTS" scfile=/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits sctable="SC_DATA" outfile=/scratch/kocevski/989802/ltcube_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.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/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits
.....................!
real 13.71
user 13.32
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits sctable="SC_DATA" expcube=/scratch/kocevski/989802/ltcube_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.fits outfile=/scratch/kocevski/989802/expmap_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.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/989802/ltcube_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.fits
.....................!
real 190.89
user 184.80
sys 5.64

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

Setting source of interest to:
4FGL J1648.0+2221 @ 252.023 22.3523

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits scfile=/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits outfile=/scratch/kocevski/989802/cmap_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.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.023 yref=22.3523 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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits scfile=/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits outfile=/scratch/kocevski/989802/cmap_HighResolution_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.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.023 yref=22.3523 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.55
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits evtable="EVENTS" scfile=/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/989802/Model_4FGL_J1648.0+2221_daily_bin927.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/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits....................!
real 70.76
user 69.32
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits', '/scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits', expMap='/scratch/kocevski/989802/expmap_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.fits', expCube='/scratch/kocevski/989802/ltcube_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/989802/Model_4FGL_J1648.0+2221_daily_bin927.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1648.0+2221'

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  1.436e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.645e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  6.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/989802/ft1_filtered_4FGL_J1648.0+2221_daily_bin927.fits
Spacecraft file(s): /scratch/kocevski/989802/ft2_4FGL_J1648.0+2221_daily_bin927.fits
Exposure map: /scratch/kocevski/989802/expmap_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.fits
Exposure cube: /scratch/kocevski/989802/ltcube_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/989802/Model_4FGL_J1648.0+2221_daily_bin927.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) = 8881.32632921

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.3529       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10047E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    6.0601       1.0000         .10000E-03   10000.    
     4 'Prefactor '    1.6859       1.0000         .10000E-03   10000.    
     5 'Prefactor '    26.054       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.364       1.0000         .10000E-03   10000.    
     9 'norm      '    3.7777       1.0000         .10000E-03   10000.    
    10 'norm      '    15.323       1.0000         .10000E-03   10000.    
    11 'Normalizat'    .77919       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0203       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6560E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8881.324     FROM MIGRAD    STATUS=CONVERGED    199 CALLS      983 TOTAL
                     EDM=   .70E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.3524        7.4157       -.42167E-07   -.20528E-05
   2  Prefactor     .10000E-03    17.609       -.93761E-06** at limit **
   3  Prefactor     6.0632        13.644        .25576E-05    .21615E-05
   4  Prefactor     1.6779        2.8303        .22649E-06   -.18920E-02
   5  Prefactor     26.067        30.517        .15190E-04    .47336E-04
   6  Prefactor     .10000E-03    12.760       -.57611E-05** at limit **
   7  Prefactor     .10000E-03    13.430        .63610E-05** at limit **
   8  Prefactor     17.363        14.536       -.85412E-06   -.28470E-04
   9  norm          3.7775        3.5257        .73323E-06   -.12100E-02
  10  norm          15.313        44.427       -.20012E-04   -.15396E-04
  11  Normalizat    .77922        .19728       -.31236E-05    .17125E-04
  12  Prefactor     1.0203        .95227E-01   -.61755E-07   -.76262E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.35241
  Prefactor  = 0.0001
  Prefactor  = 6.06323
  Prefactor  = 1.67792
  Prefactor  = 26.0673
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.3632
  norm       = 3.7775
  norm       = 15.3133
  Normalizat = 0.779222
  Prefactor  = 1.02025
 **********
 **   18 **HESSE 
 **********

 FCN=   8881.324     FROM HESSE     STATUS=OK           133 CALLS     1116 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.3524        7.4151        .15925E-03   -1.5204    
   2  Prefactor     .10000E-03    18.139        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     6.0632        13.786        .16310E-03   -1.5215    
   4  Prefactor     1.6779        6.2777        .16216E-02   -1.5449    
   5  Prefactor     26.067        31.984        .78481E-04   -1.4686    
   6  Prefactor     .10000E-03    12.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.434        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.363        14.553        .96117E-04   -1.4874    
   9  norm          3.7775        3.6724        .83979E-03   -1.5319    
  10  norm          15.313        44.477        .10232E-03   -1.4925    
  11  Normalizat    .77922        .23421        .36670E-03   -1.0084    
  12  Prefactor     1.0203        .11414        .15880E-03   -.92057    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.89709e-09
Minuit parameter uncertainties:
  1  7.41619
  2  0.000100681
  3  13.7936
  4  6.28018
  5  32.0051
  6  2.29317e-05
  7  2.6535e-05
  8  14.5557
  9  3.67257
  10  44.5736
  11  0.234512
  12  0.114167
Done.

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

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  1.678e+00  6.280e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  2.645e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
307        Scale:  6.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  1.020e+00  1.142e-01  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  7.792e-01  2.345e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.09
Ra Dec: 252.023 22.352
Photon Flux Upper Limit: 1.13e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.89e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/989802/likelihoodResults_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.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) = 8881.31358088
delta logL = 0.0107560188244

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8881.21938515
delta logL = 0.104951750674

Fit tolerance = 1e-08

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

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

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

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

 FCN=   8881.219     FROM MIGRAD    STATUS=FAILED       140 CALLS      429 TOTAL
                     EDM=   .13E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15661E-03    .84522E-01    .22020E-04** at limit **
   2  Index         8.8781        5.2106        .28384E-01    .48691E-03
   3  Normalizat    .75742        .21495        .37158E-03    .35185E-04
   4  Prefactor     1.0298        .10250        .15814E-03    .13231E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8881.219     FROM SIMPLEX   STATUS=UNCHANGED     92 CALLS      521 TOTAL
                     EDM=   .11E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15661E-03    .84522E-01    .13822E-04** at limit **
   2  Index         8.8781        5.2106        .11575E-01    .48691E-03
   3  Normalizat    .75742        .21495        .11418E-03    .35185E-04
   4  Prefactor     1.0298        .10250        .43193E-04    .13231E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8881.219     FROM MIGRAD    STATUS=CONVERGED     30 CALLS      551 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .15663E-03    .85631E-01    .44041E-05** at limit **
   2  Index         8.8781        5.2185        .56768E-02    .19549E-04
   3  Normalizat    .75742        .22592        .14863E-04    .38856E-04
   4  Prefactor     1.0298        .10968        .31627E-04    .61539E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000156632
  Index      = 8.87807
  Normalizat = 0.757417
  Prefactor  = 1.02976
 **********
 **   18 **HESSE 
 **********

 FCN=   8881.219     FROM HESSE     STATUS=OK            27 CALLS      578 TOTAL
                     EDM=   .44E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .15663E-03    .14735        .88082E-06   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         8.8781        5.6792        .11354E-02    .88769    
   3  Normalizat    .75742        .23257        .29727E-05   -1.0167    
   4  Prefactor     1.0298        .11236        .63255E-05   -.91744    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.37534e-10
Minuit parameter uncertainties:
  1  0.00577739
  2  20.9647
  3  0.232875
  4  0.112389
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989802': 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) = 8881.2193825
delta logL = 0.104954398821

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  1.566e-04  5.777e-03  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  8.878e+00  2.096e+01  0.000e+00  1.000e+01 (-1.000e+00)
307        Scale:  6.242e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
653    Prefactor:  1.030e+00  1.124e-01  0.000e+00  1.000e+01 ( 1.000e+00)
654        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
655        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
652   Normalization:  7.574e-01  2.329e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.09
Ra Dec: 252.023 22.352

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/989802/cmap_HighResolution_479606401_479865601_4FGL_J1648.0+2221_daily_bin927.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.89e-03', job_status='DONE', photon_flux_upper_limit='1.13e-07', time_completed='2021-09-15 16:05:30.730303', job_id='989802', GAL2='1.03', fit_tolerance='1e-08', EG2='0.76', EG='0.78', time_epoch_completed='1631747130.73', return_code2='0', ts='0.09', comment='SUCCESS', return_code='0', GAL='1.02', dlogl='1.05e-01', ts2='0.31', photon_index_error='0.00', photon_index='2.64' WHERE bin_id='927' AND source_name='4FGL J1648.0+2221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 16:05:30 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 989802: <4FGL_J1648.0+2221_daily_bin927> in cluster <slac> Done

Job <4FGL_J1648.0+2221_daily_bin927> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 15 15:50:18 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 15:51:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 15:51:32 2021
Terminated at Wed Sep 15 16:05:31 2021
Results reported at Wed Sep 15 16:05:31 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.0+2221_daily_bin927 252.023 22.3523 479606401 479865601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1648.0+2221 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   616.52 sec.
    Max Memory :                                 1164 MB
    Average Memory :                             314.15 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   839 sec.
    Turnaround time :                            913 sec.

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

