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


Performing analysis on: 4FGL_J1753.9+2443_daily_bin609
RA = 268.496, Dec = 24.7297
tmin = 397180801, tmax = 397440001
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='286927', job_status='RUN', time_executed='2021-09-18 21:25:36.628389', time_epoch_executed='1632025536.63' WHERE source_name='4FGL J1753.9+2443' and cadence='daily' and bin_id='609'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/286927

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

Retrieving the FT1 file...

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

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

Retrieving 41 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/286927/ft1_4FGL_J1753.9+2443_daily_bin609.fits


Retrieving the FT1 file...

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

Retrieving 41 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/286927/ft1_4FGL_J1753.9+2443_daily_bin609.fits outfile=/scratch/kocevski/286927/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin609.fits ra=268.496 dec=24.7297 rad=12.0 tmin=397180801.0 tmax=397440001.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.94
user 3.70
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.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/286927/ft1_filteredMKT_4FGL_J1753.9+2443_daily_bin609.fits evtable="EVENTS" outfile="/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.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.31
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits" evtable="EVENTS" scfile=/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits sctable="SC_DATA" outfile=/scratch/kocevski/286927/ltcube_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.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/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits
.....................!
real 10.36
user 9.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits sctable="SC_DATA" expcube=/scratch/kocevski/286927/ltcube_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.fits outfile=/scratch/kocevski/286927/expmap_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.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/286927/ltcube_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.fits
.....................!
real 189.24
user 185.00
sys 3.92

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

Setting source of interest to:
4FGL J1753.9+2443 @ 268.496 24.7297

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits scfile=/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits outfile=/scratch/kocevski/286927/cmap_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.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.496 yref=24.7297 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.52
user 0.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits scfile=/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits outfile=/scratch/kocevski/286927/cmap_HighResolution_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.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.496 yref=24.7297 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.53
user 0.38
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits evtable="EVENTS" scfile=/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/286927/Model_4FGL_J1753.9+2443_daily_bin609.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/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits.....................!
real 77.38
user 75.98
sys 1.26

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits', '/scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits', expMap='/scratch/kocevski/286927/expmap_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.fits', expCube='/scratch/kocevski/286927/ltcube_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/286927/Model_4FGL_J1753.9+2443_daily_bin609.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1753.9+2443'

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.323e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.200e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.730e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/286927/ft1_filtered_4FGL_J1753.9+2443_daily_bin609.fits
Spacecraft file(s): /scratch/kocevski/286927/ft2_4FGL_J1753.9+2443_daily_bin609.fits
Exposure map: /scratch/kocevski/286927/expmap_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.fits
Exposure cube: /scratch/kocevski/286927/ltcube_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/286927/Model_4FGL_J1753.9+2443_daily_bin609.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) = 9053.18592049

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    1.7666       1.0000         .10000E-03   10000.    
     3 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    10.908       1.0000         .10000E-03   10000.    
     5 'Prefactor '    7.6163       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10163E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .13482E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    69.647       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.5006       1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    6.4183       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2853       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'Normalizat'    .88976       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0964       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9053.183     FROM MIGRAD    STATUS=CONVERGED    400 CALLS     2013 TOTAL
                     EDM=   .25E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    25.494       -.33290E-07** at limit **
   2  norm          1.7662        2.6863        .24863E-06    .85512E-05
   3  norm          .10000E-03    25.547       -.36954E-07** at limit **
   4  Prefactor     10.969        407.23        .17720E-05    .12808E-04
   5  Prefactor     7.6139        16.401        .66688E-06   -.78348E-06
   6  Prefactor     .10000E-03    58.248       -.32435E-06** at limit **
   7  Prefactor     .10000E-03    70.147       -.33737E-05** at limit **
   8  Prefactor     69.612        102.15       -.14639E-05   -.18746E-04
   9  Prefactor     9.5003        10.286        .19899E-05   -.25411E-04
  10  norm          .10000E-03    .61514       -.11736E-07** at limit **
  11  norm          .10000E-03    21.424        .55174E-07** at limit **
  12  Prefactor     .10000E-03    1.6669       -.10315E-07** at limit **
  13  norm          6.4178        9.4655        .28815E-07    .77454E-05
  14  Prefactor     .10000E-03    9.7051        .12424E-08** at limit **
  15  Prefactor     6.2849        4.4618        .15871E-07    .12158E-04
  16  Prefactor     .10000E-03    24.970       -.24559E-06** at limit **
  17  norm          .10000E-03    26.542       -.29530E-07** at limit **
  18  Prefactor     .10000E-03    17.002       -.10339E-06** at limit **
  19  Normalizat    .88966        .27033       -.19909E-05    .24386E-04
  20  Prefactor     1.0964        .89378E-01    .40229E-06   -.64458E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.76618
  norm       = 0.0001
  Prefactor  = 10.9685
  Prefactor  = 7.61388
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 69.6115
  Prefactor  = 9.50035
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.4178
  Prefactor  = 0.0001
  Prefactor  = 6.28487
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.889661
  Prefactor  = 1.09644
 **********
 **   18 **HESSE 
 **********

 FCN=   9053.183     FROM HESSE     STATUS=OK           287 CALLS     2300 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    25.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7662        2.6680        .18693E-03   -1.5442    
   3  norm          .10000E-03    25.551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     10.969        411.20        .12131E-03   -1.5045    
   5  Prefactor     7.6139        16.337        .14531E-03   -1.5156    
   6  Prefactor     .10000E-03    58.511        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.928        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     69.612        101.98        .48099E-04   -1.4037    
   9  Prefactor     9.5003        10.376        .65008E-03   -1.5091    
  10  norm          .10000E-03    .61644        .72857E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    21.436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    1.6697        .11996E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          6.4178        9.4544        .15842E-03   -1.5201    
  14  Prefactor     .10000E-03    9.7067        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2849        4.4603        .16011E-03   -1.5207    
  16  Prefactor     .10000E-03    25.131        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  norm          .10000E-03    26.654        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    17.590        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .88966        .29912        .47720E-03   -.96824    
  20  Prefactor     1.0964        .99847E-01    .15224E-03   -.89581    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25981e-11
Minuit parameter uncertainties:
  1  1.19996e-05
  2  2.66822
  3  1.69547e-05
  4  135.33
  5  16.3468
  6  0.00028999
  7  0.000170307
  8  102.238
  9  10.3781
  10  1.48331e-07
  11  4.73348e-05
  12  5.99776e-07
  13  9.45658
  14  5.38364e-07
  15  4.46052
  16  3.90501e-07
  17  1.5938e-05
  18  1.63684e-06
  19  0.299683
  20  0.0998637
Done.

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

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  9.500e+00  1.038e+01  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.200e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
323        Scale:  1.730e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  1.096e+00  9.986e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  8.897e-01  2.997e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.12
Ra Dec: 268.496 24.730
Photon Index (Fixed Index): 2.20 +/- 0.00
Photon Flux (Fixed Index): 4.19e-08 +/- 4.57e-08
Energy Flux (Fixed Index): 1.88e-05 +/- 2.06e-05

TS (Fixed Index): 1.12
Ra Dec: 268.496 24.730
Photon Flux Upper Limit: 1.44e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.10e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/286927/likelihoodResults_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.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) = 9053.1697651
delta logL = 0.0129716098163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9053.16205567
delta logL = 0.0206810340351

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.167       1.0000         .10000E-03   10000.    
     2 'Index     '    2.0691       1.0000          .0000       10.000    
     3 'Normalizat'    .89418       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0954       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6950E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9053.162     FROM MIGRAD    STATUS=CONVERGED    101 CALLS      263 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.175        14.756        .59943E-03    .45518E-04
   2  Index         2.0681        .66256        .97969E-02    .45067E-03
   3  Normalizat    .89427        .27557        .47610E-03   -.15282E-05
   4  Prefactor     1.0954        .97369E-01    .15230E-03   -.20901E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.1755
  Index      = 2.06806
  Normalizat = 0.894268
  Prefactor  = 1.0954
 **********
 **   18 **HESSE 
 **********

 FCN=   9053.162     FROM HESSE     STATUS=OK            27 CALLS      290 TOTAL
                     EDM=   .79E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.175        14.058        .11989E-03   -1.5039    
   2  Index         2.0681        .63146        .19594E-02   -.62659    
   3  Normalizat    .89427        .27557        .19044E-04   -.96662    
   4  Prefactor     1.0954        .97384E-01    .60920E-05   -.89614    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.90982e-12
Minuit parameter uncertainties:
  1  14.0619
  2  0.634046
  3  0.276007
  4  0.0973996
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/286927': 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) = 9053.16205424
delta logL = 0.0206824670549

Extracting fit parameters...

4FGL J1753.9+2443
   Spectrum: PowerLaw
321    Prefactor:  1.118e+01  1.406e+01  1.000e-04  1.000e+04 ( 1.000e-13)
322        Index:  2.068e+00  6.340e-01  0.000e+00  1.000e+01 (-1.000e+00)
323        Scale:  1.730e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
692    Prefactor:  1.095e+00  9.740e-02  0.000e+00  1.000e+01 ( 1.000e+00)
693        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
694        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
691   Normalization:  8.943e-01  2.760e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.16
Ra Dec: 268.496 24.730
Photon Index (Free Index): 2.07 +/- 0.63
Photon Flux (Free Index): 3.80e-08 +/- 4.61e-08
Energy Flux (Free Index): 2.24e-05 +/- 3.09e-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/286927/cmap_HighResolution_397180801_397440001_4FGL_J1753.9+2443_daily_bin609.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.10e-02', comment='SUCCESS', photon_flux='4.19e-08', energy_flux2='2.24e-05', photon_flux_error='4.57e-08', dlogl='2.07e-02', energy_flux='1.88e-05', photon_flux2='3.80e-08', job_status='DONE', time_completed='2021-09-18 21:38:52.628593', photon_index_error2='0.63', photon_index2='2.07', ts='1.12', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.44e-07', energy_flux_error2='3.09e-05', EG='0.89', time_epoch_completed='1632026332.63', return_code='0', job_id='286927', GAL2='1.10', EG2='0.89', return_code2='0', energy_flux_error='2.06e-05', photon_flux_error2='4.61e-08', ts2='1.16', photon_index='2.20' WHERE bin_id='609' AND source_name='4FGL J1753.9+2443' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 21:38:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0252>
Subject: Job 286927: <4FGL_J1753.9+2443_daily_bin609> in cluster <slac> Done

Job <4FGL_J1753.9+2443_daily_bin609> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 21:25:25 2021
Job was executed on host(s) <bullet0252>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 21:25:27 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 21:25:27 2021
Terminated at Sat Sep 18 21:38:52 2021
Results reported at Sat Sep 18 21:38:52 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.9+2443_daily_bin609 268.496 24.7297 397180801 397440001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1753.9+2443 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   792.00 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             306.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   805 sec.
    Turnaround time :                            807 sec.

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

