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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin294
RA = 61.8921, Dec = 7.6998
tmin = 315532801, tmax = 315792001
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='268366', job_status='RUN', time_executed='2021-08-20 05:42:34.032781', time_epoch_executed='1629463354.03' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='294'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/268366

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/268366/ft1_4FGL_J0407.5+0741_daily_bin294.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/268366/ft2_4FGL_J0407.5+0741_daily_bin294.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/268366/ft1_4FGL_J0407.5+0741_daily_bin294.fits outfile=/scratch/kocevski/268366/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin294.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=315532801.0 tmax=315792001.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.07
user 3.52
sys 0.52

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/268366/ft2_4FGL_J0407.5+0741_daily_bin294.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/268366/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin294.fits evtable="EVENTS" outfile="/scratch/kocevski/268366/ft1_filtered_4FGL_J0407.5+0741_daily_bin294.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.85
user 0.31
sys 0.53

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/268366/ft1_filtered_4FGL_J0407.5+0741_daily_bin294.fits" evtable="EVENTS" scfile=/scratch/kocevski/268366/ft2_4FGL_J0407.5+0741_daily_bin294.fits sctable="SC_DATA" outfile=/scratch/kocevski/268366/ltcube_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.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/268366/ft2_4FGL_J0407.5+0741_daily_bin294.fits
.....................!
real 12.11
user 11.37
sys 0.71

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/268366/ft1_filtered_4FGL_J0407.5+0741_daily_bin294.fits evtable="EVENTS" scfile=/scratch/kocevski/268366/ft2_4FGL_J0407.5+0741_daily_bin294.fits sctable="SC_DATA" expcube=/scratch/kocevski/268366/ltcube_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.fits outfile=/scratch/kocevski/268366/expmap_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.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/268366/ltcube_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.fits
.....................!
real 191.62
user 185.66
sys 5.65

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/268366/ft1_filtered_4FGL_J0407.5+0741_daily_bin294.fits scfile=/scratch/kocevski/268366/ft2_4FGL_J0407.5+0741_daily_bin294.fits outfile=/scratch/kocevski/268366/cmap_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.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.89
user 0.37
sys 0.51

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/268366/ft1_filtered_4FGL_J0407.5+0741_daily_bin294.fits scfile=/scratch/kocevski/268366/ft2_4FGL_J0407.5+0741_daily_bin294.fits outfile=/scratch/kocevski/268366/cmap_HighResolution_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.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.90
user 0.39
sys 0.50

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    12.630       1.0000         .10000E-03   10000.    
     2 'norm      '    .10006E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.5861       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31507E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    3.2543       1.0000         .10000E-03   10000.    
     6 'norm      '    .10045E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10102E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .62074E-01   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.906       1.0000         .10000E-03   10000.    
    10 'norm      '    5.5179       1.0000         .10000E-03   10000.    
    11 'norm      '    .52697       1.0000         .10000E-03   10000.    
    12 'Prefactor '    1.2141       1.0000         .10000E-03   10000.    
    13 'Prefactor '    7.1811       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10191E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    4.6672       1.0000         .10000E-03   10000.    
    16 'norm      '    .27339E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.785       1.0000         .10000E-03   10000.    
    18 'norm      '    2.4714       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.292       1.0000         .10000E-03   10000.    
    20 'norm      '    3.7902       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2054       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .90012       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=   6457.534     FROM MIGRAD    STATUS=CONVERGED    467 CALLS     2429 TOTAL
                     EDM=   .15E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     12.619        21.439       -.10370E-05   -.88489E-05
   2  norm          .10000E-03    3.3155       -.27476E-07** at limit **
   3  norm          4.5858        2.4580        .52755E-07    .33558E-04
   4  Prefactor     .10000E-03    163.02       -.58546E-04** at limit **
   5  Prefactor     3.2737        39.932        .65878E-05    .84411E-04
   6  norm          .10000E-03    7.8727        .16087E-06** at limit **
   7  Prefactor     .10000E-03    22.130        .77214E-06** at limit **
   8  norm          .43618E-01    4.1477       -.48390E-06    .13826E-03
   9  Prefactor     12.903        23.766       -.11533E-04    .11897E-04
  10  norm          5.5332        25.495        .49535E-05   -.70231E-05
  11  norm          .52739        .80736       -.51361E-06   -.41685E-02
  12  Prefactor     1.2133        1.7555       -.22023E-06   -.45318E-03
  13  Prefactor     7.2144        21.709       -.36457E-05    .28628E-04
  14  Prefactor     .10000E-03    82.675       -.88154E-07** at limit **
  15  Prefactor     4.6639        15.414        .29483E-05   -.66564E-04
  16  norm          .10000E-03    1.7993       -.30253E-06** at limit **
  17  Prefactor     20.784        26.962       -.11076E-05    .58422E-05
  18  norm          2.4719        4.2536        .19229E-05   -.57983E-03
  19  Prefactor     12.299        9.4146        .64961E-05    .40663E-04
  20  norm          3.7899        2.9297       -.51143E-06   -.26945E-03
  21  Normalizat    1.2058        .32572       -.28020E-05    .18674E-03
  22  Prefactor     .90011        .83179E-01    .49693E-06    .22974E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 12.6187
  norm       = 0.0001
  norm       = 4.58582
  Prefactor  = 0.000100001
  Prefactor  = 3.2737
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.043618
  Prefactor  = 12.9026
  norm       = 5.53323
  norm       = 0.527392
  Prefactor  = 1.21331
  Prefactor  = 7.21439
  Prefactor  = 0.0001
  Prefactor  = 4.66393
  norm       = 0.0001
  Prefactor  = 20.7843
  norm       = 2.47192
  Prefactor  = 12.2989
  norm       = 3.78986
  Normalizat = 1.20577
  Prefactor  = 0.900105
 **********
 **   18 **HESSE 
 **********

 FCN=   6457.534     FROM HESSE     STATUS=OK           360 CALLS     2789 TOTAL
                     EDM=   .35E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     12.619        21.547        .11271E-03   -1.4997    
   2  norm          .10000E-03    3.3205        .14290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.5858        2.4600        .89465E-04   -1.5280    
   4  Prefactor     .10000E-03    162.79        .21369E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     3.2737        39.867        .22450E-03   -1.5346    
   6  norm          .10000E-03    7.8726        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    22.151        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .43618E-01    4.3646        .52011E-01   -1.5666    
   9  Prefactor     12.903        23.734        .11150E-03   -1.4989    
  10  norm          5.5332        25.021        .17104E-03   -1.5237    
  11  norm          .52739        .82307        .22761E-03   -1.5563    
  12  Prefactor     1.2133        1.7019        .11858E-03   -1.5488    
  13  Prefactor     7.2144        20.481        .14969E-03   -1.5171    
  14  Prefactor     .10000E-03    83.056        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     4.6639        15.388        .18628E-03   -1.5276    
  16  norm          .10000E-03    6.6336        .19289E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     20.784        26.959        .87854E-04   -1.4796    
  18  norm          2.4719        4.2256        .20396E-03   -1.5394    
  19  Prefactor     12.299        9.3160        .11425E-03   -1.5006    
  20  norm          3.7899        2.9302        .11587E-03   -1.5319    
  21  Normalizat    1.2058        .36064        .44242E-03   -.86425    
  22  Prefactor     .90011        .92830E-01    .14198E-03   -.96137    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.47816e-09
Minuit parameter uncertainties:
  1  21.5602
  2  7.09192e-08
  3  2.46004
  4  0.00058716
  5  22.8669
  6  5.37239e-07
  7  3.85221e-06
  8  0.8717
  9  23.7511
  10  23.5486
  11  0.823087
  12  1.70197
  13  20.5013
  14  5.27897e-05
  15  15.4013
  16  4.08239e-05
  17  26.9743
  18  4.22612
  19  9.3171
  20  2.93028
  21  0.361383
  22  0.0928466
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  3.274e+00  2.287e+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:  9.001e-01  9.285e-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.206e+00  3.614e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/268366/likelihoodResults_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.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) = 6456.17567669
delta logL = 1.357879685

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 6455.75670489
delta logL = 1.77685147848

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 'Index     '    7.9397       1.0000          .0000       10.000    
     3 'Normalizat'    1.0519       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .92682       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=   6455.757     FROM MIGRAD    STATUS=CONVERGED    256 CALLS      595 TOTAL
                     EDM=   .48E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    .10133E-03    .29207E-03** at limit **
   2  Index         7.9393        .42742        .11229       -.19160E-03
   3  Normalizat    1.0517        .29634        .10587        .12324E-03
   4  Prefactor     .92694        .83181E-01    .31696E-01    .11429E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 7.93932
  Normalizat = 1.05175
  Prefactor  = 0.926942
 **********
 **   18 **HESSE 
 **********

 FCN=   6455.757     FROM HESSE     STATUS=NOT POSDEF    39 CALLS      634 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    .17633E-01    .14689E-03   -14.137    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         7.9393        3.2208        .45880E-02   -98.018    
   3  Normalizat    1.0517        .21971        .46926E-03    24.220    
   4  Prefactor     .92694        .61625E-01    .14006E-03   -107.77    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 2.2235e-09
Minuit parameter uncertainties:
  1  3.40592e-08
  2  3.72574
  3  0.219898
  4  0.0616301
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/268366': 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) = 6455.75670219
delta logL = 1.77685418233

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.000e-04  3.406e-08  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  7.939e+00  3.726e+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:  9.269e-01  6.163e-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.052e+00  2.199e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.81
Ra Dec: 61.892 7.700
Photon Index (Free Index): 7.94 +/- 3.73
Photon Flux (Free Index): 1.25e-07 +/- 1.11e-06
Energy Flux (Free Index): 1.45e-05 +/- 1.29e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/268366/cmap_HighResolution_315532801_315792001_4FGL_J0407.5+0741_daily_bin294.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.28e-02', comment='SUCCESS', energy_flux2='1.45e-05', dlogl='1.78e+00', photon_flux2='1.25e-07', job_status='DONE', time_completed='2021-08-20 05:53:28.337058', photon_index_error2='3.73', photon_index2='7.94', ts='0.02', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', photon_flux_upper_limit='1.67e-07', energy_flux_error2='1.29e-04', EG='1.21', time_epoch_completed='1629464008.34', return_code='0', job_id='268366', GAL2='0.93', EG2='1.05', return_code2='102', photon_flux_error2='1.11e-06', ts2='3.81', photon_index='2.31' WHERE bin_id='294' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:53:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0214>
Subject: Job 268366: <4FGL_J0407.5+0741_daily_bin294> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin294> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Aug 20 05:40:17 2021
Job was executed on host(s) <bullet0214>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:40:18 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:40:18 2021
Terminated at Fri Aug 20 05:53:29 2021
Results reported at Fri Aug 20 05:53:29 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin294 61.8921 7.6998 315532801 315792001 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 :                                   658.00 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             296.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   790 sec.
    Turnaround time :                            792 sec.

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

