/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 176 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 = 7559
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0409.8-0359_daily_bin351
RA = 62.4629, Dec = -3.9865
tmin = 330307201, tmax = 330566401
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='279605', job_status='RUN', time_executed='2021-08-20 06:18:39.214689', time_epoch_executed='1629465519.21' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='351'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/279605

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/279605/ft1_4FGL_J0409.8-0359_daily_bin351.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/279605/ft1_4FGL_J0409.8-0359_daily_bin351.fits outfile=/scratch/kocevski/279605/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin351.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=330307201.0 tmax=330566401.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 4.09
user 3.59
sys 0.48

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.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/279605/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin351.fits evtable="EVENTS" outfile="/scratch/kocevski/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.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.73
user 0.33
sys 0.39

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.fits" evtable="EVENTS" scfile=/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits sctable="SC_DATA" outfile=/scratch/kocevski/279605/ltcube_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.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/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits
.....................!
real 12.49
user 11.83
sys 0.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits sctable="SC_DATA" expcube=/scratch/kocevski/279605/ltcube_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.fits outfile=/scratch/kocevski/279605/expmap_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.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/279605/ltcube_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.fits
.....................!
real 191.84
user 186.48
sys 5.02

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/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.fits scfile=/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits outfile=/scratch/kocevski/279605/cmap_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.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.79
user 0.38
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.fits scfile=/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits outfile=/scratch/kocevski/279605/cmap_HighResolution_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.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.77
user 0.37
sys 0.39

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.fits evtable="EVENTS" scfile=/scratch/kocevski/279605/ft2_4FGL_J0409.8-0359_daily_bin351.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/279605/Model_4FGL_J0409.8-0359_daily_bin351.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/279605/ft1_filtered_4FGL_J0409.8-0359_daily_bin351.fits.....................!
real 104.85
user 103.15
sys 1.51

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    2.9948       1.0000         .10000E-03   10000.    
     2 'norm      '    2.1912       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10124E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    1.0995       1.0000         .10000E-03   10000.    
     6 'norm      '    .10305E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7687       1.0000         .10000E-03   10000.    
     9 'norm      '    .10170E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8085       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.8847       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10086E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.8759       1.0000         .10000E-03   10000.    
    17 'Prefactor '    9.2850       1.0000         .10000E-03   10000.    
    18 'norm      '    .99147       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0039       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .97836       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=   7777.573     FROM MIGRAD    STATUS=CONVERGED    419 CALLS     2053 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     2.9855        12.555        .42001E-05   -.98575E-06
   2  norm          2.1913        1.3645        .29270E-07   -.41405E-04
   3  Prefactor     .10000E-03    13.234        .56851E-05** at limit **
   4  Prefactor     .10000E-03    9.9338       -.19006E-05** at limit **
   5  Prefactor     1.0966        5.0706        .12995E-05   -.67916E-03
   6  norm          .10000E-03    21.205        .71103E-05** at limit **
   7  Prefactor     .10000E-03    15.977       -.15980E-04** at limit **
   8  norm          3.7691        3.6050       -.19876E-07   -.52172E-06
   9  norm          .10000E-03    12.685        .70986E-05** at limit **
  10  norm          .10000E-03    8.6792        .33341E-05** at limit **
  11  norm          1.8082        1.2274        .52451E-07    .30731E-03
  12  Prefactor     1.8840        1.5404        .23347E-06    .28913E-03
  13  Prefactor     .10000E-03    7.5186       -.18448E-06** at limit **
  14  Prefactor     .10000E-03    85.006       -.43965E-05** at limit **
  15  Prefactor     .10000E-03    9.6254       -.50163E-05** at limit **
  16  norm          2.8759        2.5802       -.50475E-07   -.74066E-04
  17  Prefactor     9.2783        18.973        .10897E-05   -.16384E-05
  18  norm          .99112        2.2854        .40554E-06   -.89721E-04
  19  Normalizat    1.0038        .18816       -.35061E-06    .35789E-05
  20  Prefactor     .97837        .91175E-01   -.69278E-07   -.37765E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 2.98553
  norm       = 2.19128
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 1.0966
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.76912
  norm       = 0.0001
  norm       = 0.0001
  norm       = 1.80823
  Prefactor  = 1.88395
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.87593
  Prefactor  = 9.27835
  norm       = 0.99112
  Normalizat = 1.00385
  Prefactor  = 0.978366
 **********
 **   18 **HESSE 
 **********

 FCN=   7777.573     FROM HESSE     STATUS=OK           291 CALLS     2344 TOTAL
                     EDM=   .89E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     2.9855        12.557        .23457E-03   -1.5362    
   2  norm          2.1913        1.3600        .77863E-04   -1.5412    
   3  Prefactor     .10000E-03    13.247        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    10.281        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     1.0966        49.818        .22674E-02   -1.5499    
   6  norm          .10000E-03    21.815        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    16.050        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7691        3.5975        .15643E-03   -1.5320    
   9  norm          .10000E-03    12.979        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    8.6959        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8082        1.2093        .73449E-04   -1.5439    
  12  Prefactor     1.8840        1.5306        .92404E-04   -1.5433    
  13  Prefactor     .10000E-03    7.5336        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    85.706        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    9.7782        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.8759        2.5792        .12863E-03   -1.5369    
  17  Prefactor     9.2783        18.979        .13152E-03   -1.5099    
  18  norm          .99112        2.2790        .18894E-03   -1.5509    
  19  Normalizat    1.0038        .21010        .33845E-03   -.92902    
  20  Prefactor     .97837        .10419        .16996E-03   -.93454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.94467e-09
Minuit parameter uncertainties:
  1  12.2497
  2  1.36004
  3  2.73882e-05
  4  1.7317e-05
  5  14.795
  6  6.58296e-05
  7  7.80431e-05
  8  3.59768
  9  2.97934e-05
  10  9.48902e-06
  11  1.20929
  12  1.53062
  13  5.75906e-09
  14  0.00022513
  15  1.04013e-05
  16  2.5793
  17  18.9917
  18  2.27919
  19  0.210278
  20  0.10421
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  6.583e-05  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:  9.784e-01  1.042e-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.004e+00  2.103e-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.48e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.39e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/279605/likelihoodResults_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.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) = 7777.57293262
delta logL = -0.000218740706259

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7777.57271419
delta logL = -3.19638274959e-07

Fit tolerance = 1e-08

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

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

 FCN=   7777.573     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      207 TOTAL
                     EDM=   .23E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10002E-03    33.579        .90712E-02** at limit **
   2  alpha         1.7216        3.3573        .44687       -.17370E-04
   3  Normalizat    1.0038        .17970        .76480E-01   -.33860E-06
   4  Prefactor     .97837        .89763E-01    .45996E-01   -.29233E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100022
  alpha      = 1.7216
  Normalizat = 1.00385
  Prefactor  = 0.978366
 **********
 **   18 **HESSE 
 **********

 FCN=   7777.573     FROM HESSE     STATUS=OK            29 CALLS      236 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10002E-03    25.142        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.7216        3.3207        .17875       -.31663    
   3  Normalizat    1.0038        .20190        .33845E-03   -.92902    
   4  Prefactor     .97837        .10102        .16996E-03   -.93454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16704e-09
Minuit parameter uncertainties:
  1  0.00147883
  2  2.37607
  3  0.202054
  4  0.101042
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/279605': 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) = 7777.57271355
delta logL = 3.22310370393e-07

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  1.479e-03  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.722e+00  2.376e+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:  9.784e-01  1.010e-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.004e+00  2.021e-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/279605/cmap_HighResolution_330307201_330566401_4FGL_J0409.8-0359_daily_bin351.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', job_status='DONE', photon_flux_upper_limit='2.48e-08', time_completed='2021-08-20 06:29:10.876276', job_id='279605', GAL2='0.98', fit_tolerance='1e-08', EG2='1.00', EG='1.00', time_epoch_completed='1629466150.88', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='3.22e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='351' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:29:10 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0098>
Subject: Job 279605: <4FGL_J0409.8-0359_daily_bin351> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin351> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Fri Aug 20 06:15:28 2021
Job was executed on host(s) <bullet0098>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06: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 06:15:29 2021
Terminated at Fri Aug 20 06:29:11 2021
Results reported at Fri Aug 20 06:29:11 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin351 62.4629 -3.9865 330307201 330566401 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 :                                   632.48 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             303.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   822 sec.
    Turnaround time :                            823 sec.

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

