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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin904
RA = 61.7627, Dec = -38.4394
tmin = 473644801, tmax = 473904001
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='260377', job_status='RUN', time_executed='2021-08-20 05:11:09.278706', time_epoch_executed='1629461469.28' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='904'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260377

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260377/ft1_4FGL_J0407.0-3826_daily_bin904.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260377/ft1_4FGL_J0407.0-3826_daily_bin904.fits outfile=/scratch/kocevski/260377/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin904.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=473644801.0 tmax=473904001.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.89
user 3.53
sys 1.34

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260377/ft1_filtered_4FGL_J0407.0-3826_daily_bin904.fits" evtable="EVENTS" scfile=/scratch/kocevski/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits sctable="SC_DATA" outfile=/scratch/kocevski/260377/ltcube_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.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/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits
.....................!
real 13.02
user 11.43
sys 1.56

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260377/ft1_filtered_4FGL_J0407.0-3826_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits sctable="SC_DATA" expcube=/scratch/kocevski/260377/ltcube_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.fits outfile=/scratch/kocevski/260377/expmap_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.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/260377/ltcube_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.fits
.....................!
real 192.36
user 185.96
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/260377/ft1_filtered_4FGL_J0407.0-3826_daily_bin904.fits scfile=/scratch/kocevski/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits outfile=/scratch/kocevski/260377/cmap_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.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.64
user 0.37
sys 1.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260377/ft1_filtered_4FGL_J0407.0-3826_daily_bin904.fits scfile=/scratch/kocevski/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits outfile=/scratch/kocevski/260377/cmap_HighResolution_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.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.67
user 0.37
sys 1.27

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260377/ft1_filtered_4FGL_J0407.0-3826_daily_bin904.fits evtable="EVENTS" scfile=/scratch/kocevski/260377/ft2_4FGL_J0407.0-3826_daily_bin904.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260377/Model_4FGL_J0407.0-3826_daily_bin904.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/260377/ft1_filtered_4FGL_J0407.0-3826_daily_bin904.fits.....................!
real 147.92
user 144.97
sys 2.69

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .70296       1.0000         .10000E-03   10000.    
     2 'Prefactor '    9.5067       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.9466       1.0000         .10000E-03   10000.    
     4 'norm      '    1.2712       1.0000         .10000E-03   10000.    
     5 'norm      '    .87021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.312       1.0000         .10000E-03   10000.    
     7 'Prefactor '    23.609       1.0000         .10000E-03   10000.    
     8 'Prefactor '    8.1425       1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    187.15       1.0000         .10000E-03   10000.    
    11 'norm      '    .25320       1.0000         .10000E-03   10000.    
    12 'norm      '    51.836       1.0000         .10000E-03   10000.    
    13 'Prefactor '    18.127       1.0000         .10000E-03   10000.    
    14 'Prefactor '    18.044       1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.5578       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .94020       1.0000         .10000E-03   10000.    
    18 'norm      '    10.866       1.0000         .10000E-03   10000.    
    19 'norm      '    2.9140       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    9.3811       1.0000         .10000E-03   10000.    
    23 'Prefactor '    56.112       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .69708E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    .58304       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .94016       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=   7032.724     FROM MIGRAD    STATUS=CONVERGED    633 CALLS     3276 TOTAL
                     EDM=   .40E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .65658        9.1017       -.38129E-05   -.80000E-04
   2  Prefactor     9.5035        14.569       -.88947E-06   -.37864E-05
   3  Prefactor     4.8481        35.372        .42220E-05    .27232E-04
   4  norm          1.2715        2.2015       -.11970E-05    .40386E-03
   5  norm          .87031        .53099        .65535E-07   -.26067E-03
   6  Prefactor     16.300        36.106        .11861E-05    .13736E-04
   7  Prefactor     23.625        30.883       -.86075E-06   -.99068E-04
   8  Prefactor     8.1402        13.187        .70128E-06    .11590E-03
   9  norm          .10001E-03    .29482       -.26547E-07** at limit **
  10  Prefactor     187.14        107.82        .22362E-05   -.13189E-05
  11  norm          .25358        .27003       -.42677E-06   -.16267E-02
  12  norm          51.832        10.317        .33760E-06    .22338E-03
  13  Prefactor     18.127        18.405        .47245E-07    .46727E-04
  14  Prefactor     18.044        10.834        .80956E-07    .64671E-04
  15  Prefactor     .10000E-03    6.5247       -.49681E-07** at limit **
  16  norm          2.5580        .60700        .35028E-08    .22128E-03
  17  Prefactor     .93726        2.1690       -.24628E-05    .27949E-03
  18  norm          10.871        7.7443        .97441E-06    .29835E-03
  19  norm          2.9141        1.2520        .12925E-07   -.80243E-04
  20  Prefactor     .10000E-03    .93691        .83519E-06** at limit **
  21  Prefactor     .10000E-03    9.0103        .88930E-06** at limit **
  22  norm          9.3825        5.6218        .32326E-06    .12800E-03
  23  Prefactor     56.100        35.318        .89097E-06    .28332E-04
  24  Prefactor     .10000E-03    89.459        .20900E-04** at limit **
  25  Normalizat    .58289        .14377        .93306E-06    .21709E-03
  26  Prefactor     .94048        .15546        .18453E-05   -.48191E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.656582
  Prefactor  = 9.50352
  Prefactor  = 4.84814
  norm       = 1.27154
  norm       = 0.870313
  Prefactor  = 16.2999
  Prefactor  = 23.6248
  Prefactor  = 8.14022
  norm       = 0.000100011
  Prefactor  = 187.141
  norm       = 0.253575
  norm       = 51.8319
  Prefactor  = 18.1273
  Prefactor  = 18.0444
  Prefactor  = 0.0001
  norm       = 2.55801
  Prefactor  = 0.937259
  norm       = 10.8715
  norm       = 2.91414
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.38253
  Prefactor  = 56.1
  Prefactor  = 0.000100002
  Normalizat = 0.582892
  Prefactor  = 0.940482
 **********
 **   18 **HESSE 
 **********

 FCN=   7032.724     FROM HESSE     STATUS=OK           480 CALLS     3756 TOTAL
                     EDM=   .22E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .65658        44.759        .41646E-02   -1.5546    
   2  Prefactor     9.5035        14.599        .12997E-03   -1.5091    
   3  Prefactor     4.8481        35.779        .18083E-03   -1.5268    
   4  norm          1.2715        2.1570        .15575E-03   -1.5482    
   5  norm          .87031        .53851        .45736E-04   -1.5521    
   6  Prefactor     16.300        36.147        .99168E-04   -1.4900    
   7  Prefactor     23.625        31.109        .82439E-04   -1.4735    
   8  Prefactor     8.1402        13.109        .14050E-03   -1.5137    
   9  norm          .10001E-03    .73148        .15626E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     187.14        107.91        .29517E-04   -1.2963    
  11  norm          .25358        .25622        .40707E-03   -1.5607    
  12  norm          51.832        10.240        .27852E-03   -1.4267    
  13  Prefactor     18.127        18.405        .94071E-04   -1.4856    
  14  Prefactor     18.044        10.855        .94288E-04   -1.4858    
  15  Prefactor     .10000E-03    6.6233        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.5580        .60785        .29761E-04   -1.5388    
  17  Prefactor     .93726        2.1491        .16519E-03   -1.5514    
  18  norm          10.871        7.6351        .12154E-03   -1.5048    
  19  norm          2.9141        1.2504        .58620E-04   -1.5367    
  20  Prefactor     .10000E-03    .95404        .15738E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.0376        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          9.3825        5.5802        .13085E-03   -1.5095    
  23  Prefactor     56.100        35.312        .53551E-04   -1.4209    
  24  Prefactor     .10000E-03    92.014        .58360E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    .58289        .16757        .25940E-03   -1.0872    
  26  Prefactor     .94048        .18039        .24042E-03   -.94741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.15709e-08
Minuit parameter uncertainties:
  1  10.8498
  2  14.6041
  3  26.363
  4  2.15717
  5  0.538511
  6  36.1956
  7  31.1306
  8  13.1133
  9  0.000177914
  10  108.021
  11  0.256219
  12  10.2402
  13  18.4109
  14  10.8558
  15  3.03688e-05
  16  0.607852
  17  2.14924
  18  7.63573
  19  1.25038
  20  1.01381e-05
  21  2.10352e-05
  22  5.58052
  23  35.325
  24  0.000744459
  25  0.167711
  26  0.180501
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  5.183e+01  1.024e+01  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:  9.405e-01  1.805e-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:  5.829e-01  1.677e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 97.05
Ra Dec: 61.763 -38.439
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 2.17e-07 +/- 4.29e-08
Energy Flux (Fixed Index): 7.97e-05 +/- 1.57e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7031.19153141
delta logL = 1.53230469665

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7031.12712664
delta logL = 1.59670946695

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    55.808       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8931       1.0000          .0000       5.0000    
     3 'Normalizat'    .63166       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .90702       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.

 FCN=   7031.127     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .16E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          55.811        11.654        .13424E-02   -.12796E-04
   2  alpha         1.8931        .19821        .14588        .52002E-05
   3  Normalizat    .63148        .13564        .41371E-01    .28839E-04
   4  Prefactor     .90726        .15541        .45094E-01    .10352E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 55.811
  alpha      = 1.89312
  Normalizat = 0.63148
  Prefactor  = 0.907256
 **********
 **   18 **HESSE 
 **********

 FCN=   7031.127     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .55E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          55.811        11.251        .53696E-04   -1.4212    
   2  alpha         1.8931        .19559        .63006E-02   -.24520    
   3  Normalizat    .63148        .15581        .25051E-03   -1.0666    
   4  Prefactor     .90726        .17831        .24463E-03   -.95888    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.54399e-14
Minuit parameter uncertainties:
  1  11.2515
  2  0.1958
  3  0.15592
  4  0.17843
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260377': 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) = 7031.12712571
delta logL = 1.596710401

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  5.581e+01  1.125e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.893e+00  1.958e-01  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:  9.073e-01  1.784e-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.315e-01  1.559e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 100.35
Ra Dec: 61.763 -38.439
Photon Index (Free Index): 1.89 +/- 0.20
Photon Flux (Free Index): 1.72e-07 +/- 4.34e-08
Energy Flux (Free Index): 1.03e-04 +/- 2.73e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/260377/cmap_HighResolution_473644801_473904001_4FGL_J0407.0-3826_daily_bin904.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.17e-07', energy_flux2='1.03e-04', photon_flux_error='4.29e-08', dlogl='1.60e+00', energy_flux='7.97e-05', photon_flux2='1.72e-07', job_status='DONE', time_completed='2021-08-20 05:24:57.577946', photon_index_error2='0.20', photon_index2='1.89', ts='97.05', fit_tolerance='1e-08', GAL='0.94', photon_index_error='0.00', energy_flux_error2='2.73e-05', EG='0.58', time_epoch_completed='1629462297.58', return_code='0', job_id='260377', GAL2='0.91', EG2='0.63', return_code2='0', energy_flux_error='1.57e-05', photon_flux_error2='4.34e-08', ts2='100.35', photon_index='2.25' WHERE bin_id='904' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:24:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0067>
Subject: Job 260377: <4FGL_J0407.0-3826_daily_bin904> in cluster <slac> Done

Job <4FGL_J0407.0-3826_daily_bin904> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 05:10:35 2021
Job was executed on host(s) <bullet0067>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:10:37 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:37 2021
Terminated at Fri Aug 20 05:24:58 2021
Results reported at Fri Aug 20 05:24:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin904 61.7627 -38.4394 473644801 473904001 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 :                                   842.22 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             355.11 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   860 sec.
    Turnaround time :                            863 sec.

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

