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


Performing analysis on: 4FGL_J0407.0-3826_daily_bin732
RA = 61.7627, Dec = -38.4394
tmin = 429062401, tmax = 429321601
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='258942', job_status='RUN', time_executed='2021-08-20 05:05:59.911425', time_epoch_executed='1629461159.91' WHERE source_name='4FGL J0407.0-3826' and cadence='daily' and bin_id='732'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/258942

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/258942/ft1_4FGL_J0407.0-3826_daily_bin732.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/258942/ft1_4FGL_J0407.0-3826_daily_bin732.fits outfile=/scratch/kocevski/258942/ft1_filteredMKT_4FGL_J0407.0-3826_daily_bin732.fits ra=61.7627 dec=-38.4394 rad=12.0 tmin=429062401.0 tmax=429321601.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.82
user 6.04
sys 1.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/258942/ft1_filtered_4FGL_J0407.0-3826_daily_bin732.fits" evtable="EVENTS" scfile=/scratch/kocevski/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits sctable="SC_DATA" outfile=/scratch/kocevski/258942/ltcube_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.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/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits
.....................!
real 13.84
user 11.80
sys 1.95

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/258942/ft1_filtered_4FGL_J0407.0-3826_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits sctable="SC_DATA" expcube=/scratch/kocevski/258942/ltcube_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.fits outfile=/scratch/kocevski/258942/expmap_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.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/258942/ltcube_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.fits
.....................!
real 192.08
user 184.46
sys 7.19

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/258942/ft1_filtered_4FGL_J0407.0-3826_daily_bin732.fits scfile=/scratch/kocevski/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits outfile=/scratch/kocevski/258942/cmap_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.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.97
user 0.37
sys 1.58

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/258942/ft1_filtered_4FGL_J0407.0-3826_daily_bin732.fits scfile=/scratch/kocevski/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits outfile=/scratch/kocevski/258942/cmap_HighResolution_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.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.99
user 0.39
sys 1.59

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/258942/ft1_filtered_4FGL_J0407.0-3826_daily_bin732.fits evtable="EVENTS" scfile=/scratch/kocevski/258942/ft2_4FGL_J0407.0-3826_daily_bin732.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/258942/Model_4FGL_J0407.0-3826_daily_bin732.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/258942/ft1_filtered_4FGL_J0407.0-3826_daily_bin732.fits.....................!
real 150.31
user 146.74
sys 3.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10175E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .67805E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    3.8907       1.0000         .10000E-03   10000.    
     5 'norm      '    .64768       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    45.340       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .13573       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .47175E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.2240       1.0000         .10000E-03   10000.    
    12 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.1575       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.618       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.878       1.0000         .10000E-03   10000.    
    16 'norm      '    3.7258       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.2726       1.0000         .10000E-03   10000.    
    18 'norm      '    3.2369       1.0000         .10000E-03   10000.    
    19 'norm      '    5.0664       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    11.823       1.0000         .10000E-03   10000.    
    23 'Prefactor '    3.5029       1.0000         .10000E-03   10000.    
    24 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    25 'Normalizat'    1.0476       1.0000         .10000E-01   10.000    
    26 'Prefactor '    .97961       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=   7018.191     FROM MIGRAD    STATUS=CONVERGED    599 CALLS     2685 TOTAL
                     EDM=   .60E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  3.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    9.5108       -.11242E-06** at limit **
   2  Prefactor     .10000E-03    59.018       -.11424E-04** at limit **
   3  Prefactor     .10000E-03    11.192        .37234E-06** at limit **
   4  norm          3.8909        3.0072       -.61414E-07    .34212E-04
   5  norm          .64770        .55223       -.28855E-07   -.12902E-03
   6  Prefactor     .10000E-03    30.292        .12928E-05** at limit **
   7  Prefactor     45.343        34.501        .27439E-06   -.29008E-05
   8  Prefactor     .10000E-03    16.872       -.24134E-06** at limit **
   9  norm          .13574        .35561       -.80459E-07    .12151E-04
  10  Prefactor     .10001E-03    374.52       -.28914E-05** at limit **
  11  norm          3.2240        .51642        .27333E-07    .60398E-03
  12  norm          .10000E-03    3.9989       -.66536E-07** at limit **
  13  Prefactor     1.1886        102.14       -.54726E-05    .61057E-05
  14  Prefactor     28.613        16.212       -.10218E-06    .36602E-04
  15  Prefactor     19.877        12.772       -.10986E-06    .78270E-04
  16  norm          3.7259        1.0458       -.17393E-07    .12572E-03
  17  Prefactor     1.2726        2.1331       -.73924E-06   -.10110E-04
  18  norm          3.2377        7.4615       -.60880E-06    .74071E-04
  19  norm          5.0665        1.8551        .55550E-07    .14660E-03
  20  Prefactor     .10000E-03    1.0813        .92958E-07** at limit **
  21  Prefactor     .10000E-03    12.006       -.49535E-07** at limit **
  22  norm          11.822        7.2567        .14946E-06    .94105E-04
  23  Prefactor     3.5069        97.644       -.29238E-06    .75080E-06
  24  Prefactor     .10000E-03    34.848       -.71666E-06** at limit **
  25  Normalizat    1.0475        .17481        .38583E-06    .16744E-03
  26  Prefactor     .97960        .19432        .52309E-06    .21009E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.8909
  norm       = 0.647699
  Prefactor  = 0.0001
  Prefactor  = 45.3426
  Prefactor  = 0.0001
  norm       = 0.135738
  Prefactor  = 0.000100006
  norm       = 3.22399
  norm       = 0.0001
  Prefactor  = 1.18859
  Prefactor  = 28.6132
  Prefactor  = 19.8773
  norm       = 3.72593
  Prefactor  = 1.27259
  norm       = 3.23766
  norm       = 5.06653
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 11.8222
  Prefactor  = 3.50689
  Prefactor  = 0.0001
  Normalizat = 1.0475
  Prefactor  = 0.979603
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.191     FROM HESSE     STATUS=OK           462 CALLS     3147 TOTAL
                     EDM=   .12E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    9.5436        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    58.128        .57137E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .10000E-03    11.186        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          3.8909        2.9997        .12300E-03   -1.5313    
   5  norm          .64770        .53111        .55491E-03   -1.5547    
   6  Prefactor     .10000E-03    30.216        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     45.343        34.495        .59543E-04   -1.4360    
   8  Prefactor     .10000E-03    17.170        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .13574        .35503        .38721E-04   -1.5634    
  10  Prefactor     .10001E-03    374.20        .42372E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.2240        .51855        .22807E-04   -1.5349    
  12  norm          .10000E-03    4.0432        .16356E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     1.1886        101.86        .42884E-03   -1.5490    
  14  Prefactor     28.613        16.223        .74891E-04   -1.4638    
  15  Prefactor     19.877        12.928        .89835E-04   -1.4816    
  16  norm          3.7259        1.0601        .37474E-04   -1.5322    
  17  Prefactor     1.2726        2.1024        .14809E-03   -1.5482    
  18  norm          3.2377        7.3712        .22514E-03   -1.5348    
  19  norm          5.0665        1.8519        .65571E-04   -1.5258    
  20  Prefactor     .10000E-03    1.1038        .16970E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    12.041        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          11.822        7.2357        .11650E-03   -1.5020    
  23  Prefactor     3.5069        97.532        .21602E-03   -1.5333    
  24  Prefactor     .10000E-03    34.906        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  25  Normalizat    1.0475        .21074        .25754E-03   -.91456    
  26  Prefactor     .97960        .23586        .30365E-03   -.93413    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.19574e-10
Minuit parameter uncertainties:
  1  9.86365e-06
  2  0.000128689
  3  2.1898e-05
  4  2.9998
  5  0.531117
  6  0.000124318
  7  34.5103
  8  3.01201e-05
  9  0.355032
  10  0.00302096
  11  0.518551
  12  7.2904e-06
  13  22.0439
  14  16.2256
  15  12.9301
  16  1.06012
  17  2.10248
  18  7.37331
  19  1.85187
  20  6.35269e-06
  21  2.487e-05
  22  7.23628
  23  37.0548
  24  2.70418e-05
  25  0.210904
  26  0.23611
Done.

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

Extracting fit parameters...

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

GAL_V02
   Spectrum: PowerLaw
576    Prefactor:  9.796e-01  2.361e-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.047e+00  2.109e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/258942/likelihoodResults_429062401_429321601_4FGL_J0407.0-3826_daily_bin732.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7018.19168171
delta logL = -0.00117704176682

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7018.19050463
delta logL = 4.03770172852e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2337       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0475       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97962       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5790E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7018.191     FROM MIGRAD    STATUS=CONVERGED     97 CALLS      236 TOTAL
                     EDM=   .76E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.077        .16454E-01** at limit **
   2  alpha         2.0077        3.6565        .50000       -.43337E-07
   3  Normalizat    1.0475        .13106E-01    .25754E-03    .66393E-04
   4  Prefactor     .97960        .15065E-01    .30365E-03    .57208E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.00774
  Normalizat = 1.0475
  Prefactor  = 0.979602
 **********
 **   18 **HESSE 
 **********

 FCN=   7018.191     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      265 TOTAL
                     EDM=   .21E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1012.2        .33325E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0077        3.4149        .50000       -.19820    
   3  Normalizat    1.0475        .16830        .10301E-04   -.91456    
   4  Prefactor     .97960        .19342        .12146E-04   -.93413    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.06843e-08
Minuit parameter uncertainties:
  1  0.000858422
  2  2503.47
  3  0.168388
  4  0.193561
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/258942': 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): 102
logL (Free Index) = 7018.19050392
delta logL = 7.5746265793e-07

Extracting fit parameters...

4FGL J0407.0-3826
   Spectrum: LogParabola
280         norm:  1.000e-04  8.584e-04  1.000e-04  1.000e+04 ( 1.000e-12)
281        alpha:  2.008e+00  2.503e+03  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.796e-01  1.936e-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.048e+00  1.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.763 -38.439

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

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.10e-05', job_status='DONE', photon_flux_upper_limit='5.73e-08', time_completed='2021-08-20 05:20:50.638974', job_id='258942', GAL2='0.98', fit_tolerance='1e-08', EG2='1.05', EG='1.05', time_epoch_completed='1629462050.64', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='7.57e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.25' WHERE bin_id='732' AND source_name='4FGL J0407.0-3826' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:20:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0244>
Subject: Job 258942: <4FGL_J0407.0-3826_daily_bin732> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.0-3826_daily_bin732 61.7627 -38.4394 429062401 429321601 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 :                                   911.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             344.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   930 sec.
    Turnaround time :                            931 sec.

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

