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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin1006
RA = 61.7627, Dec = -38.4394
tmin = 500083201, tmax = 500342401
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='260542', job_status='RUN', time_executed='2021-08-20 05:14:30.625326', time_epoch_executed='1629461670.63' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='1006'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260542

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260542/ft1_4FGL_J0407.0-3826_daily_bin1006.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260542/ft1_4FGL_J0407.0-3826_daily_bin1006.fits outfile=/scratch/kocevski/260542/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1006.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=500083201.0 tmax=500342401.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 14.41
user 5.39
sys 8.99

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.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/260542/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1006.fits evtable="EVENTS" outfile="/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.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 9.36
user 0.33
sys 9.00

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits" evtable="EVENTS" scfile=/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits sctable="SC_DATA" outfile=/scratch/kocevski/260542/ltcube_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.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/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits
.....................!
real 21.78
user 11.64
sys 10.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits sctable="SC_DATA" expcube=/scratch/kocevski/260542/ltcube_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.fits outfile=/scratch/kocevski/260542/expmap_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.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/260542/ltcube_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.fits
.....................!
real 202.26
user 185.45
sys 16.46

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 Fornax A in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/FornaxA.fits is the correct path to the extended template.
Added 179 point sources and 1 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 J0407.0-3826 @ 61.7627 -38.4394

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits scfile=/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits outfile=/scratch/kocevski/260542/cmap_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.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=61.7627 yref=-38.4394 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 9.63
user 0.37
sys 9.20

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits scfile=/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits outfile=/scratch/kocevski/260542/cmap_HighResolution_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.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=61.7627 yref=-38.4394 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 9.21
user 0.38
sys 8.80

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits evtable="EVENTS" scfile=/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260542/Model_4FGL_J0407.0-3826_daily_bin1006.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 Fornax A
adding source GAL_V02
Working on...
/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits.....................!
real 101.63
user 88.67
sys 12.77

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits', '/scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits', expMap='/scratch/kocevski/260542/expmap_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.fits', expCube='/scratch/kocevski/260542/ltcube_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/260542/Model_4FGL_J0407.0-3826_daily_bin1006.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0407.0-3826'

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  8.651e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.246e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/260542/ft1_filtered_4FGL_J0407.0-3826_daily_bin1006.fits
Spacecraft file(s): /scratch/kocevski/260542/ft2_4FGL_J0407.0-3826_daily_bin1006.fits
Exposure map: /scratch/kocevski/260542/expmap_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.fits
Exposure cube: /scratch/kocevski/260542/ltcube_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/260542/Model_4FGL_J0407.0-3826_daily_bin1006.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) = 4071.40077916

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    48.769       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.1231       1.0000         .10000E-03   10000.    
     5 'norm      '    1.2233       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .33829       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10829       1.0000         .10000E-03   10000.    
    12 'norm      '    .18495E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10068E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.5665       1.0000         .10000E-03   10000.    
    15 'Prefactor '    17.390       1.0000         .10000E-03   10000.    
    16 'norm      '    4.6939       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    16.259       1.0000         .10000E-03   10000.    
    19 'norm      '    17.966       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .33870E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.2270       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .48646       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   4071.322     FROM MIGRAD    STATUS=CONVERGED    651 CALLS     2685 TOTAL
                     EDM=   .94E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     48.755        32.083        .84665E-06    .13655E-03
   2  Prefactor     .10000E-03    31.844       -.20206E-05** at limit **
   3  Prefactor     .10000E-03    50.419       -.26485E-05** at limit **
   4  norm          5.1304        4.7331        .11015E-05   -.28862E-03
   5  norm          1.2224        1.2637       -.47343E-07   -.45983E-04
   6  Prefactor     .10000E-03    44.776        .11887E-05** at limit **
   7  Prefactor     .10000E-03    68.868       -.51506E-06** at limit **
   8  Prefactor     .37563E-01    23.734       -.15130E-05    .41664E-04
   9  norm          .10000E-03    .34388       -.39679E-08** at limit **
  10  Prefactor     .10000E-03    70.714        .12523E-05** at limit **
  11  norm          .10861        .31557        .22664E-06    .22316E-03
  12  norm          .10000E-03    17.500       -.10847E-06** at limit **
  13  Prefactor     .10000E-03    38.272        .18238E-05** at limit **
  14  Prefactor     3.5429        30.020        .92661E-06    .50317E-05
  15  Prefactor     17.373        16.762       -.50143E-07   -.62038E-04
  16  norm          4.6943        1.2918       -.10078E-07   -.15353E-03
  17  Prefactor     .10000E-03    .94945        .71006E-09** at limit **
  18  norm          16.256        13.841        .11310E-06   -.10822E-04
  19  norm          17.966        4.1765        .11597E-07   -.29882E-04
  20  Prefactor     .10000E-03    2.3331       -.21521E-08** at limit **
  21  Prefactor     .10000E-03    5.0000       -.18102E-08** at limit **
  22  norm          .10000E-03    2.4278        .83978E-08** at limit **
  23  Prefactor     .10000E-03    29.101        .79599E-06** at limit **
  24  Prefactor     .10000E-03    13.477       -.93863E-08** at limit **
  25  Normalizat    1.2279        .21831       -.80265E-06    .89137E-04
  26  Prefactor     .48603        .22470        .50447E-06    .75178E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 48.7549
  Prefactor  = 0.000100001
  Prefactor  = 0.000100001
  norm       = 5.13041
  norm       = 1.22238
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0375627
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.108613
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 3.54291
  Prefactor  = 17.3731
  norm       = 4.69426
  Prefactor  = 0.0001
  norm       = 16.2565
  norm       = 17.9662
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.22789
  Prefactor  = 0.486026
 **********
 **   18 **HESSE 
 **********

 FCN=   4071.322     FROM HESSE     STATUS=OK           460 CALLS     3145 TOTAL
                     EDM=   .34E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     48.755        32.811        .57422E-04   -1.4310    
   2  Prefactor     .10000E-03    32.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    51.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.1304        4.8977        .64824E-03   -1.5255    
   5  norm          1.2224        1.2391        .68005E-04   -1.5487    
   6  Prefactor     .10000E-03    45.112        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    69.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .37563E-01    36.621        .79654E-01   -1.5669    
   9  norm          .10000E-03    .34809        .36529E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    71.010        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10861        .30446        .55570E-04   -1.5642    
  12  norm          .10000E-03    17.918        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    38.978        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.5429        28.977        .21400E-03   -1.5331    
  15  Prefactor     17.373        16.890        .96045E-04   -1.4874    
  16  norm          4.6943        1.3076        .31124E-04   -1.5275    
  17  Prefactor     .10000E-03    .95735        .60669E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          16.256        13.764        .99327E-04   -1.4901    
  19  norm          17.966        3.8034        .52868E-04   -1.4860    
  20  Prefactor     .10000E-03    12.343        .16566E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    5.0008        .13935E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    2.4309        .97081E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    29.242        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    13.478        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.2279        .25119        .21694E-03   -.85745    
  26  Prefactor     .48603        .25790        .35815E-03   -1.1262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.35093e-10
Minuit parameter uncertainties:
  1  32.8233
  2  0.00028147
  3  0.000480983
  4  4.89807
  5  1.23917
  6  0.000211398
  7  8.5237e-05
  8  2.34403
  9  2.21145e-07
  10  0.000284756
  11  0.304464
  12  5.67157e-05
  13  0.000304053
  14  20.2776
  15  16.8943
  16  1.30761
  17  1.35683e-07
  18  13.7669
  19  3.80347
  20  6.17307e-05
  21  2.36149e-07
  22  6.81293e-07
  23  0.000118059
  24  1.70496e-07
  25  0.251437
  26  0.25852
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.000e-04  5.672e-05  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.246e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  4.860e-01  2.585e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.228e+00  2.514e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.763 -38.439
Photon Flux Upper Limit: 1.00e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.67e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/260542/likelihoodResults_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.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) = 4071.32223796
delta logL = -0.000266291474418

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4071.32197254
delta logL = -8.62235992827e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10084E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1852       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2279       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .48604       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+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=   4071.322     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      262 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    19.703        .36285E-03** at limit **
   2  alpha         2.2687        3.4943        .16629E-01   -.30306E-04
   3  Normalizat    1.2279        .23364        .21694E-03    .17549E-03
   4  Prefactor     .48603        .25246        .35814E-03    .85532E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.00010002
  alpha      = 2.26871
  Normalizat = 1.22789
  Prefactor  = 0.486027
 **********
 **   18 **HESSE 
 **********

 FCN=   4071.322     FROM HESSE     STATUS=OK            23 CALLS      285 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    19.692        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.2687        3.4942        .33257E-02   -.92647E-01
   3  Normalizat    1.2279        .23378        .43388E-04   -.85745    
   4  Prefactor     .48603        .25260        .14326E-04   -1.1262    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96246e-09
Minuit parameter uncertainties:
  1  0.00126634
  2  2.48931
  3  0.233979
  4  0.253188
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260542': 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) = 4071.3219714
delta logL = 2.70832060778e-07

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.000e-04  1.266e-03  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.269e+00  2.489e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  4.860e-01  2.532e-01  0.000e+00  1.000e+01 ( 1.000e+00)
577        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
578        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
572   Normalization:  1.228e+00  2.340e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.763 -38.439

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/260542/cmap_HighResolution_500083201_500342401_4FGL_J0407.0-3826_daily_bin1006.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.67e-05', job_status='DONE', photon_flux_upper_limit='1.00e-07', time_completed='2021-08-20 05:27:20.664443', job_id='260542', GAL2='0.49', fit_tolerance='1e-08', EG2='1.23', EG='1.23', time_epoch_completed='1629462440.66', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.49', dlogl='2.71e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1006' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:27:20 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0103>
Subject: Job 260542: <4FGL_J0407.0-3826_daily_bin1006> in cluster <slac> Done

Job <4FGL_J0407.0-3826_daily_bin1006> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 05:10:49 2021
Job was executed on host(s) <bullet0103>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:10:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:10:50 2021
Terminated at Fri Aug 20 05:27:22 2021
Results reported at Fri Aug 20 05:27:22 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin1006 61.7627 -38.4394 500083201 500342401 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0407.0-3826 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   902.46 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             276.56 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   991 sec.
    Turnaround time :                            993 sec.

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

