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


Performing analysis on: 4FGL_J0533.0-8446_daily_bin1652
RA = 83.2677, Dec = -84.7783
tmin = 667526401, tmax = 667785601
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='727344', job_status='RUN', time_executed='2022-03-01 03:29:11.877031', time_epoch_executed='1646134151.88' WHERE source_name='4FGL J0533.0-8446' and cadence='daily' and bin_id='1652'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/727344

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/727344/ft1_4FGL_J0533.0-8446_daily_bin1652.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/727344/ft1_4FGL_J0533.0-8446_daily_bin1652.fits outfile=/scratch/kocevski/727344/ft1_filteredMKT_4FGL_J0533.0-8446_daily_bin1652.fits ra=83.2677 dec=-84.7783 rad=12.0 tmin=667526401.0 tmax=667785601.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 4.59
user 4.32
sys 0.22

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.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/727344/ft1_filteredMKT_4FGL_J0533.0-8446_daily_bin1652.fits evtable="EVENTS" outfile="/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.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.54
user 0.32
sys 0.18
Number of photons that survived the gtmktime cut: 1114

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits" evtable="EVENTS" scfile=/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits sctable="SC_DATA" outfile=/scratch/kocevski/727344/ltcube_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.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/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits
.....................!
real 15.56
user 15.17
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits sctable="SC_DATA" expcube=/scratch/kocevski/727344/ltcube_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.fits outfile=/scratch/kocevski/727344/expmap_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.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/727344/ltcube_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.fits
.....................!
real 192.75
user 186.20
sys 5.44

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 SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Added 165 point sources and 5 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 J0533.0-8446 @ 83.2677 -84.7783

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits scfile=/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits outfile=/scratch/kocevski/727344/cmap_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.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=83.2677 yref=-84.7783 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.55
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits scfile=/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits outfile=/scratch/kocevski/727344/cmap_HighResolution_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.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=83.2677 yref=-84.7783 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.56
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits evtable="EVENTS" scfile=/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/727344/Model_4FGL_J0533.0-8446_daily_bin1652.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits.....................!
real 9551.46
user 9519.99
sys 7.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits', '/scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits', expMap='/scratch/kocevski/727344/expmap_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.fits', expCube='/scratch/kocevski/727344/ltcube_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/727344/Model_4FGL_J0533.0-8446_daily_bin1652.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0533.0-8446'

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  2.818e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
173        Scale:  2.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/727344/ft1_filtered_4FGL_J0533.0-8446_daily_bin1652.fits
Spacecraft file(s): /scratch/kocevski/727344/ft2_4FGL_J0533.0-8446_daily_bin1652.fits
Exposure map: /scratch/kocevski/727344/expmap_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.fits
Exposure cube: /scratch/kocevski/727344/ltcube_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/727344/Model_4FGL_J0533.0-8446_daily_bin1652.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) = 11434.8259493

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    9.1492       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .35417E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    6.0945       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10122E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .17158E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11476E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    4.4608       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'norm      '    1.5244       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .15298E-02   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .88131E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.0827       1.0000         .10000E-03   10000.    
    18 'norm      '    3.0233       1.0000         .10000E-03   10000.    
    19 'Prefactor '    15.054       1.0000         .10000E-03   10000.    
    20 'Normalizat'    1.1530       1.0000         .10000E-01   10.000    
    21 'Prefactor '    .95414       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   11434.68     FROM MIGRAD    STATUS=CONVERGED    830 CALLS     2324 TOTAL
                     EDM=   .78E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     9.1506        5.8846        .13250E-03    .22686E-03
   2  Prefactor     .10000E-03    91.185        .42637E-02** at limit **
   3  Prefactor     .10000E-03    2.4669        .16273E-02** at limit **
   4  Prefactor     6.1020        21.740        .16263E-03    .53128E-05
   5  Prefactor     .10000E-03    26.976        .36285E-03** at limit **
   6  Prefactor     .10000E-03    9.5388        .18142E-02** at limit **
   7  norm          .10000E-03    19.005        .18142E-02** at limit **
   8  Prefactor     .10001E-03    12.727        .35094E-02** at limit **
   9  Prefactor     .10000E-03    9.5702        .18142E-02** at limit **
  10  norm          .10000E-03    .98323        .10328E-02** at limit **
  11  Prefactor     .10000E-03    173.00        .36285E-03** at limit **
  12  norm          4.4605        6.1633        .19065E-03   -.22457E-03
  13  Prefactor     .10000E-03    11.466        .18142E-02** at limit **
  14  norm          1.5246        3.1937        .26796E-03   -.20874E-04
  15  Prefactor     .10000E-03    21.496        .27728E-02** at limit **
  16  Prefactor     .10000E-03    19.246        .12649    ** at limit **
  17  Prefactor     1.0770        3.4035        .32972E-03   -.78476E-04
  18  norm          3.0226        4.4630        .11670E-02   -.50386E-04
  19  Prefactor     15.007        33.142        .10323E-03    .24889E-04
  20  Normalizat    1.1528        .22933        .37789E-03   -.23273E-03
  21  Prefactor     .95415        .80836E-01    .14811E-03   -.83692E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 9.15064
  Prefactor  = 0.000100004
  Prefactor  = 0.0001
  Prefactor  = 6.10198
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  norm       = 4.46045
  Prefactor  = 0.0001
  norm       = 1.52464
  Prefactor  = 0.000100001
  Prefactor  = 0.000100003
  Prefactor  = 1.07704
  norm       = 3.02262
  Prefactor  = 15.0065
  Normalizat = 1.15278
  Prefactor  = 0.954146
 **********
 **   18 **HESSE 
 **********

 FCN=   11434.68     FROM HESSE     STATUS=OK           307 CALLS     2631 TOTAL
                     EDM=   .79E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     9.1506        5.8845        .53001E-05   -1.5103    
   2  Prefactor     .10000E-03    91.899        .85273E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    2.4681        .32547E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     6.1020        21.741        .65052E-05   -1.5214    
   5  Prefactor     .10000E-03    26.977        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    9.5390        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    19.007        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    12.892        .70189E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    9.5781        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    .98329        .20655E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    173.02        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          4.4605        6.1635        .76260E-05   -1.5286    
  13  Prefactor     .10000E-03    11.468        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  norm          1.5246        3.1934        .10719E-04   -1.5461    
  15  Prefactor     .10000E-03    21.884        .55456E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    19.119        .12704       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     1.0770        3.4021        .13189E-04   -1.5500    
  18  norm          3.0226        4.4598        .46679E-04   -1.5360    
  19  Prefactor     15.007        33.148        .41292E-05   -1.4933    
  20  Normalizat    1.1528        .22941        .15116E-04   -.88075    
  21  Prefactor     .95415        .80880E-01    .29622E-04   -.94274    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.85518e-10
Minuit parameter uncertainties:
  1  5.88486
  2  0.00114072
  3  1.54661e-05
  4  21.7695
  5  9.60343e-05
  6  6.64502e-05
  7  0.00011687
  8  0.000523412
  9  1.098e-05
  10  3.96156e-07
  11  0.00178411
  12  6.16434
  13  2.23637e-05
  14  3.1938
  15  0.000254656
  16  0.000467767
  17  3.40272
  18  4.46032
  19  33.189
  20  0.229606
  21  0.0808903
Done.

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

Extracting fit parameters...

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  1.000e-04  6.645e-05  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  2.214e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
173        Scale:  2.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.541e-01  8.089e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.153e+00  2.296e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 83.268 -84.778
Photon Flux Upper Limit: 4.12e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.15e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/727344/likelihoodResults_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.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) = 11434.6846897
delta logL = -0.000499282014061

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 11434.6841912
delta logL = -7.01047611074e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11665E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1821       1.0000          .0000       10.000    
     3 'Normalizat'    1.1527       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95417       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5570E+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=   11434.68     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      247 TOTAL
                     EDM=   .84E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10207E-03    69.373        .18142E-02** at limit **
   2  Index         2.1146        5.8428        .50000        .23305E-04
   3  Normalizat    1.1528        .13089E-01    .37789E-03   -.17148E-04
   4  Prefactor     .95415        .47498E-02    .14811E-03   -.13752E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000102068
  Index      = 2.11465
  Normalizat = 1.15278
  Prefactor  = 0.954146
 **********
 **   18 **HESSE 
 **********

 FCN=   11434.68     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      276 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10207E-03    301.38        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1146        6.1739        .50000       -.61514    
   3  Normalizat    1.1528        .28045E-01    .15116E-04   -.88075    
   4  Prefactor     .95415        .10177E-01    .29622E-04   -.94274    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 3.73828e-08
Minuit parameter uncertainties:
  1  0.0501834
  2  434.101
  3  0.0280451
  4  0.0101771
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/727344': 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) = 11434.6841899
delta logL = 5.24045390193e-07

Extracting fit parameters...

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  1.021e-04  5.018e-02  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  2.115e+00  4.341e+02  0.000e+00  1.000e+01 (-1.000e+00)
173        Scale:  2.307e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
536    Prefactor:  9.541e-01  1.018e-02  0.000e+00  1.000e+01 ( 1.000e+00)
537        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
538        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
535   Normalization:  1.153e+00  2.805e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 83.268 -84.778

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/727344/cmap_HighResolution_667526401_667785601_4FGL_J0533.0-8446_daily_bin1652.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.15e-03', job_status='DONE', photon_flux_upper_limit='4.12e-08', time_completed='2022-03-01 06:22:59.924430', job_id='727344', GAL2='0.95', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1646144579.92', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.95', dlogl='5.24e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.21' WHERE bin_id='1652' AND source_name='4FGL J0533.0-8446' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Mar  1 06:22:59 PST 2022

er <slac> at Tue Mar  1 00:07:32 2022
Job was executed on host(s) <bullet0043>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:18:27 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:18:27 2022
Terminated at Tue Mar  1 03:20:07 2022
Results reported at Tue Mar  1 03:20:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0533.0-8446_daily_bin1652 83.2677 -84.7783 667526401 667785601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0533.0-8446 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10787.00 sec.
    Max Memory :                                 1038 MB
    Average Memory :                             594.02 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   10902 sec.
    Turnaround time :                            11555 sec.

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


------------------------------------------------------------
Sender: LSF System <lsf@bullet0113>
Subject: Job 727344: <4FGL_J0533.0-8446_daily_bin1652> in cluster <slac> Done

Job <4FGL_J0533.0-8446_daily_bin1652> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Mar  1 00:06:57 2022
Job was executed on host(s) <bullet0113>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Mar  1 00:12:25 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Mar  1 00:12:25 2022
Terminated at Tue Mar  1 06:23:00 2022
Results reported at Tue Mar  1 06:23:00 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0533.0-8446_daily_bin1652 83.2677 -84.7783 667526401 667785601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0533.0-8446 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   10416.77 sec.
    Max Memory :                                 1295 MB
    Average Memory :                             325.70 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   2941 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   22235 sec.
    Turnaround time :                            22563 sec.

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

