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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin1090
RA = 61.7627, Dec = -38.4394
tmin = 521856001, tmax = 522115201
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='261768', job_status='RUN', time_executed='2021-08-20 05:17:01.582146', time_epoch_executed='1629461821.58' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='1090'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/261768

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/261768/ft1_4FGL_J0407.0-3826_daily_bin1090.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/261768/ft1_4FGL_J0407.0-3826_daily_bin1090.fits outfile=/scratch/kocevski/261768/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin1090.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=521856001.0 tmax=522115201.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.10
user 3.56
sys 3.50

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/261768/ft1_filtered_4FGL_J0407.0-3826_daily_bin1090.fits" evtable="EVENTS" scfile=/scratch/kocevski/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits sctable="SC_DATA" outfile=/scratch/kocevski/261768/ltcube_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.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/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits
.....................!
real 15.40
user 11.27
sys 4.05

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/261768/ft1_filtered_4FGL_J0407.0-3826_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits sctable="SC_DATA" expcube=/scratch/kocevski/261768/ltcube_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.fits outfile=/scratch/kocevski/261768/expmap_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.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/261768/ltcube_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.fits
.....................!
real 196.36
user 185.78
sys 10.24

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/261768/ft1_filtered_4FGL_J0407.0-3826_daily_bin1090.fits scfile=/scratch/kocevski/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits outfile=/scratch/kocevski/261768/cmap_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.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.77
user 0.37
sys 3.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/261768/ft1_filtered_4FGL_J0407.0-3826_daily_bin1090.fits scfile=/scratch/kocevski/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits outfile=/scratch/kocevski/261768/cmap_HighResolution_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.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.83
user 0.38
sys 3.43

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/261768/ft1_filtered_4FGL_J0407.0-3826_daily_bin1090.fits evtable="EVENTS" scfile=/scratch/kocevski/261768/ft2_4FGL_J0407.0-3826_daily_bin1090.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/261768/Model_4FGL_J0407.0-3826_daily_bin1090.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/261768/ft1_filtered_4FGL_J0407.0-3826_daily_bin1090.fits.....................!
real 106.32
user 100.56
sys 5.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10055E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    21.630       1.0000         .10000E-03   10000.    
     3 'Prefactor '    103.84       1.0000         .10000E-03   10000.    
     4 'norm      '    6.0993       1.0000         .10000E-03   10000.    
     5 'norm      '    .54393       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10458E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .26248E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    17.745       1.0000         .10000E-03   10000.    
     9 'norm      '    1.2581       1.0000         .10000E-03   10000.    
    10 'Prefactor '    121.65       1.0000         .10000E-03   10000.    
    11 'norm      '    .11133E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.043       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10279E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .30501       1.0000         .10000E-03   10000.    
    15 'Prefactor '    8.7277       1.0000         .10000E-03   10000.    
    16 'norm      '    2.0545       1.0000         .10000E-03   10000.    
    17 'Prefactor '    5.1550       1.0000         .10000E-03   10000.    
    18 'norm      '    12.749       1.0000         .10000E-03   10000.    
    19 'norm      '    2.5846       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .36697       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    4.1884       1.0000         .10000E-03   10000.    
    23 'Prefactor '    .10100E-03   1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.6522       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .34958       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=   4731.389     FROM MIGRAD    STATUS=CONVERGED    636 CALLS     3139 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    26.782       -.33935E-06** at limit **
   2  Prefactor     21.621        30.738       -.62768E-06   -.67243E-04
   3  Prefactor     103.80        59.560        .30250E-06    .75092E-04
   4  norm          6.0998        4.3708       -.84286E-07    .16441E-03
   5  norm          .54396        .52577       -.29319E-07   -.43258E-03
   6  Prefactor     .10000E-03    79.514        .59941E-06** at limit **
   7  Prefactor     .10006E-03    203.33       -.19220E-05** at limit **
   8  Prefactor     17.755        20.780        .31466E-06    .19053E-03
   9  norm          1.2569        1.0521       -.91222E-07   -.79490E-03
  10  Prefactor     121.62        121.86        .45393E-06    .50747E-04
  11  norm          .10000E-03    .26864        .14900E-06** at limit **
  12  norm          10.049        10.440        .12796E-05    .62218E-03
  13  Prefactor     .10000E-03    88.252       -.13685E-05** at limit **
  14  Prefactor     .39646        141.60       -.33164E-04    .12991E-03
  15  Prefactor     8.7040        14.204        .21372E-05    .28926E-03
  16  norm          2.0536        .90778        .24175E-06    .86477E-03
  17  Prefactor     5.1544        3.5723       -.23801E-07    .12832E-03
  18  norm          12.748        11.893        .96558E-08   -.13213E-04
  19  norm          2.5844        1.6857        .70107E-08   -.47823E-03
  20  Prefactor     .36499        2.3421        .23456E-06    .29492E-03
  21  Prefactor     .10000E-03    10.852       -.37482E-07** at limit **
  22  norm          4.1878        6.5816        .95124E-07    .21991E-03
  23  Prefactor     .10000E-03    183.66        .15701E-05** at limit **
  24  Prefactor     .10000E-03    119.28       -.19612E-05** at limit **
  25  Normalizat    1.6529        .23490        .28145E-05    .66866E-03
  26  Prefactor     .34885        .23816       -.34764E-05   -.21542E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 21.6208
  Prefactor  = 103.796
  norm       = 6.09983
  norm       = 0.543957
  Prefactor  = 0.0001
  Prefactor  = 0.000100055
  Prefactor  = 17.755
  norm       = 1.25693
  Prefactor  = 121.616
  norm       = 0.0001
  norm       = 10.0489
  Prefactor  = 0.0001
  Prefactor  = 0.396459
  Prefactor  = 8.70403
  norm       = 2.05359
  Prefactor  = 5.15439
  norm       = 12.7484
  norm       = 2.58441
  Prefactor  = 0.364992
  Prefactor  = 0.0001
  norm       = 4.18782
  Prefactor  = 0.000100002
  Prefactor  = 0.000100001
  Normalizat = 1.6529
  Prefactor  = 0.348851
 **********
 **   18 **HESSE 
 **********

 FCN=   4731.389     FROM HESSE     STATUS=OK           468 CALLS     3607 TOTAL
                     EDM=   .45E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    27.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     21.621        30.839        .86123E-04   -1.4778    
   3  Prefactor     103.80        59.674        .19729E-03   -1.3667    
   4  norm          6.0998        4.3618        .11618E-03   -1.5214    
   5  norm          .54396        .54286        .47577E-03   -1.5560    
   6  Prefactor     .10000E-03    79.807        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10006E-03    206.86        .21445E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     17.755        20.690        .95078E-04   -1.4865    
   9  norm          1.2569        1.0565        .62406E-04   -1.5484    
  10  Prefactor     121.62        122.14        .18245E-03   -1.3498    
  11  norm          .10000E-03    .63252        .65413E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.049        10.375        .12644E-03   -1.5074    
  13  Prefactor     .10000E-03    89.223        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .39646        157.17        .44505E-02   -1.5582    
  15  Prefactor     8.7040        14.427        .13568E-03   -1.5118    
  16  norm          2.0536        .91786        .37216E-04   -1.5421    
  17  Prefactor     5.1544        3.5628        .98673E-04   -1.5254    
  18  norm          12.748        11.801        .11218E-03   -1.4994    
  19  norm          2.5844        1.7005        .67339E-04   -1.5386    
  20  Prefactor     .36499        7.1723        .17741E-02   -1.5587    
  21  Prefactor     .10000E-03    10.859        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          4.1878        6.5686        .19692E-03   -1.5299    
  23  Prefactor     .10000E-03    185.18        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .10000E-03    120.78        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.6529        .25975        .21406E-03   -.73568    
  26  Prefactor     .34885        .25275        .44913E-03   -1.1950    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.5351e-09
Minuit parameter uncertainties:
  1  5.00027e-05
  2  30.8621
  3  59.7085
  4  4.36207
  5  0.542865
  6  9.60486e-05
  7  0.00677432
  8  20.6979
  9  1.0565
  10  122.398
  11  2.84752e-05
  12  10.3774
  13  0.000119983
  14  15.8273
  15  14.433
  16  0.91787
  17  3.56297
  18  11.8031
  19  1.70053
  20  3.23596
  21  1.35127e-05
  22  6.56969
  23  0.00109347
  24  0.000510061
  25  0.259962
  26  0.253559
Done.

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

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.005e+01  1.038e+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:  3.489e-01  2.536e-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.653e+00  2.600e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.28
Ra Dec: 61.763 -38.439
Photon Index (Fixed Index): 2.25 +/- 0.00
Photon Flux (Fixed Index): 4.21e-08 +/- 4.35e-08
Energy Flux (Fixed Index): 1.54e-05 +/- 1.60e-05

TS (Fixed Index): 1.28
Ra Dec: 61.763 -38.439
Photon Flux Upper Limit: 1.35e-07 ph cm-2 s-1
Energy Flux Upper Limit: 4.95e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/261768/likelihoodResults_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.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) = 4730.90302427
delta logL = 0.485754523452

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 4730.89193363
delta logL = 0.496845157169

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    7.1851       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1044       1.0000          .0000       5.0000    
     3 'Normalizat'    1.6046       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .38207       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=   4730.892     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      241 TOTAL
                     EDM=   .94E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          7.1820        133.68        .37411E-02    .27244E-03
   2  alpha         3.1048        3.8332        .35251        .38231E-04
   3  Normalizat    1.6046        .80695E-01    .48956E-01    .21074E-03
   4  Prefactor     .38200        .83811E-01    .97032E-01    .15570E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 7.182
  alpha      = 3.10478
  Normalizat = 1.60465
  Prefactor  = 0.382001
 **********
 **   18 **HESSE 
 **********

 FCN=   4730.892     FROM HESSE     STATUS=OK            31 CALLS      272 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          7.1820        10.017        .13352E-03   -1.5172    
   2  alpha         3.1048        1.0267        .13905E-01    .24434    
   3  Normalizat    1.6046        .24819        .21641E-03   -.74879    
   4  Prefactor     .38200        .25215        .43017E-03   -1.1774    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.93578e-11
Minuit parameter uncertainties:
  1  10.0189
  2  1.06008
  3  0.248378
  4  0.252884
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/261768': 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) = 4730.89193352
delta logL = 0.496845269358

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  7.182e+00  1.002e+01  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  3.105e+00  1.060e+00  0.000e+00  5.000e+00 ( 1.000e+00)
282         beta:  1.120e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
283           Eb:  6.315e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  3.820e-01  2.529e-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.605e+00  2.484e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.30
Ra Dec: 61.763 -38.439
Photon Index (Free Index): 3.10 +/- 1.06
Photon Flux (Free Index): 8.30e-08 +/- 6.71e-08
Energy Flux (Free Index): 1.66e-05 +/- 1.33e-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/261768/cmap_HighResolution_521856001_522115201_4FGL_J0407.0-3826_daily_bin1090.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.95e-05', comment='SUCCESS', photon_flux='4.21e-08', energy_flux2='1.66e-05', photon_flux_error='4.35e-08', dlogl='4.97e-01', energy_flux='1.54e-05', photon_flux2='8.30e-08', job_status='DONE', time_completed='2021-08-20 05:29:25.796663', photon_index_error2='1.06', photon_index2='3.10', ts='1.28', fit_tolerance='1e-08', GAL='0.35', photon_index_error='0.00', photon_flux_upper_limit='1.35e-07', energy_flux_error2='1.33e-05', EG='1.65', time_epoch_completed='1629462565.8', return_code='0', job_id='261768', GAL2='0.38', EG2='1.60', return_code2='0', energy_flux_error='1.60e-05', photon_flux_error2='6.71e-08', ts2='2.30', photon_index='2.25' WHERE bin_id='1090' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:29:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0091>
Subject: Job 261768: <4FGL_J0407.0-3826_daily_bin1090> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin1090 61.7627 -38.4394 521856001 522115201 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 :                                   793.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             315.21 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   837 sec.
    Turnaround time :                            840 sec.

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

