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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin1008
RA = 62.4629, Dec = -3.9865
tmin = 500601601, tmax = 500860801
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='282870', job_status='RUN', time_executed='2021-08-20 06:30:38.317217', time_epoch_executed='1629466238.32' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='1008'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/282870

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/282870/ft1_4FGL_J0409.8-0359_daily_bin1008.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/282870/ft1_4FGL_J0409.8-0359_daily_bin1008.fits outfile=/scratch/kocevski/282870/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin1008.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=500601601.0 tmax=500860801.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 10.20
user 4.83
sys 5.34

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.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/282870/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin1008.fits evtable="EVENTS" outfile="/scratch/kocevski/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.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 5.67
user 0.31
sys 5.32

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.fits" evtable="EVENTS" scfile=/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits sctable="SC_DATA" outfile=/scratch/kocevski/282870/ltcube_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.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/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits
.....................!
real 18.37
user 12.11
sys 6.12

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits sctable="SC_DATA" expcube=/scratch/kocevski/282870/ltcube_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.fits outfile=/scratch/kocevski/282870/expmap_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.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/282870/ltcube_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.fits
.....................!
real 197.60
user 185.81
sys 11.40

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/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.fits scfile=/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits outfile=/scratch/kocevski/282870/cmap_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.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 5.58
user 0.37
sys 5.18

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.fits scfile=/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits outfile=/scratch/kocevski/282870/cmap_HighResolution_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.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 5.60
user 0.38
sys 5.19

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.fits evtable="EVENTS" scfile=/scratch/kocevski/282870/ft2_4FGL_J0409.8-0359_daily_bin1008.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/282870/Model_4FGL_J0409.8-0359_daily_bin1008.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/282870/ft1_filtered_4FGL_J0409.8-0359_daily_bin1008.fits.....................!
real 104.84
user 96.85
sys 7.80

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    3.3071       1.0000         .10000E-03   10000.    
     3 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.8377       1.0000         .10000E-03   10000.    
     5 'Prefactor '    25.259       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.7922       1.0000         .10000E-03   10000.    
     9 'norm      '    4.6448       1.0000         .10000E-03   10000.    
    10 'norm      '    .10057E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10399E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    5.6135       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    13.223       1.0000         .10000E-03   10000.    
    16 'norm      '    2.5403       1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.3580       1.0000         .10000E-03   10000.    
    18 'norm      '    .32200       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.1265       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .95567       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=   7319.966     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     1825 TOTAL
                     EDM=   .29E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    10.906       -.32203E-07** at limit **
   2  norm          3.3070        1.6932        .20741E-07   -.28289E-05
   3  Prefactor     .10000E-03    60.285        .17133E-06** at limit **
   4  Prefactor     2.8360        7.7149       -.82232E-06   -.14991E-04
   5  Prefactor     25.260        19.286        .42389E-07   -.10764E-05
   6  norm          .10000E-03    4.5584       -.22325E-06** at limit **
   7  Prefactor     .10000E-03    15.289       -.38280E-06** at limit **
   8  norm          3.7919        3.3731        .33593E-08   -.27516E-03
   9  norm          4.6434        6.7833       -.40322E-07   -.14484E-03
  10  norm          .10000E-03    20.371       -.57191E-06** at limit **
  11  norm          .10000E-03    .46818       -.93099E-07** at limit **
  12  Prefactor     .10000E-03    .38244        .78604E-07** at limit **
  13  Prefactor     5.6204        26.432        .57170E-05    .13696E-04
  14  Prefactor     .10000E-03    40.506       -.94707E-07** at limit **
  15  Prefactor     13.221        10.594        .15185E-06    .27313E-04
  16  norm          2.5388        3.0874       -.52946E-06   -.16602E-03
  17  Prefactor     2.3565        10.121        .26434E-06   -.10068E-03
  18  norm          .31886        1.4567        .11342E-07   -.21837E-03
  19  Normalizat    1.1267        .20593        .70854E-06    .22743E-04
  20  Prefactor     .95560        .96813E-01    .61752E-07    .95991E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 3.30704
  Prefactor  = 0.0001
  Prefactor  = 2.83596
  Prefactor  = 25.26
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.79187
  norm       = 4.64341
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 5.62044
  Prefactor  = 0.0001
  Prefactor  = 13.221
  norm       = 2.53884
  Prefactor  = 2.35648
  norm       = 0.318857
  Normalizat = 1.12667
  Prefactor  = 0.955603
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.966     FROM HESSE     STATUS=OK           299 CALLS     2124 TOTAL
                     EDM=   .34E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    10.943        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          3.3070        1.6932        .76159E-04   -1.5344    
   3  Prefactor     .10000E-03    60.433        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     2.8360        7.7734        .24139E-03   -1.5371    
   5  Prefactor     25.260        19.300        .79706E-04   -1.4702    
   6  norm          .10000E-03    4.5578        .17839E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.7919        3.8067        .80842E-03   -1.5318    
   9  norm          4.6434        7.3652        .93371E-03   -1.5277    
  10  norm          .10000E-03    20.550        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    3.0449        .11250E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .38301        .51544E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     5.6204        26.071        .16956E-03   -1.5234    
  14  Prefactor     .10000E-03    40.730        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     13.221        10.609        .11015E-03   -1.4981    
  16  norm          2.5388        3.0655        .13883E-03   -1.5389    
  17  Prefactor     2.3565        24.056        .13345E-02   -1.5401    
  18  norm          .31886        3.0503        .19437E-02   -1.5595    
  19  Normalizat    1.1267        .23686        .32903E-03   -.88900    
  20  Prefactor     .95560        .11060        .17490E-03   -.94224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.37892e-08
Minuit parameter uncertainties:
  1  4.7153e-06
  2  1.69319
  3  5.01691e-05
  4  7.77614
  5  19.3048
  6  3.98376e-07
  7  1.09139e-05
  8  3.80691
  9  7.36666
  10  6.25503e-05
  11  3.18133e-05
  12  1.00238e-06
  13  24.2271
  14  5.92455e-05
  15  10.6107
  16  3.06565
  17  15.0658
  18  1.97223
  19  0.237088
  20  0.110631
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  3.984e-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:  9.556e-01  1.106e-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.127e+00  2.371e-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: 1.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.64e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/282870/likelihoodResults_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.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) = 7319.96670263
delta logL = -0.0010131654526

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7319.96568946
delta logL = 1.13986970973e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    1.6721       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1267       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95560       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=   7319.966     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      238 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    991.52        .17859E-02** at limit **
   2  alpha         1.4320        3.2155        .17778       -.95921E-09
   3  Normalizat    1.1267        .14159        .32903E-03    .36349E-04
   4  Prefactor     .95560        .70403E-01    .17490E-03    .43576E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.43201
  Normalizat = 1.12667
  Prefactor  = 0.955603
 **********
 **   18 **HESSE 
 **********

 FCN=   7319.966     FROM HESSE     STATUS=OK            23 CALLS      261 TOTAL
                     EDM=   .23E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    4.6839        .35719E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.4320        2.6771        .71113E-02   -.44139    
   3  Normalizat    1.1267        .21655        .13161E-04   -.88900    
   4  Prefactor     .95560        .10771        .34981E-04   -.94224    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.29378e-12
Minuit parameter uncertainties:
  1  7.64544e-07
  2  317.191
  3  0.216717
  4  0.107733
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/282870': 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) = 7319.96568917
delta logL = 2.94265191769e-07

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.000e-04  7.645e-07  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  1.432e+00  3.172e+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:  9.556e-01  1.077e-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.127e+00  2.167e-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/282870/cmap_HighResolution_500601601_500860801_4FGL_J0409.8-0359_daily_bin1008.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.64e-05', job_status='DONE', photon_flux_upper_limit='1.94e-08', time_completed='2021-08-20 06:42:02.651256', job_id='282870', GAL2='0.96', fit_tolerance='1e-08', EG2='1.13', EG='1.13', time_epoch_completed='1629466922.65', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.96', dlogl='2.94e-07', ts2='-0.00', photon_index_error='0.00', photon_index='1.68' WHERE bin_id='1008' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:42:02 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0211>
Subject: Job 282870: <4FGL_J0409.8-0359_daily_bin1008> in cluster <slac> Done

Job <4FGL_J0409.8-0359_daily_bin1008> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 06:26:02 2021
Job was executed on host(s) <bullet0211>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:26:04 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:26:04 2021
Terminated at Fri Aug 20 06:42:04 2021
Results reported at Fri Aug 20 06:42:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin1008 62.4629 -3.9865 500601601 500860801 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 :                                   753.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             267.10 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   959 sec.
    Turnaround time :                            962 sec.

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

