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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin666
RA = 61.8921, Dec = 7.6998
tmin = 411955201, tmax = 412214401
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='271202', job_status='RUN', time_executed='2021-08-20 05:52:56.183730', time_epoch_executed='1629463976.18' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='666'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271202

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271202/ft1_4FGL_J0407.5+0741_daily_bin666.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271202/ft2_4FGL_J0407.5+0741_daily_bin666.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271202/ft1_4FGL_J0407.5+0741_daily_bin666.fits outfile=/scratch/kocevski/271202/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin666.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=411955201.0 tmax=412214401.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 6.04
user 5.40
sys 0.62

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271202/ft2_4FGL_J0407.5+0741_daily_bin666.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/271202/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin666.fits evtable="EVENTS" outfile="/scratch/kocevski/271202/ft1_filtered_4FGL_J0407.5+0741_daily_bin666.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.89
user 0.32
sys 0.54

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271202/ft1_filtered_4FGL_J0407.5+0741_daily_bin666.fits" evtable="EVENTS" scfile=/scratch/kocevski/271202/ft2_4FGL_J0407.5+0741_daily_bin666.fits sctable="SC_DATA" outfile=/scratch/kocevski/271202/ltcube_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.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/271202/ft2_4FGL_J0407.5+0741_daily_bin666.fits
.....................!
real 12.44
user 11.62
sys 0.73

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271202/ft1_filtered_4FGL_J0407.5+0741_daily_bin666.fits evtable="EVENTS" scfile=/scratch/kocevski/271202/ft2_4FGL_J0407.5+0741_daily_bin666.fits sctable="SC_DATA" expcube=/scratch/kocevski/271202/ltcube_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.fits outfile=/scratch/kocevski/271202/expmap_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.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/271202/ltcube_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.fits
.....................!
real 190.41
user 185.24
sys 4.81

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/271202/ft1_filtered_4FGL_J0407.5+0741_daily_bin666.fits scfile=/scratch/kocevski/271202/ft2_4FGL_J0407.5+0741_daily_bin666.fits outfile=/scratch/kocevski/271202/cmap_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.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.92
user 0.38
sys 0.52

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271202/ft1_filtered_4FGL_J0407.5+0741_daily_bin666.fits scfile=/scratch/kocevski/271202/ft2_4FGL_J0407.5+0741_daily_bin666.fits outfile=/scratch/kocevski/271202/cmap_HighResolution_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.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.94
user 0.37
sys 0.54

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    3.9156       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10090E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10030E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .73946       1.0000         .10000E-03   10000.    
     9 'Prefactor '    9.7200       1.0000         .10000E-03   10000.    
    10 'norm      '    .10453E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.8397       1.0000         .10000E-03   10000.    
    12 'Prefactor '    2.6023       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .21909E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10411E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    2.2946       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    19 'Prefactor '    1.2691       1.0000         .10000E-03   10000.    
    20 'norm      '    7.9046       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .65203       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.0963       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=   8625.884     FROM MIGRAD    STATUS=CONVERGED    846 CALLS     3078 TOTAL
                     EDM=   .39E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    6.0630        .18142E-02** at limit **
   2  norm          .10000E-03    3.1304        .16032E-02** at limit **
   3  norm          3.9145        2.6118        .11754E-03    .73896E-04
   4  Prefactor     .10000E-03    23.330        .18142E-02** at limit **
   5  Prefactor     .10000E-03    8.8443        .18142E-02** at limit **
   6  norm          .10000E-03    7.3298        .18142E-02** at limit **
   7  Prefactor     .10000E-03    19.362        .18142E-02** at limit **
   8  norm          .73963        16.404        .39154E-02    .59945E-03
   9  Prefactor     9.7312        23.359        .12853E-03   -.32638E-03
  10  norm          .10000E-03    47.121        .18142E-02** at limit **
  11  norm          1.8398        1.7266        .98513E-04    .97723E-03
  12  Prefactor     2.6026        1.8877        .10060E-03    .23484E-03
  13  Prefactor     .10010E-03    30.835        .98854E-01** at limit **
  14  Prefactor     .10000E-03    25.687        .18142E-02** at limit **
  15  Prefactor     .10000E-03    21.010        .36285E-03** at limit **
  16  norm          2.2933        3.5865        .17429E-03   -.91608E-03
  17  Prefactor     .10000E-03    17.324        .18142E-02** at limit **
  18  norm          .10000E-03    1.3633        .10527E-02** at limit **
  19  Prefactor     1.2675        5.8518        .39509E-03    .37689E-03
  20  norm          7.9033        2.8259        .89695E-04    .26642E-03
  21  Normalizat    .65209        .28402        .57785E-03   -.18494E-05
  22  Prefactor     1.0963        .79860E-01    .13600E-03   -.42783E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 3.91448
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.739632
  Prefactor  = 9.73123
  norm       = 0.000100004
  norm       = 1.83977
  Prefactor  = 2.60259
  Prefactor  = 0.000100097
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  norm       = 2.29328
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 1.26748
  norm       = 7.90331
  Normalizat = 0.652091
  Prefactor  = 1.09627
 **********
 **   18 **HESSE 
 **********

 FCN=   8625.884     FROM HESSE     STATUS=OK           332 CALLS     3410 TOTAL
                     EDM=   .31E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    6.0633        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    3.1306        .32064E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          3.9145        2.6116        .47016E-05   -1.5312    
   4  Prefactor     .10000E-03    23.331        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    8.8469        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    7.3298        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    19.363        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .73963        15.828        .15661E-03   -1.5536    
   9  Prefactor     9.7312        23.358        .51413E-05   -1.5084    
  10  norm          .10000E-03    47.161        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.8398        1.6957        .39405E-05   -1.5437    
  12  Prefactor     2.6026        1.8868        .40239E-05   -1.5385    
  13  Prefactor     .10010E-03    27.410        .10565       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    25.688        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    21.010        .72569E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          2.2933        3.5675        .69716E-05   -1.5405    
  17  Prefactor     .10000E-03    17.324        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          .10000E-03    1.3635        .21053E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.2675        5.8471        .15804E-04   -1.5483    
  20  norm          7.9033        2.8258        .35878E-05   -1.5146    
  21  Normalizat    .65209        .28365        .23114E-04   -1.0582    
  22  Prefactor     1.0963        .79845E-01    .27200E-04   -.89586    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.13171e-09
Minuit parameter uncertainties:
  1  1.8682e-05
  2  4.50996e-06
  3  2.6117
  4  0.00023542
  5  2.36489e-05
  6  1.24703e-05
  7  0.000210866
  8  6.84458
  9  23.3802
  10  0.00090118
  11  1.69576
  12  1.88684
  13  0.00326556
  14  0.000260188
  15  6.06096e-05
  16  3.56783
  17  0.000467066
  18  3.68688e-06
  19  5.44533
  20  2.82587
  21  0.284289
  22  0.0798539
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  2.365e-05  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.096e+00  7.985e-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:  6.521e-01  2.843e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 8.08e-08 ph cm-2 s-1
Energy Flux Upper Limit: 6.20e-03 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/271202/likelihoodResults_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.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): 102
logL (Free Index) = 8625.88428955
delta logL = -0.000538893587873

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8625.88375065
delta logL = -1.30785338115e-09

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 'Index     '    2.3104       1.0000          .0000       10.000    
     3 'Normalizat'    .65208       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0963       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=   8625.884     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      215 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    4.2611        .90712E-02** at limit **
   2  Index         2.3094        6.4595        .50000        .87239E-06
   3  Normalizat    .65209        .48619E-02    .13020        .23867E-04
   4  Prefactor     1.0963        .14592E-02    .37730E-01   -.10604E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.30941
  Normalizat = 0.652089
  Prefactor  = 1.09627
 **********
 **   18 **HESSE 
 **********

 FCN=   8625.884     FROM HESSE     STATUS=NOT POSDEF    33 CALLS      248 TOTAL
                     EDM=   .84E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    199.82        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.3094        8.3468        .50000       -.56820    
   3  Normalizat    .65209        .33916E-01    .57785E-03   -1.0582    
   4  Prefactor     1.0963        .10225E-01    .13600E-03   -.89586    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 8.39034e-08
Minuit parameter uncertainties:
  1  0.000202002
  2  1344.15
  3  0.0339175
  4  0.0102251
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271202': 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): 102
logL (Free Index) = 8625.88375065
delta logL = 4.71118255518e-10

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  2.020e-04  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  2.309e+00  1.344e+03  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.096e+00  1.023e-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:  6.521e-01  3.392e-02  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.892 7.700

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/271202/cmap_HighResolution_411955201_412214401_4FGL_J0407.5+0741_daily_bin666.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='6.20e-03', job_status='DONE', photon_flux_upper_limit='8.08e-08', time_completed='2021-08-20 06:06:06.023026', job_id='271202', GAL2='1.10', fit_tolerance='1e-08', EG2='0.65', EG='0.65', time_epoch_completed='1629464766.02', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.10', dlogl='4.71e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='666' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:06:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0250>
Subject: Job 271202: <4FGL_J0407.5+0741_daily_bin666> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin666> was submitted from host <rhel6-64o> by user <kocevski> in cluster <slac> at Fri Aug 20 05:50:35 2021
Job was executed on host(s) <bullet0250>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:50:38 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:38 2021
Terminated at Fri Aug 20 06:06:06 2021
Results reported at Fri Aug 20 06:06:06 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin666 61.8921 7.6998 411955201 412214401 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 :                                   793.43 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             335.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   928 sec.
    Turnaround time :                            931 sec.

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

