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


Performing analysis on: 4FGL_J0538.2-3910_daily_bin1424
RA = 84.5746, Dec = -39.1696
tmin = 608428801, tmax = 608688001
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='675728', job_status='RUN', time_executed='2021-08-23 12:46:58.738718', time_epoch_executed='1629748018.74' WHERE source_name='4FGL J0538.2-3910' and cadence='daily' and bin_id='1424'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/675728

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/675728/ft1_4FGL_J0538.2-3910_daily_bin1424.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/675728/ft1_4FGL_J0538.2-3910_daily_bin1424.fits outfile=/scratch/kocevski/675728/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1424.fits ra=84.5746 dec=-39.1696 rad=12.0 tmin=608428801.0 tmax=608688001.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 5.84
user 4.70
sys 1.10

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.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/675728/ft1_filteredMKT_4FGL_J0538.2-3910_daily_bin1424.fits evtable="EVENTS" outfile="/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.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.41
user 0.32
sys 1.05

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits" evtable="EVENTS" scfile=/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits sctable="SC_DATA" outfile=/scratch/kocevski/675728/ltcube_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.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/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits
.....................!
real 13.14
user 11.75
sys 1.29

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits sctable="SC_DATA" expcube=/scratch/kocevski/675728/ltcube_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.fits outfile=/scratch/kocevski/675728/expmap_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.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/675728/ltcube_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.fits
.....................!
real 192.81
user 186.30
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
Added 194 point sources and 0 extended sources

Setting source of interest to:
4FGL J0538.2-3910 @ 84.5746 -39.1696

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits scfile=/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits outfile=/scratch/kocevski/675728/cmap_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.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.5746 yref=-39.1696 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.54
user 0.37
sys 1.05

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits scfile=/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits outfile=/scratch/kocevski/675728/cmap_HighResolution_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.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.5746 yref=-39.1696 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.44
user 0.37
sys 1.06

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits evtable="EVENTS" scfile=/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/675728/Model_4FGL_J0538.2-3910_daily_bin1424.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/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits.....................!
real 59.13
user 56.31
sys 2.37

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits', '/scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits', expMap='/scratch/kocevski/675728/expmap_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.fits', expCube='/scratch/kocevski/675728/ltcube_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/675728/Model_4FGL_J0538.2-3910_daily_bin1424.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0538.2-3910'

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.828e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/675728/ft1_filtered_4FGL_J0538.2-3910_daily_bin1424.fits
Spacecraft file(s): /scratch/kocevski/675728/ft2_4FGL_J0538.2-3910_daily_bin1424.fits
Exposure map: /scratch/kocevski/675728/expmap_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.fits
Exposure cube: /scratch/kocevski/675728/ltcube_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/675728/Model_4FGL_J0538.2-3910_daily_bin1424.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) = 4963.81297549

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    37.720       1.0000         .10000E-03   10000.    
     2 'norm      '    5.4345       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    5.8460       1.0000         .10000E-03   10000.    
     5 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10276E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    14.485       1.0000         .10000E-03   10000.    
    10 'Prefactor '    2.3178       1.0000         .10000E-03   10000.    
    11 'norm      '    5.9980       1.0000         .10000E-03   10000.    
    12 'Prefactor '    35.506       1.0000         .10000E-03   10000.    
    13 'norm      '    57.885       1.0000         .10000E-03   10000.    
    14 'norm      '    3.3265       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    19.222       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    2.3429       1.0000         .10000E-03   10000.    
    21 'norm      '    2.6573       1.0000         .10000E-03   10000.    
    22 'norm      '    4.8099       1.0000         .10000E-03   10000.    
    23 'Prefactor '    66.975       1.0000         .10000E-03   10000.    
    24 'Prefactor '    11.892       1.0000         .10000E-03   10000.    
    25 'Prefactor '    .10848E-03   1.0000         .10000E-03   10000.    
    26 'Prefactor '    21.092       1.0000         .10000E-03   10000.    
    27 'norm      '    .10031E-03   1.0000         .10000E-03   10000.    
    28 'Prefactor '    .10724E-03   1.0000         .10000E-03   10000.    
    29 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    30 'Normalizat'    1.4603       1.0000         .10000E-01   10.000    
    31 'Prefactor '    .55179       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4963.599     FROM MIGRAD    STATUS=CONVERGED    837 CALLS     5036 TOTAL
                     EDM=   .41E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          37.718        20.813       -.29230E-07    .15479E-05
   2  norm          5.4344        2.5492       -.11849E-07    .37148E-05
   3  Prefactor     .10000E-03    3.6752        .56984E-08** at limit **
   4  Prefactor     5.8445        19.987        .20906E-06    .16070E-05
   5  norm          .10000E-03    4.9485       -.46972E-07** at limit **
   6  Prefactor     .10000E-03    50.648        .14452E-06** at limit **
   7  Prefactor     .10000E-03    11.389        .10723E-06** at limit **
   8  Prefactor     .10000E-03    103.84       -.12782E-05** at limit **
   9  Prefactor     14.485        4.7754       -.21138E-07   -.56706E-04
  10  Prefactor     2.3176        4.9295        .44825E-06    .42618E-05
  11  norm          5.9976        3.5788       -.94197E-07   -.11456E-04
  12  Prefactor     35.476        55.759       -.24869E-06   -.12901E-04
  13  norm          57.885        11.140       -.23065E-07   -.14627E-05
  14  norm          3.3266        4.4912        .96403E-07    .73538E-05
  15  Prefactor     .10000E-03    2.5255       -.17127E-07** at limit **
  16  Prefactor     .10000E-03    18.018        .41302E-07** at limit **
  17  Prefactor     .10000E-03    12.576        .18364E-07** at limit **
  18  norm          19.222        8.7703       -.65936E-08    .63932E-06
  19  Prefactor     .10000E-03    15.521       -.21782E-08** at limit **
  20  norm          2.3428        1.5664       -.31268E-07   -.36928E-04
  21  norm          2.6573        3.1886        .89221E-07    .12802E-04
  22  norm          4.8101        10.169        .38282E-05    .19914E-04
  23  Prefactor     66.924        56.834       -.26767E-05   -.14325E-04
  24  Prefactor     11.891        18.446       -.33489E-06   -.36195E-05
  25  Prefactor     .10000E-03    520.39       -.88889E-05** at limit **
  26  Prefactor     21.092        21.002        .12937E-05   -.24754E-05
  27  norm          .10000E-03    31.351       -.15604E-06** at limit **
  28  Prefactor     .10001E-03    135.76        .58938E-05** at limit **
  29  Prefactor     .10000E-03    2.3808       -.84805E-08** at limit **
  30  Normalizat    1.4604        .27771        .51655E-06   -.26572E-04
  31  Prefactor     .55173        .18110       -.84831E-06    .73927E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 37.7184
  norm       = 5.43436
  Prefactor  = 0.0001
  Prefactor  = 5.84454
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 14.4851
  Prefactor  = 2.3176
  norm       = 5.99756
  Prefactor  = 35.4764
  norm       = 57.8855
  norm       = 3.32661
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 19.2216
  Prefactor  = 0.0001
  norm       = 2.34284
  norm       = 2.65732
  norm       = 4.81006
  Prefactor  = 66.9235
  Prefactor  = 11.8909
  Prefactor  = 0.000100001
  Prefactor  = 21.0918
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Normalizat = 1.46037
  Prefactor  = 0.551734
 **********
 **   18 **HESSE 
 **********

 FCN=   4963.599     FROM HESSE     STATUS=OK           624 CALLS     5660 TOTAL
                     EDM=   .80E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          37.718        20.828        .65258E-04   -1.4479    
   2  norm          5.4344        2.5463        .73019E-04   -1.5242    
   3  Prefactor     .10000E-03    3.7608        .26222E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     5.8445        19.938        .16610E-03   -1.5224    
   5  norm          .10000E-03    4.9788        .15261E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    50.694        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    11.571        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    105.27        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     14.485        4.7923        .82567E-04   -1.4947    
  10  Prefactor     2.3176        4.9043        .21214E-03   -1.5403    
  11  norm          5.9976        3.5728        .95272E-04   -1.5218    
  12  Prefactor     35.476        55.919        .67255E-04   -1.4516    
  13  norm          57.885        11.126        .52729E-04   -1.4185    
  14  norm          3.3266        4.4717        .16089E-03   -1.5343    
  15  Prefactor     .10000E-03    2.5290        .10932E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     .10000E-03    18.164        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    12.590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          19.222        8.7807        .91354E-04   -1.4831    
  19  Prefactor     .10000E-03    15.530        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          2.3428        1.5603        .67714E-04   -1.5402    
  21  norm          2.6573        3.1776        .13095E-03   -1.5382    
  22  norm          4.8101        10.235        .91718E-03   -1.5269    
  23  Prefactor     66.924        56.434        .49043E-04   -1.4070    
  24  Prefactor     11.891        18.422        .11617E-03   -1.5018    
  25  Prefactor     .10000E-03    520.07        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  26  Prefactor     21.092        21.050        .43606E-03   -1.4789    
  27  norm          .10000E-03    31.406        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  28  Prefactor     .10001E-03    140.68        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  29  Prefactor     .10000E-03    2.3818        .10617E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  30  Normalizat    1.4604        .32523        .29530E-03   -.78898    
  31  Prefactor     .55173        .20750        .31726E-03   -1.0966    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.99567e-11
Minuit parameter uncertainties:
  1  20.8321
  2  2.54633
  3  6.31874e-07
  4  19.9611
  5  1.41393e-06
  6  8.34834e-05
  7  1.49868e-06
  8  0.00113304
  9  4.79241
  10  4.90519
  11  3.57297
  12  56.0021
  13  11.1262
  14  4.47219
  15  1.24146e-06
  16  4.83195e-06
  17  5.25547e-06
  18  8.78127
  19  6.38977e-06
  20  1.56032
  21  3.17783
  22  10.239
  23  56.479
  24  18.4304
  25  0.00146465
  26  21.0575
  27  1.12259e-05
  28  0.00172105
  29  7.11897e-07
  30  0.325696
  31  0.207785
Done.

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

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.000e-04  6.390e-06  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  1.964e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  5.517e-01  2.078e-01  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.460e+00  3.257e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 84.575 -39.170
Photon Flux Upper Limit: 6.67e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.99e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/675728/likelihoodResults_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.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) = 4963.59961744
delta logL = -0.000304502534163

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4963.5993137
delta logL = -7.64668584452e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10049E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1179       1.0000          .0000       10.000    
     3 'Normalizat'    1.4604       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55174       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6400E+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=   4963.599     FROM MIGRAD    STATUS=CONVERGED     89 CALLS      276 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10083E-03    48.157        .18142E-02** at limit **
   2  Index         2.0686        8.8143        .50000        .21349E-04
   3  Normalizat    1.4604        .12765E-01    .29530E-03   -.28192E-03
   4  Prefactor     .55173        .88851E-02    .31726E-03   -.27284E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100833
  Index      = 2.06861
  Normalizat = 1.46037
  Prefactor  = 0.551732
 **********
 **   18 **HESSE 
 **********

 FCN=   4963.599     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      305 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10083E-03    220.48        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.0686        5.6585        .50000       -.62646    
   3  Normalizat    1.4604        .27765E-01    .59059E-04   -.78898    
   4  Prefactor     .55173        .19325E-01    .12690E-04   -1.0966    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 6.16423e-09
Minuit parameter uncertainties:
  1  0.0272107
  2  202.397
  3  0.0277653
  4  0.0193251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/675728': 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) = 4963.59931344
delta logL = -5.02772309119e-07

Extracting fit parameters...

4FGL J0538.2-3910
   Spectrum: PowerLaw
299    Prefactor:  1.008e-04  2.721e-02  1.000e-04  1.000e+04 ( 1.000e-14)
300        Index:  2.069e+00  2.024e+02  0.000e+00  1.000e+01 (-1.000e+00)
301        Scale:  3.147e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
637    Prefactor:  5.517e-01  1.933e-02  0.000e+00  1.000e+01 ( 1.000e+00)
638        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
639        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
636   Normalization:  1.460e+00  2.777e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 84.575 -39.170

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/675728/cmap_HighResolution_608428801_608688001_4FGL_J0538.2-3910_daily_bin1424.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.99e-03', job_status='DONE', photon_flux_upper_limit='6.67e-08', time_completed='2021-08-23 13:02:21.425339', job_id='675728', GAL2='0.55', fit_tolerance='1e-08', EG2='1.46', EG='1.46', time_epoch_completed='1629748941.43', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.55', dlogl='-5.03e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.96' WHERE bin_id='1424' AND source_name='4FGL J0538.2-3910' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Mon Aug 23 13:02:21 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0024>
Subject: Job 675728: <4FGL_J0538.2-3910_daily_bin1424> in cluster <slac> Done

Job <4FGL_J0538.2-3910_daily_bin1424> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Mon Aug 23 12:45:50 2021
Job was executed on host(s) <bullet0024>, in queue <medium>, as user <kocevski> in cluster <slac> at Mon Aug 23 12:45:52 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Mon Aug 23 12:45:52 2021
Terminated at Mon Aug 23 13:02:22 2021
Results reported at Mon Aug 23 13:02:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0538.2-3910_daily_bin1424 84.5746 -39.1696 608428801 608688001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0538.2-3910 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   924.21 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             324.61 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   989 sec.
    Turnaround time :                            992 sec.

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

