/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 8 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 = 7182
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1753.7+2847_daily_bin314
RA = 268.433, Dec = 28.7967
tmin = 320716801, tmax = 320976001
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='267369', job_status='RUN', time_executed='2021-09-18 20:25:33.184279', time_epoch_executed='1632021933.18' WHERE source_name='4FGL J1753.7+2847' and cadence='daily' and bin_id='314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267369

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

Retrieving the FT1 file...

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

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

Retrieving 44 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267369/ft1_4FGL_J1753.7+2847_daily_bin314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267369/ft1_4FGL_J1753.7+2847_daily_bin314.fits outfile=/scratch/kocevski/267369/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin314.fits ra=268.433 dec=28.7967 rad=12.0 tmin=320716801.0 tmax=320976001.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.42
user 3.19
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.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/267369/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin314.fits evtable="EVENTS" outfile="/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.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.49
user 0.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits" evtable="EVENTS" scfile=/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits sctable="SC_DATA" outfile=/scratch/kocevski/267369/ltcube_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.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/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits
.....................!
real 11.96
user 11.59
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits sctable="SC_DATA" expcube=/scratch/kocevski/267369/ltcube_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.fits outfile=/scratch/kocevski/267369/expmap_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.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/267369/ltcube_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.fits
.....................!
real 190.23
user 185.44
sys 4.26

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

Setting source of interest to:
4FGL J1753.7+2847 @ 268.433 28.7967

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits scfile=/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits outfile=/scratch/kocevski/267369/cmap_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.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=268.433 yref=28.7967 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.39
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits scfile=/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits outfile=/scratch/kocevski/267369/cmap_HighResolution_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.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=268.433 yref=28.7967 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.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits evtable="EVENTS" scfile=/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/267369/Model_4FGL_J1753.7+2847_daily_bin314.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/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits.....................!
real 71.97
user 70.59
sys 1.17

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits', '/scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits', expMap='/scratch/kocevski/267369/expmap_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.fits', expCube='/scratch/kocevski/267369/ltcube_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/267369/Model_4FGL_J1753.7+2847_daily_bin314.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1753.7+2847'

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  6.812e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  2.396e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  1.625e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/267369/ft1_filtered_4FGL_J1753.7+2847_daily_bin314.fits
Spacecraft file(s): /scratch/kocevski/267369/ft2_4FGL_J1753.7+2847_daily_bin314.fits
Exposure map: /scratch/kocevski/267369/expmap_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.fits
Exposure cube: /scratch/kocevski/267369/ltcube_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/267369/Model_4FGL_J1753.7+2847_daily_bin314.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) = 8161.01840307

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10384E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    92.013       1.0000         .10000E-03   10000.    
     3 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10075E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    73.844       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.963       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .52175E-02   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    2.3694       1.0000         .10000E-03   10000.    
    13 'norm      '    .10473E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .49534E-01   1.0000         .10000E-03   10000.    
    15 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10073E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .11019E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.7155       1.0000         .10000E-03   10000.    
    20 'norm      '    58.939       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.5453       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .73905       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   8161.015     FROM MIGRAD    STATUS=CONVERGED    858 CALLS     2748 TOTAL
                     EDM=   .67E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.873        .18142E-02** at limit **
   2  Prefactor     91.970        52.861        .20947E-03   -.26811E-04
   3  norm          .10000E-03    1.7053        .11478E-02** at limit **
   4  norm          .10000E-03    23.238        .18142E-02** at limit **
   5  Prefactor     .10000E-03    17.212        .18142E-02** at limit **
   6  Prefactor     73.747        86.014        .23361E-03   -.90274E-04
   7  Prefactor     23.969        16.688        .81829E-04   -.18756E-04
   8  Prefactor     .10030E-03    37.837        .16906    ** at limit **
   9  Prefactor     .10000E-03    16.436        .18142E-02** at limit **
  10  Prefactor     .10000E-03    28.628        .18142E-02** at limit **
  11  Prefactor     .10000E-03    6.1872        .18142E-02** at limit **
  12  norm          2.3695        1.8894        .10725E-03    .29150E-04
  13  norm          .10000E-03    14.681        .18142E-02** at limit **
  14  Prefactor     .57178E-01    4.0024        .52496E-01    .46650E-03
  15  norm          .10000E-03    3.0556        .15407E-02** at limit **
  16  Prefactor     .10000E-03    3.7530        .16908E-02** at limit **
  17  Prefactor     .10000E-03    38.778        .18142E-02** at limit **
  18  norm          .10000E-03    7.5893        .18142E-02** at limit **
  19  Prefactor     1.7149        5.6355        .32084E-03   -.18425E-03
  20  norm          58.892        49.700        .52258E-04   -.15446E-04
  21  Normalizat    1.5453        .25900        .31594E-03   -.17015E-03
  22  Prefactor     .73911        .99983E-01    .17259E-03   -.49328E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 91.9698
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 73.747
  Prefactor  = 23.9689
  Prefactor  = 0.000100302
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.36947
  norm       = 0.0001
  Prefactor  = 0.0571784
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.71491
  norm       = 58.8915
  Normalizat = 1.54529
  Prefactor  = 0.739113
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.015     FROM HESSE     STATUS=OK           340 CALLS     3088 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.880        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     91.970        52.862        .83787E-05   -1.3787    
   3  norm          .10000E-03    1.7055        .22956E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    23.238        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.212        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     73.747        86.010        .93444E-05   -1.3988    
   7  Prefactor     23.969        16.688        .32732E-05   -1.4728    
   8  Prefactor     .10030E-03    38.299        .16747       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    16.437        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    28.629        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    6.1931        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          2.3695        1.8893        .42900E-05   -1.5400    
  13  norm          .10000E-03    14.681        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .57178E-01    3.9171        .53367E-01   -1.5660    
  15  norm          .10000E-03    3.0558        .30814E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    3.7557        .33816E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    38.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    7.5893        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.7149        5.6350        .12834E-04   -1.5446    
  20  norm          58.892        49.701        .10452E-04   -1.4172    
  21  Normalizat    1.5453        .25918        .63188E-04   -.76513    
  22  Prefactor     .73911        .10006        .34518E-04   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.51655e-10
Minuit parameter uncertainties:
  1  1.48062e-05
  2  52.889
  3  4.43044e-06
  4  3.47449e-05
  5  6.98786e-05
  6  86.1551
  7  16.6915
  8  0.00680155
  9  9.45544e-07
  10  8.05557e-05
  11  1.36308e-05
  12  1.88939
  13  1.44797e-05
  14  0.945756
  15  2.09239e-06
  16  7.38017e-06
  17  7.77537e-05
  18  6.94973e-06
  19  5.6367
  20  49.7358
  21  0.259407
  22  0.100082
Done.

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

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  8.056e-05  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  2.396e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
343        Scale:  1.625e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  7.391e-01  1.001e-01  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.545e+00  2.594e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 268.433 28.797
Photon Flux Upper Limit: 7.16e-08 ph cm-2 s-1
Energy Flux Upper Limit: 5.53e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267369/likelihoodResults_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.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) = 8161.01468288
delta logL = -0.000166314103808

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8161.01451758
delta logL = -1.01413752418e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .12323E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3752       1.0000          .0000       10.000    
     3 'Normalizat'    1.5454       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .73903       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7000E+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=   8161.015     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      252 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10218E-03    335.92        .18142E-02** at limit **
   2  Index         2.2964        5.5962        .50000        .49981E-05
   3  Normalizat    1.5453        .19293E-01    .31594E-03    .18316E-04
   4  Prefactor     .73911        .76579E-02    .17259E-03    .33199E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102182
  Index      = 2.29644
  Normalizat = 1.54529
  Prefactor  = 0.739113
 **********
 **   18 **HESSE 
 **********

 FCN=   8161.015     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      281 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10218E-03    1357.1        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2964        6.4364        .50000       -.57128    
   3  Normalizat    1.5453        .41128E-01    .12637E-04   -.76514    
   4  Prefactor     .73911        .16324E-01    .69036E-05   -1.0201    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.39771e-08
Minuit parameter uncertainties:
  1  0.111457
  2  1583.09
  3  0.0411291
  4  0.0163245
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267369': 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) = 8161.01451647
delta logL = 9.42800397752e-08

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  1.022e-04  1.115e-01  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  2.296e+00  1.583e+03  0.000e+00  1.000e+01 (-1.000e+00)
343        Scale:  1.625e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
697    Prefactor:  7.391e-01  1.632e-02  0.000e+00  1.000e+01 ( 1.000e+00)
698        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
699        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.545e+00  4.113e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 268.433 28.797

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/267369/cmap_HighResolution_320716801_320976001_4FGL_J1753.7+2847_daily_bin314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.53e-03', job_status='DONE', photon_flux_upper_limit='7.16e-08', time_completed='2021-09-18 20:40:28.448430', job_id='267369', GAL2='0.74', fit_tolerance='1e-08', EG2='1.55', EG='1.55', time_epoch_completed='1632022828.45', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='9.43e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='314' AND source_name='4FGL J1753.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 20:40:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0037>
Subject: Job 267369: <4FGL_J1753.7+2847_daily_bin314> in cluster <slac> Done

Job <4FGL_J1753.7+2847_daily_bin314> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 20:25:16 2021
Job was executed on host(s) <bullet0037>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 20:25:17 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 20:25:17 2021
Terminated at Sat Sep 18 20:40:28 2021
Results reported at Sat Sep 18 20:40:28 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.7+2847_daily_bin314 268.433 28.7967 320716801 320976001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1753.7+2847 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   890.34 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             367.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   911 sec.
    Turnaround time :                            912 sec.

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

