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


Performing analysis on: 4FGL_J1753.6-5014_daily_bin1171
RA = 268.408, Dec = -50.2408
tmin = 542851201, tmax = 543110401
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='231676', job_status='RUN', time_executed='2021-09-18 18:09:13.269689', time_epoch_executed='1632013753.27' WHERE source_name='4FGL J1753.6-5014' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/231676

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/231676/ft1_4FGL_J1753.6-5014_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/231676/ft1_4FGL_J1753.6-5014_daily_bin1171.fits outfile=/scratch/kocevski/231676/ft1_filteredMKT_4FGL_J1753.6-5014_daily_bin1171.fits ra=268.408 dec=-50.2408 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.76
user 0.59
sys 0.15

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.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/231676/ft1_filteredMKT_4FGL_J1753.6-5014_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.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.46
user 0.30
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/231676/ltcube_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.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/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits
.....................!
real 1.87
user 1.52
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/231676/ltcube_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.fits outfile=/scratch/kocevski/231676/expmap_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.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/231676/ltcube_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.fits
.....................!
real 190.85
user 185.14
sys 5.13

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Extended source G337.0-0.1 in ROI with RadialDisk spatial model.
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source FGES J1652.2-4633 in ROI with RadialDisk spatial model.
Extended source FGES J1655.5-4737 in ROI with RadialDisk spatial model.
Extended source RX J1713.7-3946 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RXJ1713_2016_250GeV.fits is the correct path to the extended template.
Extended source FHES J1741.6-3917 in ROI with RadialDisk spatial model.
Extended source HESS J1614-518 in ROI with RadialDisk spatial model.
Extended source HESS J1616-508 in ROI with RadialDisk spatial model.
Extended source FGES J1631.6-4756 in ROI with RadialDisk spatial model.
Extended source FGES J1633.0-4746 in ROI with RadialDisk spatial model.
Extended source HESS J1534-571 in ROI with RadialDisk spatial model.
Extended source MSH 15-56 PWN in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_PWN.fits is the correct path to the extended template.
Extended source MSH 15-56 SNR in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/MSH15-56_SNRmask.fits is the correct path to the extended template.
Extended source FGES J1553.8-5325 in ROI with RadialDisk spatial model.
Extended source FGES J1745.8-3028 in ROI with RadialDisk spatial model.
Added 489 point sources and 15 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1753.6-5014 @ 268.408 -50.2408

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits scfile=/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits outfile=/scratch/kocevski/231676/cmap_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.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.408 yref=-50.2408 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.51
user 0.36
sys 0.13

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits scfile=/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits outfile=/scratch/kocevski/231676/cmap_HighResolution_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.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.408 yref=-50.2408 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.51
user 0.36
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/231676/Model_4FGL_J1753.6-5014_daily_bin1171.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 FGES J1553.8-5325
adding source FGES J1631.6-4756
adding source FGES J1633.0-4746
adding source FGES J1652.2-4633
adding source FGES J1655.5-4737
adding source FGES J1745.8-3028
adding source FHES J1642.1-5428
adding source FHES J1741.6-3917
adding source G337.0-0.1
adding source GAL_V02
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits......................!
real 72.89
user 71.46
sys 1.15

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits', '/scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits', expMap='/scratch/kocevski/231676/expmap_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.fits', expCube='/scratch/kocevski/231676/ltcube_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/231676/Model_4FGL_J1753.6-5014_daily_bin1171.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1753.6-5014'

4FGL J1753.6-5014
   Spectrum: LogParabola
1232         norm:  3.914e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
1233        alpha:  2.403e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1234         beta:  2.614e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1235           Eb:  6.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/231676/ft1_filtered_4FGL_J1753.6-5014_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/231676/ft2_4FGL_J1753.6-5014_daily_bin1171.fits
Exposure map: /scratch/kocevski/231676/expmap_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.fits
Exposure cube: /scratch/kocevski/231676/ltcube_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/231676/Model_4FGL_J1753.6-5014_daily_bin1171.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) = 914.624178467

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    24.099       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35959E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    15.791       1.0000         .10000E-03   10000.    
     7 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10218E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .13186E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    62.295       1.0000         .10000E-03   10000.    
    11 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    109.29       1.0000         .10000E-03   10000.    
    13 'norm      '    2.6622       1.0000         .10000E-03   10000.    
    14 'Prefactor '    137.71       1.0000         .10000E-03   10000.    
    15 'norm      '    7.8200       1.0000         .10000E-03   10000.    
    16 'norm      '    47.712       1.0000         .10000E-03   10000.    
    17 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10367E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10703E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .16248E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .11385E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    .25083E-03   1.0000         .10000E-03   10000.    
    23 'norm      '    .14073E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    .15166E-01   1.0000         .10000E-01   10.000    
    25 'Prefactor '    .80345       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1815E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   914.5864     FROM MIGRAD    STATUS=CONVERGED    552 CALLS     3318 TOTAL
                     EDM=   .14E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     24.100        15.368        .14740E-06   -.58793E-04
   2  Prefactor     .10001E-03    6638.7       -.57015E-05** at limit **
   3  norm          .10000E-03    19.680        .22612E-07** at limit **
   4  Prefactor     .10000E-03    32.153        .49333E-07** at limit **
   5  Prefactor     .10000E-03    46.830        .74983E-06** at limit **
   6  Prefactor     15.999        850.67       -.26820E-04    .88773E-05
   7  norm          .10000E-03    96.953       -.96673E-06** at limit **
   8  Prefactor     .10000E-03    35.514        .17260E-07** at limit **
   9  Prefactor     .10000E-03    169.99        .11452E-05** at limit **
  10  norm          62.203        103.90       -.17004E-05   -.43211E-04
  11  norm          .10001E-03    380.64       -.21833E-05** at limit **
  12  Prefactor     109.38        169.90       -.77692E-06    .13077E-04
  13  norm          2.6694        6.8119        .36807E-06   -.99806E-03
  14  Prefactor     137.85        363.17       -.92016E-05    .82064E-05
  15  norm          7.8637        137.87        .20336E-05   -.25958E-04
  16  norm          47.736        39.901       -.24825E-05   -.43884E-04
  17  norm          .10000E-03    3.8487       -.10300E-06** at limit **
  18  norm          .10000E-03    49.776       -.35948E-07** at limit **
  19  Prefactor     .10000E-03    299.64       -.57812E-06** at limit **
  20  Prefactor     .10018E-03    911.48       -.85375E-05** at limit **
  21  Prefactor     .10000E-03    177.82        .91895E-06** at limit **
  22  Prefactor     .10000E-03    474.97       -.26421E-06** at limit **
  23  norm          .10000E-03    211.26        .51534E-06** at limit **
  24  Normalizat    .10582E-01    1.7444        .10542E-03    .15905E-04
  25  Prefactor     .80389        .12960       -.88372E-05    .15701E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 24.1002
  Prefactor  = 0.000100007
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 15.9987
  norm       = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 62.2028
  norm       = 0.000100008
  Prefactor  = 109.384
  norm       = 2.66945
  Prefactor  = 137.846
  norm       = 7.86368
  norm       = 47.7359
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100176
  Prefactor  = 0.000100003
  Prefactor  = 0.0001
  norm       = 0.000100003
  Normalizat = 0.0105817
  Prefactor  = 0.803889
 **********
 **   18 **HESSE 
 **********

 FCN=   914.5864     FROM HESSE     STATUS=OK           419 CALLS     3737 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     24.100        15.390        .81597E-04   -1.4726    
   2  Prefactor     .10001E-03    6640.1        .19623E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    19.682        .13109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    32.158        .16760E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    46.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     15.999        873.67        .10079E-03   -1.4908    
   7  norm          .10000E-03    96.922        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    35.514        .17616E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    169.96        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          62.203        104.04        .25420E-03   -1.4129    
  11  norm          .10001E-03    380.48        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     109.38        169.94        .19237E-03   -1.3612    
  13  norm          2.6694        6.8175        .58761E-03   -1.5381    
  14  Prefactor     137.85        357.69        .17162E-03   -1.3354    
  15  norm          7.8637        131.67        .14339E-03   -1.5147    
  16  norm          47.736        40.527        .58051E-04   -1.4325    
  17  norm          .10000E-03    3.8646        .57918E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    49.783        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    299.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10018E-03    909.63        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    177.81        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     .10000E-03    474.97        .21464E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  norm          .10000E-03    211.33        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    .10582E-01    6.1144        .50000       -1.5555    
  25  Prefactor     .80389        .15688        .12539E-03   -.99585    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69277e-09
Minuit parameter uncertainties:
  1  15.3922
  2  0.0101637
  3  2.23075e-05
  4  0.000130776
  5  8.2558e-05
  6  240.243
  7  0.000908774
  8  0.000217052
  9  0.00139256
  10  104.35
  11  0.00356411
  12  170.701
  13  6.81949
  14  363.553
  15  64.5233
  16  40.5505
  17  4.60469e-07
  18  2.60406e-05
  19  0.000776201
  20  0.0257203
  21  0.00154014
  22  0.000300423
  23  0.00149177
  24  0.076357
  25  0.156966
Done.

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

Extracting fit parameters...

4FGL J1753.6-5014
   Spectrum: LogParabola
1232         norm:  6.220e+01  1.044e+02  1.000e-04  1.000e+04 ( 1.000e-12)
1233        alpha:  2.403e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
1234         beta:  2.614e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1235           Eb:  6.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1790    Prefactor:  8.039e-01  1.570e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1791        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1792        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1759   Normalization:  1.058e-02  7.636e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.69
Ra Dec: 268.408 -50.241
Photon Flux Upper Limit: 1.37e-06 ph cm-2 s-1
Energy Flux Upper Limit: 4.53e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/231676/likelihoodResults_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.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) = 914.52588788
delta logL = 0.0605047479991

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 914.524209576
delta logL = 0.0621830513865

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    46.478       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9238       1.0000          .0000       5.0000    
     3 'Normalizat'    .10217E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80059       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1815E+06   .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=   914.5242     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      296 TOTAL
                     EDM=   .18E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          46.533        91.070        .58813E-04    .14145E-04
   2  alpha         2.9243        1.4936        .11990E-01    .73409E-05
   3  Normalizat    .10000E-01    9.4796        .20087E-01** at limit **
   4  Prefactor     .80054        .11722        .12549E-03    .25939E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 46.5327
  alpha      = 2.92428
  Normalizat = 0.01
  Prefactor  = 0.800537
 **********
 **   18 **HESSE 
 **********

 FCN=   914.5242     FROM HESSE     STATUS=OK            25 CALLS      321 TOTAL
                     EDM=   .19E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          46.533        86.920        .11763E-04   -1.4343    
   2  alpha         2.9243        1.4343        .47959E-03    .17054    
   3  Normalizat    .10000E-01    9.5033        .40173E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .80054        .11671        .25098E-04   -.99709    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.87704e-10
Minuit parameter uncertainties:
  1  87.1579
  2  1.53097
  3  0.000254399
  4  0.116745
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/231676': 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) = 914.524201827
delta logL = 0.0621908005394

Extracting fit parameters...

4FGL J1753.6-5014
   Spectrum: LogParabola
1232         norm:  4.653e+01  8.716e+01  1.000e-04  1.000e+04 ( 1.000e-12)
1233        alpha:  2.924e+00  1.531e+00  0.000e+00  5.000e+00 ( 1.000e+00)
1234         beta:  2.614e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
1235           Eb:  6.655e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1790    Prefactor:  8.005e-01  1.167e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1791        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1792        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1759   Normalization:  1.000e-02  2.544e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.69
Ra Dec: 268.408 -50.241

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/231676/cmap_HighResolution_542851201_543110401_4FGL_J1753.6-5014_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.53e-04', job_status='DONE', photon_flux_upper_limit='1.37e-06', time_completed='2021-09-18 18:19:52.495862', job_id='231676', GAL2='0.80', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1632014392.5', return_code2='0', ts='0.69', comment='SUCCESS', return_code='0', GAL='0.80', dlogl='6.22e-02', ts2='0.83', photon_index_error='0.00', photon_index='2.40' WHERE bin_id='1171' AND source_name='4FGL J1753.6-5014' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sat Sep 18 18:19:52 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0114>
Subject: Job 231676: <4FGL_J1753.6-5014_daily_bin1171> in cluster <slac> Done

Job <4FGL_J1753.6-5014_daily_bin1171> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sat Sep 18 18:05:14 2021
Job was executed on host(s) <bullet0114>, in queue <medium>, as user <kocevski> in cluster <slac> at Sat Sep 18 18:05:15 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sat Sep 18 18:05:15 2021
Terminated at Sat Sep 18 18:19:53 2021
Results reported at Sat Sep 18 18:19:53 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1753.6-5014_daily_bin1171 268.408 -50.2408 542851201 543110401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1753.6-5014 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   641.49 sec.
    Max Memory :                                 1264 MB
    Average Memory :                             291.28 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            879 sec.

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

