aklog: Couldn't determine realm of user:aklog: No credentials cache found  while getting realm
/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 98 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 make4FGLDR3xml version 01r09.
The default diffuse model files and names are for P8R3, 4FGL DRs, and the default fermitools directory locations.

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 = 7579
number of fields = 31
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0407.5+0741_daily_bin1740
RA = 61.8921, Dec = 7.6998
tmin = 690336001, tmax = 690595201
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='823318', job_status='RUN', time_executed='2022-11-20 00:16:35.429876', time_epoch_executed='1668932195.43' WHERE source_name='4FGL J0407.5+0741' and cadence='daily' and bin_id='1740'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/823318

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/823318/ft1_4FGL_J0407.5+0741_daily_bin1740.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/823318/ft1_4FGL_J0407.5+0741_daily_bin1740.fits outfile=/scratch/kocevski/823318/ft1_filteredMKT_4FGL_J0407.5+0741_daily_bin1740.fits ra=61.8921 dec=7.6998 rad=12.0 tmin=690336001.0 tmax=690595201.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 2.95
user 2.75
sys 0.19

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

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

Number of photons that the gtmktime cut: 44

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/823318/ft1_filtered_4FGL_J0407.5+0741_daily_bin1740.fits" evtable="EVENTS" scfile=/scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits sctable="SC_DATA" outfile=/scratch/kocevski/823318/ltcube_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.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/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits
.....................!
real 14.36
user 13.96
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/823318/ft1_filtered_4FGL_J0407.5+0741_daily_bin1740.fits evtable="EVENTS" scfile=/scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits sctable="SC_DATA" expcube=/scratch/kocevski/823318/ltcube_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.fits outfile=/scratch/kocevski/823318/expmap_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.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/823318/ltcube_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.fits
.....................!
real 192.85
user 185.68
sys 5.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/823318/ft1_filtered_4FGL_J0407.5+0741_daily_bin1740.fits scfile=/scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits outfile=/scratch/kocevski/823318/cmap_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.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.57
user 0.37
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/823318/ft1_filtered_4FGL_J0407.5+0741_daily_bin1740.fits scfile=/scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits outfile=/scratch/kocevski/823318/cmap_HighResolution_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.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.36
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/823318/ft1_filtered_4FGL_J0407.5+0741_daily_bin1740.fits', '/scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits', expMap='/scratch/kocevski/823318/expmap_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.fits', expCube='/scratch/kocevski/823318/ltcube_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/823318/Model_4FGL_J0407.5+0741_daily_bin1740.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  0.000e+00  1.000e+06 ( 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/823318/ft1_filtered_4FGL_J0407.5+0741_daily_bin1740.fits
Spacecraft file(s): /scratch/kocevski/823318/ft2_4FGL_J0407.5+0741_daily_bin1740.fits
Exposure map: /scratch/kocevski/823318/expmap_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.fits
Exposure cube: /scratch/kocevski/823318/ltcube_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/823318/Model_4FGL_J0407.5+0741_daily_bin1740.xml
Optimizer: MINUIT
Statistic: UNBINNED

Performing an iterative likelihood fit...

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 580.640993982

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 578.503520678

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.2430       1.0000          .0000       .10000E+07
     2 'norm      '    .36601E-01   1.0000          .0000       .10000E+07
     3 'norm      '    3.9572       1.0000          .0000       .10000E+07
     4 'Prefactor '    9.0784       1.0000          .0000       .10000E+07
     5 'Prefactor '    .45099       1.0000          .0000       .10000E+07
     6 'norm      '    .62029E-01   1.0000          .0000       .10000E+07
     7 'Prefactor '    68.483       1.0000          .0000       .10000E+07
     8 'norm      '    2.7653       1.0000          .0000       .10000E+07
     9 'Prefactor '    1.4930       1.0000          .0000       .10000E+07
    10 'norm      '    .16492E-06   1.0000          .0000       .10000E+07
    11 'Prefactor '    .67835E-06   1.0000          .0000       .10000E+07
    12 'Prefactor '    .73534       1.0000          .0000       .10000E+07
    13 'Prefactor '    .54276       1.0000          .0000       .10000E+07
    14 'Prefactor '    2.9241       1.0000          .0000       .10000E+07
    15 'norm      '    .56327E-05   1.0000          .0000       .10000E+07
    16 'Prefactor '    7.7410       1.0000          .0000       .10000E+07
    17 'norm      '    9.9476       1.0000          .0000       .10000E+07
    18 'norm      '    .18236E-02   1.0000          .0000       .10000E+07
    19 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    20 'Prefactor '    .92421       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .4600E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   578.4810     FROM MIGRAD    STATUS=CONVERGED    193 CALLS      491 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.2250        5.9062       -.65080E-06   -.39504E-01
   2  norm          .55511E-10    80.515        .12158E-05** at limit **
   3  norm          4.0180        4.7454        .10144E-06    .47869E-02
   4  Prefactor     65.963        616.88       -.25414E-04    .18553E-02
   5  Prefactor     .40745E-07    141.14       -.84884E-05** at limit **
   6  norm           .0000        32.119        .13518E-05** at limit **
   7  Prefactor     68.247        2.8660        .86112E-07    .77389E-02
   8  norm          2.8826        9.1043       -.98633E-06   -.35900E-02
   9  Prefactor     .52573E-05    987.05        .22444E-04** at limit **
  10  norm          .16098E-08    3.3326       -.14967E-05** at limit **
  11  Prefactor      .0000        1.9884       -.31148E-06** at limit **
  12  Prefactor     .59397E-08    92.939       -.10939E-04** at limit **
  13  Prefactor     .83267E-09    61.291        .23877E-05** at limit **
  14  Prefactor     2.9241        1.0154         .0000         .0000    
  15  norm          .55511E-10    9.4291        .68083E-06** at limit **
  16  Prefactor     8.9891        7.5245       -.77040E-06   -.47449E-01
  17  norm          10.053        11.218        .19529E-05   -.13841E-02
  18  norm          .23886E-06    205.15        .41743E-05** at limit **
  19  Normalizat    .10000E-01    .78774        .77931E-03** at limit **
  20  Prefactor     .91321        .19377       -.52452E-04    .29374E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.22497
  norm       = 5.55112e-11
  norm       = 4.01797
  Prefactor  = 65.9627
  Prefactor  = 4.07452e-08
  norm       = 0
  Prefactor  = 68.2465
  norm       = 2.88255
  Prefactor  = 5.25729e-06
  norm       = 1.60982e-09
  Prefactor  = 0
  Prefactor  = 5.93969e-09
  Prefactor  = 8.32667e-10
  Prefactor  = 2.92409
  norm       = 5.55112e-11
  Prefactor  = 8.98907
  norm       = 10.0529
  norm       = 2.38864e-07
  Normalizat = 0.01
  Prefactor  = 0.91321
 **********
 **   18 **HESSE 
 **********
  MNHESS FAILS AND WILL RETURN DIAGONAL MATRIX. 

 FCN=   578.4810     FROM HESSE     STATUS=FAILED        63 CALLS      554 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=100.0%

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.2250        185.69        .56219E-03   -1.5672    
   2  norm          .55511E-10    80.485        .16121E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.0180        4.4539        .50682E-03   -1.5668    
   4  Prefactor     65.963        506.32        .33240E-03   -1.5546    
   5  Prefactor     .40745E-07    136.10        .83801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm           .0000        32.208        .15090E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     68.247        68.467        .12085E-03   -1.5543    
   8  norm          2.8826        8.8271        .61179E-03   -1.5674    
   9  Prefactor     .52573E-05    994.85        .87680E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .16098E-08    3.2762        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor      .0000        1.9934        .42118E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .59397E-08    92.749        .57885E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     .83267E-09    61.296        .74520E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     62796.        62793.         .0000       -1.5674    
  15  norm          .55511E-10    .44347E-01    .68083E-06   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  Prefactor     8.9891        1.0799       -.77040E-06   -1.5648    
  17  norm          10.053        1.0066        .19529E-05   -1.5645    
  18  norm          .23886E-06    .44347E-01    .41743E-05   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Normalizat    .10000E-01    .25701        .77931E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .91321        1.2611       -.52452E-04   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 1   estimated distance: 1.83622e-09
Minuit parameter uncertainties:
  1  48.9436
  2  0.000152636
  3  4.45388
  4  365.545
  5  0.00470928
  6  1.44271e-05
  7  68.4678
  8  8.82716
  9  0.144664
  10  0.000146089
  11  1.36185e-05
  12  0.00148632
  13  0.000456058
  14  1.01542
  15  2.31166e-06
  16  1.07986
  17  1.00655
  18  0.000205852
  19  1.5699e-05
  20  1.3053
Done.

MINUIT Return Code (Fixed Index): 101
logL (Fixed Index) = 578.481048085

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  4.075e-08  4.709e-03  0.000e+00  1.000e+06 ( 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.132e-01  1.305e+00  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.000e-02  1.570e-05  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.892 7.700
Photon Flux Upper Limit: 1.59e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.22e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/823318/likelihoodResults_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.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) = 578.484559462
delta logL = -0.00351137649375

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 578.481048187
delta logL = -1.01504610939e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17377E-04   1.0000          .0000       .10000E+07
     2 'Index     '    2.2978       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91320       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=   578.4810     FROM MIGRAD    STATUS=CONVERGED     83 CALLS      279 TOTAL
                     EDM=   .27E-12    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .55511E-10    5.5971        .42118E-03** at limit **
   2  Index         .77445        7.5367        .50000       -.28422E-11
   3  Normalizat    .10000E-01    .12790E-03    .22517    ** at limit **
   4  Prefactor     .91321        .24680E-02    .30093E-01   -.43956E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 5.55112e-11
  Index      = 0.774449
  Normalizat = 0.01
  Prefactor  = 0.913207
 **********
 **   18 **HESSE 
 **********

 FCN=   578.4810     FROM HESSE     STATUS=NOT POSDEF    27 CALLS      306 TOTAL
                     EDM=   .13E-11    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .55511E-10    27.964        .84235E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         .77445        6.4314        .50000       -1.0068    
   3  Normalizat    .10000E-01    .94552E-03    .11110E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .91321        .55194E-02    .13301E-03   -.95681    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.33356e-12
Minuit parameter uncertainties:
  1  5.89399e-05
  2  514588
  3  8.77603e-08
  4  0.00551945
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/823318': 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) = 578.481048085
delta logL = 4.2814463086e-10

Extracting fit parameters...

4FGL J0407.5+0741
   Spectrum: PowerLaw
217    Prefactor:  5.551e-11  5.894e-05  0.000e+00  1.000e+06 ( 1.000e-13)
218        Index:  7.744e-01  5.146e+05  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.132e-01  5.519e-03  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.000e-02  8.776e-08  1.000e-02  1.000e+01 ( 1.000e+00)


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

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/823318/cmap_HighResolution_690336001_690595201_4FGL_J0407.5+0741_daily_bin1740.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.22e-01', job_status='DONE', photon_flux_upper_limit='1.59e-06', time_completed='2022-11-20 00:21:56.218831', job_id='823318', GAL2='0.91', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1668932516.22', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='101', GAL='0.91', dlogl='4.28e-10', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1740' AND source_name='4FGL J0407.5+0741' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Sun Nov 20 00:21:56 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0063>
Subject: Job 823317: <4FGL_J0407.5+0741_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin1740> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:34 2022
Job was executed on host(s) <bullet0063>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:14:47 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:14:47 2022
Terminated at Sun Nov 20 00:20:53 2022
Results reported at Sun Nov 20 00:20:53 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin1740 61.8921 7.6998 690336001 690595201 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 :                                   320.63 sec.
    Max Memory :                                 1261 MB
    Average Memory :                             532.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   3404 MB
    Max Processes :                              6
    Max Threads :                                21
    Run time :                                   366 sec.
    Turnaround time :                            919 sec.

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


------------------------------------------------------------
Sender: LSF System <scs@bullet0284>
Subject: Job 823318: <4FGL_J0407.5+0741_daily_bin1740> in cluster <slac> Done

Job <4FGL_J0407.5+0741_daily_bin1740> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Sun Nov 20 00:05:34 2022
Job was executed on host(s) <bullet0284>, in queue <medium>, as user <kocevski> in cluster <slac> at Sun Nov 20 00:14:48 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Sun Nov 20 00:14:48 2022
Terminated at Sun Nov 20 00:21:57 2022
Results reported at Sun Nov 20 00:21:57 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0407.5+0741_daily_bin1740 61.8921 7.6998 690336001 690595201 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 :                                   321.03 sec.
    Max Memory :                                 1254 MB
    Average Memory :                             389.33 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   429 sec.
    Turnaround time :                            983 sec.

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

