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


Performing analysis on: 4FGL_J1753.7+2847_daily_bin462
RA = 268.433, Dec = 28.7967
tmin = 359078401, tmax = 359337601
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='268962', job_status='RUN', time_executed='2021-09-18 20:30:39.326055', time_epoch_executed='1632022239.33' WHERE source_name='4FGL J1753.7+2847' and cadence='daily' and bin_id='462'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268962

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268962/ft1_4FGL_J1753.7+2847_daily_bin462.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268962/ft1_4FGL_J1753.7+2847_daily_bin462.fits outfile=/scratch/kocevski/268962/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin462.fits ra=268.433 dec=28.7967 rad=12.0 tmin=359078401.0 tmax=359337601.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.81
user 3.54
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.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/268962/ft1_filteredMKT_4FGL_J1753.7+2847_daily_bin462.fits evtable="EVENTS" outfile="/scratch/kocevski/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.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.51
user 0.30
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.fits" evtable="EVENTS" scfile=/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits sctable="SC_DATA" outfile=/scratch/kocevski/268962/ltcube_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.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/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits
.....................!
real 11.57
user 11.24
sys 0.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits sctable="SC_DATA" expcube=/scratch/kocevski/268962/ltcube_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.fits outfile=/scratch/kocevski/268962/expmap_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.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/268962/ltcube_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.fits
.....................!
real 190.55
user 185.88
sys 4.31

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/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.fits scfile=/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits outfile=/scratch/kocevski/268962/cmap_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.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.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.fits scfile=/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits outfile=/scratch/kocevski/268962/cmap_HighResolution_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.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.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.fits evtable="EVENTS" scfile=/scratch/kocevski/268962/ft2_4FGL_J1753.7+2847_daily_bin462.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/268962/Model_4FGL_J1753.7+2847_daily_bin462.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/268962/ft1_filtered_4FGL_J1753.7+2847_daily_bin462.fits.....................!
real 75.01
user 73.21
sys 1.28

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    29.641       1.0000         .10000E-03   10000.    
     3 'norm      '    5.2262       1.0000         .10000E-03   10000.    
     4 'norm      '    40.300       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .11400E-02   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .65684       1.0000         .10000E-03   10000.    
    12 'norm      '    1.3205       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    5.2827       1.0000         .10000E-03   10000.    
    16 'Prefactor '    7.0710       1.0000         .10000E-03   10000.    
    17 'Prefactor '    18.317       1.0000         .10000E-03   10000.    
    18 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    2.1940       1.0000         .10000E-03   10000.    
    20 'norm      '    28.790       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.0557       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .96829       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=   8708.941     FROM MIGRAD    STATUS=CONVERGED    460 CALLS     2341 TOTAL
                     EDM=   .55E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.975        .37421E-07** at limit **
   2  Prefactor     29.640        49.684        .16497E-05   -.21557E-04
   3  norm          5.2277        4.6770        .23730E-05   -.22084E-03
   4  norm          40.313        41.060       -.36084E-06   -.24898E-04
   5  Prefactor     .10000E-03    267.90        .21245E-04** at limit **
   6  Prefactor     .10000E-03    48.850       -.52839E-06** at limit **
   7  Prefactor     .10000E-03    15.087       -.27675E-06** at limit **
   8  Prefactor     .10000E-03    18.143        .12832E-07** at limit **
   9  Prefactor     .10000E-03    13.689       -.27838E-06** at limit **
  10  Prefactor     .10000E-03    14.898       -.44009E-07** at limit **
  11  Prefactor     .65644        8.6302        .77568E-05    .86720E-04
  12  norm          1.3206        1.1567       -.11804E-07   -.34522E-04
  13  norm          .10000E-03    16.696        .84006E-07** at limit **
  14  Prefactor     .10000E-03    1.6012        .87453E-09** at limit **
  15  norm          5.2837        5.5776       -.21896E-07   -.10542E-04
  16  Prefactor     7.0725        5.1712       -.33884E-07    .26738E-04
  17  Prefactor     18.301        18.960       -.27414E-06    .27485E-04
  18  norm          .10000E-03    15.424        .20278E-07** at limit **
  19  Prefactor     2.1945        6.0047        .13361E-05    .24208E-04
  20  norm          28.790        31.546       -.20414E-06   -.84764E-06
  21  Normalizat    1.0556        .21098        .11708E-05   -.74650E-05
  22  Prefactor     .96831        .86794E-01   -.72108E-08    .17766E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 29.6399
  norm       = 5.22771
  norm       = 40.3126
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.656439
  norm       = 1.32055
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.28368
  Prefactor  = 7.07246
  Prefactor  = 18.3014
  norm       = 0.0001
  Prefactor  = 2.19455
  norm       = 28.7904
  Normalizat = 1.05562
  Prefactor  = 0.968307
 **********
 **   18 **HESSE 
 **********

 FCN=   8708.941     FROM HESSE     STATUS=OK           340 CALLS     2681 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.976        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     29.640        49.690        .73591E-04   -1.4619    
   3  norm          5.2277        4.6730        .17583E-03   -1.5251    
   4  norm          40.313        41.076        .63142E-04   -1.4437    
   5  Prefactor     .10000E-03    267.06        .20674E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    48.889        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.280        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    18.159        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    13.731        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    14.900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .65644        8.6433        .23790E-02   -1.5546    
  12  norm          1.3206        1.1517        .91627E-04   -1.5478    
  13  norm          .10000E-03    16.701        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    1.6095        .11531E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          5.2837        5.5770        .17487E-03   -1.5248    
  16  Prefactor     7.0725        5.1627        .15086E-03   -1.5176    
  17  Prefactor     18.301        18.939        .93583E-04   -1.4852    
  18  norm          .10000E-03    15.503        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     2.1945        6.0112        .13891E-02   -1.5412    
  20  norm          28.790        31.541        .74667E-04   -1.4634    
  21  Normalizat    1.0556        .24836        .36756E-03   -.91190    
  22  Prefactor     .96831        .10287        .15827E-03   -.93794    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.6954e-10
Minuit parameter uncertainties:
  1  3.45305e-06
  2  49.7592
  3  4.67333
  4  41.1049
  5  0.00132413
  6  0.000158119
  7  8.68354e-05
  8  8.58253e-06
  9  4.67362e-05
  10  1.45506e-05
  11  4.76444
  12  1.15174
  13  2.0509e-06
  14  4.19587e-06
  15  5.57757
  16  5.16305
  17  18.9456
  18  2.68529e-06
  19  6.01282
  20  31.559
  21  0.248634
  22  0.102893
Done.

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

Extracting fit parameters...

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

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

EG_v02
   Spectrum: FileFunction
696   Normalization:  1.056e+00  2.486e-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: 4.72e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.65e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/268962/likelihoodResults_359078401_359337601_4FGL_J1753.7+2847_daily_bin462.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) = 8708.94099258
delta logL = -0.000319676204526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8708.94067291
delta logL = -8.81846062839e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10304E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.3670       1.0000          .0000       10.000    
     3 'Normalizat'    1.0556       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .96832       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=   8708.941     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      247 TOTAL
                     EDM=   .47E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10533E-03    12.779        .18142E-01** at limit **
   2  Index         2.2478        7.0191        .50000        .13752E-04
   3  Normalizat    1.0556        .46719E-02    .36756E-03   -.76831E-04
   4  Prefactor     .96831        .19490E-02    .15827E-03   -.20391E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000105326
  Index      = 2.24776
  Normalizat = 1.05562
  Prefactor  = 0.968306
 **********
 **   18 **HESSE 
 **********

 FCN=   8708.941     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10533E-03    94.260        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2478        7.7335        .50000       -.58290    
   3  Normalizat    1.0556        .12763E-01    .14702E-04   -.91190    
   4  Prefactor     .96831        .53244E-02    .31654E-04   -.93794    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.50366e-09
Minuit parameter uncertainties:
  1  0.0448845
  2  388.594
  3  0.0127634
  4  0.00532445
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268962': No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8708.94067252
delta logL = 3.85634848499e-07

Extracting fit parameters...

4FGL J1753.7+2847
   Spectrum: PowerLaw
341    Prefactor:  1.053e-04  4.488e-02  1.000e-04  1.000e+04 ( 1.000e-14)
342        Index:  2.248e+00  3.886e+02  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.683e-01  5.324e-03  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.056e+00  1.276e-02  1.000e-02  1.000e+01 ( 1.000e+00)


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

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-03', job_status='DONE', photon_flux_upper_limit='4.72e-08', time_completed='2021-09-18 20:45:16.343271', job_id='268962', GAL2='0.97', fit_tolerance='1e-08', EG2='1.06', EG='1.06', time_epoch_completed='1632023116.34', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.97', dlogl='3.86e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='462' AND source_name='4FGL J1753.7+2847' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 20:45:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0144>
Subject: Job 268962: <4FGL_J1753.7+2847_daily_bin462> in cluster <slac> Done

Job <4FGL_J1753.7+2847_daily_bin462> was submitted from host <rhel6-64e> by user <kocevski> in cluster <slac> at Sat Sep 18 20:30:20 2021
Job was executed on host(s) <bullet0144>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 20:30:21 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:30:21 2021
Terminated at Sat Sep 18 20:45:17 2021
Results reported at Sat Sep 18 20:45:17 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.7+2847_daily_bin462 268.433 28.7967 359078401 359337601 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 :                                   871.32 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             342.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   895 sec.
    Turnaround time :                            897 sec.

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

