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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin189
RA = 62.4629, Dec = -3.9865
tmin = 288316801, tmax = 288576001
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='278028', job_status='RUN', time_executed='2021-08-20 06:15:19.989449', time_epoch_executed='1629465319.99' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='189'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/278028

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/278028/ft1_4FGL_J0409.8-0359_daily_bin189.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/278028/ft1_4FGL_J0409.8-0359_daily_bin189.fits outfile=/scratch/kocevski/278028/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin189.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=288316801.0 tmax=288576001.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 5.95
user 3.36
sys 2.56

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/278028/ft1_filtered_4FGL_J0409.8-0359_daily_bin189.fits" evtable="EVENTS" scfile=/scratch/kocevski/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits sctable="SC_DATA" outfile=/scratch/kocevski/278028/ltcube_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.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/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits
.....................!
real 14.49
user 11.36
sys 3.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/278028/ft1_filtered_4FGL_J0409.8-0359_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits sctable="SC_DATA" expcube=/scratch/kocevski/278028/ltcube_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.fits outfile=/scratch/kocevski/278028/expmap_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.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/278028/ltcube_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.fits
.....................!
real 192.93
user 185.25
sys 7.37

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/278028/ft1_filtered_4FGL_J0409.8-0359_daily_bin189.fits scfile=/scratch/kocevski/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits outfile=/scratch/kocevski/278028/cmap_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.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 2.90
user 0.39
sys 2.50

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/278028/ft1_filtered_4FGL_J0409.8-0359_daily_bin189.fits scfile=/scratch/kocevski/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits outfile=/scratch/kocevski/278028/cmap_HighResolution_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.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 2.90
user 0.40
sys 2.44

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/278028/ft1_filtered_4FGL_J0409.8-0359_daily_bin189.fits evtable="EVENTS" scfile=/scratch/kocevski/278028/ft2_4FGL_J0409.8-0359_daily_bin189.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/278028/Model_4FGL_J0409.8-0359_daily_bin189.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/278028/ft1_filtered_4FGL_J0409.8-0359_daily_bin189.fits.....................!
real 114.95
user 110.39
sys 4.36

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    20.655       1.0000         .10000E-03   10000.    
     2 'norm      '    1.9429       1.0000         .10000E-03   10000.    
     3 'Prefactor '    15.446       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10023E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    9.9008       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.4944       1.0000         .10000E-03   10000.    
     9 'norm      '    42.069       1.0000         .10000E-03   10000.    
    10 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.7787       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.5522       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.0450       1.0000         .10000E-03   10000.    
    14 'Prefactor '    30.757       1.0000         .10000E-03   10000.    
    15 'Prefactor '    10.081       1.0000         .10000E-03   10000.    
    16 'norm      '    4.3671       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.213       1.0000         .10000E-03   10000.    
    18 'norm      '    15.478       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1454       1.0000         .10000E-01   10.000    
    20 'Prefactor '    1.0378       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=   8084.652     FROM MIGRAD    STATUS=CONVERGED    714 CALLS     2367 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     20.658        21.386        .88129E-04   -.50955E-04
   2  norm          1.9430        1.5697        .96394E-04    .72061E-04
   3  Prefactor     15.444        27.674        .10191E-03    .57675E-04
   4  Prefactor     .10000E-03    13.040        .36285E-03** at limit **
   5  Prefactor     9.8965        18.043        .12735E-03    .10605E-03
   6  norm          .10000E-03    7.4477        .18142E-02** at limit **
   7  Prefactor     .10000E-03    17.606        .18142E-02** at limit **
   8  norm          3.4947        6.3393        .21629E-03    .11690E-03
   9  norm          42.073        18.179        .61805E-04   -.11533E-03
  10  norm          .10000E-03    7.2066        .18142E-02** at limit **
  11  norm          2.7790        1.6231        .74970E-04    .28114E-03
  12  Prefactor     2.5521        1.7743        .90671E-04    .11322E-03
  13  Prefactor     1.0206        106.12        .60665E-02    .70744E-04
  14  Prefactor     30.757        50.511        .72246E-04    .20457E-04
  15  Prefactor     10.079        13.463        .12620E-03    .10153E-03
  16  norm          4.3655        3.2868        .12219E-03    .39904E-03
  17  Prefactor     20.214        19.899        .89088E-04   -.13527E-04
  18  norm          15.478        3.6055        .77784E-04    .12730E-03
  19  Normalizat    1.1453        .26257        .38274E-03    .30921E-04
  20  Prefactor     1.0379        .12001        .19146E-03    .35336E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 20.6581
  norm       = 1.94299
  Prefactor  = 15.4436
  Prefactor  = 0.0001
  Prefactor  = 9.89645
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.49465
  norm       = 42.0733
  norm       = 0.0001
  norm       = 2.779
  Prefactor  = 2.55209
  Prefactor  = 1.02061
  Prefactor  = 30.7573
  Prefactor  = 10.0792
  norm       = 4.36553
  Prefactor  = 20.2137
  norm       = 15.4779
  Normalizat = 1.14525
  Prefactor  = 1.03791
 **********
 **   18 **HESSE 
 **********

 FCN=   8084.652     FROM HESSE     STATUS=OK           273 CALLS     2640 TOTAL
                     EDM=   .26E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     20.658        21.386        .35252E-05   -1.4799    
   2  norm          1.9430        1.5694        .38557E-05   -1.5429    
   3  Prefactor     15.444        27.679        .40764E-05   -1.4922    
   4  Prefactor     .10000E-03    13.040        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     9.8965        18.041        .50940E-05   -1.5079    
   6  norm          .10000E-03    7.4481        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.607        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.4947        6.3372        .86518E-05   -1.5334    
   9  norm          42.073        18.177        .24722E-05   -1.4410    
  10  norm          .10000E-03    7.2068        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.7790        1.6227        .29988E-05   -1.5375    
  12  Prefactor     2.5521        1.7739        .36268E-05   -1.5388    
  13  Prefactor     1.0206        101.36        .24266E-03   -1.5506    
  14  Prefactor     30.757        50.490        .28899E-05   -1.4598    
  15  Prefactor     10.079        13.460        .50480E-05   -1.5073    
  16  norm          4.3655        3.2056        .48877E-05   -1.5290    
  17  Prefactor     20.214        19.897        .35635E-05   -1.4808    
  18  norm          15.478        3.6056        .31114E-05   -1.4921    
  19  Normalizat    1.1453        .26269        .15310E-04   -.88312    
  20  Prefactor     1.0379        .11991        .38291E-04   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.56677e-10
Minuit parameter uncertainties:
  1  21.394
  2  1.56942
  3  27.7024
  4  1.85081e-05
  5  18.0512
  6  4.42835e-05
  7  0.00012448
  8  6.33838
  9  18.1795
  10  3.39862e-05
  11  1.62268
  12  1.77399
  13  20.3766
  14  50.5605
  15  13.4642
  16  3.20575
  17  19.9034
  18  3.60564
  19  0.262987
  20  0.11994
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  4.428e-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:  1.038e+00  1.199e-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.145e+00  2.630e-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.63e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.58e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/278028/likelihoodResults_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.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) = 8084.65290316
delta logL = -0.000637301935967

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8084.65226586
delta logL = -1.42426870298e-09

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6770       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1453       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0379       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=   8084.652     FROM MIGRAD    STATUS=CONVERGED     75 CALLS      212 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10001E-03    7.7396        .18142E-02** at limit **
   2  alpha         1.6709        2.6474        .17760E-01    .15568E-06
   3  Normalizat    1.1453        .23870        .38274E-03    .51671E-03
   4  Prefactor     1.0379        .11517        .19146E-03    .11704E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100005
  alpha      = 1.67095
  Normalizat = 1.14526
  Prefactor  = 1.03791
 **********
 **   18 **HESSE 
 **********

 FCN=   8084.652     FROM HESSE     STATUS=OK            23 CALLS      235 TOTAL
                     EDM=   .21E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10001E-03    7.4513        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.6709        3.0636        .35521E-02   -.33802    
   3  Normalizat    1.1453        .23881        .76549E-04   -.88312    
   4  Prefactor     1.0379        .11523        .38291E-04   -.91476    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.06656e-09
Minuit parameter uncertainties:
  1  0.000396681
  2  407.01
  3  0.239034
  4  0.115253
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/278028': 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) = 8084.65226586
delta logL = -6.45741238259e-11

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  3.967e-04  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.671e+00  4.070e+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:  1.038e+00  1.153e-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.145e+00  2.390e-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/278028/cmap_HighResolution_288316801_288576001_4FGL_J0409.8-0359_daily_bin189.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.58e-05', job_status='DONE', photon_flux_upper_limit='2.63e-08', time_completed='2021-08-20 06:27:04.367181', job_id='278028', GAL2='1.04', fit_tolerance='1e-08', EG2='1.15', EG='1.15', time_epoch_completed='1629466024.37', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='-6.46e-11', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='189' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:27:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0146>
Subject: Job 278028: <4FGL_J0409.8-0359_daily_bin189> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin189> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 06:10:42 2021
Job was executed on host(s) <bullet0146>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:10:45 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:45 2021
Terminated at Fri Aug 20 06:27:05 2021
Results reported at Fri Aug 20 06:27:05 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin189 62.4629 -3.9865 288316801 288576001 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 :                                   741.00 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             293.64 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            983 sec.

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

