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


Performing analysis on: 4FGL_J1753.7+2847_daily_bin616
RA = 268.433, Dec = 28.7967
tmin = 398995201, tmax = 399254401
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='270977', job_status='RUN', time_executed='2021-09-18 20:35:32.549657', time_epoch_executed='1632022532.55' WHERE source_name='4FGL J1753.7+2847' and cadence='daily' and bin_id='616'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/270977

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/270977/ft1_4FGL_J1753.7+2847_daily_bin616.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/270977/ft1_4FGL_J1753.7+2847_daily_bin616.fits outfile=/scratch/kocevski/270977/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin616.fits ra=268.433 dec=28.7967 rad=12.0 tmin=398995201.0 tmax=399254401.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 4.31
user 4.05
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/270977/ft1_filtered_4FGL_J1753.7+2847_daily_bin616.fits" evtable="EVENTS" scfile=/scratch/kocevski/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits sctable="SC_DATA" outfile=/scratch/kocevski/270977/ltcube_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.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/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits
.....................!
real 10.03
user 9.72
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/270977/ft1_filtered_4FGL_J1753.7+2847_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits sctable="SC_DATA" expcube=/scratch/kocevski/270977/ltcube_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.fits outfile=/scratch/kocevski/270977/expmap_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.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/270977/ltcube_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.fits
.....................!
real 149.71
user 145.76
sys 3.67

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/270977/ft1_filtered_4FGL_J1753.7+2847_daily_bin616.fits scfile=/scratch/kocevski/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits outfile=/scratch/kocevski/270977/cmap_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.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.46
user 0.32
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/270977/ft1_filtered_4FGL_J1753.7+2847_daily_bin616.fits scfile=/scratch/kocevski/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits outfile=/scratch/kocevski/270977/cmap_HighResolution_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.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.47
user 0.31
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/270977/ft1_filtered_4FGL_J1753.7+2847_daily_bin616.fits evtable="EVENTS" scfile=/scratch/kocevski/270977/ft2_4FGL_J1753.7+2847_daily_bin616.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/270977/Model_4FGL_J1753.7+2847_daily_bin616.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/270977/ft1_filtered_4FGL_J1753.7+2847_daily_bin616.fits....................!
real 98.07
user 96.80
sys 1.05

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10070E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .47152       1.0000         .10000E-03   10000.    
     4 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    68.297       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.2632       1.0000         .10000E-03   10000.    
     9 'Prefactor '    28.984       1.0000         .10000E-03   10000.    
    10 'Prefactor '    126.15       1.0000         .10000E-03   10000.    
    11 'Prefactor '    5.1388       1.0000         .10000E-03   10000.    
    12 'norm      '    .25547       1.0000         .10000E-03   10000.    
    13 'norm      '    .10023E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    1.3075       1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.321       1.0000         .10000E-03   10000.    
    18 'norm      '    35.295       1.0000         .10000E-03   10000.    
    19 'Prefactor '    7.0407       1.0000         .10000E-03   10000.    
    20 'norm      '    27.054       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2719       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .87877       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=   15299.44     FROM MIGRAD    STATUS=CONVERGED    474 CALLS     2396 TOTAL
                     EDM=   .12E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.400        .11844E-05** at limit **
   2  Prefactor     .10000E-03    55.068       -.74066E-05** at limit **
   3  norm          .47237        5.8538        .51250E-05   -.31211E-03
   4  norm          .10000E-03    14.789        .48814E-06** at limit **
   5  Prefactor     68.362        75.841       -.85677E-05   -.95792E-04
   6  Prefactor     .10000E-03    72.508        .43915E-05** at limit **
   7  Prefactor     10.108        10.004       -.12187E-06   -.38403E-04
   8  Prefactor     2.2958        278.64        .29275E-04    .29099E-04
   9  Prefactor     29.020        58.281       -.68670E-05   -.16017E-03
  10  Prefactor     126.05        103.06        .12733E-05   -.60872E-04
  11  Prefactor     5.1366        7.0687       -.17645E-05   -.29573E-03
  12  norm          .25537        1.0108        .27945E-06    .10854E-03
  13  norm          .10000E-03    15.779       -.62936E-06** at limit **
  14  Prefactor     .10000E-03    .95032        .45847E-07** at limit **
  15  norm          .10000E-03    2.1946        .12071E-06** at limit **
  16  Prefactor     1.3072        4.3754        .80007E-06    .30208E-04
  17  Prefactor     10.322        18.332       -.38956E-06   -.95710E-04
  18  norm          35.297        20.775        .67919E-07   -.26671E-04
  19  Prefactor     7.0410        4.6999        .13950E-06   -.32679E-04
  20  norm          27.056        25.102        .83723E-08   -.12990E-04
  21  Normalizat    1.2716        .19108        .26409E-05   -.71617E-03
  22  Prefactor     .87889        .71714E-01   -.17958E-05    .16628E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.47237
  norm       = 0.0001
  Prefactor  = 68.362
  Prefactor  = 0.000100002
  Prefactor  = 10.1084
  Prefactor  = 2.29582
  Prefactor  = 29.02
  Prefactor  = 126.052
  Prefactor  = 5.13662
  norm       = 0.25537
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 1.30721
  Prefactor  = 10.3217
  norm       = 35.2972
  Prefactor  = 7.04104
  norm       = 27.056
  Normalizat = 1.27163
  Prefactor  = 0.878893
 **********
 **   18 **HESSE 
 **********

 FCN=   15299.44     FROM HESSE     STATUS=OK           340 CALLS     2736 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    55.537        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .47237        6.0155        .22308E-02   -1.5571    
   4  norm          .10000E-03    14.794        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     68.362        76.204        .24284E-03   -1.4052    
   6  Prefactor     .10000E-03    72.934        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.108        9.9901        .12604E-03   -1.5072    
   8  Prefactor     2.2958        285.53        .27304E-03   -1.5405    
   9  Prefactor     29.020        58.119        .74417E-04   -1.4630    
  10  Prefactor     126.05        103.01        .17920E-03   -1.3458    
  11  Prefactor     5.1366        7.0942        .17735E-03   -1.5255    
  12  norm          .25537        .98716        .23882E-03   -1.5607    
  13  norm          .10000E-03    15.789        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    .95284        .11774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.2018        .17887E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     1.3072        4.2812        .38585E-03   -1.5479    
  17  Prefactor     10.322        17.880        .62361E-03   -1.5065    
  18  norm          35.297        20.777        .67455E-04   -1.4519    
  19  Prefactor     7.0410        4.6985        .15119E-03   -1.5177    
  20  norm          27.056        25.106        .77021E-04   -1.4667    
  21  Normalizat    1.2716        .20977        .35937E-03   -.84417    
  22  Prefactor     .87889        .77893E-01    .16438E-03   -.96883    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.67537e-09
Minuit parameter uncertainties:
  1  9.41297e-05
  2  0.000680382
  3  3.37145
  4  3.61663e-05
  5  76.3134
  6  0.000782856
  7  9.99174
  8  51.4585
  9  58.2328
  10  103.155
  11  7.09535
  12  0.987227
  13  4.42324e-05
  14  1.16719e-07
  15  6.47526e-06
  16  4.28216
  17  17.8893
  18  20.7817
  19  4.69875
  20  25.1154
  21  0.209906
  22  0.0779031
Done.

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

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  1.261e+02  1.032e+02  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:  8.789e-01  7.790e-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.272e+00  2.099e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.30
Ra Dec: 268.433 28.797
Photon Index (Fixed Index): 2.40 +/- 0.00
Photon Flux (Fixed Index): 7.20e-08 +/- 5.89e-08
Energy Flux (Fixed Index): 2.37e-05 +/- 1.94e-05

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) = 15299.367305
delta logL = 0.0753731654277

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 15299.360027
delta logL = 0.0826511599153

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    103.81       1.0000         .10000E-03   10000.    
     2 'Index     '    2.5816       1.0000          .0000       10.000    
     3 'Normalizat'    1.2532       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88263       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=   15299.36     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      294 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     103.80        90.428        .39464E-04    .23922E-03
   2  Index         2.5816        .52416        .62201E-02    .15864E-03
   3  Normalizat    1.2533        .20442        .36152E-03   -.88469E-03
   4  Prefactor     .88266        .77218E-01    .16404E-03   -.22550E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 103.795
  Index      = 2.58164
  Normalizat = 1.25331
  Prefactor  = 0.882661
 **********
 **   18 **HESSE 
 **********

 FCN=   15299.36     FROM HESSE     STATUS=OK            25 CALLS      319 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     103.80        78.772        .78928E-05   -1.3667    
   2  Index         2.5816        .45547        .24880E-03   -.50485    
   3  Normalizat    1.2533        .20345        .72305E-04   -.84971    
   4  Prefactor     .88266        .77097E-01    .32807E-04   -.96750    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.26225e-09
Minuit parameter uncertainties:
  1  78.8516
  2  0.456297
  3  0.203582
  4  0.0771062
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/270977': 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) = 15299.3600252
delta logL = 0.0826530376416

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  1.038e+02  7.885e+01  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  2.582e+00  4.563e-01  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:  8.827e-01  7.711e-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.253e+00  2.036e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.55
Ra Dec: 268.433 28.797
Photon Index (Free Index): 2.58 +/- 0.46
Photon Flux (Free Index): 8.78e-08 +/- 5.64e-08
Energy Flux (Free Index): 2.34e-05 +/- 1.17e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/270977/cmap_HighResolution_398995201_399254401_4FGL_J1753.7+2847_daily_bin616.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='7.20e-08', energy_flux2='2.34e-05', photon_flux_error='5.89e-08', dlogl='8.27e-02', energy_flux='2.37e-05', photon_flux2='8.78e-08', job_status='DONE', time_completed='2021-09-18 20:50:37.379906', photon_index_error2='0.46', photon_index2='2.58', ts='7.30', fit_tolerance='1e-08', GAL='0.88', photon_index_error='0.00', energy_flux_error2='1.17e-05', EG='1.27', time_epoch_completed='1632023437.38', return_code='0', job_id='270977', GAL2='0.88', EG2='1.25', return_code2='0', energy_flux_error='1.94e-05', photon_flux_error2='5.64e-08', ts2='7.55', photon_index='2.40' WHERE bin_id='616' AND source_name='4FGL J1753.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 20:50:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0071>
Subject: Job 270977: <4FGL_J1753.7+2847_daily_bin616> in cluster <slac> Done

Job <4FGL_J1753.7+2847_daily_bin616> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 20:35:21 2021
Job was executed on host(s) <bullet0071>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 20:35:22 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:35:22 2021
Terminated at Sat Sep 18 20:50:38 2021
Results reported at Sat Sep 18 20:50:38 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.7+2847_daily_bin616 268.433 28.7967 398995201 399254401 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 :                                   900.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             349.06 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   915 sec.
    Turnaround time :                            917 sec.

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

