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


Performing analysis on: 4FGL_J1753.7+2847_daily_bin366
RA = 268.433, Dec = 28.7967
tmin = 334195201, tmax = 334454401
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='267452', job_status='RUN', time_executed='2021-09-18 20:25:36.838567', time_epoch_executed='1632021936.84' WHERE source_name='4FGL J1753.7+2847' and cadence='daily' and bin_id='366'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267452

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267452/ft1_4FGL_J1753.7+2847_daily_bin366.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267452/ft2_4FGL_J1753.7+2847_daily_bin366.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267452/ft1_4FGL_J1753.7+2847_daily_bin366.fits outfile=/scratch/kocevski/267452/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin366.fits ra=268.433 dec=28.7967 rad=12.0 tmin=334195201.0 tmax=334454401.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.88
user 3.65
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/267452/ft2_4FGL_J1753.7+2847_daily_bin366.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/267452/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin366.fits evtable="EVENTS" outfile="/scratch/kocevski/267452/ft1_filtered_4FGL_J1753.7+2847_daily_bin366.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267452/ft1_filtered_4FGL_J1753.7+2847_daily_bin366.fits" evtable="EVENTS" scfile=/scratch/kocevski/267452/ft2_4FGL_J1753.7+2847_daily_bin366.fits sctable="SC_DATA" outfile=/scratch/kocevski/267452/ltcube_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.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/267452/ft2_4FGL_J1753.7+2847_daily_bin366.fits
.....................!
real 11.84
user 11.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267452/ft1_filtered_4FGL_J1753.7+2847_daily_bin366.fits evtable="EVENTS" scfile=/scratch/kocevski/267452/ft2_4FGL_J1753.7+2847_daily_bin366.fits sctable="SC_DATA" expcube=/scratch/kocevski/267452/ltcube_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.fits outfile=/scratch/kocevski/267452/expmap_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.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/267452/ltcube_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.fits
.....................!
real 189.95
user 185.59
sys 4.03

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/267452/ft1_filtered_4FGL_J1753.7+2847_daily_bin366.fits scfile=/scratch/kocevski/267452/ft2_4FGL_J1753.7+2847_daily_bin366.fits outfile=/scratch/kocevski/267452/cmap_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267452/ft1_filtered_4FGL_J1753.7+2847_daily_bin366.fits scfile=/scratch/kocevski/267452/ft2_4FGL_J1753.7+2847_daily_bin366.fits outfile=/scratch/kocevski/267452/cmap_HighResolution_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    23.666       1.0000         .10000E-03   10000.    
     3 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    24.301       1.0000         .10000E-03   10000.    
     8 'Prefactor '    20.976       1.0000         .10000E-03   10000.    
     9 'Prefactor '    18.971       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .12216E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .95532E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    3.5958       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    2.0904       1.0000         .10000E-03   10000.    
    15 'norm      '    1.9075       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10131E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.288       1.0000         .10000E-03   10000.    
    18 'norm      '    19.080       1.0000         .10000E-03   10000.    
    19 'Prefactor '    9.5106       1.0000         .10000E-03   10000.    
    20 'norm      '    8.7025       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .60964       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0749       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=   8856.318     FROM MIGRAD    STATUS=CONVERGED    483 CALLS     2374 TOTAL
                     EDM=   .79E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.619       -.97054E-08** at limit **
   2  Prefactor     23.667        38.596        .65306E-06    .38617E-04
   3  norm          .10000E-03    2.1759        .37538E-07** at limit **
   4  norm          .10000E-03    26.467        .61906E-07** at limit **
   5  Prefactor     .10006E-03    95.525       -.16566E-05** at limit **
   6  Prefactor     .10000E-03    33.302       -.30587E-06** at limit **
   7  Prefactor     24.298        17.727       -.34777E-06   -.10212E-03
   8  Prefactor     20.984        39.575       -.27987E-06   -.44910E-04
   9  Prefactor     18.984        36.070       -.31703E-05   -.24485E-03
  10  Prefactor     .10003E-03    141.98        .53824E-05** at limit **
  11  Prefactor     .10001E-03    4.2377        .11808E-05** at limit **
  12  norm          3.5958        2.3246       -.38005E-07   -.26151E-03
  13  norm          .10001E-03    44.083        .54162E-06** at limit **
  14  Prefactor     2.0901        5.0651        .80071E-05   -.52041E-04
  15  norm          1.9060        8.6154        .45748E-06   -.30883E-04
  16  Prefactor     .10000E-03    2.7107       -.55356E-06** at limit **
  17  Prefactor     20.287        18.554       -.27220E-06   -.95358E-04
  18  norm          19.080        19.769       -.27246E-07   -.14858E-04
  19  Prefactor     9.5091        9.9584        .40189E-07   -.14972E-03
  20  norm          8.7006        76.791        .13167E-06   -.12205E-04
  21  Normalizat    .60964        .23202       -.19356E-05   -.14666E-03
  22  Prefactor     1.0749        .93151E-01    .81382E-08   -.37764E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 23.6669
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.00010006
  Prefactor  = 0.000100002
  Prefactor  = 24.2983
  Prefactor  = 20.9843
  Prefactor  = 18.9837
  Prefactor  = 0.000100033
  Prefactor  = 0.000100013
  norm       = 3.59583
  norm       = 0.000100007
  Prefactor  = 2.09011
  norm       = 1.90599
  Prefactor  = 0.0001
  Prefactor  = 20.2873
  norm       = 19.0798
  Prefactor  = 9.50914
  norm       = 8.70056
  Normalizat = 0.60964
  Prefactor  = 1.07493
 **********
 **   18 **HESSE 
 **********

 FCN=   8856.318     FROM HESSE     STATUS=OK           348 CALLS     2722 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     23.667        38.583        .82339E-04   -1.4735    
   3  norm          .10000E-03    2.1867        .13552E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    26.474        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10006E-03    96.647        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    33.341        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     24.298        17.709        .81259E-04   -1.4722    
   8  Prefactor     20.984        39.495        .87454E-04   -1.4791    
   9  Prefactor     18.984        36.352        .91955E-04   -1.4836    
  10  Prefactor     .10003E-03    144.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10001E-03    43.410        .36805E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          3.5958        2.3215        .11038E-03   -1.5329    
  13  norm          .10001E-03    44.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     2.0901        5.0736        .14277E-02   -1.5419    
  15  norm          1.9060        8.5833        .30104E-03   -1.5432    
  16  Prefactor     .10000E-03    7.2903        .29687E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.287        18.335        .88924E-04   -1.4807    
  18  norm          19.080        19.770        .91694E-04   -1.4834    
  19  Prefactor     9.5091        9.9376        .12995E-03   -1.5091    
  20  norm          8.7006        76.848        .13588E-03   -1.5118    
  21  Normalizat    .60964        .25158        .47352E-03   -1.0758    
  22  Prefactor     1.0749        .10269        .15096E-03   -.90272    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.64246e-09
Minuit parameter uncertainties:
  1  3.04033e-08
  2  38.6236
  3  1.88128e-06
  4  8.91954e-05
  5  0.00481953
  6  0.000531701
  7  17.7131
  8  39.5441
  9  36.3946
  10  0.00437123
  11  0.0014983
  12  2.32157
  13  0.00107634
  14  5.07464
  15  8.09113
  16  6.5825e-05
  17  18.3398
  18  19.7763
  19  9.93931
  20  51.8043
  21  0.252058
  22  0.102706
Done.

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

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  1.000e-04  4.371e-03  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:  1.075e+00  1.027e-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:  6.096e-01  2.521e-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: 1.04e-07 ph cm-2 s-1
Energy Flux Upper Limit: 8.04e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/267452/likelihoodResults_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.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) = 8856.31846603
delta logL = -3.28817895934e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8856.31841429
delta logL = 1.88578615052e-05

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .19423E-02   1.0000         .10000E-03   10000.    
     2 'Index     '    3.1018       1.0000          .0000       10.000    
     3 'Normalizat'    .60964       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0749       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8856.292     FROM MIGRAD    STATUS=CONVERGED    130 CALLS      315 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.4091        2029.0        .20255E-02   -.72124E-04
   2  Index         3.4184        8.2145        .11554E-01   -.15712E-04
   3  Normalizat    .59702        .16540        .47811E-03    .18381E-03
   4  Prefactor     1.0770        .67919E-01    .15081E-03    .46568E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.40915
  Index      = 3.4184
  Normalizat = 0.597025
  Prefactor  = 1.07702
 **********
 **   18 **HESSE 
 **********

 FCN=   8856.292     FROM HESSE     STATUS=OK            27 CALLS      342 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.4091        43.116        .81020E-04   -1.5398    
   2  Index         3.4184        2.8781        .46217E-03   -.32185    
   3  Normalizat    .59702        .24591        .19124E-04   -1.0811    
   4  Prefactor     1.0770        .10078        .30163E-04   -.90204    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19616e-10
Minuit parameter uncertainties:
  1  20.4003
  2  3.09256
  3  0.246359
  4  0.100796
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267452': 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) = 8856.29207612
delta logL = 0.0263570294155

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  2.409e+00  2.040e+01  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  3.418e+00  3.093e+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:  1.077e+00  1.008e-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:  5.970e-01  2.464e-01  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/267452/cmap_HighResolution_334195201_334454401_4FGL_J1753.7+2847_daily_bin366.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='8.04e-03', job_status='DONE', photon_flux_upper_limit='1.04e-07', time_completed='2021-09-18 20:40:14.165081', job_id='267452', GAL2='1.08', fit_tolerance='1e-08', EG2='0.60', EG='0.61', time_epoch_completed='1632022814.17', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.07', dlogl='2.64e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='366' AND source_name='4FGL J1753.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 20:40:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 267452: <4FGL_J1753.7+2847_daily_bin366> in cluster <slac> Done

Job <4FGL_J1753.7+2847_daily_bin366> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Sat Sep 18 20:25:21 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 20:25:23 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:23 2021
Terminated at Sat Sep 18 20:40:14 2021
Results reported at Sat Sep 18 20:40:14 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.7+2847_daily_bin366 268.433 28.7967 334195201 334454401 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 :                                   873.13 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             303.79 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   891 sec.
    Turnaround time :                            893 sec.

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

