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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin1107
RA = 61.7627, Dec = -38.4394
tmin = 526262401, tmax = 526521601
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='261793', job_status='RUN', time_executed='2021-08-20 05:16:37.432903', time_epoch_executed='1629461797.43' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='1107'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261793

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261793/ft1_4FGL_J0407.0-3826_daily_bin1107.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261793/ft1_4FGL_J0407.0-3826_daily_bin1107.fits outfile=/scratch/kocevski/261793/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1107.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=526262401.0 tmax=526521601.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 7.15
user 3.73
sys 3.39

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261793/ft1_filtered_4FGL_J0407.0-3826_daily_bin1107.fits" evtable="EVENTS" scfile=/scratch/kocevski/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits sctable="SC_DATA" outfile=/scratch/kocevski/261793/ltcube_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.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/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits
.....................!
real 15.47
user 11.52
sys 3.91

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261793/ft1_filtered_4FGL_J0407.0-3826_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits sctable="SC_DATA" expcube=/scratch/kocevski/261793/ltcube_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.fits outfile=/scratch/kocevski/261793/expmap_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.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/261793/ltcube_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.fits
.....................!
real 195.25
user 185.65
sys 9.26

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/261793/ft1_filtered_4FGL_J0407.0-3826_daily_bin1107.fits scfile=/scratch/kocevski/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits outfile=/scratch/kocevski/261793/cmap_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.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 3.63
user 0.37
sys 3.24

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261793/ft1_filtered_4FGL_J0407.0-3826_daily_bin1107.fits scfile=/scratch/kocevski/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits outfile=/scratch/kocevski/261793/cmap_HighResolution_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.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 3.62
user 0.37
sys 3.23

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261793/ft1_filtered_4FGL_J0407.0-3826_daily_bin1107.fits evtable="EVENTS" scfile=/scratch/kocevski/261793/ft2_4FGL_J0407.0-3826_daily_bin1107.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261793/Model_4FGL_J0407.0-3826_daily_bin1107.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/261793/ft1_filtered_4FGL_J0407.0-3826_daily_bin1107.fits.....................!
real 103.71
user 98.21
sys 5.31

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    17.051       1.0000         .10000E-03   10000.    
     4 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .29501       1.0000         .10000E-03   10000.    
     6 'Prefactor '    55.396       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    3.4783       1.0000         .10000E-03   10000.    
    10 'Prefactor '    143.96       1.0000         .10000E-03   10000.    
    11 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    1.7362       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    16.307       1.0000         .10000E-03   10000.    
    16 'norm      '    2.6786       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .82145       1.0000         .10000E-03   10000.    
    18 'norm      '    13.253       1.0000         .10000E-03   10000.    
    19 'norm      '    4.1750       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .59282E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    23 'Prefactor '    94.674       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.4843       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .57114       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=   4706.121     FROM MIGRAD    STATUS=CONVERGED    616 CALLS     3079 TOTAL
                     EDM=   .32E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.278        .13955E-05** at limit **
   2  Prefactor     .10000E-03    20.615        .11361E-05** at limit **
   3  Prefactor     17.054        47.630        .94405E-06    .36146E-05
   4  norm          .10000E-03    1.7582       -.76233E-07** at limit **
   5  norm          .29519        .76432       -.46454E-06   -.97849E-04
   6  Prefactor     55.376        75.549       -.38559E-05   -.64653E-05
   7  Prefactor     .10000E-03    19.515       -.14244E-05** at limit **
   8  Prefactor     .10000E-03    14.115       -.65716E-07** at limit **
   9  norm          3.4783        1.2672        .15005E-07    .44883E-04
  10  Prefactor     143.96        151.54        .10913E-06    .10947E-04
  11  norm          .10000E-03    .17054       -.11422E-06** at limit **
  12  norm          1.7368        5.7783       -.20684E-05   -.51314E-04
  13  Prefactor     .10000E-03    50.577       -.81702E-05** at limit **
  14  Prefactor     .10000E-03    5.0392        .46254E-08** at limit **
  15  Prefactor     16.302        13.100        .39412E-06    .98145E-04
  16  norm          2.6789        .89640       -.77471E-08    .35692E-03
  17  Prefactor     .82128        3.5333       -.38955E-07    .55298E-04
  18  norm          13.244        13.470       -.13600E-06    .83426E-04
  19  norm          4.1738        2.0503        .43992E-06    .56608E-03
  20  Prefactor     .10000E-03    40.610        .89811E-05** at limit **
  21  Prefactor     .10000E-03    9.7980       -.17608E-05** at limit **
  22  norm          .10000E-03    4.8710       -.46339E-06** at limit **
  23  Prefactor     94.659        71.340       -.12773E-05    .92956E-05
  24  Prefactor     .10000E-03    41.666        .41839E-05** at limit **
  25  Normalizat    1.4843        .22447       -.11570E-05    .31181E-03
  26  Prefactor     .57099        .23390        .28058E-05    .99415E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 17.0545
  norm       = 0.0001
  norm       = 0.295188
  Prefactor  = 55.3764
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.47833
  Prefactor  = 143.962
  norm       = 0.0001
  norm       = 1.73684
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.3015
  norm       = 2.67892
  Prefactor  = 0.821279
  norm       = 13.2435
  norm       = 4.1738
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 94.659
  Prefactor  = 0.0001
  Normalizat = 1.48426
  Prefactor  = 0.570989
 **********
 **   18 **HESSE 
 **********

 FCN=   4706.121     FROM HESSE     STATUS=OK           456 CALLS     3535 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    20.674        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     17.054        47.587        .96994E-04   -1.4882    
   4  norm          .10000E-03    1.7689        .88788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .29519        .75599        .91869E-04   -1.5599    
   6  Prefactor     55.376        76.088        .53894E-04   -1.4218    
   7  Prefactor     .10000E-03    19.523        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    14.165        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          3.4783        1.2690        .45313E-04   -1.5335    
  10  Prefactor     143.96        151.80        .33580E-04   -1.3302    
  11  norm          .10000E-03    .30210        .53615E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          1.7368        5.7186        .28841E-03   -1.5444    
  13  Prefactor     .10000E-03    50.620        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    5.0427        .15038E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     16.302        13.214        .99183E-04   -1.4900    
  16  norm          2.6789        .90246        .33841E-04   -1.5381    
  17  Prefactor     .82128        3.5423        .22917E-03   -1.5527    
  18  norm          13.244        13.193        .11003E-03   -1.4980    
  19  norm          4.1738        2.0172        .64590E-04   -1.5299    
  20  Prefactor     .10000E-03    40.021        .16640E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    9.8189        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          .10000E-03    4.8941        .14784E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  23  Prefactor     94.659        71.204        .20653E-03   -1.3759    
  24  Prefactor     .10000E-03    41.729        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.4843        .25644        .22262E-03   -.78221    
  26  Prefactor     .57099        .26454        .36563E-03   -1.0882    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.50065e-10
Minuit parameter uncertainties:
  1  1.76067e-05
  2  8.49028e-05
  3  47.6934
  4  2.41521e-06
  5  0.756014
  6  76.2221
  7  2.25937e-05
  8  1.74627e-05
  9  1.26901
  10  152.211
  11  1.48347e-05
  12  5.72035
  13  9.17421e-05
  14  1.3059e-06
  15  13.216
  16  0.902467
  17  3.4114
  18  13.1962
  19  2.01721
  20  0.000323899
  21  2.07777e-05
  22  8.06046e-06
  23  71.2683
  24  8.35038e-05
  25  0.256668
  26  0.265121
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.737e+00  5.720e+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:  5.710e-01  2.651e-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.484e+00  2.567e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.12
Ra Dec: 61.763 -38.439
Photon Flux Upper Limit: 8.36e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.07e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261793/likelihoodResults_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4705.93181301
delta logL = 0.189663755534

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4705.90437645
delta logL = 0.217100316642

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.6386       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.4057       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4935       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .55879       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=   4705.904     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      213 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.6358        4.6602        .62752E-02    .19888E-03
   2  alpha         1.4050        .76427        .47769       -.23591E-04
   3  Normalizat    1.4936        .21291        .50217E-01   -.14515E-04
   4  Prefactor     .55877        .22916        .83323E-01    .32510E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 2.63584
  alpha      = 1.40496
  Normalizat = 1.49356
  Prefactor  = 0.558769
 **********
 **   18 **HESSE 
 **********

 FCN=   4705.904     FROM HESSE     STATUS=OK            33 CALLS      246 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.6358        4.9611        .18736E-03   -1.5383    
   2  alpha         1.4050        .96904        .22726E-01   -.45339    
   3  Normalizat    1.4936        .24470        .22200E-03   -.77959    
   4  Prefactor     .55877        .26248        .36911E-03   -1.0935    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.99733e-09
Minuit parameter uncertainties:
  1  4.96189
  2  1.0019
  3  0.244894
  4  0.263059
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261793': 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) = 4705.90437592
delta logL = 0.217100849221

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  2.636e+00  4.962e+00  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  1.405e+00  1.002e+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:  5.588e-01  2.631e-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.494e+00  2.449e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.12
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/261793/cmap_HighResolution_526262401_526521601_4FGL_J0407.0-3826_daily_bin1107.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.07e-05', job_status='DONE', photon_flux_upper_limit='8.36e-08', time_completed='2021-08-20 05:28:45.435718', job_id='261793', GAL2='0.56', fit_tolerance='1e-08', EG2='1.49', EG='1.48', time_epoch_completed='1629462525.44', return_code2='0', ts='0.12', comment='SUCCESS', return_code='0', GAL='0.57', dlogl='2.17e-01', ts2='0.55', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='1107' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:28:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0079>
Subject: Job 261793: <4FGL_J0407.0-3826_daily_bin1107> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin1107 61.7627 -38.4394 526262401 526521601 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 :                                   772.51 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             314.38 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   796 sec.
    Turnaround time :                            797 sec.

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

