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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin906
RA = 61.7627, Dec = -38.4394
tmin = 474163201, tmax = 474422401
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='260380', job_status='RUN', time_executed='2021-08-20 05:12:21.885604', time_epoch_executed='1629461541.89' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='906'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/260380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/260380/ft1_4FGL_J0407.0-3826_daily_bin906.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/260380/ft1_4FGL_J0407.0-3826_daily_bin906.fits outfile=/scratch/kocevski/260380/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin906.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=474163201.0 tmax=474422401.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 11.09
user 5.30
sys 5.73

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/260380/ft1_filtered_4FGL_J0407.0-3826_daily_bin906.fits" evtable="EVENTS" scfile=/scratch/kocevski/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits sctable="SC_DATA" outfile=/scratch/kocevski/260380/ltcube_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.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/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits
.....................!
real 18.34
user 11.77
sys 6.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/260380/ft1_filtered_4FGL_J0407.0-3826_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits sctable="SC_DATA" expcube=/scratch/kocevski/260380/ltcube_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.fits outfile=/scratch/kocevski/260380/expmap_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.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/260380/ltcube_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.fits
.....................!
real 199.13
user 186.75
sys 11.92

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/260380/ft1_filtered_4FGL_J0407.0-3826_daily_bin906.fits scfile=/scratch/kocevski/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits outfile=/scratch/kocevski/260380/cmap_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.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 5.89
user 0.36
sys 5.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/260380/ft1_filtered_4FGL_J0407.0-3826_daily_bin906.fits scfile=/scratch/kocevski/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits outfile=/scratch/kocevski/260380/cmap_HighResolution_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.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 5.92
user 0.37
sys 5.53

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/260380/ft1_filtered_4FGL_J0407.0-3826_daily_bin906.fits evtable="EVENTS" scfile=/scratch/kocevski/260380/ft2_4FGL_J0407.0-3826_daily_bin906.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/260380/Model_4FGL_J0407.0-3826_daily_bin906.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/260380/ft1_filtered_4FGL_J0407.0-3826_daily_bin906.fits.....................!
real 128.99
user 120.14
sys 8.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.719       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10151E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10012E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .66332       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    10.964       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .14581E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .26047       1.0000         .10000E-03   10000.    
    12 'norm      '    22.116       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10077E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    11.926       1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.577       1.0000         .10000E-03   10000.    
    16 'norm      '    1.7029       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    18.495       1.0000         .10000E-03   10000.    
    19 'norm      '    3.1590       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10263E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10161E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .11265E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    29.865       1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0014       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .80648       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=   5801.065     FROM MIGRAD    STATUS=CONVERGED    606 CALLS     3067 TOTAL
                     EDM=   .23E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.712        25.013        .11957E-05    .63070E-05
   2  Prefactor     .10000E-03    9.9041        .35911E-08** at limit **
   3  Prefactor     .10000E-03    48.511       -.15304E-04** at limit **
   4  norm          .10000E-03    .93234       -.16167E-06** at limit **
   5  norm          .66265        .75087       -.16415E-06   -.96646E-03
   6  Prefactor     .10000E-03    60.990        .33327E-04** at limit **
   7  Prefactor     10.938        42.799       -.23350E-04    .24059E-04
   8  Prefactor     .10000E-03    14.661       -.31369E-06** at limit **
   9  norm          .10000E-03    .16980        .99711E-07** at limit **
  10  Prefactor     .10000E-03    203.79       -.21511E-04** at limit **
  11  norm          .26037        .27957       -.87127E-07   -.16039E-02
  12  norm          22.117        9.7180       -.13990E-06    .70718E-04
  13  Prefactor     .10000E-03    49.936       -.13956E-04** at limit **
  14  Prefactor     11.926        15.001       -.18709E-06    .10444E-04
  15  Prefactor     16.577        13.111       -.37566E-06    .42166E-04
  16  norm          1.7030        .78117        .37137E-08   -.68461E-05
  17  Prefactor     .10000E-03    1.3322       -.13695E-06** at limit **
  18  norm          18.499        14.075       -.41979E-07    .22612E-03
  19  norm          3.1594        1.6155       -.11916E-07    .67160E-03
  20  Prefactor     .10000E-03    2.9131       -.17815E-07** at limit **
  21  Prefactor     .10000E-03    24.763        .18378E-04** at limit **
  22  norm          .10000E-03    21.290       -.22554E-04** at limit **
  23  Prefactor     .10000E-03    19.458        .94082E-05** at limit **
  24  Prefactor     29.868        32.191       -.34713E-06    .39639E-05
  25  Normalizat    1.0015        .17998        .19770E-05    .17933E-03
  26  Prefactor     .80628        .18427       -.33586E-06    .22248E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.7118
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 0.66265
  Prefactor  = 0.0001
  Prefactor  = 10.938
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.260372
  norm       = 22.1174
  Prefactor  = 0.0001
  Prefactor  = 11.9256
  Prefactor  = 16.5768
  norm       = 1.70301
  Prefactor  = 0.0001
  norm       = 18.4986
  norm       = 3.15936
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 29.8679
  Normalizat = 1.00146
  Prefactor  = 0.806277
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.065     FROM HESSE     STATUS=OK           456 CALLS     3523 TOTAL
                     EDM=   .41E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.712        24.959        .10814E-03   -1.4967    
   2  Prefactor     .10000E-03    9.9047        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    48.594        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    .93784        .71801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .66265        .70612        .67120E-03   -1.5545    
   6  Prefactor     .10000E-03    61.153        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     10.938        42.859        .12099E-03   -1.5046    
   8  Prefactor     .10000E-03    14.924        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    .17162        .30602E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    204.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .26037        .26220        .37811E-03   -1.5606    
  12  norm          22.117        9.6435        .85172E-04   -1.4767    
  13  Prefactor     .10000E-03    50.359        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     11.926        14.968        .11600E-03   -1.5017    
  15  Prefactor     16.577        13.209        .98371E-04   -1.4893    
  16  norm          1.7030        .78557        .38472E-04   -1.5447    
  17  Prefactor     .10000E-03    1.3448        .85698E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          18.499        14.019        .93130E-04   -1.4848    
  19  norm          3.1594        1.6148        .66150E-04   -1.5352    
  20  Prefactor     .10000E-03    2.9736        .25297E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    24.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    21.705        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     .10000E-03    19.467        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     29.868        32.191        .73315E-04   -1.4614    
  25  Normalizat    1.0015        .21126        .23616E-03   -.92981    
  26  Prefactor     .80628        .21611        .27625E-03   -.99497    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.12745e-10
Minuit parameter uncertainties:
  1  24.9782
  2  2.88283e-06
  3  0.000549427
  4  1.0042e-06
  5  0.706129
  6  0.000125306
  7  42.9798
  8  7.32992e-06
  9  3.1264e-06
  10  0.000290751
  11  0.262203
  12  9.64419
  13  3.51432e-05
  14  14.9726
  15  13.2114
  16  0.785573
  17  1.50595e-06
  18  14.0215
  19  1.61487
  20  1.31122e-05
  21  6.88423e-05
  22  0.000176583
  23  5.07111e-06
  24  32.21
  25  0.211438
  26  0.216337
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  2.212e+01  9.644e+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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  8.063e-01  2.163e-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.001e+00  2.114e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.73
Ra Dec: 61.763 -38.439
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 9.27e-08 +/- 4.04e-08
Energy Flux (Fixed Index): 3.40e-05 +/- 1.48e-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) = 5801.06422883
delta logL = 0.00124775585937

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5801.06415164
delta logL = 0.00132494104855

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    22.161       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2243       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0034       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .80499       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=   5801.064     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      197 TOTAL
                     EDM=   .63E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          22.183        19.206        .21272E-02    .44220E-03
   2  alpha         2.2255        .75104        .26449        .12794E-03
   3  Normalizat    1.0032        .17378        .46210E-01    .19316E-03
   4  Prefactor     .80506        .18367        .62552E-01    .15216E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 22.1829
  alpha      = 2.22549
  Normalizat = 1.00325
  Prefactor  = 0.805064
 **********
 **   18 **HESSE 
 **********

 FCN=   5801.064     FROM HESSE     STATUS=OK            31 CALLS      228 TOTAL
                     EDM=   .35E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          22.183        9.4426        .42543E-03   -1.4766    
   2  alpha         2.2255        .40287        .10790E-01   -.11003    
   3  Normalizat    1.0032        .20492        .23599E-03   -.92922    
   4  Prefactor     .80506        .21551        .27667E-03   -.99542    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.52956e-10
Minuit parameter uncertainties:
  1  9.44327
  2  0.404651
  3  0.205085
  4  0.215737
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/260380': 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) = 5801.06414354
delta logL = 0.0013330464817

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  2.218e+01  9.443e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.225e+00  4.047e-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:  8.051e-01  2.157e-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.003e+00  2.051e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 15.83
Ra Dec: 61.763 -38.439
Photon Index (Free Index): 2.23 +/- 0.40
Photon Flux (Free Index): 9.11e-08 +/- 4.90e-08
Energy Flux (Free Index): 3.42e-05 +/- 1.51e-05

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/260380/cmap_HighResolution_474163201_474422401_4FGL_J0407.0-3826_daily_bin906.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.27e-08', energy_flux2='3.42e-05', photon_flux_error='4.04e-08', dlogl='1.33e-03', energy_flux='3.40e-05', photon_flux2='9.11e-08', job_status='DONE', time_completed='2021-08-20 05:25:12.207568', photon_index_error2='0.40', photon_index2='2.23', ts='15.73', fit_tolerance='1e-08', GAL='0.81', photon_index_error='0.00', energy_flux_error2='1.51e-05', EG='1.00', time_epoch_completed='1629462312.21', return_code='0', job_id='260380', GAL2='0.81', EG2='1.00', return_code2='0', energy_flux_error='1.48e-05', photon_flux_error2='4.90e-08', ts2='15.83', photon_index='2.25' WHERE bin_id='906' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:25:12 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0223>
Subject: Job 260380: <4FGL_J0407.0-3826_daily_bin906> in cluster <slac> Done

Job <4FGL_J0407.0-3826_daily_bin906> 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) <bullet0223>, 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:25:13 2021
Results reported at Fri Aug 20 05:25:13 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin906 61.7627 -38.4394 474163201 474422401 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 :                                   852.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             319.82 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   876 sec.
    Turnaround time :                            878 sec.

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

