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


Performing analysis on: 4FGL_J1648.2+4232_daily_bin1177
RA = 252.072, Dec = 42.5498
tmin = 544406401, tmax = 544665601
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='3939', job_status='RUN', time_executed='2021-09-15 16:30:49.674946', time_epoch_executed='1631748649.67' WHERE source_name='4FGL J1648.2+4232' and cadence='daily' and bin_id='1177'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3939

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

Retrieving the FT1 file...

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

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

Retrieving 36 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3939/ft1_4FGL_J1648.2+4232_daily_bin1177.fits


Retrieving the FT1 file...

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

Retrieving 36 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3939/ft1_4FGL_J1648.2+4232_daily_bin1177.fits outfile=/scratch/kocevski/3939/ft1_filteredMKT_4FGL_J1648.2+4232_daily_bin1177.fits ra=252.072 dec=42.5498 rad=12.0 tmin=544406401.0 tmax=544665601.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.73
user 7.37
sys 0.29

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.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/3939/ft1_filteredMKT_4FGL_J1648.2+4232_daily_bin1177.fits evtable="EVENTS" outfile="/scratch/kocevski/3939/ft1_filtered_4FGL_J1648.2+4232_daily_bin1177.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.52
user 0.32
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3939/ft1_filtered_4FGL_J1648.2+4232_daily_bin1177.fits" evtable="EVENTS" scfile=/scratch/kocevski/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.fits sctable="SC_DATA" outfile=/scratch/kocevski/3939/ltcube_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.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/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.fits
.....................!
real 9.08
user 8.70
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3939/ft1_filtered_4FGL_J1648.2+4232_daily_bin1177.fits evtable="EVENTS" scfile=/scratch/kocevski/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.fits sctable="SC_DATA" expcube=/scratch/kocevski/3939/ltcube_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.fits outfile=/scratch/kocevski/3939/expmap_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.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/3939/ltcube_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.fits
.....................!
real 191.50
user 186.78
sys 4.19

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/3939/ft1_filtered_4FGL_J1648.2+4232_daily_bin1177.fits scfile=/scratch/kocevski/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.fits outfile=/scratch/kocevski/3939/cmap_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.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.55
user 0.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3939/ft1_filtered_4FGL_J1648.2+4232_daily_bin1177.fits scfile=/scratch/kocevski/3939/ft2_4FGL_J1648.2+4232_daily_bin1177.fits outfile=/scratch/kocevski/3939/cmap_HighResolution_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.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.57
user 0.40
sys 0.17

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .20111E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    13.269       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .34584E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .78531E-01   1.0000         .10000E-03   10000.    
     9 'norm      '    40.515       1.0000         .10000E-03   10000.    
    10 'Prefactor '    61.518       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10950E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.4504       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10891E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10286E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11156E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.6177       1.0000         .10000E-03   10000.    
    19 'norm      '    3.5273       1.0000         .10000E-03   10000.    
    20 'Prefactor '    5.5454       1.0000         .10000E-03   10000.    
    21 'norm      '    .10053E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    76.465       1.0000         .10000E-03   10000.    
    23 'norm      '    7.4177       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10022E-03   1.0000         .10000E-03   10000.    
    26 'norm      '    16.660       1.0000         .10000E-03   10000.    
    27 'Prefactor '    .24495E-01   1.0000         .10000E-03   10000.    
    28 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    45.021       1.0000         .10000E-03   10000.    
    30 'Prefactor '    .43235E-02   1.0000         .10000E-03   10000.    
    31 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    32 'Normalizat'    .30600       1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.2036       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6900E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   900.2045     FROM MIGRAD    STATUS=CONVERGED    140 CALLS     4580 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  8.7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .11029E-03    254.90       -.94798E-04** at limit **
   2  Prefactor     13.261        10.654       -.15346E-04   -.49651E-02
   3  Prefactor     .10013E-03    36.054        .12553E-04** at limit **
   4  Prefactor     .10011E-03    54.243        .40850E-04** at limit **
   5  Prefactor     .10011E-03    58.598        .47326E-04** at limit **
   6  Prefactor     .10000E-03    9.8991       -.10071E-06** at limit **
   7  norm          .10570E-03    4.7088        .26030E-05** at limit **
   8  norm          .78373E-01    1.6201        .98578E-06    .38614E-03
   9  norm          40.520        1.2995        .50311E-06   -.73668E-04
  10  Prefactor     61.490        6.0272       -.36991E-05    .21150E-02
  11  Prefactor     .10000E-03    15.357       -.60283E-06** at limit **
  12  norm          .10045E-03    51.995        .36946E-04** at limit **
  13  Prefactor     1.4564        6.8737       -.58470E-06    .47044E-03
  14  Prefactor     .10000E-03    14.647        .21660E-05** at limit **
  15  Prefactor     .10241E-03    62.348        .35781E-04** at limit **
  16  Prefactor     .10000E-03    6.1371        .14212E-06** at limit **
  17  Prefactor     .21364E-03    242.66       -.64211E-04** at limit **
  18  norm          4.6181        4.4965       -.16414E-06   -.25345E-03
  19  norm          3.5247        8.7534       -.18285E-04   -.11285E-02
  20  Prefactor     5.4722        11.794       -.14194E-04   -.27067E-03
  21  norm          .10000E-03    2.4275        .14428E-06** at limit **
  22  norm          76.437        3.5702       -.15330E-05    .11704E-02
  23  norm          7.4370        4.4248        .60341E-05    .67179E-04
  24  Prefactor     .10244E-03    37.026       -.37420E-04** at limit **
  25  Prefactor     .10087E-03    44.772       -.51639E-04** at limit **
  26  norm          16.630        2.4784        .57678E-06    .59262E-03
  27  Prefactor     .97143E-02    149.12       -.12077E-03    .16279E-02
  28  norm          .10005E-03    46.563       -.53896E-04** at limit **
  29  Prefactor     45.021        1.0127       -.14246E-06    .16460E-03
  30  Prefactor     .11721E-02    43.701       -.62783E-04** at limit **
  31  Prefactor     .10344E-03    38.414        .24341E-04** at limit **
  32  Normalizat    .30574        .79709        .52126E-04   -.41907E-04
  33  Prefactor     1.2038        .60075       -.65287E-05   -.90829E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000110287
  Prefactor  = 13.261
  Prefactor  = 0.000100127
  Prefactor  = 0.000100114
  Prefactor  = 0.00010011
  Prefactor  = 0.0001
  norm       = 0.000105696
  norm       = 0.0783732
  norm       = 40.5203
  Prefactor  = 61.4902
  Prefactor  = 0.0001
  norm       = 0.000100455
  Prefactor  = 1.45644
  Prefactor  = 0.0001
  Prefactor  = 0.000102407
  Prefactor  = 0.0001
  Prefactor  = 0.000213638
  norm       = 4.61808
  norm       = 3.52469
  Prefactor  = 5.47217
  norm       = 0.0001
  norm       = 76.4372
  norm       = 7.43701
  Prefactor  = 0.000102443
  Prefactor  = 0.000100871
  norm       = 16.6305
  Prefactor  = 0.00971432
  norm       = 0.000100052
  Prefactor  = 45.0212
  Prefactor  = 0.00117207
  Prefactor  = 0.000103443
  Normalizat = 0.305739
  Prefactor  = 1.20384
 **********
 **   18 **HESSE 
 **********

 FCN=   900.2045     FROM HESSE     STATUS=OK           759 CALLS     5339 TOTAL
                     EDM=   .43E-05    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .11029E-03    641.74        .90712E-02   -1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     13.261        12.374        .27491E-02   -1.4979    
   3  Prefactor     .10013E-03    36.489        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10011E-03    175.01        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10011E-03    180.90        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.8972        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10570E-03    471.40        .10664E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .78373E-01    19.235        .94084E-02   -1.5652    
   9  norm          40.520        74.751        .15744E-02   -1.4434    
  10  Prefactor     61.490        185.01        .12790E-02   -1.4138    
  11  Prefactor     .10000E-03    15.352        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10045E-03    171.96        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.4564        79.331        .89436E-02   -1.5467    
  14  Prefactor     .10000E-03    12.851        .25510E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10241E-03    80.477        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    6.1361        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .21364E-03    513.87        .90712E-02   -1.5710    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.6181        4.6520        .46826E-02   -1.5278    
  19  norm          3.5247        9.0056        .53810E-02   -1.5332    
  20  Prefactor     5.4722        146.53        .42652E-02   -1.5240    
  21  norm          .10000E-03    2.4270        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          76.437        67.550        .11480E-02   -1.3957    
  23  norm          7.4370        15.672        .36815E-02   -1.5162    
  24  Prefactor     .10244E-03    45.244        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Prefactor     .10087E-03    116.34        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  norm          16.630        30.891        .24531E-02   -1.4892    
  27  Prefactor     .97143E-02    6356.1        .91448E-02   -1.5688    
  28  norm          .10005E-03    110.61        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     45.021        1055.2        .14938E-02   -1.4365    
  30  Prefactor     .11721E-02    2210.6        .96980E-02   -1.5701    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  31  Prefactor     .10344E-03    51.063        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .30574        1.4914        .12361       -1.2250    
  33  Prefactor     1.2038        .85539        .34547E-01   -.86213    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.34777e-06
Minuit parameter uncertainties:
  1  0.164287
  2  12.3761
  3  0.00430848
  4  0.00895909
  5  0.00893242
  6  7.29116e-05
  7  0.104472
  8  2.45487
  9  74.9251
  10  186.779
  11  9.83002e-05
  12  0.0177383
  13  21.5274
  14  0.000148266
  15  0.0278754
  16  4.8911e-05
  17  0.48754
  18  4.6524
  19  9.00904
  20  56.7875
  21  2.40014e-07
  22  67.6178
  23  15.6802
  24  0.0210428
  25  0.0201778
  26  30.9206
  27  10.7615
  28  0.00479374
  29  445.058
  30  3.20537
  31  0.026541
  32  1.3875
  33  0.865562
Done.

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

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  4.891e-05  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:  1.204e+00  8.656e-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:  3.057e-01  1.387e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 252.072 42.550
Photon Flux Upper Limit: 3.77e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/3939/likelihoodResults_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.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) = 900.205037278
delta logL = -0.000548120350459

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 900.204490329
delta logL = -1.1718194628e-06

Fit tolerance = 1e-08

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

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

 FCN=   900.2045     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      249 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.155        .73240E-02** at limit **
   2  Index         1.9581        5.8780        .50000        .40111E-06
   3  Normalizat    .30578        .37310E-01    .54686E-03    .98069E-03
   4  Prefactor     1.2039        .27822E-01    .21196E-03    .24586E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 1.95807
  Normalizat = 0.305782
  Prefactor  = 1.20386
 **********
 **   18 **HESSE 
 **********

 FCN=   900.2045     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      278 TOTAL
                     EDM=   .98E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    415.75        .79059E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         1.9581        6.4865        .50000       -.65402    
   3  Normalizat    .30578        .11486        .10937E-03   -1.2249    
   4  Prefactor     1.2039        .85701E-01    .42392E-04   -.86213    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 9.84582e-09
Minuit parameter uncertainties:
  1  0.00103105
  2  1169.31
  3  0.114947
  4  0.0857108
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3939': 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) = 900.204487898
delta logL = 1.25947713059e-06

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.031e-03  1.000e-04  1.000e+04 ( 1.000e-12)
356        Index:  1.958e+00  1.169e+03  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:  1.204e+00  8.571e-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:  3.058e-01  1.149e-01  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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/3939/cmap_HighResolution_544406401_544665601_4FGL_J1648.2+4232_daily_bin1177.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-02', job_status='DONE', photon_flux_upper_limit='3.77e-07', time_completed='2021-09-15 16:40:31.678528', job_id='3939', GAL2='1.20', fit_tolerance='1e-08', EG2='0.31', EG='0.31', time_epoch_completed='1631749231.68', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.20', dlogl='1.26e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1177' AND source_name='4FGL J1648.2+4232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 16:40:31 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0083>
Subject: Job 3939: <4FGL_J1648.2+4232_daily_bin1177> in cluster <slac> Done

Job <4FGL_J1648.2+4232_daily_bin1177> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Wed Sep 15 16:30:18 2021
Job was executed on host(s) <bullet0083>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 16:30:30 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Wed Sep 15 16:30:30 2021
Terminated at Wed Sep 15 16:40:32 2021
Results reported at Wed Sep 15 16:40:32 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.2+4232_daily_bin1177 252.072 42.5498 544406401 544665601 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 :                                   463.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             275.77 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   601 sec.
    Turnaround time :                            614 sec.

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

