/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 6 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 = 7415
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin77
RA = 62.4629, Dec = -3.9865
tmin = 259286401, tmax = 259545601
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='277824', job_status='RUN', time_executed='2021-08-20 06:10:57.697474', time_epoch_executed='1629465057.7' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='77'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277824

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277824/ft1_4FGL_J0409.8-0359_daily_bin77.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277824/ft1_4FGL_J0409.8-0359_daily_bin77.fits outfile=/scratch/kocevski/277824/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin77.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=259286401.0 tmax=259545601.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 2.56
user 2.04
sys 0.45

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.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/277824/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin77.fits evtable="EVENTS" outfile="/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.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 0.77
user 0.32
sys 0.44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits" evtable="EVENTS" scfile=/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits sctable="SC_DATA" outfile=/scratch/kocevski/277824/ltcube_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.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/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits
.....................!
real 12.44
user 11.77
sys 0.63

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits sctable="SC_DATA" expcube=/scratch/kocevski/277824/ltcube_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.fits outfile=/scratch/kocevski/277824/expmap_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.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/277824/ltcube_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.fits
.....................!
real 190.77
user 185.74
sys 4.69

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
Added 143 point sources and 0 extended sources

Setting source of interest to:
4FGL J0409.8-0359 @ 62.4629 -3.9865

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits scfile=/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits outfile=/scratch/kocevski/277824/cmap_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.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=62.4629 yref=-3.9865 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 0.88
user 0.36
sys 0.42

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits scfile=/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits outfile=/scratch/kocevski/277824/cmap_HighResolution_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.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=62.4629 yref=-3.9865 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 0.80
user 0.37
sys 0.42

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits evtable="EVENTS" scfile=/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277824/Model_4FGL_J0409.8-0359_daily_bin77.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 GAL_V02
Working on...
/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits.....................!
real 127.97
user 125.41
sys 1.75

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits', '/scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits', expMap='/scratch/kocevski/277824/expmap_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.fits', expCube='/scratch/kocevski/277824/ltcube_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/277824/Model_4FGL_J0409.8-0359_daily_bin77.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0409.8-0359'

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  2.695e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/277824/ft1_filtered_4FGL_J0409.8-0359_daily_bin77.fits
Spacecraft file(s): /scratch/kocevski/277824/ft2_4FGL_J0409.8-0359_daily_bin77.fits
Exposure map: /scratch/kocevski/277824/expmap_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.fits
Exposure cube: /scratch/kocevski/277824/ltcube_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/277824/Model_4FGL_J0409.8-0359_daily_bin77.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) = 9497.48700472

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    6.5261       1.0000         .10000E-03   10000.    
     2 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     3 'Prefactor '    .69226       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.6751       1.0000         .10000E-03   10000.    
     5 'Prefactor '    2.2736       1.0000         .10000E-03   10000.    
     6 'norm      '    .23048E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    49.842       1.0000         .10000E-03   10000.    
     8 'norm      '    .10008E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    16.839       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    3.0122       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .19190       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    10.270       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.2005       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0127       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9497.453     FROM MIGRAD    STATUS=CONVERGED    445 CALLS     2141 TOTAL
                     EDM=   .19E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY= 16.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     6.5277        17.475        .19668E-05    .14948E-03
   2  norm          .10000E-03    .55088       -.13243E-08** at limit **
   3  Prefactor     .68529        258.87       -.45712E-04    .23083E-03
   4  Prefactor     4.6759        6.5473        .26337E-05    .96792E-03
   5  Prefactor     2.2741        23.452        .11542E-04    .42552E-03
   6  norm          .10000E-03    40.642       -.39826E-06** at limit **
   7  Prefactor     49.849        28.784       -.13371E-05   -.45870E-03
   8  norm          .10000E-03    2.0423        .21657E-06** at limit **
   9  norm          16.841        10.301        .88121E-06    .92683E-03
  10  norm          .10000E-03    9.4198        .49104E-06** at limit **
  11  norm          3.0118        1.1234        .50194E-07    .13905E-03
  12  Prefactor     .10000E-03    .92963        .10123E-05** at limit **
  13  Prefactor     .10000E-03    15.823        .65491E-06** at limit **
  14  Prefactor     .10000E-03    26.452       -.39487E-06** at limit **
  15  Prefactor     .10001E-03    14.569        .78318E-06** at limit **
  16  norm          .19408        .97539       -.31770E-06   -.29926E-03
  17  Prefactor     .10000E-03    15.739        .12939E-06** at limit **
  18  norm          10.269        2.7901        .96467E-07    .64491E-03
  19  Normalizat    1.2005        .19103        .60416E-07    .23191E-03
  20  Prefactor     1.0127        .91081E-01   -.74308E-06   -.41700E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 6.52771
  norm       = 0.0001
  Prefactor  = 0.685292
  Prefactor  = 4.67593
  Prefactor  = 2.27408
  norm       = 0.000100001
  Prefactor  = 49.8492
  norm       = 0.0001
  norm       = 16.8413
  norm       = 0.0001
  norm       = 3.0118
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100006
  norm       = 0.194085
  Prefactor  = 0.000100001
  norm       = 10.2694
  Normalizat = 1.20049
  Prefactor  = 1.01267
 **********
 **   18 **HESSE 
 **********

 FCN=   9497.453     FROM HESSE     STATUS=OK           303 CALLS     2444 TOTAL
                     EDM=   .36E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     6.5277        17.714        .78548E-03   -1.5197    
   2  norm          .10000E-03    .57204        .14104E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Prefactor     .68529        46.860        .16181       -1.5542    
   4  Prefactor     4.6759        6.8924        .93061E-03   -1.5275    
   5  Prefactor     2.2741        24.318        .13617E-02   -1.5406    
   6  norm          .10000E-03    42.618        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     49.849        29.032        .56803E-04   -1.4295    
   8  norm          .10000E-03    5.8128        .26847E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          16.841        10.409        .48801E-03   -1.4887    
  10  norm          .10000E-03    9.4580        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          3.0118        1.1035        .59498E-04   -1.5361    
  12  Prefactor     .10000E-03    2.3464        .17582E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    15.898        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    26.510        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10001E-03    15.000        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .19408        4.1632        .18488E-02   -1.5620    
  17  Prefactor     .10000E-03    15.955        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          10.269        2.7919        .81135E-04   -1.5067    
  19  Normalizat    1.2005        .21916        .34154E-03   -.86588    
  20  Prefactor     1.0127        .10483        .18212E-03   -.92308    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60167e-08
Minuit parameter uncertainties:
  1  17.7286
  2  2.75113e-07
  3  11.3421
  4  6.89356
  5  14.8804
  6  0.000384152
  7  29.0398
  8  2.79212e-05
  9  10.4104
  10  0.000123223
  11  1.10354
  12  0.000101388
  13  2.36531e-05
  14  3.92599e-05
  15  0.000613717
  16  1.79747
  17  0.000200275
  18  2.79189
  19  0.219328
  20  0.104856
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  3.842e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.677e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.013e+00  1.049e-01  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.200e+00  2.193e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 62.463 -3.986
Photon Flux Upper Limit: 2.95e-08 ph cm-2 s-1
Energy Flux Upper Limit: 4.02e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277824/likelihoodResults_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.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) = 9497.45298335
delta logL = -0.000111971046863

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9497.45026139
delta logL = 0.00260999368038

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .73341       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4705       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2001       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0122       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4630E+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.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   9497.450     FROM MIGRAD    STATUS=FAILED        94 CALLS      298 TOTAL
                     EDM=   .21E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73495        7875.3        .45119E-02   -.14352E-02
   2  alpha         2.4737        2.8468        .13152       -.42603E-04
   3  Normalizat    1.2004        .13965        .34155E-03    .95864E-05
   4  Prefactor     1.0121        .98140E-01    .18217E-03    .15100E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   9497.450     FROM SIMPLEX   STATUS=UNCHANGED    107 CALLS      405 TOTAL
                     EDM=   .70E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73495        7875.3        .66030E-03   -.14352E-02
   2  alpha         2.4737        2.8468        .22543E-02   -.42603E-04
   3  Normalizat    1.2004        .13965        .51788E-04    .95864E-05
   4  Prefactor     1.0121        .98140E-01    .25542E-04    .15100E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9497.450     FROM MIGRAD    STATUS=CONVERGED     35 CALLS      440 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .73673        37.908        .18048E-03    .10079E-05
   2  alpha         2.4739        3.7043        .52609E-02   -.32847E-06
   3  Normalizat    1.2004        .20113        .13662E-04   -.11983E-03
   4  Prefactor     1.0121        .10045        .36434E-04   -.14853E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.736726
  alpha      = 2.47394
  Normalizat = 1.20038
  Prefactor  = 1.01208
 **********
 **   18 **HESSE 
 **********

 FCN=   9497.450     FROM HESSE     STATUS=OK            23 CALLS      463 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .73673        37.502        .72191E-05   -1.5536    
   2  alpha         2.4739        3.7071        .21044E-03   -.10424E-01
   3  Normalizat    1.2004        .20127        .27324E-05   -.86591    
   4  Prefactor     1.0121        .10050        .72868E-05   -.92328    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96715e-11
Minuit parameter uncertainties:
  1  10.5189
  2  4.44873
  3  0.201397
  4  0.100517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277824': 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) = 9497.45025949
delta logL = 0.00261188582226

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  7.367e-01  1.052e+01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  2.474e+00  4.449e+00  0.000e+00  5.000e+00 ( 1.000e+00)
239         beta:  2.988e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
240           Eb:  1.671e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
460    Prefactor:  1.012e+00  1.005e-01  0.000e+00  1.000e+01 ( 1.000e+00)
461        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
462        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
459   Normalization:  1.200e+00  2.014e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 62.463 -3.986

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/277824/cmap_HighResolution_259286401_259545601_4FGL_J0409.8-0359_daily_bin77.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.02e-05', job_status='DONE', photon_flux_upper_limit='2.95e-08', time_completed='2021-08-20 06:23:09.434831', job_id='277824', GAL2='1.01', fit_tolerance='1e-08', EG2='1.20', EG='1.20', time_epoch_completed='1629465789.43', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.01', dlogl='2.61e-03', ts2='0.01', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='77' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:23:09 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0185>
Subject: Job 277824: <4FGL_J0409.8-0359_daily_bin77> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin77> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 06:10:30 2021
Job was executed on host(s) <bullet0185>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:10:32 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 06:10:32 2021
Terminated at Fri Aug 20 06:23:09 2021
Results reported at Fri Aug 20 06:23:09 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin77 62.4629 -3.9865 259286401 259545601 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0409.8-0359 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   732.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             362.30 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   757 sec.
    Turnaround time :                            759 sec.

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

