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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin449
RA = 61.8921, Dec = 7.6998
tmin = 355708801, tmax = 355968001
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='269841', job_status='RUN', time_executed='2021-08-20 05:46:05.324603', time_epoch_executed='1629463565.32' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/269841

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/269841/ft1_4FGL_J0407.5+0741_daily_bin449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/269841/ft1_4FGL_J0407.5+0741_daily_bin449.fits outfile=/scratch/kocevski/269841/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin449.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=355708801.0 tmax=355968001.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.13
user 4.65
sys 0.46

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.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/269841/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin449.fits evtable="EVENTS" outfile="/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.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.76
user 0.34
sys 0.40

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits" evtable="EVENTS" scfile=/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits sctable="SC_DATA" outfile=/scratch/kocevski/269841/ltcube_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.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/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits
.....................!
real 12.07
user 11.45
sys 0.59

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits sctable="SC_DATA" expcube=/scratch/kocevski/269841/ltcube_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.fits outfile=/scratch/kocevski/269841/expmap_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.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/269841/ltcube_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.fits
.....................!
real 190.02
user 185.03
sys 4.58

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 140 point sources and 0 extended sources

Setting source of interest to:
4FGL J0407.5+0741 @ 61.8921 7.6998

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits scfile=/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits outfile=/scratch/kocevski/269841/cmap_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.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=61.8921 yref=7.6998 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.39
sys 0.38

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits scfile=/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits outfile=/scratch/kocevski/269841/cmap_HighResolution_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.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=61.8921 yref=7.6998 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.80
user 0.40
sys 0.38

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits evtable="EVENTS" scfile=/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/269841/Model_4FGL_J0407.5+0741_daily_bin449.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/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits.....................!
real 138.74
user 136.87
sys 1.56

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits', '/scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits', expMap='/scratch/kocevski/269841/expmap_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.fits', expCube='/scratch/kocevski/269841/ltcube_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/269841/Model_4FGL_J0407.5+0741_daily_bin449.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0407.5+0741'

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  5.499e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/269841/ft1_filtered_4FGL_J0407.5+0741_daily_bin449.fits
Spacecraft file(s): /scratch/kocevski/269841/ft2_4FGL_J0407.5+0741_daily_bin449.fits
Exposure map: /scratch/kocevski/269841/expmap_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.fits
Exposure cube: /scratch/kocevski/269841/ltcube_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/269841/Model_4FGL_J0407.5+0741_daily_bin449.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) = 10358.1935348

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    1.7721       1.0000         .10000E-03   10000.    
     3 'norm      '    6.5639       1.0000         .10000E-03   10000.    
     4 'Prefactor '    21.633       1.0000         .10000E-03   10000.    
     5 'Prefactor '    12.294       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    47.704       1.0000         .10000E-03   10000.    
    10 'norm      '    15.294       1.0000         .10000E-03   10000.    
    11 'norm      '    1.7411       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    8.1276       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    3.3085       1.0000         .10000E-03   10000.    
    16 'norm      '    1.9090       1.0000         .10000E-03   10000.    
    17 'Prefactor '    28.993       1.0000         .10000E-03   10000.    
    18 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    6.2500       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.4510       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .86671       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   10358.19     FROM MIGRAD    STATUS=CONVERGED    504 CALLS     2378 TOTAL
                     EDM=   .54E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.6404        .14369E-07** at limit **
   2  norm          1.7715        4.7282        .74793E-05   -.20414E-03
   3  norm          6.5648        2.7492       -.75057E-07   -.10781E-03
   4  Prefactor     21.412        56.458        .17519E-05   -.26556E-04
   5  Prefactor     12.302        14.003       -.20449E-06   -.54454E-04
   6  norm          .10000E-03    13.245        .43028E-07** at limit **
   7  Prefactor     .10000E-03    32.791       -.85664E-06** at limit **
   8  norm          .10000E-03    2.4080        .29295E-07** at limit **
   9  Prefactor     47.712        37.133        .16393E-06   -.33848E-05
  10  norm          15.295        21.736        .88718E-06   -.17775E-04
  11  norm          1.7415        1.2537       -.12327E-06   -.28768E-03
  12  Prefactor     .10000E-03    .65011       -.34540E-06** at limit **
  13  Prefactor     8.1254        42.593        .16017E-05    .34778E-04
  14  Prefactor     .10000E-03    22.338       -.22967E-06** at limit **
  15  Prefactor     3.3076        6.0859        .13366E-06    .10247E-04
  16  norm          1.9099        3.9885       -.41556E-06   -.47375E-03
  17  Prefactor     28.926        44.243       -.27815E-05    .36318E-04
  18  norm          .10000E-03    1.5715        .16568E-07** at limit **
  19  Prefactor     .10000E-03    1.9089        .17501E-06** at limit **
  20  norm          6.2498        2.5776        .57710E-07    .89019E-04
  21  Normalizat    1.4506        .26364        .33629E-05    .19118E-03
  22  Prefactor     .86685        .66278E-01   -.12835E-05   -.30485E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 1.77153
  norm       = 6.56484
  Prefactor  = 21.4117
  Prefactor  = 12.3023
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 47.7123
  norm       = 15.2948
  norm       = 1.74152
  Prefactor  = 0.0001
  Prefactor  = 8.12538
  Prefactor  = 0.0001
  Prefactor  = 3.30764
  norm       = 1.90989
  Prefactor  = 28.9259
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.24983
  Normalizat = 1.45061
  Prefactor  = 0.866853
 **********
 **   18 **HESSE 
 **********

 FCN=   10358.19     FROM HESSE     STATUS=OK           346 CALLS     2724 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.6493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          1.7715        4.7472        .15727E-02   -1.5442    
   3  norm          6.5648        2.7600        .10472E-03   -1.5195    
   4  Prefactor     21.412        56.580        .86118E-04   -1.4782    
   5  Prefactor     12.302        13.995        .11424E-03   -1.5006    
   6  norm          .10000E-03    13.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    33.004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10000E-03    2.4166        .15417E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     47.712        37.082        .58056E-04   -1.4325    
  10  norm          15.295        21.660        .10242E-03   -1.4926    
  11  norm          1.7415        1.2611        .91722E-04   -1.5444    
  12  Prefactor     .10000E-03    .65946        .80234E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     8.1254        38.019        .14063E-03   -1.5138    
  14  Prefactor     .10000E-03    22.354        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     3.3076        6.0708        .22257E-03   -1.5344    
  16  norm          1.9099        3.7558        .20743E-03   -1.5432    
  17  Prefactor     28.926        44.201        .74406E-04   -1.4632    
  18  norm          .10000E-03    1.5935        .12454E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     .10000E-03    1.9134        .13734E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          6.2498        2.5771        .10121E-03   -1.5208    
  21  Normalizat    1.4506        .29399        .44775E-03   -.79176    
  22  Prefactor     .86685        .73644E-01    .15045E-03   -.97309    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11671e-09
Minuit parameter uncertainties:
  1  1.00038e-06
  2  4.74816
  3  2.76001
  4  56.722
  5  13.9984
  6  8.53517e-06
  7  0.000325594
  8  2.80883e-06
  9  37.0998
  10  21.6711
  11  1.2611
  12  1.8559e-05
  13  35.1885
  14  7.12631e-05
  15  6.07193
  16  3.75622
  17  44.251
  18  2.54153e-07
  19  1.5709e-05
  20  2.57717
  21  0.294333
  22  0.0736528
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.230e+01  1.400e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.311e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  8.669e-01  7.365e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  1.451e+00  2.943e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.11
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.73e-08 +/- 4.24e-08
Energy Flux (Fixed Index): 1.39e-05 +/- 1.58e-05

TS (Fixed Index): 1.11
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 1.39e-07 ph cm-2 s-1
Energy Flux Upper Limit: 1.06e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/269841/likelihoodResults_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.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) = 10358.1876776
delta logL = 0.00109284637983

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10358.1871607
delta logL = 0.00160969598073

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.795       1.0000         .10000E-03   10000.    
     2 'Index     '    2.3549       1.0000          .0000       10.000    
     3 'Normalizat'    1.4490       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86692       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+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=   10358.19     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      257 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.790        17.176        .11665E-03    .29765E-03
   2  Index         2.3545        .80492        .90985E-02    .97944E-04
   3  Normalizat    1.4493        .26808        .44791E-03   -.73421E-03
   4  Prefactor     .86702        .72097E-01    .15044E-03   -.22624E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.7902
  Index      = 2.35447
  Normalizat = 1.44934
  Prefactor  = 0.867023
 **********
 **   18 **HESSE 
 **********

 FCN=   10358.19     FROM HESSE     STATUS=OK            25 CALLS      282 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.790        16.221        .46658E-05   -1.5021    
   2  Index         2.3545        .76039        .36394E-03   -.55755    
   3  Normalizat    1.4493        .26807        .89581E-04   -.79212    
   4  Prefactor     .86702        .72106E-01    .30088E-04   -.97303    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.62277e-09
Minuit parameter uncertainties:
  1  16.2275
  2  0.764522
  3  0.268332
  4  0.0721139
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/269841': 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) = 10358.187152
delta logL = 0.00161844150352

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.179e+01  1.623e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.354e+00  7.645e-01  0.000e+00  1.000e+01 (-1.000e+00)
219        Scale:  1.332e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
457    Prefactor:  8.670e-01  7.211e-02  0.000e+00  1.000e+01 ( 1.000e+00)
458        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
459        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
456   Normalization:  1.449e+00  2.683e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.12
Ra Dec: 61.892 7.700
Photon Index (Free Index): 2.35 +/- 0.76
Photon Flux (Free Index): 3.87e-08 +/- 4.95e-08
Energy Flux (Free Index): 1.35e-05 +/- 1.64e-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/269841/cmap_HighResolution_355708801_355968001_4FGL_J0407.5+0741_daily_bin449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.06e-02', comment='SUCCESS', photon_flux='3.73e-08', energy_flux2='1.35e-05', photon_flux_error='4.24e-08', dlogl='1.62e-03', energy_flux='1.39e-05', photon_flux2='3.87e-08', job_status='DONE', time_completed='2021-08-20 05:59:27.157954', photon_index_error2='0.76', photon_index2='2.35', ts='1.11', fit_tolerance='1e-08', GAL='0.87', photon_index_error='0.00', photon_flux_upper_limit='1.39e-07', energy_flux_error2='1.64e-05', EG='1.45', time_epoch_completed='1629464367.16', return_code='0', job_id='269841', GAL2='0.87', EG2='1.45', return_code2='0', energy_flux_error='1.58e-05', photon_flux_error2='4.95e-08', ts2='1.12', photon_index='2.31' WHERE bin_id='449' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:59:27 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0268>
Subject: Job 269841: <4FGL_J0407.5+0741_daily_bin449> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin449> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 05:45:47 2021
Job was executed on host(s) <bullet0268>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:45:49 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:45:49 2021
Terminated at Fri Aug 20 05:59:27 2021
Results reported at Fri Aug 20 05:59:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin449 61.8921 7.6998 355708801 355968001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0407.5+0741 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   802.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             356.24 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   818 sec.
    Turnaround time :                            820 sec.

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

