/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 16 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_J0533.0-8446_daily_bin1171
RA = 83.2677, Dec = -84.7783
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='528447', job_status='RUN', time_executed='2021-08-23 04:41:07.684960', time_epoch_executed='1629718867.68' WHERE source_name='4FGL J0533.0-8446' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/528447

Creating custom pfile directory:
/scratch/kocevski/528447/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/528447/ft1_4FGL_J0533.0-8446_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/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/528447/ft1_4FGL_J0533.0-8446_daily_bin1171.fits outfile=/scratch/kocevski/528447/ft1_filteredMKT_4FGL_J0533.0-8446_daily_bin1171.fits ra=83.2677 dec=-84.7783 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 2.17
user 0.60
sys 1.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_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/528447/ft1_filteredMKT_4FGL_J0533.0-8446_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/528447/ft1_filtered_4FGL_J0533.0-8446_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 1.83
user 0.33
sys 1.48

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/528447/ltcube_542851201_543110401_4FGL_J0533.0-8446_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/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits
.....................!
real 3.40
user 1.58
sys 1.70

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/528447/ltcube_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.fits outfile=/scratch/kocevski/528447/expmap_542851201_543110401_4FGL_J0533.0-8446_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/528447/ltcube_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.fits
.....................!
real 193.49
user 185.92
sys 6.05

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/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits scfile=/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits outfile=/scratch/kocevski/528447/cmap_542851201_543110401_4FGL_J0533.0-8446_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=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 1.93
user 0.37
sys 1.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits scfile=/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits outfile=/scratch/kocevski/528447/cmap_HighResolution_542851201_543110401_4FGL_J0533.0-8446_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=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 1.84
user 0.40
sys 1.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/528447/Model_4FGL_J0533.0-8446_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 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/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits...........................!
real 248.60
user 243.81
sys 2.90

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits', '/scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits', expMap='/scratch/kocevski/528447/expmap_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.fits', expCube='/scratch/kocevski/528447/ltcube_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/528447/Model_4FGL_J0533.0-8446_daily_bin1171.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/528447/ft1_filtered_4FGL_J0533.0-8446_daily_bin1171.fits
Spacecraft file(s): /scratch/kocevski/528447/ft2_4FGL_J0533.0-8446_daily_bin1171.fits
Exposure map: /scratch/kocevski/528447/expmap_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.fits
Exposure cube: /scratch/kocevski/528447/ltcube_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/528447/Model_4FGL_J0533.0-8446_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) = 267.712787448

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    99.435       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    49.222       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10957E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    581.76       1.0000         .10000E-03   10000.    
     7 'norm      '    526.05       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    78.458       1.0000         .10000E-03   10000.    
    10 'norm      '    .10043E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .13788E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    580.69       1.0000         .10000E-03   10000.    
    14 'norm      '    .10042E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.075       1.0000         .10000E-03   10000.    
    18 'norm      '    35.268       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10379E-03   1.0000         .10000E-03   10000.    
    20 'Normalizat'    .10088E-01   1.0000         .10000E-01   10.000    
    21 'Prefactor '    .86706       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.

 FCN=   267.7031     FROM MIGRAD    STATUS=CONVERGED    424 CALLS     2158 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 11.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     99.458        67.081        .45791E-06   -.15104E-04
   2  Prefactor     .10000E-03    129.71       -.10631E-05** at limit **
   3  Prefactor     .10000E-03    20.694        .51197E-06** at limit **
   4  Prefactor     49.545        201.52        .24397E-04    .31860E-04
   5  Prefactor     .10000E-03    203.36       -.11215E-05** at limit **
   6  Prefactor     582.03        561.02        .40166E-05    .15142E-04
   7  norm          525.72        671.21        .29683E-05   -.56201E-05
   8  Prefactor     .10001E-03    102.06       -.17742E-05** at limit **
   9  Prefactor     78.487        147.76        .38928E-05    .23924E-04
  10  norm          .10000E-03    42.089       -.86862E-06** at limit **
  11  Prefactor     .10048E-03    898.14        .31200E-04** at limit **
  12  norm          .10000E-03    170.55       -.24420E-05** at limit **
  13  Prefactor     581.02        419.28        .55900E-05   -.62028E-05
  14  norm          .10000E-03    31.928       -.61097E-06** at limit **
  15  Prefactor     .10000E-03    24.130        .10729E-06** at limit **
  16  Prefactor     .10000E-03    227.94        .23260E-05** at limit **
  17  Prefactor     15.085        27.410        .21359E-05    .13478E-03
  18  norm          35.288        39.631        .25853E-05    .14081E-03
  19  Prefactor     .10000E-03    162.03       -.23371E-05** at limit **
  20  Normalizat    .10000E-01    6.5018        .19902E-03** at limit **
  21  Prefactor     .86764        .32018       -.16094E-06   -.26115E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 99.4579
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 49.5453
  Prefactor  = 0.000100001
  Prefactor  = 582.029
  norm       = 525.723
  Prefactor  = 0.000100007
  Prefactor  = 78.4867
  norm       = 0.000100001
  Prefactor  = 0.000100477
  norm       = 0.000100004
  Prefactor  = 581.019
  norm       = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.000100004
  Prefactor  = 15.0854
  norm       = 35.2877
  Prefactor  = 0.000100003
  Normalizat = 0.01
  Prefactor  = 0.867639
 **********
 **   18 **HESSE 
 **********

 FCN=   267.7031     FROM HESSE     STATUS=OK           301 CALLS     2459 TOTAL
                     EDM=   .27E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     99.458        67.079        .20157E-03   -1.3710    
   2  Prefactor     .10000E-03    129.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    20.697        .72788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     49.545        204.53        .28579E-03   -1.4299    
   5  Prefactor     .10000E-03    203.41        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     582.03        561.90        .85442E-04   -1.0835    
   7  norm          525.72        670.68        .89588E-04   -1.1081    
   8  Prefactor     .10001E-03    102.17        .16184E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     78.487        148.22        .45338E-04   -1.3934    
  10  norm          .10000E-03    42.124        .10386E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10048E-03    916.92        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    170.71        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     581.02        420.23        .85516E-04   -1.0839    
  14  norm          .10000E-03    31.948        .90434E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    24.129        .78591E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    228.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.085        27.539        .10316E-03   -1.4931    
  18  norm          35.288        39.843        .67481E-04   -1.4519    
  19  Prefactor     .10000E-03    162.17        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Normalizat    .10000E-01    6.5185        .11960E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .86764        .33123        .15993E-03   -.97281    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69638e-09
Minuit parameter uncertainties:
  1  67.13
  2  0.000579546
  3  0.000128191
  4  202.535
  5  0.000965297
  6  567.439
  7  681.211
  8  0.00165073
  9  148.928
  10  0.000376823
  11  0.0424834
  12  0.00160885
  13  422.523
  14  0.00025395
  15  1.81883e-05
  16  0.00185572
  17  27.562
  18  39.8729
  19  0.00144778
  20  0.000118682
  21  0.332003
Done.

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

Extracting fit parameters...

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  5.820e+02  5.674e+02  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:  8.676e-01  3.320e-01  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.000e-02  1.187e-04  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.88
Ra Dec: 83.268 -84.778
Photon Index (Fixed Index): 2.21 +/- 0.00
Photon Flux (Fixed Index): 4.99e-07 +/- 4.86e-07
Energy Flux (Fixed Index): 2.19e-04 +/- 2.13e-04

TS (Fixed Index): 3.88
Ra Dec: 83.268 -84.778
Photon Flux Upper Limit: 1.89e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.44e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/528447/likelihoodResults_542851201_543110401_4FGL_J0533.0-8446_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) = 267.700730907
delta logL = 0.00236389410611

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 267.694401946
delta logL = 0.00869285490194

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    472.56       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3256       1.0000          .0000       10.000    
     3 'Normalizat'    .10003E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86554       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=   267.6944     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      244 TOTAL
                     EDM=   .66E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     472.46        889.77        .94257E-04    .11625E-03
   2  Index         2.3257        .86564        .15705E-03    .24500E-03
   3  Normalizat    .10000E-01    6.4453        .11805E-01** at limit **
   4  Prefactor     .86556        .28625        .15995E-03    .14286E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 472.464
  Index      = 2.32567
  Normalizat = 0.01
  Prefactor  = 0.865565
 **********
 **   18 **HESSE 
 **********

 FCN=   267.6944     FROM HESSE     STATUS=OK            23 CALLS      267 TOTAL
                     EDM=   .65E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     472.46        886.59        .18851E-04   -1.1326    
   2  Index         2.3257        .86237        .31410E-04   -.56435    
   3  Normalizat    .10000E-01    6.4463        .23610E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .86556        .28610        .31990E-04   -.97355    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.5456e-10
Minuit parameter uncertainties:
  1  914.655
  2  0.868471
  3  2.06678e-05
  4  0.286591
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/528447': 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) = 267.69440147
delta logL = 0.00869333147972

Extracting fit parameters...

4FGL J0533.0-8446
   Spectrum: PowerLaw
171    Prefactor:  4.725e+02  9.147e+02  1.000e-04  1.000e+04 ( 1.000e-14)
172        Index:  2.326e+00  8.685e-01  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:  8.656e-01  2.866e-01  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.000e-02  2.067e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.83
Ra Dec: 83.268 -84.778
Photon Index (Free Index): 2.33 +/- 0.87
Photon Flux (Free Index): 5.27e-07 +/- 5.43e-07
Energy Flux (Free Index): 1.92e-04 +/- 2.54e-04

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/528447/cmap_HighResolution_542851201_543110401_4FGL_J0533.0-8446_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.44e-01', comment='SUCCESS', photon_flux='4.99e-07', energy_flux2='1.92e-04', photon_flux_error='4.86e-07', dlogl='8.69e-03', energy_flux='2.19e-04', photon_flux2='5.27e-07', job_status='DONE', time_completed='2021-08-23 04:50:43.042097', photon_index_error2='0.87', photon_index2='2.33', ts='3.88', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.89e-06', energy_flux_error2='2.54e-04', EG='0.01', time_epoch_completed='1629719443.04', return_code='0', job_id='528447', GAL2='0.87', EG2='0.01', return_code2='0', energy_flux_error='2.13e-04', photon_flux_error2='5.43e-07', ts2='3.83', photon_index='2.21' WHERE bin_id='1171' AND source_name='4FGL J0533.0-8446' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 04:50:43 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0139>
Subject: Job 528447: <4FGL_J0533.0-8446_daily_bin1171> in cluster <slac> Done

Job <4FGL_J0533.0-8446_daily_bin1171> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Mon Aug 23 04:40:20 2021
Job was executed on host(s) <bullet0139>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 04:40:21 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 04:40:21 2021
Terminated at Mon Aug 23 04:50:43 2021
Results reported at Mon Aug 23 04:50:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0533.0-8446_daily_bin1171 83.2677 -84.7783 542851201 543110401 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 :                                   595.79 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             513.63 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   622 sec.
    Turnaround time :                            623 sec.

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

