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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin809
RA = 62.4629, Dec = -3.9865
tmin = 449020801, tmax = 449280001
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='282569', job_status='RUN', time_executed='2021-08-20 06:28:35.865790', time_epoch_executed='1629466115.87' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='809'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282569

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282569/ft1_4FGL_J0409.8-0359_daily_bin809.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282569/ft1_4FGL_J0409.8-0359_daily_bin809.fits outfile=/scratch/kocevski/282569/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin809.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=449020801.0 tmax=449280001.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 15.42
user 5.25
sys 10.00

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits" evtable="EVENTS" scfile=/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits sctable="SC_DATA" outfile=/scratch/kocevski/282569/ltcube_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.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/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits
.....................!
real 24.62
user 12.05
sys 12.47

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits sctable="SC_DATA" expcube=/scratch/kocevski/282569/ltcube_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.fits outfile=/scratch/kocevski/282569/expmap_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.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/282569/ltcube_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.fits
.....................!
real 204.73
user 187.46
sys 16.66

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/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits scfile=/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits outfile=/scratch/kocevski/282569/cmap_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.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 10.33
user 0.37
sys 9.88

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits scfile=/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits outfile=/scratch/kocevski/282569/cmap_HighResolution_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.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 10.19
user 0.39
sys 9.76

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits evtable="EVENTS" scfile=/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282569/Model_4FGL_J0409.8-0359_daily_bin809.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/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits.....................!
real 76.04
user 61.70
sys 13.96

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits', '/scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits', expMap='/scratch/kocevski/282569/expmap_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.fits', expCube='/scratch/kocevski/282569/ltcube_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/282569/Model_4FGL_J0409.8-0359_daily_bin809.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/282569/ft1_filtered_4FGL_J0409.8-0359_daily_bin809.fits
Spacecraft file(s): /scratch/kocevski/282569/ft2_4FGL_J0409.8-0359_daily_bin809.fits
Exposure map: /scratch/kocevski/282569/expmap_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.fits
Exposure cube: /scratch/kocevski/282569/ltcube_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/282569/Model_4FGL_J0409.8-0359_daily_bin809.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) = 4321.71744051

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    4.3035       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10077E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10129E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.0783       1.0000         .10000E-03   10000.    
     9 'norm      '    11.776       1.0000         .10000E-03   10000.    
    10 'norm      '    .10468E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .82887       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.4495       1.0000         .10000E-03   10000.    
    13 'Prefactor '    14.461       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .11087E-02   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10835E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    3.7691       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.8437       1.0000         .10000E-03   10000.    
    18 'norm      '    .92128       1.0000         .10000E-03   10000.    
    19 'Normalizat'    .95680       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .82479       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=   4321.694     FROM MIGRAD    STATUS=CONVERGED    429 CALLS     1761 TOTAL
                     EDM=   .45E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    12.116       -.93773E-06** at limit **
   2  norm          4.3035        2.2397       -.85315E-07   -.77438E-04
   3  Prefactor     .10000E-03    46.765        .29970E-04** at limit **
   4  Prefactor     .10000E-03    4.4497        .22959E-06** at limit **
   5  Prefactor     .10000E-03    6.7429       -.26615E-06** at limit **
   6  norm          .10000E-03    6.5893        .73028E-06** at limit **
   7  Prefactor     .10000E-03    9.3002        .14495E-06** at limit **
   8  norm          6.0772        4.8862       -.31566E-06    .16042E-03
   9  norm          11.778        13.665       -.27366E-07    .12982E-04
  10  norm          .10000E-03    44.567       -.25503E-04** at limit **
  11  norm          .82997        1.0167       -.10114E-06    .11515E-02
  12  Prefactor     2.4498        1.7814        .19919E-06    .18212E-02
  13  Prefactor     14.483        24.644       -.99794E-05    .11130E-03
  14  Prefactor     .10002E-03    290.06       -.74676E-04** at limit **
  15  Prefactor     .10000E-03    14.989        .12688E-05** at limit **
  16  norm          3.7668        3.6318        .12545E-05    .12678E-03
  17  Prefactor     9.8322        29.759        .40688E-06   -.71144E-05
  18  norm          .92147        2.3255       -.30969E-06   -.44611E-03
  19  Normalizat    .95666        .23876        .20351E-05    .24451E-03
  20  Prefactor     .82483        .11156        .30173E-06    .44068E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 4.30352
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.07725
  norm       = 11.7779
  norm       = 0.000100001
  norm       = 0.829973
  Prefactor  = 2.44977
  Prefactor  = 14.4828
  Prefactor  = 0.000100021
  Prefactor  = 0.0001
  norm       = 3.76676
  Prefactor  = 9.83219
  norm       = 0.921475
  Normalizat = 0.956664
  Prefactor  = 0.824832
 **********
 **   18 **HESSE 
 **********

 FCN=   4321.694     FROM HESSE     STATUS=OK           289 CALLS     2050 TOTAL
                     EDM=   .91E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    12.142        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          4.3035        2.2402        .67529E-04   -1.5293    
   3  Prefactor     .10000E-03    46.961        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    4.4838        .13541E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    6.7501        .16673E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    6.5895        .16482E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    9.3023        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.0772        4.8756        .12535E-03   -1.5215    
   9  norm          11.778        13.696        .11674E-03   -1.5021    
  10  norm          .10000E-03    44.705        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .82997        .96758        .69239E-03   -1.5526    
  12  Prefactor     2.4498        1.7709        .71398E-04   -1.5395    
  13  Prefactor     14.483        24.495        .10533E-03   -1.4947    
  14  Prefactor     .10002E-03    293.82        .41386E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    15.307        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          3.7668        3.6108        .10526E-03   -1.5320    
  17  Prefactor     9.8322        29.765        .12772E-03   -1.5081    
  18  norm          .92147        2.2918        .14994E-03   -1.5516    
  19  Normalizat    .95666        .26698        .32055E-03   -.94497    
  20  Prefactor     .82483        .12578        .16681E-03   -.98819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.05114e-10
Minuit parameter uncertainties:
  1  8.55236e-06
  2  2.2402
  3  7.61272e-05
  4  7.86322e-06
  5  6.41344e-07
  6  4.94462e-07
  7  7.01206e-06
  8  4.8759
  9  13.6996
  10  0.000414328
  11  0.967596
  12  1.77096
  13  24.5116
  14  0.00496917
  15  3.78891e-06
  16  3.61099
  17  29.8102
  18  2.29197
  19  0.267356
  20  0.125825
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  4.945e-07  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:  8.248e-01  1.258e-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:  9.567e-01  2.674e-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.81e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.83e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282569/likelihoodResults_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.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) = 4321.69504252
delta logL = -0.00071039449449

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 4321.69433211
delta logL = 1.54368535732e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6697       1.0000          .0000       5.0000    
     3 'Normalizat'    .95666       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82483       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.

 FCN=   4321.694     FROM MIGRAD    STATUS=CONVERGED     94 CALLS      243 TOTAL
                     EDM=   .12E-10    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1507.6        .16520E-02** at limit **
   2  alpha         1.3399        3.1516        .17787       -.38349E-09
   3  Normalizat    .95666        .18438        .32055E-03    .63838E-06
   4  Prefactor     .82483        .90382E-01    .16681E-03   -.40892E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.33989
  Normalizat = 0.956662
  Prefactor  = 0.824831
 **********
 **   18 **HESSE 
 **********

 FCN=   4321.694     FROM HESSE     STATUS=OK            23 CALLS      266 TOTAL
                     EDM=   .45E-13    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    6.9468        .33040E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.3399        3.0372        .71149E-02   -.48255    
   3  Normalizat    .95666        .25404        .12822E-04   -.94497    
   4  Prefactor     .82483        .12459        .66724E-05   -.98819    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.53824e-14
Minuit parameter uncertainties:
  1  2.30885e-06
  2  377.066
  3  0.25436
  4  0.12463
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282569': 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) = 4321.69433174
delta logL = 3.89759406971e-07

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  2.309e-06  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.340e+00  3.771e+02  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:  8.248e-01  1.246e-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:  9.567e-01  2.544e-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  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/282569/cmap_HighResolution_449020801_449280001_4FGL_J0409.8-0359_daily_bin809.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.83e-05', job_status='DONE', photon_flux_upper_limit='2.81e-08', time_completed='2021-08-20 06:39:13.794444', job_id='282569', GAL2='0.82', fit_tolerance='1e-08', EG2='0.96', EG='0.96', time_epoch_completed='1629466753.79', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='3.90e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='809' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:39:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 282569: <4FGL_J0409.8-0359_daily_bin809> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin809> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 06:25:35 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:25:38 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:25:38 2021
Terminated at Fri Aug 20 06:39:15 2021
Results reported at Fri Aug 20 06:39:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin809 62.4629 -3.9865 449020801 449280001 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 :                                   786.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             262.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   817 sec.
    Turnaround time :                            820 sec.

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

