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


Performing analysis on: 4FGL_J0410.9+4216_daily_bin1548
RA = 62.736, Dec = 42.2777
tmin = 640569601, tmax = 640828801
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='298574', job_status='RUN', time_executed='2021-08-20 07:16:55.348443', time_epoch_executed='1629469015.35' WHERE source_name='4FGL J0410.9+4216' and cadence='daily' and bin_id='1548'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/298574

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/298574/ft1_4FGL_J0410.9+4216_daily_bin1548.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/298574/ft1_4FGL_J0410.9+4216_daily_bin1548.fits outfile=/scratch/kocevski/298574/ft1_filteredMKT_4FGL_J0410.9+4216_daily_bin1548.fits ra=62.736 dec=42.2777 rad=12.0 tmin=640569601.0 tmax=640828801.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.35
user 2.77
sys 4.54

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.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/298574/ft1_filteredMKT_4FGL_J0410.9+4216_daily_bin1548.fits evtable="EVENTS" outfile="/scratch/kocevski/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.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.77
user 0.33
sys 4.41

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits" evtable="EVENTS" scfile=/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits sctable="SC_DATA" outfile=/scratch/kocevski/298574/ltcube_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.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/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits
.....................!
real 17.01
user 11.77
sys 5.20

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits sctable="SC_DATA" expcube=/scratch/kocevski/298574/ltcube_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.fits outfile=/scratch/kocevski/298574/expmap_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.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/298574/ltcube_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.fits
.....................!
real 196.26
user 185.96
sys 9.95

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/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits scfile=/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits outfile=/scratch/kocevski/298574/cmap_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.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 4.80
user 0.35
sys 4.43

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits scfile=/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits outfile=/scratch/kocevski/298574/cmap_HighResolution_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.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 4.71
user 0.36
sys 4.33

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits evtable="EVENTS" scfile=/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/298574/Model_4FGL_J0410.9+4216_daily_bin1548.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/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits.....................!
real 126.88
user 119.80
sys 6.80

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits', '/scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits', expMap='/scratch/kocevski/298574/expmap_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.fits', expCube='/scratch/kocevski/298574/ltcube_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/298574/Model_4FGL_J0410.9+4216_daily_bin1548.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/298574/ft1_filtered_4FGL_J0410.9+4216_daily_bin1548.fits
Spacecraft file(s): /scratch/kocevski/298574/ft2_4FGL_J0410.9+4216_daily_bin1548.fits
Exposure map: /scratch/kocevski/298574/expmap_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.fits
Exposure cube: /scratch/kocevski/298574/ltcube_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/298574/Model_4FGL_J0410.9+4216_daily_bin1548.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) = 5545.94433447

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .17376E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10029E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10498E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10765E-03   1.0000         .10000E-03   10000.    
     7 'Prefactor '    12.974       1.0000         .10000E-03   10000.    
     8 'norm      '    110.93       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    2.5585       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10012E-03   1.0000         .10000E-03   10000.    
    13 'Normalizat'    2.1400       1.0000         .10000E-01   10.000    
    14 'Prefactor '    .82398       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=   5545.938     FROM MIGRAD    STATUS=CONVERGED    264 CALLS     1176 TOTAL
                     EDM=   .21E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    1277.0       -.91901E-03** at limit **
   2  Prefactor     .10000E-03    723.73       -.37036E-03** at limit **
   3  norm          .10000E-03    4.4321       -.20508E-07** at limit **
   4  Prefactor     .10000E-03    228.81        .12193E-03** at limit **
   5  Prefactor     .10000E-03    177.55       -.14718E-03** at limit **
   6  norm          .10000E-03    284.19        .22585E-03** at limit **
   7  Prefactor     12.946        21.658        .15853E-04    .10180E-04
   8  norm          110.93        63.281       -.72530E-06    .42899E-04
   9  Prefactor     .10000E-03    19.566       -.88673E-07** at limit **
  10  norm          2.5584        7.2819       -.37182E-05   -.39678E-03
  11  Prefactor     .10000E-03    6.1864        .35583E-07** at limit **
  12  Prefactor     .10000E-03    10.650        .39650E-07** at limit **
  13  Normalizat    2.1398        .65222       -.63772E-06    .51072E-04
  14  Prefactor     .82400        .70422E-01   -.11174E-06    .22100E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 12.9462
  norm       = 110.927
  Prefactor  = 0.0001
  norm       = 2.55836
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.13979
  Prefactor  = 0.823995
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.938     FROM HESSE     STATUS=OK           154 CALLS     1330 TOTAL
                     EDM=   .42E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    1277.0        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    723.67        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    4.4332        .15312E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    228.83        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    177.65        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    283.85        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  Prefactor     12.946        21.649        .11121E-03   -1.4988    
   8  norm          110.93        63.286        .38191E-04   -1.3598    
   9  Prefactor     .10000E-03    19.661        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          2.5584        7.2689        .25524E-03   -1.5388    
  11  Prefactor     .10000E-03    6.2122        .18087E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    10.684        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Normalizat    2.1398        .71070        .73278E-03   -.61091    
  14  Prefactor     .82400        .77434E-01    .11979E-03   -.98850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.16202e-10
Minuit parameter uncertainties:
  1  0.000748763
  2  2.73927e-05
  3  2.08546e-06
  4  1.75437e-06
  5  0.000635986
  6  0.00126908
  7  21.6618
  8  63.3245
  9  4.57458e-05
  10  7.27141
  11  7.4016e-06
  12  3.2176e-06
  13  0.714319
  14  0.0774439
Done.

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

Extracting fit parameters...

4FGL J0410.9+4216
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  4.575e-05  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:  8.240e-01  7.744e-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:  2.140e+00  7.143e-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.30e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.51e-02 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/298574/likelihoodResults_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.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) = 5545.93824599
delta logL = -0.000242366166276

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 5545.93800429
delta logL = -6.72416717862e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10114E-03   1.0000         .10000E-03   10000.    
     2 'Index     '    2.1653       1.0000          .0000       10.000    
     3 'Normalizat'    2.1399       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82393       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.

 FCN=   5545.938     FROM MIGRAD    STATUS=CONVERGED     61 CALLS      219 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    376.62        .90712E-02** at limit **
   2  Index         2.1450        8.8496        .50000        .79775E-05
   3  Normalizat    2.1398        .81415E-01    .16487        .68531E-05
   4  Prefactor     .82400        .89892E-02    .27109E-01   -.29557E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Index      = 2.14502
  Normalizat = 2.13979
  Prefactor  = 0.823995
 **********
 **   18 **HESSE 
 **********

 FCN=   5545.938     FROM HESSE     STATUS=OK            33 CALLS      252 TOTAL
                     EDM=   .72E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    26.430        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Index         2.1450        6.0316        .50000       -.60772    
   3  Normalizat    2.1398        .68552        .73278E-03   -.61091    
   4  Prefactor     .82400        .76469E-01    .11979E-03   -.98850    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.15474e-11
Minuit parameter uncertainties:
  1  6.74991e-05
  2  4.69663
  3  0.688764
  4  0.0764785
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/298574': 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) = 5545.93800353
delta logL = 8.69504219736e-08

Extracting fit parameters...

4FGL J0410.9+4216
   Spectrum: PowerLaw
313    Prefactor:  1.000e-04  6.750e-05  1.000e-04  1.000e+04 ( 1.000e-13)
314        Index:  2.145e+00  4.697e+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:  8.240e-01  7.648e-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:  2.140e+00  6.888e-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/298574/cmap_HighResolution_640569601_640828801_4FGL_J0410.9+4216_daily_bin1548.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.51e-02', job_status='DONE', photon_flux_upper_limit='3.30e-07', time_completed='2021-08-20 07:27:19.690367', job_id='298574', GAL2='0.82', fit_tolerance='1e-08', EG2='2.14', EG='2.14', time_epoch_completed='1629469639.69', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.82', dlogl='8.70e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.19' WHERE bin_id='1548' AND source_name='4FGL J0410.9+4216' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Aug 20 07:27:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0116>
Subject: Job 298574: <4FGL_J0410.9+4216_daily_bin1548> in cluster <slac> Done

Job <4FGL_J0410.9+4216_daily_bin1548> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Fri Aug 20 07:15:32 2021
Job was executed on host(s) <bullet0116>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Aug 20 07:15:34 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Aug 20 07:15:34 2021
Terminated at Fri Aug 20 07:27:20 2021
Results reported at Fri Aug 20 07:27:20 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J0410.9+4216_daily_bin1548 62.736 42.2777 640569601 640828801 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 :                                   682.39 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             343.42 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              7
    Max Threads :                                21
    Run time :                                   706 sec.
    Turnaround time :                            708 sec.

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

