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


Performing analysis on: 4FGL_J1733.6-6054_daily_bin1568
RA = 263.425, Dec = -60.9065
tmin = 645753601, tmax = 646012801
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='902635', job_status='RUN', time_executed='2021-09-17 22:35:54.775644', time_epoch_executed='1631943354.78' WHERE source_name='4FGL J1733.6-6054' and cadence='daily' and bin_id='1568'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/902635

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/902635/ft1_4FGL_J1733.6-6054_daily_bin1568.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/902635/ft1_4FGL_J1733.6-6054_daily_bin1568.fits outfile=/scratch/kocevski/902635/ft1_filteredMKT_4FGL_J1733.6-6054_daily_bin1568.fits ra=263.425 dec=-60.9065 rad=12.0 tmin=645753601.0 tmax=646012801.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 2.33
user 2.12
sys 0.19

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.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/902635/ft1_filteredMKT_4FGL_J1733.6-6054_daily_bin1568.fits evtable="EVENTS" outfile="/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.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.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits" evtable="EVENTS" scfile=/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits sctable="SC_DATA" outfile=/scratch/kocevski/902635/ltcube_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.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/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits
.....................!
real 13.62
user 13.21
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits sctable="SC_DATA" expcube=/scratch/kocevski/902635/ltcube_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.fits outfile=/scratch/kocevski/902635/expmap_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.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/902635/ltcube_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.fits
.....................!
real 190.23
user 184.75
sys 4.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
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Extended source HESS J1507-622 in ROI with RadialDisk spatial model.
Extended source MSH 15-52 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 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 G337.0-0.1 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 RCW 86 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/RCW86.fits is the correct path to the extended template.
Extended source FHES J1501.0-6310 in ROI with RadialGaussian 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.
Added 379 point sources and 18 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 J1733.6-6054 @ 263.425 -60.9065

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits scfile=/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits outfile=/scratch/kocevski/902635/cmap_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.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=263.425 yref=-60.9065 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.40
sys 0.12

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits scfile=/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits outfile=/scratch/kocevski/902635/cmap_HighResolution_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.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=263.425 yref=-60.9065 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits evtable="EVENTS" scfile=/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/902635/Model_4FGL_J1733.6-6054_daily_bin1568.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 FHES J1501.0-6310
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 J1507-622
adding source HESS J1534-571
adding source HESS J1614-518
adding source HESS J1616-508
adding source MSH 15-52
adding source MSH 15-56 PWN
adding source MSH 15-56 SNR
adding source RCW 86
adding source RX J1713.7-3946
Working on...
/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits.....................!
real 52.19
user 50.79
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits', '/scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits', expMap='/scratch/kocevski/902635/expmap_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.fits', expCube='/scratch/kocevski/902635/ltcube_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/902635/Model_4FGL_J1733.6-6054_daily_bin1568.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1733.6-6054'

4FGL J1733.6-6054
   Spectrum: PowerLaw
971    Prefactor:  1.858e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
972        Index:  2.331e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
973        Scale:  1.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/902635/ft1_filtered_4FGL_J1733.6-6054_daily_bin1568.fits
Spacecraft file(s): /scratch/kocevski/902635/ft2_4FGL_J1733.6-6054_daily_bin1568.fits
Exposure map: /scratch/kocevski/902635/expmap_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.fits
Exposure cube: /scratch/kocevski/902635/ltcube_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/902635/Model_4FGL_J1733.6-6054_daily_bin1568.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) = 926.13989727

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    29.235       1.0000         .10000E-03   10000.    
     2 'norm      '   10000.0       1.0000         .10000E-03   10000.    
     3 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    85.835       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10000.       1.0000         .10000E-03   10000.    
     6 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9999.8       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10425E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10090E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .14674E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    38.760       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .38805E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10370E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    17.894       1.0000         .10000E-03   10000.    
    19 'norm      '    1.3971       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10057E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .13698E-03   1.0000         .10000E-03   10000.    
    22 'Prefactor '    126.57       1.0000         .10000E-03   10000.    
    23 'Prefactor '    412.98       1.0000         .10000E-03   10000.    
    24 'norm      '    .83870       1.0000         .10000E-03   10000.    
    25 'Normalizat'    .55981       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57899       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1402E+06   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   904.2493     FROM MIGRAD    STATUS=CONVERGED    584 CALLS     3551 TOTAL
                     EDM=   .18E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          29.242        33.339        .51990E-07   -.19533E-05
   2  norm          10000.        422.13       -.14950E-07** at limit **
   3  norm          .10000E-03    52.243       -.16505E-07** at limit **
   4  Prefactor     85.837        77.302       -.17290E-06   -.82678E-05
   5  Prefactor    10000.0        1225.7        .17754E-05** at limit **
   6  norm          .10000E-03    11.452        .14897E-07** at limit **
   7  norm         10000.0        9983.7        .14010E-04** at limit **
   8  Prefactor     .10000E-03    235.23        .21679E-06** at limit **
   9  Prefactor     .10000E-03    32.647        .15437E-06** at limit **
  10  Prefactor     .10000E-03    142.24       -.86323E-07** at limit **
  11  norm          .10000E-03    194.67        .19204E-06** at limit **
  12  Prefactor     .10000E-03    65.866        .29869E-07** at limit **
  13  Prefactor     .10000E-03    344.32       -.25238E-07** at limit **
  14  norm          .10000E-03    131.48       -.12800E-06** at limit **
  15  Prefactor     38.850        95.529       -.14172E-04   -.54216E-04
  16  Prefactor     .10000E-03    557.58        .40255E-04** at limit **
  17  Prefactor     .10000E-03    336.09        .67291E-09** at limit **
  18  norm          17.883        27.789        .18915E-06   -.84802E-05
  19  norm          1.3982        5.0062        .12420E-06   -.81999E-04
  20  Prefactor     .10000E-03    325.21        .41420E-06** at limit **
  21  Prefactor     .10000E-03    325.24        .37135E-06** at limit **
  22  Prefactor     126.54        222.02       -.22674E-05   -.69773E-05
  23  Prefactor     413.23        627.39       -.99988E-06   -.60526E-05
  24  norm          .83547        35.898        .11674E-05   -.12421E-03
  25  Normalizat    .56077        .98246        .21140E-04   -.46972E-04
  26  Prefactor     .57863        .26194       -.51522E-05   -.48867E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 29.2416
  norm       = 10000
  norm       = 0.0001
  Prefactor  = 85.8373
  Prefactor  = 10000
  norm       = 0.0001
  norm       = 10000
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 38.8501
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 17.8828
  norm       = 1.39815
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 126.541
  Prefactor  = 413.225
  norm       = 0.835471
  Normalizat = 0.560773
  Prefactor  = 0.578635
 **********
 **   18 **HESSE 
 **********

 FCN=   904.2493     FROM HESSE     STATUS=OK           444 CALLS     3995 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          29.242        33.346        .74098E-04   -1.4626    
   2  norm          10000.        422.13        .20708E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    52.243        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     85.837        77.296        .43362E-04   -1.3852    
   5  Prefactor    10000.0        1223.7        .18142E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.453        .99423E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm         10000.0        9985.7        .19834E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    235.19        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    32.655        .16793E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    142.25        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    194.64        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    65.865        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    344.31        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          .10000E-03    131.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     38.850        99.142        .64379E-04   -1.4461    
  16  Prefactor     .10000E-03    598.77        .39064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    336.09        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          17.883        27.845        .94682E-04   -1.4862    
  19  norm          1.3982        4.8767        .11064E-03   -1.5471    
  20  Prefactor     .10000E-03    325.21        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    325.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Prefactor     126.54        220.41        .17891E-03   -1.3453    
  23  Prefactor     413.23        625.16        .10051E-03   -1.1614    
  24  norm          .83547        176.99        .31390E-02   -1.5525    
  25  Normalizat    .56077        1.0246        .56697E-03   -1.0968    
  26  Prefactor     .57863        .28611        .15627E-03   -1.0849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.91667e-10
Minuit parameter uncertainties:
  1  33.3676
  2  2.64451e-05
  3  3.71882e-06
  4  77.3866
  5  0.00625424
  6  2.20123e-06
  7  0.21545
  8  0.000331847
  9  4.82254e-06
  10  4.25499e-05
  11  0.000267466
  12  2.31297e-05
  13  5.43023e-05
  14  0.000150672
  15  99.5665
  16  0.00150826
  17  7.93957e-06
  18  27.8653
  19  4.87808
  20  7.33171e-05
  21  3.45055e-05
  22  221.861
  23  635.921
  24  24.392
  25  1.0627
  26  0.286826
Done.

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

Extracting fit parameters...

4FGL J1733.6-6054
   Spectrum: PowerLaw
971    Prefactor:  1.000e-04  4.823e-06  1.000e-04  1.000e+04 ( 1.000e-13)
972        Index:  2.331e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
973        Scale:  1.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1368    Prefactor:  5.786e-01  2.868e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1369        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1370        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1336   Normalization:  5.608e-01  1.063e+00  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 263.425 -60.907
Photon Flux Upper Limit: 7.02e-07 ph cm-2 s-1
Energy Flux Upper Limit: 5.40e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/902635/likelihoodResults_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.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) = 904.249393285
delta logL = -0.00014233876027

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 904.249250919
delta logL = 2.72643774224e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.2907       1.0000          .0000       10.000    
     3 'Normalizat'    .56090       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .57862       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .1402E+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=   904.2493     FROM MIGRAD    STATUS=CONVERGED     88 CALLS      236 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    50.209        .17131E-02** at limit **
   2  Index         2.2739        6.0711        .50000        .42087E-05
   3  Normalizat    .56078        .87221        .56702E-03    .23308E-04
   4  Prefactor     .57863        .25729        .15628E-03    .15705E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100001
  Index      = 2.27391
  Normalizat = 0.560781
  Prefactor  = 0.578634
 **********
 **   18 **HESSE 
 **********

 FCN=   904.2493     FROM HESSE     STATUS=OK            29 CALLS      265 TOTAL
                     EDM=   .14E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.999        .34262E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.2739        6.1367        .50000       -.57665    
   3  Normalizat    .56078        .87229        .22681E-04   -1.0968    
   4  Prefactor     .57863        .25731        .31255E-04   -1.0849    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37577e-10
Minuit parameter uncertainties:
  1  0.000285295
  2  4.22103
  3  0.8951
  4  0.257836
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/902635': 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) = 904.249250886
delta logL = 5.9770286498e-08

Extracting fit parameters...

4FGL J1733.6-6054
   Spectrum: PowerLaw
971    Prefactor:  1.000e-04  2.853e-04  1.000e-04  1.000e+04 ( 1.000e-13)
972        Index:  2.274e+00  4.221e+00  0.000e+00  1.000e+01 (-1.000e+00)
973        Scale:  1.541e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
1368    Prefactor:  5.786e-01  2.578e-01  0.000e+00  1.000e+01 ( 1.000e+00)
1369        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
1370        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
1336   Normalization:  5.608e-01  8.951e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 263.425 -60.907

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/902635/cmap_HighResolution_645753601_646012801_4FGL_J1733.6-6054_daily_bin1568.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.40e-02', job_status='DONE', photon_flux_upper_limit='7.02e-07', time_completed='2021-09-17 22:45:09.210992', job_id='902635', GAL2='0.58', fit_tolerance='1e-08', EG2='0.56', EG='0.56', time_epoch_completed='1631943909.21', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.58', dlogl='5.98e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1568' AND source_name='4FGL J1733.6-6054' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Sep 17 22:45:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 902635: <4FGL_J1733.6-6054_daily_bin1568> in cluster <slac> Done

Job <4FGL_J1733.6-6054_daily_bin1568> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Sep 17 22:35:17 2021
Job was executed on host(s) <bullet0074>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Sep 17 22:35:19 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Sep 17 22:35:19 2021
Terminated at Fri Sep 17 22:45:09 2021
Results reported at Fri Sep 17 22:45:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1733.6-6054_daily_bin1568 263.425 -60.9065 645753601 646012801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1733.6-6054 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   550.14 sec.
    Max Memory :                                 1100 MB
    Average Memory :                             331.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   590 sec.
    Turnaround time :                            592 sec.

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

