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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin595
RA = 61.8921, Dec = 7.6998
tmin = 393552001, tmax = 393811201
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='271099', job_status='RUN', time_executed='2021-08-20 05:51:12.019290', time_epoch_executed='1629463872.02' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='595'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271099

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271099/ft1_4FGL_J0407.5+0741_daily_bin595.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271099/ft1_4FGL_J0407.5+0741_daily_bin595.fits outfile=/scratch/kocevski/271099/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin595.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=393552001.0 tmax=393811201.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.53
user 3.34
sys 2.12

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271099/ft1_filtered_4FGL_J0407.5+0741_daily_bin595.fits" evtable="EVENTS" scfile=/scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits sctable="SC_DATA" outfile=/scratch/kocevski/271099/ltcube_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.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/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits
.....................!
real 14.27
user 11.70
sys 2.46

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271099/ft1_filtered_4FGL_J0407.5+0741_daily_bin595.fits evtable="EVENTS" scfile=/scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits sctable="SC_DATA" expcube=/scratch/kocevski/271099/ltcube_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.fits outfile=/scratch/kocevski/271099/expmap_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.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/271099/ltcube_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.fits
.....................!
real 193.01
user 186.05
sys 6.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 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/271099/ft1_filtered_4FGL_J0407.5+0741_daily_bin595.fits scfile=/scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits outfile=/scratch/kocevski/271099/cmap_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.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 2.41
user 0.38
sys 2.00

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271099/ft1_filtered_4FGL_J0407.5+0741_daily_bin595.fits scfile=/scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits outfile=/scratch/kocevski/271099/cmap_HighResolution_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.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 2.54
user 0.39
sys 2.11

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/271099/ft1_filtered_4FGL_J0407.5+0741_daily_bin595.fits', '/scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits', expMap='/scratch/kocevski/271099/expmap_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.fits', expCube='/scratch/kocevski/271099/ltcube_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/271099/Model_4FGL_J0407.5+0741_daily_bin595.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/271099/ft1_filtered_4FGL_J0407.5+0741_daily_bin595.fits
Spacecraft file(s): /scratch/kocevski/271099/ft2_4FGL_J0407.5+0741_daily_bin595.fits
Exposure map: /scratch/kocevski/271099/expmap_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.fits
Exposure cube: /scratch/kocevski/271099/ltcube_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/271099/Model_4FGL_J0407.5+0741_daily_bin595.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) = 10905.6485836

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.4288       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10130E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    21.581       1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    3.2527       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.7104       1.0000         .10000E-03   10000.    
    11 'norm      '    3.6236       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10174E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .36640E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    6.2681       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10092E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    80.213       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    21 'Normalizat'    .81517       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0951       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=   10905.56     FROM MIGRAD    STATUS=CONVERGED    484 CALLS     2045 TOTAL
                     EDM=   .66E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    2.8634        .14021E-08** at limit **
   2  norm          .10000E-03    2.1954        .28228E-07** at limit **
   3  norm          2.4288        1.9463       -.34801E-07   -.36273E-03
   4  Prefactor     .10000E-03    89.096       -.78693E-05** at limit **
   5  Prefactor     21.580        16.260        .10827E-06    .68444E-04
   6  norm          .10000E-03    7.3345       -.94381E-07** at limit **
   7  Prefactor     .10000E-03    13.678       -.10605E-05** at limit **
   8  norm          3.2522        3.7559        .21167E-05   -.86817E-04
   9  Prefactor     .10000E-03    19.007        .62412E-05** at limit **
  10  norm          2.7096        24.063        .76588E-07    .34894E-04
  11  norm          3.6241        1.4365        .72102E-07    .32014E-02
  12  Prefactor     .10000E-03    .91894        .19169E-06** at limit **
  13  Prefactor     .10000E-03    27.243       -.27371E-04** at limit **
  14  Prefactor     .10006E-03    345.84       -.14342E-03** at limit **
  15  Prefactor     6.2691        12.694       -.19661E-06   -.80153E-04
  16  norm          .10000E-03    .63886       -.15005E-07** at limit **
  17  Prefactor     .10000E-03    33.333        .27943E-04** at limit **
  18  norm          80.216        9.2354        .13224E-06    .20050E-02
  19  Prefactor     .10000E-03    2.3364        .53474E-07** at limit **
  20  norm          .10000E-03    .74652        .45403E-07** at limit **
  21  Normalizat    .81520        .26158       -.11278E-05    .25018E-03
  22  Prefactor     1.0951        .72835E-01    .11052E-06    .65873E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 2.42875
  Prefactor  = 0.0001
  Prefactor  = 21.5804
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 3.25218
  Prefactor  = 0.0001
  norm       = 2.70957
  norm       = 3.62408
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  Prefactor  = 0.000100065
  Prefactor  = 6.26912
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 80.2158
  Prefactor  = 0.0001
  norm       = 0.0001
  Normalizat = 0.815196
  Prefactor  = 1.09512
 **********
 **   18 **HESSE 
 **********

 FCN=   10905.56     FROM HESSE     STATUS=OK           334 CALLS     2379 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    2.8649        .17258E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2006        .15111E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.4288        1.9412        .12564E-03   -1.5396    
   4  Prefactor     .10000E-03    90.535        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     21.580        16.247        .86220E-04   -1.4779    
   6  norm          .10000E-03    7.3353        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    13.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          3.2522        3.7437        .21065E-03   -1.5347    
   9  Prefactor     .10000E-03    19.072        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.7096        23.949        .24740E-03   -1.5379    
  11  norm          3.6241        1.4331        .75465E-04   -1.5327    
  12  Prefactor     .10000E-03    .94203        .19504E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    27.944        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10006E-03    351.03        .42607E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     6.2691        12.721        .16033E-03   -1.5207    
  16  norm          .10000E-03    .64914        .81494E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    33.639        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          80.216        9.2290        .44843E-04   -1.3914    
  19  Prefactor     .10000E-03    2.3530        .15586E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    1.3111        .17518E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Normalizat    .81520        .27725        .57682E-03   -.99507    
  22  Prefactor     1.0951        .78379E-01    .14418E-03   -.89623    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.41271e-09
Minuit parameter uncertainties:
  1  5.77743e-07
  2  8.43498e-08
  3  1.94126
  4  0.000195443
  5  16.2499
  6  2.62544e-06
  7  7.99393e-06
  8  3.74399
  9  1.72333e-05
  10  16.1194
  11  1.43312
  12  1.30361e-05
  13  0.000600612
  14  0.00958928
  15  12.7268
  16  2.38681e-06
  17  9.91311e-05
  18  9.22916
  19  1.49765e-06
  20  2.40185e-07
  21  0.277728
  22  0.0783874
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  2.158e+01  1.625e+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:  1.095e+00  7.839e-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:  8.152e-01  2.777e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.25
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 6.54e-08 +/- 4.92e-08
Energy Flux (Fixed Index): 2.43e-05 +/- 1.83e-05

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

Saving results to:
/scratch/kocevski/271099/likelihoodResults_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.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) = 10905.462231
delta logL = 0.101934558568

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10905.4486724
delta logL = 0.115493231975

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    14.780       1.0000         .10000E-03   10000.    
     2 'Index     '    2.7383       1.0000          .0000       10.000    
     3 'Normalizat'    .77094       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1010       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.

 FCN=   10905.45     FROM MIGRAD    STATUS=CONVERGED     63 CALLS      293 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     14.755        141.09        .26045E-02    .19640E-03
   2  Index         2.7395        2.3870        .16529        .21887E-03
   3  Normalizat    .76938        .99978E-01    .13345        .14679E-03
   4  Prefactor     1.1015        .23146E-01    .37548E-01    .51859E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 14.7548
  Index      = 2.73953
  Normalizat = 0.769377
  Prefactor  = 1.10148
 **********
 **   18 **HESSE 
 **********

 FCN=   10905.45     FROM HESSE     STATUS=OK            31 CALLS      324 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     14.755        33.208        .10418E-03   -1.4940    
   2  Index         2.7395        1.5021        .57565E-02   -.46911    
   3  Normalizat    .76938        .30849        .59237E-03   -1.0121    
   4  Prefactor     1.1015        .80811E-01    .14380E-03   -.89419    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.66094e-10
Minuit parameter uncertainties:
  1  33.2497
  2  1.53207
  3  0.309193
  4  0.0808204
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271099': 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) = 10905.4486548
delta logL = 0.115510845773

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.475e+01  3.325e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.740e+00  1.532e+00  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:  1.101e+00  8.082e-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:  7.694e-01  3.092e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.55
Ra Dec: 61.892 7.700
Photon Index (Free Index): 2.74 +/- 1.53
Photon Flux (Free Index): 1.02e-07 +/- 1.16e-07
Energy Flux (Free Index): 2.39e-05 +/- 1.62e-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/271099/cmap_HighResolution_393552001_393811201_4FGL_J0407.5+0741_daily_bin595.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.32e-02', comment='SUCCESS', photon_flux='6.54e-08', energy_flux2='2.39e-05', photon_flux_error='4.92e-08', dlogl='1.16e-01', energy_flux='2.43e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-08-20 06:05:23.281869', photon_index_error2='1.53', photon_index2='2.74', ts='3.25', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.72e-07', energy_flux_error2='1.62e-05', EG='0.82', time_epoch_completed='1629464723.28', return_code='0', job_id='271099', GAL2='1.10', EG2='0.77', return_code2='0', energy_flux_error='1.83e-05', photon_flux_error2='1.16e-07', ts2='3.55', photon_index='2.31' WHERE bin_id='595' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:05:23 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0254>
Subject: Job 271099: <4FGL_J0407.5+0741_daily_bin595> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin595> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 05:50:28 2021
Job was executed on host(s) <bullet0254>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:50:29 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 05:50:29 2021
Terminated at Fri Aug 20 06:05:24 2021
Results reported at Fri Aug 20 06:05:24 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin595 61.8921 7.6998 393552001 393811201 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 :                                   878.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             368.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   894 sec.
    Turnaround time :                            896 sec.

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

