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


Performing analysis on: 4FGL_J0536.4-3401_daily_bin1195
RA = 84.1044, Dec = -34.0168
tmin = 549072001, tmax = 549331201
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='645460', job_status='RUN', time_executed='2021-08-23 11:21:44.615334', time_epoch_executed='1629742904.62' WHERE source_name='4FGL J0536.4-3401' and cadence='daily' and bin_id='1195'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/645460

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/645460/ft1_4FGL_J0536.4-3401_daily_bin1195.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/645460/ft1_4FGL_J0536.4-3401_daily_bin1195.fits outfile=/scratch/kocevski/645460/ft1_filteredMKT_4FGL_J0536.4-3401_daily_bin1195.fits ra=84.1044 dec=-34.0168 rad=12.0 tmin=549072001.0 tmax=549331201.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

Done.
real 3.26
user 2.77
sys 0.44

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.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/645460/ft1_filteredMKT_4FGL_J0536.4-3401_daily_bin1195.fits evtable="EVENTS" outfile="/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.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.81
user 0.38
sys 0.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits" evtable="EVENTS" scfile=/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits sctable="SC_DATA" outfile=/scratch/kocevski/645460/ltcube_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.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/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits
.....................!
real 19.11
user 18.08
sys 0.65

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits sctable="SC_DATA" expcube=/scratch/kocevski/645460/ltcube_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.fits outfile=/scratch/kocevski/645460/expmap_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.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/645460/ltcube_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.fits
.....................!
real 197.18
user 190.40
sys 5.52

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
Added 181 point sources and 0 extended sources

Setting source of interest to:
4FGL J0536.4-3401 @ 84.1044 -34.0168

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits scfile=/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits outfile=/scratch/kocevski/645460/cmap_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.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=84.1044 yref=-34.0168 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.89
user 0.42
sys 0.41

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits scfile=/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits outfile=/scratch/kocevski/645460/cmap_HighResolution_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.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=84.1044 yref=-34.0168 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.84
user 0.41
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits evtable="EVENTS" scfile=/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/645460/Model_4FGL_J0536.4-3401_daily_bin1195.xml irfs="P8R3_SOURCE_V2" evclsmin=0 evclass="INDEF" evtype="INDEF" convert=yes chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

adding source EG_v02
adding source GAL_V02
Working on...
/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits.....................!
real 86.37
user 84.02
sys 1.66

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits', '/scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits', expMap='/scratch/kocevski/645460/expmap_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.fits', expCube='/scratch/kocevski/645460/ltcube_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/645460/Model_4FGL_J0536.4-3401_daily_bin1195.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0536.4-3401'

4FGL J0536.4-3401
   Spectrum: LogParabola
273         norm:  5.394e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.498e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  8.263e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  2.886e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/645460/ft1_filtered_4FGL_J0536.4-3401_daily_bin1195.fits
Spacecraft file(s): /scratch/kocevski/645460/ft2_4FGL_J0536.4-3401_daily_bin1195.fits
Exposure map: /scratch/kocevski/645460/expmap_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.fits
Exposure cube: /scratch/kocevski/645460/ltcube_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/645460/Model_4FGL_J0536.4-3401_daily_bin1195.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) = 8050.28473499

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6955       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    7.1118       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .12040E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    5.1180       1.0000         .10000E-03   10000.    
     6 'norm      '    .10151E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    3.7447       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    13.808       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    2.1176       1.0000         .10000E-03   10000.    
    14 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    10.430       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    7.7861       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10158E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10042E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .17732E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    24 'Normalizat'    1.0069       1.0000         .10000E-01   10.000    
    25 'Prefactor '    1.1985       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8050.231     FROM MIGRAD    STATUS=CONVERGED    586 CALLS     2451 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6969        .93196        .28482E-07   -.12435E-02
   2  Prefactor     .10000E-03    20.012       -.47773E-05** at limit **
   3  Prefactor     7.1089        6.3418       -.51354E-07   -.17228E-04
   4  Prefactor     .10000E-03    62.609       -.19354E-05** at limit **
   5  Prefactor     5.1170        3.6155       -.24211E-08    .32988E-04
   6  norm          .10000E-03    .80734       -.56054E-07** at limit **
   7  Prefactor     .10000E-03    13.156        .42096E-05** at limit **
   8  Prefactor     3.7446        4.3527       -.39627E-07    .44092E-05
   9  Prefactor     .10000E-03    4.4364       -.52745E-07** at limit **
  10  Prefactor     .10000E-03    4.7542       -.46158E-07** at limit **
  11  norm          13.808        5.3250        .65120E-06    .35059E-04
  12  Prefactor     .10000E-03    8.0506       -.42044E-06** at limit **
  13  norm          2.1175        .89623        .96298E-08    .41131E-04
  14  norm          .10000E-03    .48582       -.14407E-07** at limit **
  15  norm          10.430        9.5512       -.48798E-08    .64787E-05
  16  Prefactor     .10000E-03    9.3581        .23047E-05** at limit **
  17  Prefactor     7.7824        16.397        .13271E-06   -.36091E-04
  18  Prefactor     .10000E-03    17.795        .27649E-05** at limit **
  19  Prefactor     .10000E-03    10.868       -.32536E-05** at limit **
  20  Prefactor     .10003E-03    5.5750       -.83460E-06** at limit **
  21  Prefactor     .10000E-03    11.658       -.17773E-05** at limit **
  22  norm          .10000E-03    30.445        .36771E-05** at limit **
  23  Prefactor     .10000E-03    3.2047       -.13525E-09** at limit **
  24  Normalizat    1.0071        .19196       -.37565E-06    .92449E-04
  25  Prefactor     1.1984        .14725        .51982E-07    .85123E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.69692
  Prefactor  = 0.0001
  Prefactor  = 7.10895
  Prefactor  = 0.0001
  Prefactor  = 5.11698
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 3.74464
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.8082
  Prefactor  = 0.0001
  norm       = 2.1175
  norm       = 0.0001
  norm       = 10.4304
  Prefactor  = 0.0001
  Prefactor  = 7.78236
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100028
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.00708
  Prefactor  = 1.19843
 **********
 **   18 **HESSE 
 **********

 FCN=   8050.231     FROM HESSE     STATUS=OK           423 CALLS     2874 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6969        4.1285        .10680E-02   -1.5380    
   2  Prefactor     .10000E-03    20.027        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     7.1089        6.4266        .15042E-03   -1.5175    
   4  Prefactor     .10000E-03    63.384        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     5.1170        3.5830        .13315E-03   -1.5256    
   6  norm          .10000E-03    1.2127        .15452E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.169        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     3.7446        4.3365        .19024E-03   -1.5321    
   9  Prefactor     .10000E-03    4.4454        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    4.7608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          13.808        5.3336        .10779E-03   -1.4965    
  12  Prefactor     .10000E-03    8.0551        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.1175        .89501        .53194E-04   -1.5417    
  14  norm          .10000E-03    .48919        .61048E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          10.430        9.5571        .12407E-03   -1.5062    
  16  Prefactor     .10000E-03    9.3662        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     7.7824        16.479        .71852E-03   -1.5150    
  18  Prefactor     .10000E-03    17.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    10.875        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10003E-03    27.227        .39802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    11.704        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    30.782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    3.2364        .15683E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Normalizat    1.0071        .22896        .30956E-03   -.92794    
  25  Prefactor     1.1984        .17503        .22922E-03   -.86380    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.01137e-09
Minuit parameter uncertainties:
  1  4.1289
  2  2.41015e-06
  3  6.42719
  4  3.07025e-05
  5  3.58315
  6  6.54947e-06
  7  2.09617e-06
  8  4.33683
  9  2.43787e-06
  10  1.89105e-05
  11  5.33381
  12  5.36865e-07
  13  0.895011
  14  3.40095e-07
  15  9.55849
  16  2.10099e-06
  17  16.4889
  18  3.13487e-05
  19  2.96797e-06
  20  0.00176062
  21  1.98447e-06
  22  1.43612e-05
  23  6.11468e-07
  24  0.229188
  25  0.175119
Done.

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

Extracting fit parameters...

4FGL J0536.4-3401
   Spectrum: LogParabola
273         norm:  1.381e+01  5.334e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.498e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
275         beta:  8.263e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  2.886e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.198e+00  1.751e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.007e+00  2.292e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 14.03
Ra Dec: 84.104 -34.017
Photon Index (Fixed Index): 2.50 +/- 0.00
Photon Flux (Fixed Index): 1.24e-07 +/- 4.80e-08
Energy Flux (Fixed Index): 3.21e-05 +/- 1.24e-05

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) = 8050.22440064
delta logL = 0.00613646070269

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8050.22377454
delta logL = 0.00676255907274

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.965       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5501       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0013       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.2015       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5990E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8050.224     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      205 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.965        5.7039        .26796E-02    .41981E-02
   2  alpha         2.5500        .42624        .34344       -.31447E-04
   3  Normalizat    1.0013        .18556        .70147E-01    .21903E-04
   4  Prefactor     1.2015        .14675        .51792E-01    .29651E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.9651
  alpha      = 2.55001
  Normalizat = 1.00131
  Prefactor  = 1.20147
 **********
 **   18 **HESSE 
 **********

 FCN=   8050.224     FROM HESSE     STATUS=OK            31 CALLS      236 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.965        5.4204        .10718E-03   -1.4960    
   2  alpha         2.5500        .44680        .13766E-01    .20007E-01
   3  Normalizat    1.0013        .22323        .31033E-03   -.92986    
   4  Prefactor     1.2015        .17466        .22897E-03   -.86286    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.51302e-09
Minuit parameter uncertainties:
  1  5.42062
  2  0.449214
  3  0.223437
  4  0.174741
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/645460': 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) = 8050.22377453
delta logL = 0.0067625654583

Extracting fit parameters...

4FGL J0536.4-3401
   Spectrum: LogParabola
273         norm:  1.397e+01  5.421e+00  1.000e-04  1.000e+04 ( 1.000e-11)
274        alpha:  2.550e+00  4.492e-01  0.000e+00  5.000e+00 ( 1.000e+00)
275         beta:  8.263e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
276           Eb:  2.886e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
596    Prefactor:  1.201e+00  1.747e-01  0.000e+00  1.000e+01 ( 1.000e+00)
597        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
598        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
595   Normalization:  1.001e+00  2.234e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 14.02
Ra Dec: 84.104 -34.017
Photon Index (Free Index): 2.55 +/- 0.45
Photon Flux (Free Index): 1.28e-07 +/- 5.94e-08
Energy Flux (Free Index): 3.19e-05 +/- 1.23e-05

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/645460/cmap_HighResolution_549072001_549331201_4FGL_J0536.4-3401_daily_bin1195.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.24e-07', energy_flux2='3.19e-05', photon_flux_error='4.80e-08', dlogl='6.76e-03', energy_flux='3.21e-05', photon_flux2='1.28e-07', job_status='DONE', time_completed='2021-08-23 11:33:57.899795', photon_index_error2='0.45', photon_index2='2.55', ts='14.03', fit_tolerance='1e-08', GAL='1.20', photon_index_error='0.00', energy_flux_error2='1.23e-05', EG='1.01', time_epoch_completed='1629743637.9', return_code='0', job_id='645460', GAL2='1.20', EG2='1.00', return_code2='0', energy_flux_error='1.24e-05', photon_flux_error2='5.94e-08', ts2='14.02', photon_index='2.50' WHERE bin_id='1195' AND source_name='4FGL J0536.4-3401' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 11:33:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 645460: <4FGL_J0536.4-3401_daily_bin1195> in cluster <slac> Done

Job <4FGL_J0536.4-3401_daily_bin1195> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Mon Aug 23 11:20:46 2021
Job was executed on host(s) <bullet0041>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 11:20:48 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 11:20:48 2021
Terminated at Mon Aug 23 11:33:58 2021
Results reported at Mon Aug 23 11:33:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0536.4-3401_daily_bin1195 84.1044 -34.0168 549072001 549331201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0536.4-3401 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   733.46 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             342.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

