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


Performing analysis on: 4FGL_J0407.5+0741_daily_bin789
RA = 61.8921, Dec = 7.6998
tmin = 443836801, tmax = 444096001
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='271380', job_status='RUN', time_executed='2021-08-20 05:52:04.374367', time_epoch_executed='1629463924.37' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='789'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/271380

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/271380/ft1_4FGL_J0407.5+0741_daily_bin789.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/271380/ft2_4FGL_J0407.5+0741_daily_bin789.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/271380/ft1_4FGL_J0407.5+0741_daily_bin789.fits outfile=/scratch/kocevski/271380/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin789.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=443836801.0 tmax=444096001.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.00
user 3.25
sys 3.72

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/271380/ft1_filtered_4FGL_J0407.5+0741_daily_bin789.fits" evtable="EVENTS" scfile=/scratch/kocevski/271380/ft2_4FGL_J0407.5+0741_daily_bin789.fits sctable="SC_DATA" outfile=/scratch/kocevski/271380/ltcube_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.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/271380/ft2_4FGL_J0407.5+0741_daily_bin789.fits
.....................!
real 16.09
user 11.72
sys 4.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/271380/ft1_filtered_4FGL_J0407.5+0741_daily_bin789.fits evtable="EVENTS" scfile=/scratch/kocevski/271380/ft2_4FGL_J0407.5+0741_daily_bin789.fits sctable="SC_DATA" expcube=/scratch/kocevski/271380/ltcube_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.fits outfile=/scratch/kocevski/271380/expmap_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.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/271380/ltcube_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.fits
.....................!
real 197.18
user 187.23
sys 9.60

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/271380/ft1_filtered_4FGL_J0407.5+0741_daily_bin789.fits scfile=/scratch/kocevski/271380/ft2_4FGL_J0407.5+0741_daily_bin789.fits outfile=/scratch/kocevski/271380/cmap_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.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 4.02
user 0.36
sys 3.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/271380/ft1_filtered_4FGL_J0407.5+0741_daily_bin789.fits scfile=/scratch/kocevski/271380/ft2_4FGL_J0407.5+0741_daily_bin789.fits outfile=/scratch/kocevski/271380/cmap_HighResolution_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.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 4.01
user 0.38
sys 3.62

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10029E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    48.990       1.0000         .10000E-03   10000.    
     5 'Prefactor '    53.661       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    18.185       1.0000         .10000E-03   10000.    
     8 'norm      '    .39761E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    23.834       1.0000         .10000E-03   10000.    
    10 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10058E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    10.244       1.0000         .10000E-03   10000.    
    17 'Prefactor '    11.836       1.0000         .10000E-03   10000.    
    18 'norm      '    5.8907       1.0000         .10000E-03   10000.    
    19 'Prefactor '    11.033       1.0000         .10000E-03   10000.    
    20 'norm      '    2.0802       1.0000         .10000E-03   10000.    
    21 'Normalizat'    1.2714       1.0000         .10000E-01   10.000    
    22 'Prefactor '    .94699       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=   10419.10     FROM MIGRAD    STATUS=CONVERGED    475 CALLS     2369 TOTAL
                     EDM=   .62E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    3.4717        .66123E-07** at limit **
   2  norm          .10000E-03    2.2851       -.50237E-08** at limit **
   3  norm          .10000E-03    .59789       -.19422E-06** at limit **
   4  Prefactor     48.981        58.452       -.10704E-04    .21264E-04
   5  Prefactor     53.663        22.087        .35438E-05    .71053E-04
   6  norm          .10000E-03    7.2574       -.12137E-07** at limit **
   7  Prefactor     18.192        23.901        .10700E-04    .43201E-04
   8  norm          .10001E-03    2.9685        .27261E-06** at limit **
   9  Prefactor     23.802        32.005       -.48062E-04   -.43804E-06
  10  norm          .10000E-03    13.563        .87041E-06** at limit **
  11  norm          .10000E-03    .47333       -.38428E-06** at limit **
  12  Prefactor     .10000E-03    .53341       -.87228E-07** at limit **
  13  Prefactor     .10000E-03    22.265        .34358E-05** at limit **
  14  Prefactor     .10000E-03    13.336       -.25125E-05** at limit **
  15  Prefactor     .10000E-03    4.4341       -.26747E-06** at limit **
  16  norm          10.244        3.8473        .41988E-06   -.12933E-03
  17  Prefactor     11.834        29.648       -.26298E-05    .52603E-05
  18  norm          5.8910        3.2100       -.10237E-05    .69463E-04
  19  Prefactor     11.032        8.0531        .23465E-07   -.43951E-05
  20  norm          2.0798        2.0997       -.36162E-06   -.93888E-03
  21  Normalizat    1.2715        .26575        .86074E-05    .25522E-04
  22  Prefactor     .94699        .69544E-01    .11126E-06    .44330E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 48.9815
  Prefactor  = 53.6631
  norm       = 0.0001
  Prefactor  = 18.1924
  norm       = 0.000100014
  Prefactor  = 23.8024
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100002
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 10.2438
  Prefactor  = 11.834
  norm       = 5.89098
  Prefactor  = 11.0325
  norm       = 2.07983
  Normalizat = 1.27154
  Prefactor  = 0.946994
 **********
 **   18 **HESSE 
 **********

 FCN=   10419.10     FROM HESSE     STATUS=OK           342 CALLS     2711 TOTAL
                     EDM=   .26E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    3.4743        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2879        .15069E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.0205        .15354E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     48.981        58.515        .57292E-04   -1.4307    
   5  Prefactor     53.663        22.078        .54754E-04   -1.4242    
   6  norm          .10000E-03    7.2590        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     18.192        23.872        .93922E-04   -1.4855    
   8  norm          .10001E-03    8.6320        .33945E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     23.802        31.990        .82049E-04   -1.4732    
  10  norm          .10000E-03    13.691        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    .76333        .13500E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    .53919        .72707E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .10000E-03    22.443        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    13.344        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  Prefactor     .10000E-03    4.4493        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          10.244        3.8411        .11381E-03   -1.5068    
  17  Prefactor     11.834        29.642        .11644E-03   -1.5020    
  18  norm          5.8910        3.2113        .13077E-03   -1.5222    
  19  Prefactor     11.032        8.0515        .12061E-03   -1.5044    
  20  norm          2.0798        2.0895        .14247E-03   -1.5420    
  21  Normalizat    1.2715        .29071        .46671E-03   -.84420    
  22  Prefactor     .94699        .77171E-01    .14760E-03   -.94518    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.60069e-09
Minuit parameter uncertainties:
  1  7.13902e-06
  2  3.02198e-06
  3  2.02288e-05
  4  58.5839
  5  22.0812
  6  3.78571e-06
  7  23.8842
  8  0.000694127
  9  32.0131
  10  5.17378e-05
  11  3.37253e-05
  12  6.17489e-06
  13  0.000389002
  14  1.83357e-05
  15  1.14327e-05
  16  3.84117
  17  29.6786
  18  3.21138
  19  8.05224
  20  2.08957
  21  0.291086
  22  0.0771794
Done.

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

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  5.366e+01  2.208e+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.470e-01  7.718e-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.272e+00  2.911e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 23.48
Ra Dec: 61.892 7.700
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.63e-07 +/- 6.69e-08
Energy Flux (Fixed Index): 6.05e-05 +/- 2.49e-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) = 10417.7947848
delta logL = 1.30072356672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10417.7942203
delta logL = 1.30128803441

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    71.504       1.0000         .10000E-03   10000.    
     2 'Index     '    1.8204       1.0000          .0000       10.000    
     3 'Normalizat'    1.3307       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .94051       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=   10417.79     FROM MIGRAD    STATUS=CONVERGED     84 CALLS      306 TOTAL
                     EDM=   .42E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     71.505        32.008        .47475E-04   -.10131E-02
   2  Index         1.8204        .30760        .63607E-02   -.60546E-03
   3  Normalizat    1.3307        .27588        .45828E-03    .12389E-03
   4  Prefactor     .94052        .76639E-01    .14814E-03    .38196E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 71.5055
  Index      = 1.82041
  Normalizat = 1.33071
  Prefactor  = 0.940517
 **********
 **   18 **HESSE 
 **********

 FCN=   10417.79     FROM HESSE     STATUS=OK            23 CALLS      329 TOTAL
                     EDM=   .44E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     71.505        32.067        .94950E-05   -1.4015    
   2  Index         1.8204        .30806        .25443E-03   -.68920    
   3  Normalizat    1.3307        .27595        .18331E-04   -.82654    
   4  Prefactor     .94052        .76672E-01    .29629E-04   -.94739    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39925e-09
Minuit parameter uncertainties:
  1  32.0751
  2  0.308384
  3  0.276257
  4  0.0766807
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/271380': 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) = 10417.7942203
delta logL = 1.30128804302

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  7.151e+01  3.208e+01  1.000e-04  1.000e+04 ( 1.000e-13)
218        Index:  1.820e+00  3.084e-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:  9.405e-01  7.668e-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.331e+00  2.763e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 26.05
Ra Dec: 61.892 7.700
Photon Index (Free Index): 1.82 +/- 0.31
Photon Flux (Free Index): 9.68e-08 +/- 6.26e-08
Energy Flux (Free Index): 1.09e-04 +/- 6.88e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/271380/cmap_HighResolution_443836801_444096001_4FGL_J0407.5+0741_daily_bin789.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.63e-07', energy_flux2='1.09e-04', photon_flux_error='6.69e-08', dlogl='1.30e+00', energy_flux='6.05e-05', photon_flux2='9.68e-08', job_status='DONE', time_completed='2021-08-20 06:05:37.859888', photon_index_error2='0.31', photon_index2='1.82', ts='23.48', fit_tolerance='1e-08', GAL='0.95', photon_index_error='0.00', energy_flux_error2='6.88e-05', EG='1.27', time_epoch_completed='1629464737.86', return_code='0', job_id='271380', GAL2='0.94', EG2='1.33', return_code2='0', energy_flux_error='2.49e-05', photon_flux_error2='6.26e-08', ts2='26.05', photon_index='2.31' WHERE bin_id='789' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 06:05:37 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 271380: <4FGL_J0407.5+0741_daily_bin789> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin789 61.8921 7.6998 443836801 444096001 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 :                                   863.06 sec.
    Max Memory :                                 1255 MB
    Average Memory :                             345.55 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   888 sec.
    Turnaround time :                            890 sec.

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

