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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin836
RA = 61.8921, Dec = 7.6998
tmin = 456019201, tmax = 456278401
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='271452', job_status='RUN', time_executed='2021-08-20 05:54:46.251613', time_epoch_executed='1629464086.25' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='836'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271452

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271452/ft1_4FGL_J0407.5+0741_daily_bin836.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271452/ft2_4FGL_J0407.5+0741_daily_bin836.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271452/ft1_4FGL_J0407.5+0741_daily_bin836.fits outfile=/scratch/kocevski/271452/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin836.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=456019201.0 tmax=456278401.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 7.65
user 6.67
sys 0.95

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/271452/ft2_4FGL_J0407.5+0741_daily_bin836.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/271452/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin836.fits evtable="EVENTS" outfile="/scratch/kocevski/271452/ft1_filtered_4FGL_J0407.5+0741_daily_bin836.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 1.22
user 0.33
sys 0.88

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271452/ft1_filtered_4FGL_J0407.5+0741_daily_bin836.fits" evtable="EVENTS" scfile=/scratch/kocevski/271452/ft2_4FGL_J0407.5+0741_daily_bin836.fits sctable="SC_DATA" outfile=/scratch/kocevski/271452/ltcube_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.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/271452/ft2_4FGL_J0407.5+0741_daily_bin836.fits
.....................!
real 12.64
user 11.46
sys 1.14

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271452/ft1_filtered_4FGL_J0407.5+0741_daily_bin836.fits evtable="EVENTS" scfile=/scratch/kocevski/271452/ft2_4FGL_J0407.5+0741_daily_bin836.fits sctable="SC_DATA" expcube=/scratch/kocevski/271452/ltcube_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.fits outfile=/scratch/kocevski/271452/expmap_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.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/271452/ltcube_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.fits
.....................!
real 190.72
user 185.01
sys 5.30

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/271452/ft1_filtered_4FGL_J0407.5+0741_daily_bin836.fits scfile=/scratch/kocevski/271452/ft2_4FGL_J0407.5+0741_daily_bin836.fits outfile=/scratch/kocevski/271452/cmap_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.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 1.22
user 0.37
sys 0.84

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271452/ft1_filtered_4FGL_J0407.5+0741_daily_bin836.fits scfile=/scratch/kocevski/271452/ft2_4FGL_J0407.5+0741_daily_bin836.fits outfile=/scratch/kocevski/271452/cmap_HighResolution_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.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 1.25
user 0.37
sys 0.86

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10148E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.3566       1.0000         .10000E-03   10000.    
     3 'norm      '    8.9842       1.0000         .10000E-03   10000.    
     4 'Prefactor '    19.446       1.0000         .10000E-03   10000.    
     5 'Prefactor '    29.374       1.0000         .10000E-03   10000.    
     6 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    6.4677       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.082       1.0000         .10000E-03   10000.    
    11 'norm      '    1.1050       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .69168       1.0000         .10000E-03   10000.    
    13 'Prefactor '    1.3088       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10031E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    5.5828       1.0000         .10000E-03   10000.    
    16 'norm      '    3.1392       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    4.4990       1.0000         .10000E-03   10000.    
    19 'Prefactor '    18.012       1.0000         .10000E-03   10000.    
    20 'norm      '    11.417       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .66660       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1633       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=   10303.89     FROM MIGRAD    STATUS=CONVERGED    487 CALLS     2406 TOTAL
                     EDM=   .57E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    16.993        .13440E-06** at limit **
   2  norm          6.3569        5.9854        .18672E-07    .18847E-04
   3  norm          8.9843        2.7436        .65429E-07   -.30823E-05
   4  Prefactor     19.435        61.393        .37670E-05    .55381E-05
   5  Prefactor     29.380        21.041       -.25012E-06   -.80012E-04
   6  norm          .10000E-03    8.1444        .43326E-07** at limit **
   7  Prefactor     .10000E-03    17.262        .12536E-06** at limit **
   8  norm          6.4681        5.5220        .31309E-07   -.12326E-03
   9  Prefactor     .10000E-03    12.377       -.16511E-08** at limit **
  10  norm          24.088        25.869       -.14240E-05   -.17481E-03
  11  norm          1.1034        1.2921       -.20585E-07   -.59389E-03
  12  Prefactor     .69298        1.5600        .49248E-06    .50146E-03
  13  Prefactor     1.2548        123.45       -.17259E-05    .15166E-04
  14  Prefactor     .10000E-03    32.135        .15973E-05** at limit **
  15  Prefactor     5.5840        21.517        .13350E-05    .29618E-04
  16  norm          3.1403        3.5258        .15520E-05   -.93176E-03
  17  Prefactor     .10000E-03    34.078       -.16074E-05** at limit **
  18  norm          4.4988        3.7258       -.13356E-07   -.34786E-03
  19  Prefactor     18.013        12.446       -.25703E-06   -.84834E-04
  20  norm          11.416        3.9676        .94939E-07    .86261E-04
  21  Normalizat    .66659        .32526       -.44431E-05   -.21431E-03
  22  Prefactor     1.1633        .82625E-01    .35827E-06   -.37754E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 6.35686
  norm       = 8.98425
  Prefactor  = 19.4348
  Prefactor  = 29.3798
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 6.46812
  Prefactor  = 0.0001
  norm       = 24.0881
  norm       = 1.10343
  Prefactor  = 0.692983
  Prefactor  = 1.25481
  Prefactor  = 0.0001
  Prefactor  = 5.58402
  norm       = 3.14029
  Prefactor  = 0.0001
  norm       = 4.49884
  Prefactor  = 18.013
  norm       = 11.4164
  Normalizat = 0.666585
  Prefactor  = 1.16331
 **********
 **   18 **HESSE 
 **********

 FCN=   10303.89     FROM HESSE     STATUS=OK           350 CALLS     2756 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    17.284        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.3569        5.9916        .15920E-03   -1.5204    
   3  norm          8.9843        2.7398        .89110E-04   -1.5108    
   4  Prefactor     19.435        61.319        .90826E-04   -1.4826    
   5  Prefactor     29.380        20.965        .73924E-04   -1.4623    
   6  norm          .10000E-03    8.1471        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    17.292        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          6.4681        5.4818        .15781E-03   -1.5199    
   9  Prefactor     .10000E-03    12.385        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.088        25.877        .81626E-04   -1.4726    
  11  norm          1.1034        1.2125        .11007E-03   -1.5498    
  12  Prefactor     .69298        1.4422        .17264E-02   -1.5541    
  13  Prefactor     1.2548        127.13        .38555E-03   -1.5484    
  14  Prefactor     .10000E-03    31.960        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     5.5840        21.537        .17003E-03   -1.5235    
  16  norm          3.1403        3.5579        .87023E-03   -1.5354    
  17  Prefactor     .10000E-03    33.846        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          4.4988        3.7027        .16840E-03   -1.5284    
  19  Prefactor     18.013        12.350        .94371E-04   -1.4859    
  20  norm          11.416        3.9648        .11224E-03   -1.5032    
  21  Normalizat    .66659        .32259        .66776E-03   -1.0523    
  22  Prefactor     1.1633        .84133E-01    .14830E-03   -.87468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.16883e-09
Minuit parameter uncertainties:
  1  4.57356e-05
  2  5.99221
  3  2.73979
  4  61.5185
  5  20.9699
  6  4.58871e-06
  7  3.33109e-05
  8  5.48218
  9  1.53978e-05
  10  25.8888
  11  1.21252
  12  1.44232
  13  25.3154
  14  0.000100193
  15  21.5668
  16  3.55811
  17  8.06881e-05
  18  3.70285
  19  12.3515
  20  3.96493
  21  0.323515
  22  0.0841431
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  2.938e+01  2.097e+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.163e+00  8.414e-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.666e-01  3.235e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.55
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.91e-08 +/- 6.35e-08
Energy Flux (Fixed Index): 3.31e-05 +/- 2.37e-05

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) = 10303.7501323
delta logL = 0.13748650317

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10303.6313006
delta logL = 0.256318182619

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    13.271       1.0000         .10000E-03   10000.    
     2 'Index     '    1.2994       1.0000          .0000       10.000    
     3 'Normalizat'    .73676       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1592       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=   10303.63     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      232 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     13.184        13.744        .27488E-02    .46364E-03
   2  Index         1.2970        .44963        .32276       -.26639E-03
   3  Normalizat    .73657        .27607        .14360        .20050E-03
   4  Prefactor     1.1592        .79224E-01    .35676E-01   -.28435E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 13.1835
  Index      = 1.29699
  Normalizat = 0.736565
  Prefactor  = 1.15916
 **********
 **   18 **HESSE 
 **********

 FCN=   10303.63     FROM HESSE     STATUS=OK            31 CALLS      263 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     13.184        21.870        .10995E-03   -1.4982    
   2  Index         1.2970        .80637        .12529E-01   -.83396    
   3  Normalizat    .73657        .28263        .63770E-03   -1.0247    
   4  Prefactor     1.1592        .81822E-01    .14859E-03   -.87597    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.15393e-09
Minuit parameter uncertainties:
  1  21.8833
  2  0.814324
  3  0.28319
  4  0.081831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271452': 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) = 10303.6312927
delta logL = 0.256326094479

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.318e+01  2.188e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  1.297e+00  8.143e-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:  1.159e+00  8.183e-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.366e-01  2.832e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 6.00
Ra Dec: 61.892 7.700
Photon Index (Free Index): 1.30 +/- 0.81
Photon Flux (Free Index): 1.11e-08 +/- 2.03e-08
Energy Flux (Free Index): 6.88e-05 +/- 1.00e-04

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/271452/cmap_HighResolution_456019201_456278401_4FGL_J0407.5+0741_daily_bin836.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.91e-08', energy_flux2='6.88e-05', photon_flux_error='6.35e-08', dlogl='2.56e-01', energy_flux='3.31e-05', photon_flux2='1.11e-08', job_status='DONE', time_completed='2021-08-20 06:07:13.982398', photon_index_error2='0.81', photon_index2='1.30', ts='5.55', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.00e-04', EG='0.67', time_epoch_completed='1629464833.98', return_code='0', job_id='271452', GAL2='1.16', EG2='0.74', return_code2='0', energy_flux_error='2.37e-05', photon_flux_error2='2.03e-08', ts2='6.00', photon_index='2.31' WHERE bin_id='836' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:07:14 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 271452: <4FGL_J0407.5+0741_daily_bin836> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin836 61.8921 7.6998 456019201 456278401 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 :                                   755.50 sec.
    Max Memory :                                 1206 MB
    Average Memory :                             318.03 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   979 sec.
    Turnaround time :                            981 sec.

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

