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


Performing analysis on: 4FGL_J1753.7+2847_daily_bin886
RA = 268.433, Dec = 28.7967
tmin = 468979201, tmax = 469238401
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='273896', job_status='RUN', time_executed='2021-09-18 20:45:46.245379', time_epoch_executed='1632023146.25' WHERE source_name='4FGL J1753.7+2847' and cadence='daily' and bin_id='886'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/273896

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/273896/ft1_4FGL_J1753.7+2847_daily_bin886.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/273896/ft1_4FGL_J1753.7+2847_daily_bin886.fits outfile=/scratch/kocevski/273896/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin886.fits ra=268.433 dec=28.7967 rad=12.0 tmin=468979201.0 tmax=469238401.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.41
user 3.19
sys 0.19

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.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/273896/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin886.fits evtable="EVENTS" outfile="/scratch/kocevski/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.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.59
user 0.35
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits" evtable="EVENTS" scfile=/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits sctable="SC_DATA" outfile=/scratch/kocevski/273896/ltcube_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.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/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits
.....................!
real 12.34
user 11.94
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits sctable="SC_DATA" expcube=/scratch/kocevski/273896/ltcube_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.fits outfile=/scratch/kocevski/273896/expmap_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.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/273896/ltcube_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.fits
.....................!
real 192.46
user 186.77
sys 5.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 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/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits scfile=/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits outfile=/scratch/kocevski/273896/cmap_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.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.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits scfile=/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits outfile=/scratch/kocevski/273896/cmap_HighResolution_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits evtable="EVENTS" scfile=/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/273896/Model_4FGL_J1753.7+2847_daily_bin886.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/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits.....................!
real 73.51
user 71.78
sys 1.23

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits', '/scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits', expMap='/scratch/kocevski/273896/expmap_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.fits', expCube='/scratch/kocevski/273896/ltcube_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/273896/Model_4FGL_J1753.7+2847_daily_bin886.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/273896/ft1_filtered_4FGL_J1753.7+2847_daily_bin886.fits
Spacecraft file(s): /scratch/kocevski/273896/ft2_4FGL_J1753.7+2847_daily_bin886.fits
Exposure map: /scratch/kocevski/273896/expmap_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.fits
Exposure cube: /scratch/kocevski/273896/ltcube_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/273896/Model_4FGL_J1753.7+2847_daily_bin886.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) = 8777.36700942

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'Prefactor '    22.625       1.0000         .10000E-03   10000.    
     3 'norm      '    .50954       1.0000         .10000E-03   10000.    
     4 'norm      '    7.9211       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .11109E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    36.733       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .52554       1.0000         .10000E-03   10000.    
    13 'norm      '    37.006       1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.9126       1.0000         .10000E-03   10000.    
    15 'norm      '    .87395       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10222E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.271       1.0000         .10000E-03   10000.    
    18 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    6.4475       1.0000         .10000E-03   10000.    
    20 'norm      '    132.08       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .95530       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .92616       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.

 FCN=   8777.357     FROM MIGRAD    STATUS=CONVERGED    472 CALLS     2372 TOTAL
                     EDM=   .20E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.607       -.24797E-05** at limit **
   2  Prefactor     22.626        23.214        .38789E-06    .73049E-05
   3  norm          .50968        3.7936       -.17218E-06   -.55017E-04
   4  norm          7.9193        51.724       -.44658E-05   -.36401E-06
   5  Prefactor     .10000E-03    17.382       -.15322E-04** at limit **
   6  Prefactor     .10000E-03    34.480        .82208E-05** at limit **
   7  Prefactor     .10000E-03    4.8793        .27107E-07** at limit **
   8  Prefactor     .10000E-03    51.608       -.81082E-05** at limit **
   9  Prefactor     .10001E-03    32.834        .39335E-05** at limit **
  10  Prefactor     36.716        56.177       -.21641E-04   -.18226E-04
  11  Prefactor     .10000E-03    2.1732       -.34213E-08** at limit **
  12  norm          .52614        1.3105        .20243E-06    .35356E-03
  13  norm          37.006        47.858       -.72661E-06   -.27309E-05
  14  Prefactor     3.9133        4.8050       -.16177E-06   -.48396E-05
  15  norm          .87812        .55272        .30753E-07   -.92661E-03
  16  Prefactor     .10000E-03    2.4187        .15957E-06** at limit **
  17  Prefactor     22.259        20.888       -.37562E-05   -.92956E-05
  18  norm          .10000E-03    15.456        .14456E-04** at limit **
  19  Prefactor     6.4477        8.3358       -.54222E-07   -.29969E-04
  20  norm          132.07        74.596       -.23977E-05   -.36990E-05
  21  Normalizat    .95510        .19963        .26204E-05   -.38191E-04
  22  Prefactor     .92624        .82699E-01    .68205E-07    .41745E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 22.6259
  norm       = 0.50968
  norm       = 7.91931
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 0.000100009
  Prefactor  = 36.7163
  Prefactor  = 0.0001
  norm       = 0.526143
  norm       = 37.0058
  Prefactor  = 3.91326
  norm       = 0.878122
  Prefactor  = 0.0001
  Prefactor  = 22.2593
  norm       = 0.0001
  Prefactor  = 6.44769
  norm       = 132.074
  Normalizat = 0.9551
  Prefactor  = 0.926239
 **********
 **   18 **HESSE 
 **********

 FCN=   8777.357     FROM HESSE     STATUS=OK           342 CALLS     2714 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.610        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     22.626        23.203        .84211E-04   -1.4756    
   3  norm          .50968        3.8188        .35378E-03   -1.5565    
   4  norm          7.9193        51.750        .14247E-03   -1.5145    
   5  Prefactor     .10000E-03    17.357        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.487        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    4.8864        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    51.921        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10001E-03    33.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     36.716        56.247        .66126E-04   -1.4495    
  11  Prefactor     .10000E-03    2.1772        .13487E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .52614        1.2714        .16369E-02   -1.5563    
  13  norm          37.006        47.770        .65882E-04   -1.4491    
  14  Prefactor     3.9133        4.7981        .20396E-03   -1.5312    
  15  norm          .87812        9.0476        .25425E-02   -1.5521    
  16  Prefactor     .10000E-03    2.4428        .14206E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.259        21.274        .84875E-04   -1.4764    
  18  norm          .10000E-03    15.437        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     6.4477        8.3283        .15806E-03   -1.5200    
  20  norm          132.07        74.614        .17519E-03   -1.3404    
  21  Normalizat    .95510        .22626        .35924E-03   -.94550    
  22  Prefactor     .92624        .94560E-01    .15406E-03   -.95230    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.16002e-09
Minuit parameter uncertainties:
  1  5.54806e-06
  2  23.212
  3  2.7902
  4  40.539
  5  4.87873e-06
  6  2.80318e-06
  7  4.99757e-07
  8  0.000367665
  9  0.00107945
  10  56.3289
  11  2.64684e-06
  12  1.2715
  13  47.8199
  14  4.79856
  15  5.63812
  16  2.37643e-05
  17  21.281
  18  1.05858e-05
  19  8.3298
  20  74.6676
  21  0.226488
  22  0.0945766
Done.

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

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  3.672e+01  5.633e+01  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:  9.262e-01  9.458e-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:  9.551e-01  2.265e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/273896/likelihoodResults_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.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) = 8776.85009398
delta logL = 0.506549768348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8776.84743379
delta logL = 0.50920996256

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.2806       1.0000         .10000E-03   10000.    
     2 'Index     '    4.0133       1.0000          .0000       10.000    
     3 'Normalizat'    .90887       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .93789       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8776.847     FROM MIGRAD    STATUS=FAILED        90 CALLS      378 TOTAL
                     EDM=   .38E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2811        91.460        .12190E-03    .44361E-02
   2  Index         4.0123        6.9081        .55547E-02    .95356E-03
   3  Normalizat    .90930        .19434        .36713E-03    .58991E-03
   4  Prefactor     .93787        .80255E-01    .15316E-03    .91457E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8776.847     FROM SIMPLEX   STATUS=UNCHANGED     84 CALLS      462 TOTAL
                     EDM=   .14E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2811        91.460        .30526E-03    .44361E-02
   2  Index         4.0123        6.9081        .16693E-02    .95356E-03
   3  Normalizat    .90930        .19434        .17689E-03    .58991E-03
   4  Prefactor     .93787        .80255E-01    .29731E-04    .91457E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8776.847     FROM MIGRAD    STATUS=CONVERGED     29 CALLS      491 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.2816        12.141        .48760E-05    .43003E-02
   2  Index         4.0122        1.8952        .22219E-03    .73700E-03
   3  Normalizat    .90930        .22663        .14685E-04    .54438E-03
   4  Prefactor     .93787        .94651E-01    .30632E-04    .87558E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.28159
  Index      = 4.01223
  Normalizat = 0.909298
  Prefactor  = 0.93787
 **********
 **   18 **HESSE 
 **********

 FCN=   8776.847     FROM HESSE     STATUS=OK            23 CALLS      514 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.2816        10.341        .97520E-06   -1.5406    
   2  Index         4.0122        1.7556        .88876E-05   -.19886    
   3  Normalizat    .90930        .22656        .29371E-05   -.96134    
   4  Prefactor     .93787        .94635E-01    .61264E-05   -.94830    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.32756e-09
Minuit parameter uncertainties:
  1  9.71737
  2  1.79553
  3  0.226796
  4  0.0946512
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/273896': 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) = 8776.84742701
delta logL = 0.50921673507

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  2.282e+00  9.717e+00  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  4.012e+00  1.796e+00  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:  9.379e-01  9.465e-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:  9.093e-01  2.268e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.63
Ra Dec: 268.433 28.797
Photon Index (Free Index): 4.01 +/- 1.80
Photon Flux (Free Index): 5.48e-08 +/- 5.18e-08
Energy Flux (Free Index): 8.19e-06 +/- 7.48e-06

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/273896/cmap_HighResolution_468979201_469238401_4FGL_J1753.7+2847_daily_bin886.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.51e-03', comment='SUCCESS', energy_flux2='8.19e-06', dlogl='5.09e-01', photon_flux2='5.48e-08', job_status='DONE', time_completed='2021-09-18 21:01:10.343075', photon_index_error2='1.80', photon_index2='4.01', ts='0.54', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='9.72e-08', energy_flux_error2='7.48e-06', EG='0.96', time_epoch_completed='1632024070.34', return_code='0', job_id='273896', GAL2='0.94', EG2='0.91', return_code2='0', photon_flux_error2='5.18e-08', ts2='1.63', photon_index='2.40' WHERE bin_id='886' AND source_name='4FGL J1753.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:01:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0269>
Subject: Job 273896: <4FGL_J1753.7+2847_daily_bin886> in cluster <slac> Done

Job <4FGL_J1753.7+2847_daily_bin886> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Sat Sep 18 20:45:31 2021
Job was executed on host(s) <bullet0269>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 20:45:33 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:45:33 2021
Terminated at Sat Sep 18 21:01:11 2021
Results reported at Sat Sep 18 21:01:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.7+2847_daily_bin886 268.433 28.7967 468979201 469238401 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 :                                   917.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             344.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   937 sec.
    Turnaround time :                            940 sec.

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

