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


Performing analysis on: 4FGL_J1648.0+2221_daily_bin941
RA = 252.023, Dec = 22.3523
tmin = 483235201, tmax = 483494401
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='989823', job_status='RUN', time_executed='2021-09-15 15:56:51.069142', time_epoch_executed='1631746611.07' WHERE source_name='4FGL J1648.0+2221' and cadence='daily' and bin_id='941'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/989823

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/989823/ft1_4FGL_J1648.0+2221_daily_bin941.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/989823/ft1_4FGL_J1648.0+2221_daily_bin941.fits outfile=/scratch/kocevski/989823/ft1_filteredMKT_4FGL_J1648.0+2221_daily_bin941.fits ra=252.023 dec=22.3523 rad=12.0 tmin=483235201.0 tmax=483494401.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.47
user 3.23
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.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/989823/ft1_filteredMKT_4FGL_J1648.0+2221_daily_bin941.fits evtable="EVENTS" outfile="/scratch/kocevski/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.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/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.fits" evtable="EVENTS" scfile=/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits sctable="SC_DATA" outfile=/scratch/kocevski/989823/ltcube_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.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/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits
.....................!
real 14.24
user 13.82
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.fits evtable="EVENTS" scfile=/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits sctable="SC_DATA" expcube=/scratch/kocevski/989823/ltcube_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.fits outfile=/scratch/kocevski/989823/expmap_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.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/989823/ltcube_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.fits
.....................!
real 194.04
user 186.63
sys 5.37

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/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.fits scfile=/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits outfile=/scratch/kocevski/989823/cmap_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.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.58
user 0.37
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.fits scfile=/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits outfile=/scratch/kocevski/989823/cmap_HighResolution_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.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.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.fits', '/scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits', expMap='/scratch/kocevski/989823/expmap_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.fits', expCube='/scratch/kocevski/989823/ltcube_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/989823/Model_4FGL_J1648.0+2221_daily_bin941.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/989823/ft1_filtered_4FGL_J1648.0+2221_daily_bin941.fits
Spacecraft file(s): /scratch/kocevski/989823/ft2_4FGL_J1648.0+2221_daily_bin941.fits
Exposure map: /scratch/kocevski/989823/expmap_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.fits
Exposure cube: /scratch/kocevski/989823/ltcube_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/989823/Model_4FGL_J1648.0+2221_daily_bin941.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) = 7190.66415585

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.1085       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10190E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.8704       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .29532E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .15817E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13076E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.0561       1.0000         .10000E-03   10000.    
    10 'norm      '    23.616       1.0000         .10000E-03   10000.    
    11 'Normalizat'    .76047       1.0000         .10000E-01   10.000    
    12 'Prefactor '    1.0468       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.

 FCN=   7190.634     FROM MIGRAD    STATUS=CONVERGED    234 CALLS      978 TOTAL
                     EDM=   .59E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.1089        6.6226        .71033E-02    .51016E-03
   2  Prefactor     .10000E-03    5.7906        .90712E-02** at limit **
   3  Prefactor     .10000E-03    4.1101        .90712E-02** at limit **
   4  Prefactor     4.8683        4.4335        .45567E-02    .15423E-03
   5  Prefactor     .10000E-03    14.772        .10698    ** at limit **
   6  Prefactor     .10000E-03    13.967        .90712E-02** at limit **
   7  Prefactor     .10000E-03    56.073        .90712E-02** at limit **
   8  Prefactor     .10000E-03    3.6023        .90712E-02** at limit **
   9  norm          3.0567        2.5354        .58016E-02    .25328E-03
  10  norm          23.404        53.738        .20607E-02   -.10736E-04
  11  Normalizat    .76109        .20253        .80650E-01    .82526E-04
  12  Prefactor     1.0465        .10181        .40099E-01    .54105E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.10888
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 4.86828
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.0567
  norm       = 23.404
  Normalizat = 0.761085
  Prefactor  = 1.04654
 **********
 **   18 **HESSE 
 **********

 FCN=   7190.634     FROM HESSE     STATUS=OK           129 CALLS     1107 TOTAL
                     EDM=   .15E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.1089        6.6092        .28413E-03   -1.5418    
   2  Prefactor     .10000E-03    5.8337        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    4.1208        .16788E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     4.8683        4.4111        .16329E-03   -1.5267    
   5  Prefactor     .10000E-03    65.920        .62722E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    13.974        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    56.191        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.6099        .15718E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.0567        2.5351        .11911E-03   -1.5358    
  10  norm          23.404        53.785        .82427E-04   -1.4740    
  11  Normalizat    .76109        .23708        .35708E-03   -1.0153    
  12  Prefactor     1.0465        .11993        .15434E-03   -.91194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.48721e-11
Minuit parameter uncertainties:
  1  6.61151
  2  1.47701e-05
  3  1.88234e-06
  4  4.41139
  5  9.05965e-05
  6  1.13572e-05
  7  0.000126077
  8  7.47525e-06
  9  2.53517
  10  53.8968
  11  0.2374
  12  0.119961
Done.

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

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  4.868e+00  4.411e+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.047e+00  1.200e-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.611e-01  2.374e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.89
Ra Dec: 252.023 22.352
Photon Index (Fixed Index): 2.64 +/- 0.00
Photon Flux (Fixed Index): 3.76e-08 +/- 3.40e-08
Energy Flux (Fixed Index): 9.47e-06 +/- 8.58e-06

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

Saving results to:
/scratch/kocevski/989823/likelihoodResults_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.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): 0
logL (Free Index) = 7189.93868404
delta logL = 0.694819739219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7189.91091634
delta logL = 0.722587437738

Fit tolerance = 1e-08

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

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

 FCN=   7189.911     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      208 TOTAL
                     EDM=   .43E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.0373        5.9235        .40853E-02   -.28201E-02
   2  Index         1.8336        .47701        .26444       -.53854E-04
   3  Normalizat    .78442        .20093        .79533E-01   -.27078E-04
   4  Prefactor     1.0393        .10078        .40582E-01   -.14573E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.03726
  Index      = 1.83363
  Normalizat = 0.784415
  Prefactor  = 1.03929
 **********
 **   18 **HESSE 
 **********

 FCN=   7189.911     FROM HESSE     STATUS=OK            29 CALLS      237 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.0373        5.6970        .16341E-03   -1.5217    
   2  Index         1.8336        .58500        .91418E-02   -.68578    
   3  Normalizat    .78442        .23610        .35210E-03   -1.0065    
   4  Prefactor     1.0393        .11879        .15478E-03   -.91431    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.35307e-09
Minuit parameter uncertainties:
  1  5.69746
  2  0.587251
  3  0.236413
  4  0.118818
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/989823': 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) = 7189.91091632
delta logL = 0.722587458054

Extracting fit parameters...

4FGL J1648.0+2221
   Spectrum: PowerLaw
305    Prefactor:  6.037e+00  5.697e+00  1.000e-04  1.000e+04 ( 1.000e-12)
306        Index:  1.834e+00  5.873e-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.039e+00  1.188e-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.844e-01  2.364e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.34
Ra Dec: 252.023 22.352
Photon Index (Free Index): 1.83 +/- 0.59
Photon Flux (Free Index): 2.07e-08 +/- 2.36e-08
Energy Flux (Free Index): 2.25e-05 +/- 2.99e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/989823/cmap_HighResolution_483235201_483494401_4FGL_J1648.0+2221_daily_bin941.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='9.53e-03', comment='SUCCESS', photon_flux='3.76e-08', energy_flux2='2.25e-05', photon_flux_error='3.40e-08', dlogl='7.23e-01', energy_flux='9.47e-06', photon_flux2='2.07e-08', job_status='DONE', time_completed='2021-09-15 16:05:58.624438', photon_index_error2='0.59', photon_index2='1.83', ts='2.89', fit_tolerance='1e-08', GAL='1.05', photon_index_error='0.00', photon_flux_upper_limit='1.21e-07', energy_flux_error2='2.99e-05', EG='0.76', time_epoch_completed='1631747158.62', return_code='0', job_id='989823', GAL2='1.04', EG2='0.78', return_code2='0', energy_flux_error='8.58e-06', photon_flux_error2='2.36e-08', ts2='4.34', photon_index='2.64' WHERE bin_id='941' AND source_name='4FGL J1648.0+2221' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 16:05:58 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0230>
Subject: Job 989823: <4FGL_J1648.0+2221_daily_bin941> in cluster <slac> Done

Job <4FGL_J1648.0+2221_daily_bin941> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Wed Sep 15 15:50:19 2021
Job was executed on host(s) <bullet0230>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 15:53:27 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:53:27 2021
Terminated at Wed Sep 15 16:05:59 2021
Results reported at Wed Sep 15 16:05:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.0+2221_daily_bin941 252.023 22.3523 483235201 483494401 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 :                                   536.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             277.73 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   751 sec.
    Turnaround time :                            940 sec.

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

