/nfs/farm/g/glast/g/LCRepository/bin/miniconda2/envs/fermitools_v1.0.5/lib/python2.7/site-packages/matplotlib/font_manager.py:281: UserWarning: Matplotlib is building the font cache using fc-list. This may take a moment.
  'Matplotlib is building the font cache using fc-list. '
/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 68 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 = 7515
number of fields = 30
RA_SUN column already exists. File will not be modified.
Done.


Performing analysis on: 4FGL_J0410.9+4216_daily_bin975
RA = 62.736, Dec = 42.2777
tmin = 492048001, tmax = 492307201
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='290770', job_status='RUN', time_executed='2021-08-20 06:54:45.535159', time_epoch_executed='1629467685.54' WHERE source_name='4FGL J0410.9+4216' and cadence='daily' and bin_id='975'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/290770

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/290770/ft1_4FGL_J0410.9+4216_daily_bin975.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/290770/ft1_4FGL_J0410.9+4216_daily_bin975.fits outfile=/scratch/kocevski/290770/ft1_filteredMKT_4FGL_J0410.9+4216_daily_bin975.fits ra=62.736 dec=42.2777 rad=12.0 tmin=492048001.0 tmax=492307201.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 11.68
user 3.50
sys 8.12

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.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/290770/ft1_filteredMKT_4FGL_J0410.9+4216_daily_bin975.fits evtable="EVENTS" outfile="/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.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.45
user 0.35
sys 8.07

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits" evtable="EVENTS" scfile=/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits sctable="SC_DATA" outfile=/scratch/kocevski/290770/ltcube_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.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/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits
.....................!
real 21.25
user 11.62
sys 9.50

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits sctable="SC_DATA" expcube=/scratch/kocevski/290770/ltcube_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.fits outfile=/scratch/kocevski/290770/expmap_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.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/290770/ltcube_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.fits
.....................!
real 201.16
user 184.93
sys 15.00

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 HB 9 in ROI, make sure /nfs/farm/g/glast/g/LCRepository/Likelihood/ExtendedSources/Extended_archive_v18/Templates/HB9.fits is the correct path to the extended template.
Extended source G150.3+4.5 in ROI with RadialDisk spatial model.
Added 167 point sources and 2 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 J0410.9+4216 @ 62.736 42.2777

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits scfile=/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits outfile=/scratch/kocevski/290770/cmap_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.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=62.736 yref=42.2777 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 8.52
user 0.38
sys 8.10

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits scfile=/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits outfile=/scratch/kocevski/290770/cmap_HighResolution_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.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=62.736 yref=42.2777 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 8.52
user 0.37
sys 8.12

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits evtable="EVENTS" scfile=/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/290770/Model_4FGL_J0410.9+4216_daily_bin975.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 G150.3+4.5
adding source GAL_V02
adding source HB 9
Working on...
/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits.....................!
real 146.72
user 134.61
sys 11.74

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits', '/scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits', expMap='/scratch/kocevski/290770/expmap_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.fits', expCube='/scratch/kocevski/290770/ltcube_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/290770/Model_4FGL_J0410.9+4216_daily_bin975.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J0410.9+4216'

4FGL J0410.9+4216
   Spectrum: PowerLaw
313    Prefactor:  1.959e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  2.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/290770/ft1_filtered_4FGL_J0410.9+4216_daily_bin975.fits
Spacecraft file(s): /scratch/kocevski/290770/ft2_4FGL_J0410.9+4216_daily_bin975.fits
Exposure map: /scratch/kocevski/290770/expmap_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.fits
Exposure cube: /scratch/kocevski/290770/ltcube_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/290770/Model_4FGL_J0410.9+4216_daily_bin975.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) = 6048.71717742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10059E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10050E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.7090       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    47.946       1.0000         .10000E-03   10000.    
     6 'norm      '    .10516E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
     8 'norm      '    39.452       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .50756       1.0000         .10000E-03   10000.    
    10 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    9.8719       1.0000         .10000E-03   10000.    
    12 'Prefactor '    15.825       1.0000         .10000E-03   10000.    
    13 'Normalizat'    .59521       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .98445       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   6048.686     FROM MIGRAD    STATUS=CONVERGED    256 CALLS     1390 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .3%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    95.031       -.48186E-04** at limit **
   2  Prefactor     .10000E-03    130.54        .12281E-03** at limit **
   3  norm          4.7089        2.1206       -.24983E-06    .44621E-03
   4  Prefactor     .10000E-03    57.887        .84282E-06** at limit **
   5  Prefactor     47.904        265.38       -.58447E-04    .89453E-05
   6  norm          .10000E-03    257.30       -.15028E-03** at limit **
   7  Prefactor     .10000E-03    15.833        .28585E-06** at limit **
   8  norm          39.499        136.46        .66895E-04    .85968E-05
   9  Prefactor     .50150        16.083       -.22372E-05   -.54979E-04
  10  norm          .10000E-03    5.6723       -.66996E-07** at limit **
  11  Prefactor     9.8739        13.583       -.14283E-04   -.96185E-04
  12  Prefactor     15.826        33.484        .36864E-06   -.74153E-05
  13  Normalizat    .59534        .69955        .10062E-04    .86326E-04
  14  Prefactor     .98443        .98772E-01    .82486E-06    .20046E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.70888
  Prefactor  = 0.0001
  Prefactor  = 47.904
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 39.4985
  Prefactor  = 0.501496
  norm       = 0.0001
  Prefactor  = 9.87388
  Prefactor  = 15.826
  Normalizat = 0.595344
  Prefactor  = 0.984426
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.686     FROM HESSE     STATUS=OK           162 CALLS     1552 TOTAL
                     EDM=   .37E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    95.526        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    130.44        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.7089        2.0931        .71701E-04   -1.5274    
   4  Prefactor     .10000E-03    57.890        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     47.904        265.19        .57910E-04   -1.4323    
   6  norm          .10000E-03    257.06        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     .10000E-03    15.901        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  norm          39.499        136.57        .63814E-04   -1.4450    
   9  Prefactor     .50150        143.84        .59606E-02   -1.5566    
  10  norm          .10000E-03    5.7691        .18067E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     9.8739        13.620        .12754E-03   -1.5079    
  12  Prefactor     15.826        33.526        .10068E-03   -1.4912    
  13  Normalizat    .59534        .59403        .11496E-02   -1.0818    
  14  Prefactor     .98443        .87030E-01    .12702E-03   -.93250    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.70983e-08
Minuit parameter uncertainties:
  1  0.000138901
  2  7.75588e-05
  3  2.0931
  4  3.00098e-05
  5  226.986
  6  0.000127051
  7  1.15162e-05
  8  137.672
  9  17.0264
  10  1.37024e-05
  11  13.6245
  12  33.5655
  13  0.600562
  14  0.0870427
Done.

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

Extracting fit parameters...

4FGL J0410.9+4216
   Spectrum: PowerLaw
313    Prefactor:  5.015e-01  1.703e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.187e+00  0.000e+00  0.000e+00  1.000e+01 (-1.000e+00) fixed
315        Scale:  2.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.844e-01  8.704e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  5.953e-01  6.006e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 0.00
Ra Dec: 62.736 42.278
Photon Flux Upper Limit: 3.25e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.47e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/290770/likelihoodResults_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.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) = 6048.68563622
delta logL = 6.69379005558e-07

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6048.68563534
delta logL = 1.54326517077e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .50150       1.0000         .10000E-03   10000.    
     2 'Index     '    2.1895       1.0000          .0000       10.000    
     3 'Normalizat'    .59552       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98440       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5740E+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=   6048.686     FROM MIGRAD    STATUS=CONVERGED     99 CALLS      273 TOTAL
                     EDM=   .15E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .49594        278.05        .58663E-02    .25864E-03
   2  Index         2.2045        5.3565        .14720E-01    .86820E-04
   3  Normalizat    .59531        .58501        .11496E-02   -.26592E-03
   4  Prefactor     .98442        .84529E-01    .12702E-03   -.32284E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.495936
  Index      = 2.20449
  Normalizat = 0.595307
  Prefactor  = 0.984423
 **********
 **   18 **HESSE 
 **********

 FCN=   6048.686     FROM HESSE     STATUS=OK            25 CALLS      298 TOTAL
                     EDM=   .17E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .49594        147.97        .23465E-03   -1.5567    
   2  Index         2.2045        5.9921        .58882E-03   -.59330    
   3  Normalizat    .59531        .58425        .45983E-04   -1.0818    
   4  Prefactor     .98442        .83747E-01    .25404E-04   -.93251    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.69551e-08
Minuit parameter uncertainties:
  1  17.174
  2  5.28731
  3  0.590462
  4  0.0837578
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/290770': 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) = 6048.68563154
delta logL = 5.34935952601e-06

Extracting fit parameters...

4FGL J0410.9+4216
   Spectrum: PowerLaw
313    Prefactor:  4.959e-01  1.717e+01  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.204e+00  5.287e+00  0.000e+00  1.000e+01 (-1.000e+00)
315        Scale:  2.029e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
567    Prefactor:  9.844e-01  8.376e-02  0.000e+00  1.000e+01 ( 1.000e+00)
568        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
569        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
562   Normalization:  5.953e-01  5.905e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.00
Ra Dec: 62.736 42.278

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/290770/cmap_HighResolution_492048001_492307201_4FGL_J0410.9+4216_daily_bin975.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.47e-02', job_status='DONE', photon_flux_upper_limit='3.25e-07', time_completed='2021-08-20 07:06:25.374796', job_id='290770', GAL2='0.98', fit_tolerance='1e-08', EG2='0.60', EG='0.60', time_epoch_completed='1629468385.37', return_code2='0', ts='0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='5.35e-06', ts2='0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='975' AND source_name='4FGL J0410.9+4216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 07:06:25 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0013>
Subject: Job 290770: <4FGL_J0410.9+4216_daily_bin975> in cluster <slac> Done

Job <4FGL_J0410.9+4216_daily_bin975> was submitted from host <rhel6-64c> by user <kocevski> in cluster <slac> at Fri Aug 20 06:50:41 2021
Job was executed on host(s) <bullet0013>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 06:50:43 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 06:50:43 2021
Terminated at Fri Aug 20 07:06:26 2021
Results reported at Fri Aug 20 07:06:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0410.9+4216_daily_bin975 62.736 42.2777 492048001 492307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J0410.9+4216 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   820.44 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             295.75 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   943 sec.
    Turnaround time :                            945 sec.

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

