/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 5 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 = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J0405.4-6929_daily_bin328
RA = 61.3672, Dec = -69.4885
tmin = 324345601, tmax = 324604801
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='197796', job_status='RUN', time_executed='2021-08-20 01:28:21.518007', time_epoch_executed='1629448101.52' WHERE source_name='4FGL J0405.4-6929' and cadence='daily' and bin_id='328'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/197796

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/197796/ft1_4FGL_J0405.4-6929_daily_bin328.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/197796/ft1_4FGL_J0405.4-6929_daily_bin328.fits outfile=/scratch/kocevski/197796/ft1_filteredMKT_4FGL_J0405.4-6929_daily_bin328.fits ra=61.3672 dec=-69.4885 rad=12.0 tmin=324345601.0 tmax=324604801.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 23.45
user 13.81
sys 9.13

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.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/197796/ft1_filteredMKT_4FGL_J0405.4-6929_daily_bin328.fits evtable="EVENTS" outfile="/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.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 8.42
user 0.32
sys 8.06

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits" evtable="EVENTS" scfile=/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits sctable="SC_DATA" outfile=/scratch/kocevski/197796/ltcube_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.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/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits
.....................!
real 20.56
user 10.41
sys 10.08

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits sctable="SC_DATA" expcube=/scratch/kocevski/197796/ltcube_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.fits outfile=/scratch/kocevski/197796/expmap_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.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/197796/ltcube_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.fits
.....................!
real 200.44
user 184.97
sys 15.10

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
Extended source LMC-FarWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-FarWest.fits is the correct path to the extended template.
Extended source LMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-Galaxy.fits is the correct path to the extended template.
Extended source LMC-30DorWest in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-30DorWest.fits is the correct path to the extended template.
Extended source LMC-North in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/LMC-North.fits is the correct path to the extended template.
Extended source SMC-Galaxy in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/SMC-Galaxy.fits is the correct path to the extended template.
Added 188 point sources and 5 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J0405.4-6929 @ 61.3672 -69.4885

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits scfile=/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits outfile=/scratch/kocevski/197796/cmap_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.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.3672 yref=-69.4885 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 9.02
user 0.37
sys 8.61

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits scfile=/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits outfile=/scratch/kocevski/197796/cmap_HighResolution_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.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.3672 yref=-69.4885 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 9.14
user 0.38
sys 8.70

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits evtable="EVENTS" scfile=/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/197796/Model_4FGL_J0405.4-6929_daily_bin328.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
adding source LMC-30DorWest
adding source LMC-FarWest
adding source LMC-Galaxy
adding source LMC-North
adding source SMC-Galaxy
Working on...
/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits..............................!
real 268.75
user 255.37
sys 12.91

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits', '/scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits', expMap='/scratch/kocevski/197796/expmap_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.fits', expCube='/scratch/kocevski/197796/ltcube_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/197796/Model_4FGL_J0405.4-6929_daily_bin328.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0405.4-6929'

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  4.114e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  8.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/197796/ft1_filtered_4FGL_J0405.4-6929_daily_bin328.fits
Spacecraft file(s): /scratch/kocevski/197796/ft2_4FGL_J0405.4-6929_daily_bin328.fits
Exposure map: /scratch/kocevski/197796/expmap_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.fits
Exposure cube: /scratch/kocevski/197796/ltcube_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/197796/Model_4FGL_J0405.4-6929_daily_bin328.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) = 385.214335674

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15588E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    69.466       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10512E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .11958E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    .74848E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10085E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    78.926       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .11289E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10345E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    61.613       1.0000         .10000E-03   10000.    
    14 'Prefactor '    281.91       1.0000         .10000E-03   10000.    
    15 'Prefactor '    7.8168       1.0000         .10000E-03   10000.    
    16 'Prefactor '    .12787E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .14047E-03   1.0000         .10000E-03   10000.    
    18 'norm      '    55.248       1.0000         .10000E-03   10000.    
    19 'Prefactor '    .10126E-03   1.0000         .10000E-03   10000.    
    20 'norm      '    .10581E-02   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10026E-03   1.0000         .10000E-03   10000.    
    22 'norm      '    161.15       1.0000         .10000E-03   10000.    
    23 'Normalizat'    .10001E-01   1.0000         .10000E-01   10.000    
    24 'Prefactor '    .74075       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   384.8870     FROM MIGRAD    STATUS=CONVERGED    526 CALLS     2711 TOTAL
                     EDM=   .99E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    33.437       -.31099E-07** at limit **
   2  Prefactor     .10000E-03    39.989       -.61577E-07** at limit **
   3  norm          .10000E-03    124.48        .18150E-06** at limit **
   4  Prefactor     69.578        68.627       -.24051E-06    .37548E-04
   5  Prefactor     .10000E-03    139.03        .14281E-08** at limit **
   6  Prefactor     .10000E-03    124.61        .17178E-06** at limit **
   7  norm          .10000E-03    34.568        .81927E-07** at limit **
   8  norm          .10001E-03    12.174        .46825E-07** at limit **
   9  Prefactor     .10000E-03    69.924       -.51207E-06** at limit **
  10  Prefactor     79.008        136.41        .35749E-06    .84940E-05
  11  Prefactor     .10000E-03    142.94       -.79472E-07** at limit **
  12  norm          .10000E-03    6.9846       -.14001E-06** at limit **
  13  Prefactor     61.513        188.81       -.14786E-06    .93907E-05
  14  Prefactor     282.09        210.87       -.43665E-06    .19428E-04
  15  Prefactor     7.2976        541.42        .18950E-05    .23377E-04
  16  Prefactor     .10000E-03    54.482       -.62916E-07** at limit **
  17  Prefactor     .10000E-03    357.14       -.13602E-05** at limit **
  18  norm          55.422        41.966       -.29419E-06    .12954E-04
  19  Prefactor     .10000E-03    57.235        .27064E-07** at limit **
  20  norm          .10000E-03    820.35       -.22408E-06** at limit **
  21  Prefactor     .10000E-03    68.231       -.14021E-06** at limit **
  22  norm          160.63        170.06        .10318E-05   -.88818E-05
  23  Normalizat    .10000E-01    .35187       -.18459E-04** at limit **
  24  Prefactor     .74096        .30893        .34633E-05    .51869E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 69.5776
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100013
  Prefactor  = 0.0001
  Prefactor  = 79.0078
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 61.5129
  Prefactor  = 282.085
  Prefactor  = 7.29762
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 55.4219
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 160.633
  Normalizat = 0.01
  Prefactor  = 0.740957
 **********
 **   18 **HESSE 
 **********

 FCN=   384.8870     FROM HESSE     STATUS=OK           389 CALLS     3100 TOTAL
                     EDM=   .36E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    33.438        .11091E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    39.985        .12131E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    124.46        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     69.578        68.521        .24081E-03   -1.4038    
   5  Prefactor     .10000E-03    139.02        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    124.59        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    34.562        .11277E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          .10001E-03    61.951        .12365E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    70.002        .16034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     79.008        136.57        .22602E-03   -1.3928    
  11  Prefactor     .10000E-03    142.93        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    6.9852        .50660E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     61.513        188.89        .25559E-03   -1.4138    
  14  Prefactor     282.09        210.77        .12083E-03   -1.2333    
  15  Prefactor     7.2976        591.04        .14342E-02   -1.5168    
  16  Prefactor     .10000E-03    54.478        .14163E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    356.10        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  norm          55.422        42.644        .53966E-04   -1.4218    
  19  Prefactor     .10000E-03    57.235        .14517E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  norm          .10000E-03    820.27        .20725E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    68.222        .15853E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  norm          160.63        168.61        .15883E-03   -1.3166    
  23  Normalizat    .10000E-01    .36680        .68739E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  24  Prefactor     .74096        .31512        .20195E-03   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.62791e-10
Minuit parameter uncertainties:
  1  1.39367e-05
  2  8.70236e-06
  3  1.67461e-05
  4  68.5984
  5  1.05983e-06
  6  3.39405e-05
  7  6.55238e-09
  8  0.00183061
  9  0.000116581
  10  137.121
  11  2.09427e-05
  12  7.25521e-06
  13  190.781
  14  211.339
  15  132.729
  16  2.27738e-05
  17  0.000421369
  18  42.6674
  19  7.93845e-06
  20  9.21338e-05
  21  1.83135e-05
  22  169.115
  23  2.8087e-06
  24  0.315884
Done.

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

Extracting fit parameters...

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  1.000e-04  2.094e-05  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.539e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
258        Scale:  8.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  7.410e-01  3.159e-01  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.000e-02  2.809e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 61.367 -69.489
Photon Flux Upper Limit: 1.38e-06 ph cm-2 s-1
Energy Flux Upper Limit: 1.07e-01 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/197796/likelihoodResults_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.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): 102
logL (Free Index) = 384.887061
delta logL = -3.32913863303e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 384.887028026
delta logL = -3.17256706239e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10739E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.9191       1.0000          .0000       10.000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    .74096       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .6180E+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=   384.8870     FROM MIGRAD    STATUS=CONVERGED     93 CALLS      283 TOTAL
                     EDM=   .22E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10915E-03    95.975        .17761E-01** at limit **
   2  Index         2.7725        6.3821        .50000        .37199E-05
   3  Normalizat    .10000E-01    .70355E-03    .68745E-02** at limit **
   4  Prefactor     .74096        .12009E-01    .20195E-03    .64739E-06
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000109149
  Index      = 2.77245
  Normalizat = 0.01
  Prefactor  = 0.740955
 **********
 **   18 **HESSE 
 **********

 FCN=   384.8870     FROM HESSE     STATUS=NOT POSDEF    29 CALLS      312 TOTAL
                     EDM=   .19E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE     INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10915E-03    803.78        .19330E-02   -1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.7725        8.5923        .50000       -.46174    
   3  Normalizat    .10000E-01    .61261E-02    .13749E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .74096        .35435E-01    .80779E-05   -1.0194    
                               ERR DEF=  .500    
Minuit fit quality: 2   estimated distance: 1.88376e-09
Minuit parameter uncertainties:
  1  0.173891
  2  1004.02
  3  1.28911e-07
  4  0.0354356
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/197796': 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) = 384.887027897
delta logL = -1.8862175466e-07

Extracting fit parameters...

4FGL J0405.4-6929
   Spectrum: PowerLaw
256    Prefactor:  1.091e-04  1.739e-01  1.000e-04  1.000e+04 ( 1.000e-13)
257        Index:  2.772e+00  1.004e+03  0.000e+00  1.000e+01 (-1.000e+00)
258        Scale:  8.904e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
597    Prefactor:  7.410e-01  3.544e-02  0.000e+00  1.000e+01 ( 1.000e+00)
598        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
599        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
596   Normalization:  1.000e-02  1.289e-07  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 61.367 -69.489

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/197796/cmap_HighResolution_324345601_324604801_4FGL_J0405.4-6929_daily_bin328.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.07e-01', job_status='DONE', photon_flux_upper_limit='1.38e-06', time_completed='2021-08-20 01:41:42.075069', job_id='197796', GAL2='0.74', fit_tolerance='1e-08', EG2='0.01', EG='0.01', time_epoch_completed='1629448902.08', return_code2='102', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.74', dlogl='-1.89e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.54' WHERE bin_id='328' AND source_name='4FGL J0405.4-6929' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 01:41:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0279>
Subject: Job 197796: <4FGL_J0405.4-6929_daily_bin328> in cluster <slac> Done

Job <4FGL_J0405.4-6929_daily_bin328> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Fri Aug 20 01:25:45 2021
Job was executed on host(s) <bullet0279>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 01:25:46 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 01:25:46 2021
Terminated at Fri Aug 20 01:41:44 2021
Results reported at Fri Aug 20 01:41:44 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0405.4-6929_daily_bin328 61.3672 -69.4885 324345601 324604801 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0405.4-6929 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   930.36 sec.
    Max Memory :                                 1103 MB
    Average Memory :                             313.19 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   957 sec.
    Turnaround time :                            959 sec.

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

