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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin236
RA = 61.8921, Dec = 7.6998
tmin = 300499201, tmax = 300758401
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='267295', job_status='RUN', time_executed='2021-08-20 05:38:41.680027', time_epoch_executed='1629463121.68' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='236'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/267295

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/267295/ft1_4FGL_J0407.5+0741_daily_bin236.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/267295/ft2_4FGL_J0407.5+0741_daily_bin236.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/267295/ft1_4FGL_J0407.5+0741_daily_bin236.fits outfile=/scratch/kocevski/267295/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin236.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=300499201.0 tmax=300758401.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 3.48
user 3.25
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/267295/ft1_filtered_4FGL_J0407.5+0741_daily_bin236.fits" evtable="EVENTS" scfile=/scratch/kocevski/267295/ft2_4FGL_J0407.5+0741_daily_bin236.fits sctable="SC_DATA" outfile=/scratch/kocevski/267295/ltcube_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.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/267295/ft2_4FGL_J0407.5+0741_daily_bin236.fits
.....................!
real 12.14
user 11.78
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/267295/ft1_filtered_4FGL_J0407.5+0741_daily_bin236.fits evtable="EVENTS" scfile=/scratch/kocevski/267295/ft2_4FGL_J0407.5+0741_daily_bin236.fits sctable="SC_DATA" expcube=/scratch/kocevski/267295/ltcube_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.fits outfile=/scratch/kocevski/267295/expmap_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.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/267295/ltcube_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.fits
.....................!
real 190.52
user 185.16
sys 5.05

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/267295/ft1_filtered_4FGL_J0407.5+0741_daily_bin236.fits scfile=/scratch/kocevski/267295/ft2_4FGL_J0407.5+0741_daily_bin236.fits outfile=/scratch/kocevski/267295/cmap_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/267295/ft1_filtered_4FGL_J0407.5+0741_daily_bin236.fits scfile=/scratch/kocevski/267295/ft2_4FGL_J0407.5+0741_daily_bin236.fits outfile=/scratch/kocevski/267295/cmap_HighResolution_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.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.54
user 0.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    11.485       1.0000         .10000E-03   10000.    
     2 'norm      '    6.1523       1.0000         .10000E-03   10000.    
     3 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.9536       1.0000         .10000E-03   10000.    
     5 'Prefactor '    35.833       1.0000         .10000E-03   10000.    
     6 'norm      '    20.722       1.0000         .10000E-03   10000.    
     7 'Prefactor '    .17139E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    2.8833       1.0000         .10000E-03   10000.    
     9 'Prefactor '    4.7854       1.0000         .10000E-03   10000.    
    10 'norm      '    .10021E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    .28860       1.0000         .10000E-03   10000.    
    12 'Prefactor '    3.8379       1.0000         .10000E-03   10000.    
    13 'Prefactor '    32.941       1.0000         .10000E-03   10000.    
    14 'Prefactor '    44.356       1.0000         .10000E-03   10000.    
    15 'Prefactor '    18.249       1.0000         .10000E-03   10000.    
    16 'norm      '    .10125E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .44620E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    5.3532       1.0000         .10000E-03   10000.    
    19 'Prefactor '    12.541       1.0000         .10000E-03   10000.    
    20 'norm      '    1.5767       1.0000         .10000E-03   10000.    
    21 'Normalizat'    .40288       1.0000         .10000E-01   10.000    
    22 'Prefactor '    1.1584       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=   11299.16     FROM MIGRAD    STATUS=CONVERGED    551 CALLS     2153 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     11.281        14.149       -.62863E-07   -.10594E-04
   2  norm          6.1934        5.4547        .51292E-07   -.34562E-06
   3  norm          .10000E-03    .68952       -.31026E-08** at limit **
   4  Prefactor     9.8360        48.044       -.97605E-06   -.93435E-05
   5  Prefactor     35.650        21.070        .71835E-06   -.27837E-04
   6  norm          20.753        19.217        .19927E-05    .30977E-04
   7  Prefactor     .10000E-03    8.6243       -.84845E-07** at limit **
   8  norm          2.8995        1.7775        .18905E-06   -.24841E-02
   9  Prefactor     5.1296        37.847        .11431E-04    .12420E-04
  10  norm          .10083E-03    12.611        .16090E-05** at limit **
  11  norm          .27673        .97369        .20670E-07   -.68026E-03
  12  Prefactor     3.7961        1.9608        .31168E-07   -.44774E-03
  13  Prefactor     33.059        27.336       -.45069E-05   -.20237E-03
  14  Prefactor     48.193        53.179       -.47780E-07   -.53402E-04
  15  Prefactor     18.460        14.753        .11327E-06   -.10811E-04
  16  norm          .10000E-03    1.6956        .20224E-06** at limit **
  17  Prefactor     .10000E-03    13.383       -.95318E-07** at limit **
  18  norm          5.3117        3.6159        .63269E-07   -.11933E-03
  19  Prefactor     12.652        8.6900        .29563E-06   -.34584E-03
  20  norm          1.5770        2.2206       -.24072E-09   -.26617E-03
  21  Normalizat    .39865        .36541       -.15359E-06   -.82263E-04
  22  Prefactor     1.1588        .91945E-01   -.11372E-06   -.22117E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 11.2809
  norm       = 6.19341
  norm       = 0.0001
  Prefactor  = 9.83595
  Prefactor  = 35.6496
  norm       = 20.7528
  Prefactor  = 0.0001
  norm       = 2.89953
  Prefactor  = 5.12964
  norm       = 0.000100833
  norm       = 0.276733
  Prefactor  = 3.79615
  Prefactor  = 33.0586
  Prefactor  = 48.1934
  Prefactor  = 18.4602
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 5.3117
  Prefactor  = 12.6515
  norm       = 1.57703
  Normalizat = 0.398653
  Prefactor  = 1.15881
 **********
 **   18 **HESSE 
 **********

 FCN=   11299.16     FROM HESSE     STATUS=OK           358 CALLS     2511 TOTAL
                     EDM=   .32E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     11.281        13.908        .11821E-03   -1.5036    
   2  norm          6.1934        5.4550        .16185E-03   -1.5210    
   3  norm          .10000E-03    1.0727        .17068E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.8360        46.917        .13395E-03   -1.5081    
   5  Prefactor     35.650        20.860        .66949E-04   -1.4513    
   6  norm          20.753        19.225        .87987E-04   -1.4797    
   7  Prefactor     .10000E-03    8.6265        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          2.8995        3.8158        .11452E-02   -1.5367    
   9  Prefactor     5.1296        37.251        .18392E-03   -1.5255    
  10  norm          .10083E-03    13.275        .12454       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .27673        .92464        .17486E-03   -1.5603    
  12  Prefactor     3.7961        1.9508        .96192E-04   -1.5318    
  13  Prefactor     33.059        27.068        .69817E-04   -1.4557    
  14  Prefactor     48.193        51.944        .60197E-04   -1.4318    
  15  Prefactor     18.460        14.746        .93758E-04   -1.4848    
  16  norm          .10000E-03    1.7350        .13507E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    13.387        .21213E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          5.3117        3.5800        .15642E-03   -1.5247    
  19  Prefactor     12.652        8.6085        .56558E-03   -1.4996    
  20  norm          1.5770        2.2070        .17946E-03   -1.5457    
  21  Normalizat    .39865        .29148        .79690E-03   -1.1737    
  22  Prefactor     1.1588        .78555E-01    .13955E-03   -.87608    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.19142e-09
Minuit parameter uncertainties:
  1  13.912
  2  5.45546
  3  1.77337e-06
  4  43.0184
  5  20.8639
  6  19.2308
  7  7.29191e-08
  8  3.81614
  9  27.6706
  10  0.00665296
  11  0.924691
  12  1.95081
  13  27.0783
  14  51.9928
  15  14.7487
  16  2.36877e-05
  17  2.09891e-06
  18  3.58018
  19  8.60934
  20  2.20715
  21  0.292599
  22  0.0785632
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  3.565e+01  2.086e+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.159e+00  7.856e-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:  3.987e-01  2.926e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.04
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.08e-07 +/- 6.32e-08
Energy Flux (Fixed Index): 4.02e-05 +/- 2.35e-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) = 11298.7369441
delta logL = 0.424672967121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11298.2654853
delta logL = 0.896131704361

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8371       1.0000         .10000E-03   10000.    
     2 'Index     '    .53250       1.0000          .0000       10.000    
     3 'Normalizat'    .46726       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1602       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=   11298.27     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      310 TOTAL
                     EDM=   .54E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8322        2.1032        .76954E-02   -.75422E-03
   2  Index         .53162        .42243        .33782       -.36321E-04
   3  Normalizat    .46755        .27644        .16693        .11982E-03
   4  Prefactor     1.1602        .80194E-01    .35647E-01   -.32127E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.83217
  Index      = 0.531617
  Normalizat = 0.467554
  Prefactor  = 1.16018
 **********
 **   18 **HESSE 
 **********

 FCN=   11298.27     FROM HESSE     STATUS=OK            33 CALLS      343 TOTAL
                     EDM=   .38E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8322        4.3274        .13906E-03   -1.5437    
   2  Index         .53162        .74677        .16950E-01   -1.1055    
   3  Normalizat    .46755        .26207        .73998E-03   -1.1394    
   4  Prefactor     1.1602        .76257E-01    .13960E-03   -.87566    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.83717e-09
Minuit parameter uncertainties:
  1  4.3281
  2  0.761293
  3  0.262767
  4  0.0762647
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/267295': 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) = 11298.265484
delta logL = 0.896132975917

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  1.832e+00  4.328e+00  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  5.316e-01  7.613e-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.160e+00  7.626e-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:  4.676e-01  2.628e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.73
Ra Dec: 61.892 7.700
Photon Index (Free Index): 0.53 +/- 0.76
Photon Flux (Free Index): 3.78e-09 +/- 3.91e-09
Energy Flux (Free Index): 1.26e-04 +/- 1.48e-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/267295/cmap_HighResolution_300499201_300758401_4FGL_J0407.5+0741_daily_bin236.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.08e-07', energy_flux2='1.26e-04', photon_flux_error='6.32e-08', dlogl='8.96e-01', energy_flux='4.02e-05', photon_flux2='3.78e-09', job_status='DONE', time_completed='2021-08-20 05:51:01.092636', photon_index_error2='0.76', photon_index2='0.53', ts='12.04', fit_tolerance='1e-08', GAL='1.16', photon_index_error='0.00', energy_flux_error2='1.48e-04', EG='0.40', time_epoch_completed='1629463861.09', return_code='0', job_id='267295', GAL2='1.16', EG2='0.47', return_code2='0', energy_flux_error='2.35e-05', photon_flux_error2='3.91e-09', ts2='13.73', photon_index='2.31' WHERE bin_id='236' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 05:51:01 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0084>
Subject: Job 267295: <4FGL_J0407.5+0741_daily_bin236> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin236> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Fri Aug 20 05:35:59 2021
Job was executed on host(s) <bullet0084>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 05:36:01 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:36:01 2021
Terminated at Fri Aug 20 05:51:01 2021
Results reported at Fri Aug 20 05:51:01 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin236 61.8921 7.6998 300499201 300758401 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 :                                   736.45 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.16 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   900 sec.
    Turnaround time :                            902 sec.

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

