/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 9 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 = 7396
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0407.0-3826_daily_bin291
RA = 61.7627, Dec = -38.4394
tmin = 314755201, tmax = 315014401
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='253614', job_status='RUN', time_executed='2021-08-20 04:46:12.215055', time_epoch_executed='1629459972.22' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='291'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/253614

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/253614/ft1_4FGL_J0407.0-3826_daily_bin291.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/253614/ft1_4FGL_J0407.0-3826_daily_bin291.fits outfile=/scratch/kocevski/253614/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin291.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=314755201.0 tmax=315014401.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.14
user 3.20
sys 0.91

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.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/253614/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin291.fits evtable="EVENTS" outfile="/scratch/kocevski/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.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.21
user 0.32
sys 0.87

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.fits" evtable="EVENTS" scfile=/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits sctable="SC_DATA" outfile=/scratch/kocevski/253614/ltcube_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.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/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits
.....................!
real 12.69
user 11.53
sys 1.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits sctable="SC_DATA" expcube=/scratch/kocevski/253614/ltcube_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.fits outfile=/scratch/kocevski/253614/expmap_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.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/253614/ltcube_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.fits
.....................!
real 191.68
user 185.26
sys 6.08

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/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.fits scfile=/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits outfile=/scratch/kocevski/253614/cmap_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.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.23
user 0.36
sys 0.85

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.fits scfile=/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits outfile=/scratch/kocevski/253614/cmap_HighResolution_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.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.23
user 0.36
sys 0.86

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.fits evtable="EVENTS" scfile=/scratch/kocevski/253614/ft2_4FGL_J0407.0-3826_daily_bin291.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/253614/Model_4FGL_J0407.0-3826_daily_bin291.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/253614/ft1_filtered_4FGL_J0407.0-3826_daily_bin291.fits.....................!
real 95.71
user 93.35
sys 2.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10221E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.1223       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10325E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    5.3736       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    5.9787       1.0000         .10000E-03   10000.    
     9 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    101.70       1.0000         .10000E-03   10000.    
    11 'norm      '    1.5663       1.0000         .10000E-03   10000.    
    12 'norm      '    .10010E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.050       1.0000         .10000E-03   10000.    
    14 'Prefactor '    52.181       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10037E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7975       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3457       1.0000         .10000E-03   10000.    
    18 'norm      '    .10033E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    2.7053       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    14.185       1.0000         .10000E-03   10000.    
    23 'Prefactor '    27.830       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .12285E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .67994       1.0000         .10000E-01   10.000    
    26 'Prefactor '    1.1537       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=   4423.838     FROM MIGRAD    STATUS=CONVERGED    615 CALLS     3147 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    41.288       -.66803E-05** at limit **
   2  Prefactor     1.0621        131.39        .18692E-04    .77686E-06
   3  Prefactor     .10000E-03    31.284       -.33583E-06** at limit **
   4  norm          5.3731        3.5991        .41226E-07    .25739E-03
   5  norm          .10000E-03    .37417       -.65958E-06** at limit **
   6  Prefactor     .10000E-03    34.504        .13027E-05** at limit **
   7  Prefactor     .10000E-03    37.590        .25880E-05** at limit **
   8  Prefactor     5.9757        22.223       -.11145E-06    .22855E-04
   9  norm          .10000E-03    .28522        .40140E-06** at limit **
  10  Prefactor     101.54        147.16        .12010E-04    .22250E-04
  11  norm          1.5661        .55325        .53250E-07    .41861E-03
  12  norm          .10000E-03    5.0148       -.32074E-06** at limit **
  13  Prefactor     61.001        52.801        .42753E-05    .53678E-04
  14  Prefactor     52.180        23.686        .59200E-08    .23180E-04
  15  Prefactor     .10000E-03    4.3685        .25302E-06** at limit **
  16  norm          3.7974        1.0307        .21739E-07    .74253E-04
  17  Prefactor     1.3401        3.1436       -.11065E-05   -.24752E-03
  18  norm          .10000E-03    4.2003        .36523E-06** at limit **
  19  norm          2.7052        1.6137        .61339E-07   -.10650E-03
  20  Prefactor     .10000E-03    2.2900        .62089E-06** at limit **
  21  Prefactor     .10000E-03    12.763        .20064E-06** at limit **
  22  norm          14.184        10.168        .23691E-06   -.21972E-04
  23  Prefactor     27.791        53.266        .41337E-05    .18902E-04
  24  Prefactor     .10000E-03    186.18        .36269E-05** at limit **
  25  Normalizat    .68026        .22158       -.36667E-05    .27998E-03
  26  Prefactor     1.1535        .23570        .29506E-05    .18265E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.06215
  Prefactor  = 0.0001
  norm       = 5.37307
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.97567
  norm       = 0.0001
  Prefactor  = 101.536
  norm       = 1.56612
  norm       = 0.0001
  Prefactor  = 61.0014
  Prefactor  = 52.1804
  Prefactor  = 0.0001
  norm       = 3.79737
  Prefactor  = 1.34013
  norm       = 0.0001
  norm       = 2.70521
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 14.1837
  Prefactor  = 27.791
  Prefactor  = 0.0001
  Normalizat = 0.680262
  Prefactor  = 1.15351
 **********
 **   18 **HESSE 
 **********

 FCN=   4423.838     FROM HESSE     STATUS=OK           458 CALLS     3605 TOTAL
                     EDM=   .81E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    41.677        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.0621        131.80        .62491E-02   -1.5502    
   3  Prefactor     .10000E-03    31.364        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          5.3731        3.5949        .99319E-04   -1.5244    
   5  norm          .10000E-03    .38291        .79323E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    34.588        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    37.650        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     5.9757        22.181        .16422E-03   -1.5219    
   9  norm          .10000E-03    .28702        .34603E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     101.54        146.94        .19934E-03   -1.3689    
  11  norm          1.5661        .55165        .26565E-04   -1.5458    
  12  norm          .10000E-03    5.0509        .14542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.001        52.787        .51352E-04   -1.4144    
  14  Prefactor     52.180        23.760        .55522E-04   -1.4262    
  15  Prefactor     .10000E-03    4.3742        .13569E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7974        1.0333        .32641E-04   -1.5318    
  17  Prefactor     1.3401        3.1192        .16712E-03   -1.5476    
  18  norm          .10000E-03    4.2064        .13311E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          2.7052        1.6117        .62967E-04   -1.5379    
  20  Prefactor     .10000E-03    2.3356        .19541E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.771        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          14.184        10.086        .10635E-03   -1.4955    
  23  Prefactor     27.791        53.363        .75941E-04   -1.4653    
  24  Prefactor     .10000E-03    187.47        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .68026        .26324        .28578E-03   -1.0468    
  26  Prefactor     1.1535        .28265        .25560E-03   -.87774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.08955e-10
Minuit parameter uncertainties:
  1  0.00010579
  2  23.7157
  3  5.48617e-05
  4  3.59502
  5  9.53977e-09
  6  3.2524e-05
  7  3.22026e-05
  8  22.2112
  9  3.61818e-07
  10  147.475
  11  0.551652
  12  9.23618e-06
  13  52.8278
  14  23.7646
  15  3.64873e-06
  16  1.03335
  17  3.11954
  18  5.09775e-06
  19  1.6117
  20  7.28378e-06
  21  1.24183e-05
  22  10.0867
  23  53.4546
  24  0.000274179
  25  0.263729
  26  0.283017
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.000e-04  9.236e-06  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:  1.154e+00  2.830e-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:  6.803e-01  2.637e-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.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/253614/likelihoodResults_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.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) = 4423.83936935
delta logL = -0.000939243098401

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4423.83843011
delta logL = -6.15091266809e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10265E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2715       1.0000          .0000       5.0000    
     3 'Normalizat'    .68025       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1535       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=   4423.818     FROM MIGRAD    STATUS=FAILED       150 CALLS      302 TOTAL
                     EDM=   .72E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24794        32.380        .24380E-01    .11200E-02
   2  alpha         4.1938        4.3772        .16548        .30647E-03
   3  Normalizat    .66781        .31710E-01    .28577E-03   -.12730E-05
   4  Prefactor     1.1621        .35972E-01    .25560E-03   -.17347E-05
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   4423.818     FROM SIMPLEX   STATUS=UNCHANGED     80 CALLS      382 TOTAL
                     EDM=   .98E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24794        32.380        .20686E-03    .11200E-02
   2  alpha         4.1938        4.3772        .94086E-02    .30647E-03
   3  Normalizat    .66781        .31710E-01    .12599E-03   -.12730E-05
   4  Prefactor     1.1621        .35972E-01    .33836E-04   -.17347E-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=   4423.818     FROM MIGRAD    STATUS=CONVERGED     68 CALLS      450 TOTAL
                     EDM=   .56E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .24794        4.4161        .24248E-03    .17856E-03
   2  alpha         4.1938        4.5546        .13239E-02    .22327E-07
   3  Normalizat    .66781        .25147        .22862E-05   -.19891E-05
   4  Prefactor     1.1621        .28256        .20448E-05   -.22239E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 0.247938
  alpha      = 4.19384
  Normalizat = 0.667808
  Prefactor  = 1.16213
 **********
 **   18 **HESSE 
 **********

 FCN=   4423.818     FROM HESSE     STATUS=OK            25 CALLS      475 TOTAL
                     EDM=   .13E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .24794        3.7398        .48495E-04   -1.5608    
   2  alpha         4.1938        4.5949        .26477E-03    13.311    
   3  Normalizat    .66781        .25765        .45724E-06   -1.0518    
   4  Prefactor     1.1621        .29009        .40896E-06   -.87505    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.25578e-14
Minuit parameter uncertainties:
  1  1.92563
  2  4.36143
  3  0.258115
  4  0.290488
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/253614': 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) = 4423.81784706
delta logL = 0.0205830475579

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  2.479e-01  1.926e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  4.194e+00  4.361e+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:  1.162e+00  2.905e-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:  6.678e-01  2.581e-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/253614/cmap_HighResolution_314755201_315014401_4FGL_J0407.0-3826_daily_bin291.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.77e-05', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-08-20 04:57:33.374957', job_id='253614', GAL2='1.16', fit_tolerance='1e-08', EG2='0.67', EG='0.68', time_epoch_completed='1629460653.38', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.15', dlogl='2.06e-02', ts2='0.04', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='291' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 04:57:33 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0104>
Subject: Job 253614: <4FGL_J0407.0-3826_daily_bin291> in cluster <slac> Done

Job <4FGL_J0407.0-3826_daily_bin291> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 04:45:42 2021
Job was executed on host(s) <bullet0104>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 04:45:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 04:45:43 2021
Terminated at Fri Aug 20 04:57:34 2021
Results reported at Fri Aug 20 04:57:34 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin291 61.7627 -38.4394 314755201 315014401 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 :                                   689.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             303.35 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   710 sec.
    Turnaround time :                            712 sec.

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

