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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin1126
RA = 61.7627, Dec = -38.4394
tmin = 531187201, tmax = 531446401
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='261820', job_status='RUN', time_executed='2021-08-20 05:16:01.334501', time_epoch_executed='1629461761.33' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='1126'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261820

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261820/ft1_4FGL_J0407.0-3826_daily_bin1126.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261820/ft1_4FGL_J0407.0-3826_daily_bin1126.fits outfile=/scratch/kocevski/261820/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1126.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=531187201.0 tmax=531446401.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.92
user 3.74
sys 1.12

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.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/261820/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1126.fits evtable="EVENTS" outfile="/scratch/kocevski/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.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.43
user 0.31
sys 1.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits" evtable="EVENTS" scfile=/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits sctable="SC_DATA" outfile=/scratch/kocevski/261820/ltcube_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.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/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits
.....................!
real 12.67
user 11.29
sys 1.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits sctable="SC_DATA" expcube=/scratch/kocevski/261820/ltcube_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.fits outfile=/scratch/kocevski/261820/expmap_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.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/261820/ltcube_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.fits
.....................!
real 193.11
user 186.60
sys 6.17

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/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits scfile=/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits outfile=/scratch/kocevski/261820/cmap_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.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 1.42
user 0.37
sys 1.03

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits scfile=/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits outfile=/scratch/kocevski/261820/cmap_HighResolution_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.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 1.43
user 0.37
sys 1.05

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits evtable="EVENTS" scfile=/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261820/Model_4FGL_J0407.0-3826_daily_bin1126.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/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits.....................!
real 90.90
user 88.30
sys 2.41

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits', '/scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits', expMap='/scratch/kocevski/261820/expmap_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.fits', expCube='/scratch/kocevski/261820/ltcube_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/261820/Model_4FGL_J0407.0-3826_daily_bin1126.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/261820/ft1_filtered_4FGL_J0407.0-3826_daily_bin1126.fits
Spacecraft file(s): /scratch/kocevski/261820/ft2_4FGL_J0407.0-3826_daily_bin1126.fits
Exposure map: /scratch/kocevski/261820/expmap_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.fits
Exposure cube: /scratch/kocevski/261820/ltcube_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/261820/Model_4FGL_J0407.0-3826_daily_bin1126.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) = 4077.64317648

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .94029       1.0000         .10000E-03   10000.    
     2 'Prefactor '    19.620       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    2.5147       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .23094E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    115.05       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    1.8132       1.0000         .10000E-03   10000.    
    10 'Prefactor '    54.940       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10040E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.538       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7614       1.0000         .10000E-03   10000.    
    17 'Prefactor '    3.3342       1.0000         .10000E-03   10000.    
    18 'norm      '    14.233       1.0000         .10000E-03   10000.    
    19 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.7718       1.0000         .10000E-03   10000.    
    21 'Prefactor '    16.171       1.0000         .10000E-03   10000.    
    22 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .43660E-02   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.5537       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .37477       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=   4077.630     FROM MIGRAD    STATUS=CONVERGED    620 CALLS     3117 TOTAL
                     EDM=   .72E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .94643        33.906        .20870E-05   -.52799E-04
   2  Prefactor     19.652        36.263        .16566E-05   -.27050E-05
   3  Prefactor     .10000E-03    57.197       -.33385E-06** at limit **
   4  norm          .10000E-03    3.4055        .45608E-07** at limit **
   5  norm          2.5149        1.4679        .96269E-07   -.43642E-03
   6  Prefactor     .10000E-03    111.47        .13559E-05** at limit **
   7  Prefactor     115.03        74.743        .12546E-06   -.93067E-05
   8  Prefactor     .10000E-03    12.825        .25696E-07** at limit **
   9  norm          1.8131        1.3778        .11099E-06   -.35951E-04
  10  Prefactor     54.934        71.631        .39292E-06   -.83462E-05
  11  norm          .10000E-03    .18510        .82444E-07** at limit **
  12  norm          .10000E-03    6.1101        .10706E-06** at limit **
  13  Prefactor     .10000E-03    12.840        .65483E-07** at limit **
  14  Prefactor     .10000E-03    35.419        .68183E-06** at limit **
  15  Prefactor     16.534        14.832        .74157E-07   -.31609E-04
  16  norm          1.7611        .88000        .42499E-07   -.73042E-04
  17  Prefactor     3.3345        4.0484        .33074E-06    .36422E-04
  18  norm          14.230        11.707       -.32394E-06    .22111E-05
  19  norm          .10000E-03    .60530        .29867E-07** at limit **
  20  Prefactor     1.7721        2.5264       -.30761E-06   -.61672E-05
  21  Prefactor     16.167        27.502        .30573E-06   -.17647E-06
  22  norm          .10000E-03    6.4392        .44563E-07** at limit **
  23  Prefactor     .10000E-03    619.00       -.26255E-04** at limit **
  24  Prefactor     .10000E-03    26.370       -.12606E-06** at limit **
  25  Normalizat    1.5538        .25158       -.19740E-05   -.15703E-03
  26  Prefactor     .37474        .24791       -.12020E-05   -.91363E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.946433
  Prefactor  = 19.6519
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.51489
  Prefactor  = 0.0001
  Prefactor  = 115.033
  Prefactor  = 0.0001
  norm       = 1.8131
  Prefactor  = 54.9341
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.5337
  norm       = 1.76115
  Prefactor  = 3.33452
  norm       = 14.2295
  norm       = 0.0001
  Prefactor  = 1.77208
  Prefactor  = 16.1675
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 1.55382
  Prefactor  = 0.374738
 **********
 **   18 **HESSE 
 **********

 FCN=   4077.630     FROM HESSE     STATUS=OK           460 CALLS     3577 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .94643        280.99        .67648E-02   -1.5513    
   2  Prefactor     19.652        36.498        .90423E-04   -1.4821    
   3  Prefactor     .10000E-03    57.497        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    3.4721        .11500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          2.5149        1.4614        .54976E-04   -1.5391    
   6  Prefactor     .10000E-03    111.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     115.03        74.768        .18755E-03   -1.3559    
   8  Prefactor     .10000E-03    12.862        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          1.8131        1.3680        .62029E-04   -1.5439    
  10  Prefactor     54.934        71.624        .27058E-03   -1.4224    
  11  norm          .10000E-03    .26860        .53397E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.1830        .15416E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    12.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    36.855        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.534        15.040        .98487E-04   -1.4895    
  16  norm          1.7611        .88523        .36859E-04   -1.5443    
  17  Prefactor     3.3345        4.0201        .12555E-03   -1.5343    
  18  norm          14.230        11.661        .10617E-03   -1.4953    
  19  norm          .10000E-03    .60942        .48366E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.7721        2.4761        .11012E-03   -1.5442    
  21  Prefactor     16.167        27.301        .99599E-04   -1.4904    
  22  norm          .10000E-03    6.4519        .15780E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    606.39        .38767E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    26.383        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.5538        .28239        .20991E-03   -.76277    
  26  Prefactor     .37474        .27230        .41435E-03   -1.1812    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.24059e-10
Minuit parameter uncertainties:
  1  32.77
  2  36.5395
  3  8.00217e-06
  4  8.61842e-06
  5  1.4614
  6  0.000333434
  7  74.8296
  8  1.50672e-05
  9  1.36806
  10  71.7366
  11  4.41924e-06
  12  1.73312e-05
  13  1.69903e-05
  14  0.000123413
  15  15.0432
  16  0.885239
  17  4.0204
  18  11.6633
  19  3.05723e-06
  20  2.47628
  21  27.3216
  22  1.36405e-05
  23  0.000614515
  24  1.52864e-05
  25  0.282681
  26  0.273238
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.000e-04  1.733e-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:  3.747e-01  2.732e-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.554e+00  2.827e-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: 7.79e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.86e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261820/likelihoodResults_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.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) = 4077.63032485
delta logL = -0.000767783609263

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4077.62955709
delta logL = -2.05523065233e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10236E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .37472       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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   4077.612     FROM MIGRAD    STATUS=FAILED       163 CALLS      315 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26442        25.054        .32412E-01    .79425E-03
   2  alpha         4.1345        4.3713        .16550        .41247E-03
   3  Normalizat    1.5380        .32220E-01    .20992E-03    .74739E-05
   4  Prefactor     .38484        .33115E-01    .41435E-03   -.16600E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4077.612     FROM SIMPLEX   STATUS=UNCHANGED     72 CALLS      387 TOTAL
                     EDM=   .10E-04    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26442        25.054        .22305E-03    .79425E-03
   2  alpha         4.1345        4.3713        .83140E-02    .41247E-03
   3  Normalizat    1.5380        .32220E-01    .10671E-03    .74739E-05
   4  Prefactor     .38484        .33115E-01    .66166E-04   -.16600E-05
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   4077.612     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      455 TOTAL
                     EDM=   .10E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26442        4.0702        .44165E-04    .75936E-05
   2  alpha         4.1345        4.5513        .66199E-02   -.21381E-06
   3  Normalizat    1.5380        .27243        .16793E-05    .74468E-05
   4  Prefactor     .38484        .27306        .33148E-05   -.17149E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.26442
  alpha      = 4.13455
  Normalizat = 1.53798
  Prefactor  = 0.384839
 **********
 **   18 **HESSE 
 **********

 FCN=   4077.612     FROM HESSE     STATUS=OK            23 CALLS      478 TOTAL
                     EDM=   .11E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26442        3.7295        .17666E-05   -1.5605    
   2  alpha         4.1345        4.5278        .26480E-03    6.9958    
   3  Normalizat    1.5380        .27639        .33586E-06   -.76716    
   4  Prefactor     .38484        .27768        .66295E-06   -1.1759    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.07207e-12
Minuit parameter uncertainties:
  1  1.98588
  2  3.84283
  3  0.276664
  4  0.278652
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261820': 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) = 4077.61173502
delta logL = 0.0178220472899

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  2.644e-01  1.986e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.135e+00  3.843e+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:  3.848e-01  2.787e-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.538e+00  2.767e-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/261820/cmap_HighResolution_531187201_531446401_4FGL_J0407.0-3826_daily_bin1126.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.86e-05', job_status='DONE', photon_flux_upper_limit='7.79e-08', time_completed='2021-08-20 05:27:01.467262', job_id='261820', GAL2='0.38', fit_tolerance='1e-08', EG2='1.54', EG='1.55', time_epoch_completed='1629462421.47', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.37', dlogl='1.78e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1126' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:27:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0077>
Subject: Job 261820: <4FGL_J0407.0-3826_daily_bin1126> in cluster <slac> Done

Job <4FGL_J0407.0-3826_daily_bin1126> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 05:15:30 2021
Job was executed on host(s) <bullet0077>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:15:32 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:15:32 2021
Terminated at Fri Aug 20 05:27:02 2021
Results reported at Fri Aug 20 05:27:02 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin1126 61.7627 -38.4394 531187201 531446401 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 :                                   668.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             336.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   689 sec.
    Turnaround time :                            692 sec.

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

