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


Performing analysis on: 4FGL_J1648.2+4232_daily_bin1180
RA = 252.072, Dec = 42.5498
tmin = 545184001, tmax = 545443201
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='3943', job_status='RUN', time_executed='2021-09-15 16:32:37.695910', time_epoch_executed='1631748757.7' WHERE source_name='4FGL J1648.2+4232' and cadence='daily' and bin_id='1180'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/3943

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/3943/ft1_4FGL_J1648.2+4232_daily_bin1180.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/3943/ft1_4FGL_J1648.2+4232_daily_bin1180.fits outfile=/scratch/kocevski/3943/ft1_filteredMKT_4FGL_J1648.2+4232_daily_bin1180.fits ra=252.072 dec=42.5498 rad=12.0 tmin=545184001.0 tmax=545443201.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.99
user 3.75
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/3943/ft1_filtered_4FGL_J1648.2+4232_daily_bin1180.fits" evtable="EVENTS" scfile=/scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits sctable="SC_DATA" outfile=/scratch/kocevski/3943/ltcube_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.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/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits
.....................!
real 12.87
user 12.52
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/3943/ft1_filtered_4FGL_J1648.2+4232_daily_bin1180.fits evtable="EVENTS" scfile=/scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits sctable="SC_DATA" expcube=/scratch/kocevski/3943/ltcube_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.fits outfile=/scratch/kocevski/3943/expmap_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.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/3943/ltcube_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.fits
.....................!
real 190.84
user 186.32
sys 4.13

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/3943/ft1_filtered_4FGL_J1648.2+4232_daily_bin1180.fits scfile=/scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits outfile=/scratch/kocevski/3943/cmap_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/3943/ft1_filtered_4FGL_J1648.2+4232_daily_bin1180.fits scfile=/scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits outfile=/scratch/kocevski/3943/cmap_HighResolution_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.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.55
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/3943/ft1_filtered_4FGL_J1648.2+4232_daily_bin1180.fits', '/scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits', expMap='/scratch/kocevski/3943/expmap_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.fits', expCube='/scratch/kocevski/3943/ltcube_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/3943/Model_4FGL_J1648.2+4232_daily_bin1180.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/3943/ft1_filtered_4FGL_J1648.2+4232_daily_bin1180.fits
Spacecraft file(s): /scratch/kocevski/3943/ft2_4FGL_J1648.2+4232_daily_bin1180.fits
Exposure map: /scratch/kocevski/3943/expmap_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.fits
Exposure cube: /scratch/kocevski/3943/ltcube_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/3943/Model_4FGL_J1648.2+4232_daily_bin1180.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1022.98572596

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1019.98059183

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.6487       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.801       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .24330E-01   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .33369       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .59490E-01   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10117E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    8.5461       1.0000         .10000E-03   10000.    
     8 'norm      '    1.3307       1.0000         .10000E-03   10000.    
     9 'norm      '    .12864E-02   1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.857       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .33289E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .36321E-01   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    5.2847       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .52997E-01   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1751       1.0000         .10000E-03   10000.    
    18 'norm      '    .16654E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    21 'norm      '    4.4797       1.0000         .10000E-03   10000.    
    22 'norm      '    .51888E-01   1.0000         .10000E-03   10000.    
    23 'norm      '    .37294E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    1.8498       1.0000         .10000E-03   10000.    
    25 'Prefactor '    16.048       1.0000         .10000E-03   10000.    
    26 'norm      '    .25005       1.0000         .10000E-03   10000.    
    27 'Prefactor '    2.3323       1.0000         .10000E-03   10000.    
    28 'norm      '    3.6247       1.0000         .10000E-03   10000.    
    29 'Prefactor '    6.8376       1.0000         .10000E-03   10000.    
    30 'Prefactor '    1.8250       1.0000         .10000E-03   10000.    
    31 'Prefactor '    .27256       1.0000         .10000E-03   10000.    
    32 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    33 'Prefactor '    1.1840       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.
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1019.897     FROM MIGRAD    STATUS=CONVERGED    384 CALLS      803 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .14736E-03    933.67        .62623E-02** at limit **
   2  Prefactor     18.194        9.4298        .23732E-02    .11297E-01
   3  Prefactor     .10000E-03    44.981        .91440E-02** at limit **
   4  Prefactor     .10000E-03    135.82        .10572E-01** at limit **
   5  Prefactor     .10000E-03    537.54        .93163E-02** at limit **
   6  Prefactor     .10000E-03    16.553        .90712E-02** at limit **
   7  norm          .14085        6567.0        .34281E-02    .52466E-02
   8  norm          1.3362        .49464        .30206E-02    .35432    
   9  norm          .10000E-03    37.469        .10294E-01** at limit **
  10  Prefactor     72.502        57.112        .12007E-02   -.43390E-02
  11  Prefactor     .10000E-03    17.736        .10673E-01** at limit **
  12  norm          .10000E-03    89.344        .92031E-02** at limit **
  13  Prefactor     .10000E-03    2.5968        .90712E-02** at limit **
  14  Prefactor     5.3136        4.3189        .43710E-02    .67280E-01
  15  Prefactor     .10000E-03    74.419        .92847E-02** at limit **
  16  Prefactor     .10000E-03    8.6938        .90712E-02** at limit **
  17  Prefactor     5.1751        1.0047         .0000         .0000    
  18  norm          .10000E-03    .20571       -.68315E-06** at limit **
  19  norm          .10000E-03    .20571        .14044E-05** at limit **
  20  Prefactor     .10000E-03    .20571        .10586E-04** at limit **
  21  norm          4.4751        1.0058       -.48108E-06    .96914E-04
  22  norm          .10000E-03    .21526        .32761E-04** at limit **
  23  norm          .10000E-03    .23961       -.24430E-04** at limit **
  24  Prefactor     1.8498        1.0422         .0000         .0000    
  25  Prefactor     106.46        2.5651       -.47366E-04   -.14941E-02
  26  norm          .10000E-03    .26029       -.42296E-04** at limit **
  27  Prefactor     .10027E-03    .11266       -.87106E-04** at limit **
  28  norm          3.6247        1.0098         .0000         .0000    
  29  Prefactor     .67497E-01    .99584E-01    .10417E-02   -.61917E-02
  30  Prefactor     .52978E-01    .17765       -.79248E-02   -.41375E-02
  31  Prefactor     .10000E-03    .26543        .38688E-04** at limit **
  32  Normalizat    .10000E-01    .25505       -.42617E-05** at limit **
  33  Prefactor     1.1439        1.0920        .81550E-04    .22172E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000147359
  Prefactor  = 18.1938
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.140845
  norm       = 1.33616
  norm       = 0.0001
  Prefactor  = 72.5019
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.31364
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.17505
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 4.47512
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.84976
  Prefactor  = 106.456
  norm       = 0.0001
  Prefactor  = 0.000100266
  norm       = 3.62474
  Prefactor  = 0.0674974
  Prefactor  = 0.0529777
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.14394
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   1019.897     FROM HESSE     STATUS=FAILED        43 CALLS      846 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .14736E-03    933.67        .62623E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     18.194        9.4298        .23732E-02   -1.4855    
   3  Prefactor     .10000E-03    44.981        .91440E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    135.82        .10572E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    537.54        .93163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    16.553        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .14085        6567.0        .34281E-02   -1.5633    
   8  norm          1.3362        .49464        .30206E-02   -1.5477    
   9  norm          .10000E-03    37.469        .10294E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     72.502        57.112        .12007E-02   -1.4003    
  11  Prefactor     .10000E-03    17.736        .10673E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    89.344        .92031E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    2.5968        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     5.3136        4.3189        .43710E-02   -1.5247    
  15  Prefactor     .10000E-03    74.419        .92847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    8.6938        .90712E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     529.77        524.55         .0000       -1.5253    
  18  norm          .10000E-03    .20571       -.68315E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    .20571        .14044E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    .20571        .10586E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  norm          4.4751        1.0058       -.48108E-06   -1.5285    
  22  norm          .10000E-03    .21526        .32761E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    .23961       -.24430E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     1.8498        1.0422         .0000       -1.5436    
  25  Prefactor     106.46        2.5651       -.47366E-04   -1.3641    
  26  norm          .10000E-03    .26029       -.42296E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  27  Prefactor     .10027E-03    .11266       -.87106E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  norm          3.6247        1.0098         .0000       -1.5327    
  29  Prefactor     .67497E-01    .99584E-01    .10417E-02   -1.5760    
  30  Prefactor     .52978E-01    .17765       -.79248E-02   -1.5754    
  31  Prefactor     .10000E-03    .26543        .38688E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  32  Normalizat    .10000E-01    .25505       -.42617E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  33  Prefactor     1.1439        1.0920        .81550E-04   -.88074    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.38191e-09
Minuit parameter uncertainties:
  1  0.427398
  2  9.43059
  3  0.000220118
  4  0.00058207
  5  0.00256406
  6  1.51014e-05
  7  44.8645
  8  0.494642
  9  0.000242008
  10  57.1557
  11  8.37099e-05
  12  0.000163685
  13  1.1658e-06
  14  4.31918
  15  8.4269e-06
  16  9.49931e-06
  17  1.00474
  18  2.03504e-06
  19  7.74091e-09
  20  5.17852e-07
  21  1.00585
  22  2.66615e-05
  23  1.21498e-05
  24  1.04221
  25  2.56513
  26  1.55e-05
  27  0.000345916
  28  1.00984
  29  0.0995843
  30  0.177651
  31  1.8362e-05
  32  1.49434e-07
  33  1.11466
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 1019.89653252

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  9.499e-06  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.144e+00  1.115e+00  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.000e-02  1.494e-07  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/3943/likelihoodResults_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.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) = 1019.89705723
delta logL = -0.000524712787069

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 1019.89653253
delta logL = -1.64397988556e-08

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.4240       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1439       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=   1019.897     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      244 TOTAL
                     EDM=   .69E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10004E-03    516.06        .92001E-03** at limit **
   2  Index         2.4049        8.7890        .50000        .12069E-05
   3  Normalizat    .10000E-01    .31084E-01    .83499E-02** at limit **
   4  Prefactor     1.1439        .75924E-01    .20128E-03   -.15935E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100044
  Index      = 2.40486
  Normalizat = 0.01
  Prefactor  = 1.14394
 **********
 **   18 **HESSE 
 **********

 FCN=   1019.897     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      273 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10004E-03    1640.7        .18400E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.4049        6.1111        .50000       -.54571    
   3  Normalizat    .10000E-01    .14990        .16700E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1439        .16702        .80514E-05   -.88074    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.34321e-09
Minuit parameter uncertainties:
  1  0.0174083
  2  3550.14
  3  4.22366e-07
  4  0.167092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/3943': 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) = 1019.89653251
delta logL = 4.04884303862e-09

Extracting fit parameters...

4FGL J1648.2+4232
   Spectrum: PowerLaw
355    Prefactor:  1.000e-04  1.741e-02  1.000e-04  1.000e+04 ( 1.000e-12)
356        Index:  2.405e+00  3.550e+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.144e+00  1.671e-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.000e-02  4.224e-07  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/3943/cmap_HighResolution_545184001_545443201_4FGL_J1648.2+4232_daily_bin1180.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-02', job_status='DONE', photon_flux_upper_limit='4.94e-07', time_completed='2021-09-15 16:43:48.115105', job_id='3943', GAL2='1.14', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1631749428.12', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='1.14', dlogl='4.05e-09', ts2='-0.00', photon_index_error='0.00', photon_index='2.43' WHERE bin_id='1180' AND source_name='4FGL J1648.2+4232' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Wed Sep 15 16:43:48 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0088>
Subject: Job 3943: <4FGL_J1648.2+4232_daily_bin1180> in cluster <slac> Done

Job <4FGL_J1648.2+4232_daily_bin1180> 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) <bullet0088>, in queue <medium>, as user <kocevski> in cluster <slac> at Wed Sep 15 16:30: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 16:30:32 2021
Terminated at Wed Sep 15 16:43:48 2021
Results reported at Wed Sep 15 16:43:48 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1648.2+4232_daily_bin1180 252.072 42.5498 545184001 545443201 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 :                                   361.24 sec.
    Max Memory :                                 1192 MB
    Average Memory :                             168.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            810 sec.

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

