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


Performing analysis on: 4FGL_J0409.8-0359_daily_bin81
RA = 62.4629, Dec = -3.9865
tmin = 260323201, tmax = 260582401
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='277830', job_status='RUN', time_executed='2021-08-20 06:13:49.802466', time_epoch_executed='1629465229.8' WHERE source_name='4FGL J0409.8-0359' and cadence='daily' and bin_id='81'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/277830

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/277830/ft1_4FGL_J0409.8-0359_daily_bin81.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/277830/ft1_4FGL_J0409.8-0359_daily_bin81.fits outfile=/scratch/kocevski/277830/ft1_filteredMKT_4FGL_J0409.8-0359_daily_bin81.fits ra=62.4629 dec=-3.9865 rad=12.0 tmin=260323201.0 tmax=260582401.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.34
user 1.32
sys 2.40

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/277830/ft1_filtered_4FGL_J0409.8-0359_daily_bin81.fits" evtable="EVENTS" scfile=/scratch/kocevski/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits sctable="SC_DATA" outfile=/scratch/kocevski/277830/ltcube_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.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/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits
.....................!
real 14.59
user 11.95
sys 2.61

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/277830/ft1_filtered_4FGL_J0409.8-0359_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits sctable="SC_DATA" expcube=/scratch/kocevski/277830/ltcube_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.fits outfile=/scratch/kocevski/277830/expmap_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.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/277830/ltcube_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.fits
.....................!
real 193.98
user 186.04
sys 7.62

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/277830/ft1_filtered_4FGL_J0409.8-0359_daily_bin81.fits scfile=/scratch/kocevski/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits outfile=/scratch/kocevski/277830/cmap_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.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.70
user 0.35
sys 2.33

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/277830/ft1_filtered_4FGL_J0409.8-0359_daily_bin81.fits scfile=/scratch/kocevski/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits outfile=/scratch/kocevski/277830/cmap_HighResolution_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.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.72
user 0.37
sys 2.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/277830/ft1_filtered_4FGL_J0409.8-0359_daily_bin81.fits evtable="EVENTS" scfile=/scratch/kocevski/277830/ft2_4FGL_J0409.8-0359_daily_bin81.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/277830/Model_4FGL_J0409.8-0359_daily_bin81.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/277830/ft1_filtered_4FGL_J0409.8-0359_daily_bin81.fits.....................!
real 108.75
user 104.17
sys 4.09

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .22816E-01   1.0000         .10000E-03   10000.    
     2 'norm      '    .28596       1.0000         .10000E-03   10000.    
     3 'Prefactor '    4.8762       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .31688E-02   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10147E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'norm      '    .10226E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    7.3946       1.0000         .10000E-03   10000.    
    11 'norm      '    2.9189       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.2095       1.0000         .10000E-03   10000.    
    13 'Prefactor '    4.2931       1.0000         .10000E-03   10000.    
    14 'Prefactor '    33.642       1.0000         .10000E-03   10000.    
    15 'Prefactor '    19.184       1.0000         .10000E-03   10000.    
    16 'norm      '    1.2208       1.0000         .10000E-03   10000.    
    17 'Prefactor '    13.626       1.0000         .10000E-03   10000.    
    18 'norm      '    4.8225       1.0000         .10000E-03   10000.    
    19 'Normalizat'    1.0537       1.0000         .10000E-01   10.000    
    20 'Prefactor '    .93410       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=   7844.061     FROM MIGRAD    STATUS=CONVERGED    439 CALLS     2177 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    12.648        .56743E-06** at limit **
   2  norm          .28600        1.0843       -.37184E-06   -.93638E-03
   3  Prefactor     4.8692        55.020       -.44897E-05   -.15797E-04
   4  Prefactor     .10000E-03    1.6605        .62474E-07** at limit **
   5  Prefactor     .10000E-03    8.5176       -.71771E-07** at limit **
   6  norm          .10010E-03    9.3910       -.97383E-06** at limit **
   7  Prefactor     .10000E-03    30.207       -.79574E-06** at limit **
   8  norm          .10000E-03    3.6884       -.49492E-07** at limit **
   9  norm          .10000E-03    14.263       -.36787E-06** at limit **
  10  norm          7.3865        22.818        .96577E-06   -.48097E-04
  11  norm          2.9189        1.5031        .27730E-06   -.67252E-03
  12  Prefactor     2.2116        2.4198        .16288E-05   -.32784E-03
  13  Prefactor     4.2465        19.648        .16408E-04    .20978E-04
  14  Prefactor     33.615        53.774       -.24775E-04   -.43040E-04
  15  Prefactor     19.179        10.487        .45746E-05   -.60364E-04
  16  norm          1.2259        2.1901       -.19004E-05   -.18819E-02
  17  Prefactor     13.622        16.279        .93572E-06   -.17241E-04
  18  norm          4.8221        2.2772        .23992E-06   -.23164E-03
  19  Normalizat    1.0539        .19476       -.11827E-05    .16517E-04
  20  Prefactor     .93409        .94454E-01   -.13742E-06    .35437E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010001
  norm       = 0.286001
  Prefactor  = 4.86916
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100097
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  norm       = 7.38649
  norm       = 2.91893
  Prefactor  = 2.21156
  Prefactor  = 4.24655
  Prefactor  = 33.6148
  Prefactor  = 19.1786
  norm       = 1.2259
  Prefactor  = 13.6225
  norm       = 4.82207
  Normalizat = 1.05391
  Prefactor  = 0.934091
 **********
 **   18 **HESSE 
 **********

 FCN=   7844.061     FROM HESSE     STATUS=OK           311 CALLS     2488 TOTAL
                     EDM=   .33E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    15.645        .95328E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .28600        1.9483        .16564E-02   -1.5601    
   3  Prefactor     4.8692        55.221        .18216E-03   -1.5267    
   4  Prefactor     .10000E-03    1.6635        .11145E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.5334        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10010E-03    65.299        .52865E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    30.333        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    3.8164        .33167E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  norm          .10000E-03    14.792        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          7.3865        22.666        .14749E-03   -1.5164    
  11  norm          2.9189        1.4864        .67238E-04   -1.5366    
  12  Prefactor     2.2116        2.3454        .11076E-03   -1.5411    
  13  Prefactor     4.2465        18.992        .19444E-03   -1.5296    
  14  Prefactor     33.615        52.571        .69088E-04   -1.4548    
  15  Prefactor     19.179        10.432        .91444E-04   -1.4832    
  16  norm          1.2259        2.1475        .15543E-03   -1.5487    
  17  Prefactor     13.622        16.270        .10851E-03   -1.4970    
  18  norm          4.8221        2.2725        .87285E-04   -1.5269    
  19  Normalizat    1.0539        .22022        .33148E-03   -.91246    
  20  Prefactor     .93409        .10799        .17458E-03   -.94960    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.25338e-09
Minuit parameter uncertainties:
  1  0.000805045
  2  1.49274
  3  32.833
  4  1.0457e-06
  5  1.201e-06
  6  0.00503664
  7  4.44986e-05
  8  1.70346e-05
  9  0.000121537
  10  22.6925
  11  1.48647
  12  2.3455
  13  17.9705
  14  52.6431
  15  10.4326
  16  2.14762
  17  16.2752
  18  2.27254
  19  0.220407
  20  0.108012
Done.

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

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.001e-04  5.037e-03  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.341e-01  1.080e-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.054e+00  2.204e-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.76e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.77e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/277830/likelihoodResults_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.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) = 7844.06100863
delta logL = -7.04285403117e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7843.02297271
delta logL = 1.03796548593

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .19766       1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .96007       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .95465       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=   7843.023     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      301 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .19774        4.5458        .64092E-02   -.21493E-02
   2  alpha         5.0000        4.3426        .46267    ** at limit **
   3  Normalizat    .96009        .98222E-01    .77917E-01   -.12175E-03
   4  Prefactor     .95460        .47452E-01    .45698E-01   -.17476E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.197738
  alpha      = 5
  Normalizat = 0.960095
  Prefactor  = 0.954598
 **********
 **   18 **HESSE 
 **********

 FCN=   7843.023     FROM HESSE     STATUS=OK            35 CALLS      336 TOTAL
                     EDM=   .31E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .19774        .17792        .29116E-03   -1.5619    
   2  alpha         5.0000        .73256        .50000        1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .96009        .21965        .34485E-03   -.94380    
   4  Prefactor     .95460        .10561        .17276E-03   -.94259    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.09805e-10
Minuit parameter uncertainties:
  1  0.177921
  2  1.31217e-06
  3  0.219858
  4  0.105637
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/277830': 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) = 7843.02297197
delta logL = 1.03796622924

Extracting fit parameters...

4FGL J0409.8-0359
   Spectrum: LogParabola
237         norm:  1.977e-01  1.779e-01  1.000e-04  1.000e+04 ( 1.000e-13)
238        alpha:  5.000e+00  1.312e-06  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.546e-01  1.056e-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.601e-01  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.23
Ra Dec: 62.463 -3.986
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 9.53e-08 +/- 8.56e-08
Energy Flux (Free Index): 1.48e-05 +/- 1.33e-05

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/277830/cmap_HighResolution_260323201_260582401_4FGL_J0409.8-0359_daily_bin81.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.77e-05', comment='SUCCESS', energy_flux2='1.48e-05', dlogl='1.04e+00', photon_flux2='9.53e-08', job_status='DONE', time_completed='2021-08-20 06:25:04.080970', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.93', photon_index_error='0.00', photon_flux_upper_limit='2.76e-08', energy_flux_error2='1.33e-05', EG='1.05', time_epoch_completed='1629465904.08', return_code='0', job_id='277830', GAL2='0.95', EG2='0.96', return_code2='0', photon_flux_error2='8.56e-08', ts2='2.23', photon_index='1.68' WHERE bin_id='81' AND source_name='4FGL J0409.8-0359' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:25:04 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0010>
Subject: Job 277830: <4FGL_J0409.8-0359_daily_bin81> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0409.8-0359_daily_bin81 62.4629 -3.9865 260323201 260582401 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 :                                   708.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             316.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   872 sec.
    Turnaround time :                            874 sec.

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

