/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 222 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 = 7482
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1408.9-0751_daily_bin350
RA = 212.236, Dec = -7.8575
tmin = 330048001, tmax = 330307201
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='223739', job_status='RUN', time_executed='2021-09-09 03:09:17.696410', time_epoch_executed='1631182157.7' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='350'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/223739

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/223739/ft1_4FGL_J1408.9-0751_daily_bin350.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/223739/ft1_4FGL_J1408.9-0751_daily_bin350.fits outfile=/scratch/kocevski/223739/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin350.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=330048001.0 tmax=330307201.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 3.46
user 3.24
sys 0.20

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.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/223739/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin350.fits evtable="EVENTS" outfile="/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.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.49
user 0.34
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits" evtable="EVENTS" scfile=/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits sctable="SC_DATA" outfile=/scratch/kocevski/223739/ltcube_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.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/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits
.....................!
real 12.28
user 11.90
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits sctable="SC_DATA" expcube=/scratch/kocevski/223739/ltcube_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.fits outfile=/scratch/kocevski/223739/expmap_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.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/223739/ltcube_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.fits
.....................!
real 193.08
user 187.11
sys 5.48

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 160 point sources and 0 extended sources

Setting source of interest to:
4FGL J1408.9-0751 @ 212.236 -7.8575

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits scfile=/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits outfile=/scratch/kocevski/223739/cmap_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.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=212.236 yref=-7.8575 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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits scfile=/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits outfile=/scratch/kocevski/223739/cmap_HighResolution_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.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=212.236 yref=-7.8575 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.55
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits evtable="EVENTS" scfile=/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/223739/Model_4FGL_J1408.9-0751_daily_bin350.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/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits.....................!
real 70.28
user 68.95
sys 1.19

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits', '/scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits', expMap='/scratch/kocevski/223739/expmap_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.fits', expCube='/scratch/kocevski/223739/ltcube_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/223739/Model_4FGL_J1408.9-0751_daily_bin350.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1408.9-0751'

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.948e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/223739/ft1_filtered_4FGL_J1408.9-0751_daily_bin350.fits
Spacecraft file(s): /scratch/kocevski/223739/ft2_4FGL_J1408.9-0751_daily_bin350.fits
Exposure map: /scratch/kocevski/223739/expmap_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.fits
Exposure cube: /scratch/kocevski/223739/ltcube_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/223739/Model_4FGL_J1408.9-0751_daily_bin350.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) = 9285.03523879

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.604       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .45264E-02   1.0000         .10000E-03   10000.    
     3 'norm      '    .10087E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .89108       1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.4157       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10009E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.6330       1.0000         .10000E-03   10000.    
    12 'Prefactor '    8.2542       1.0000         .10000E-03   10000.    
    13 'norm      '    5.4848       1.0000         .10000E-03   10000.    
    14 'Prefactor '    53.478       1.0000         .10000E-03   10000.    
    15 'norm      '    15.355       1.0000         .10000E-03   10000.    
    16 'norm      '    .46343       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    12.028       1.0000         .10000E-03   10000.    
    19 'norm      '    22.371       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .89064       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0938       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   9284.863     FROM MIGRAD    STATUS=CONVERGED    519 CALLS     2279 TOTAL
                     EDM=   .36E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.603        7.8621        .20178E-08    .37447E-04
   2  Prefactor     .10008E-03    7.2346       -.94472E-06** at limit **
   3  norm          .10001E-03    .51768        .16436E-06** at limit **
   4  norm          .88363        2.1193        .14441E-06    .54616E-03
   5  norm          .10000E-03    1.6394        .15744E-08** at limit **
   6  norm          .10000E-03    9.5366       -.59247E-05** at limit **
   7  norm          4.4156        3.6227       -.15433E-05   -.61950E-04
   8  Prefactor     .10000E-03    2.5697       -.71612E-07** at limit **
   9  Prefactor     .10000E-03    8.2791        .62802E-05** at limit **
  10  Prefactor     .10000E-03    5.8479       -.12062E-05** at limit **
  11  norm          2.6335        1.7215        .21320E-06   -.17001E-02
  12  Prefactor     8.2522        11.659       -.12973E-06   -.19603E-03
  13  norm          5.4848        2.6039       -.30017E-07   -.45615E-06
  14  Prefactor     53.480        26.551        .96926E-06   -.61230E-05
  15  norm          15.355        10.163        .16984E-07    .13065E-05
  16  norm          .46173        3.5001       -.43492E-07   -.63065E-04
  17  Prefactor     .10000E-03    5.8055       -.12013E-05** at limit **
  18  Prefactor     12.029        17.529        .35932E-06    .23114E-05
  19  norm          22.371        13.380       -.27501E-07   -.29673E-04
  20  Prefactor     .10000E-03    1.9225        .28625E-07** at limit **
  21  Prefactor     .10000E-03    17.778        .26395E-05** at limit **
  22  Normalizat    .89066        .18850       -.48671E-06    .38675E-04
  23  Prefactor     1.0938        .10225        .28845E-06    .49865E-05
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.6025
  Prefactor  = 0.000100081
  norm       = 0.000100006
  norm       = 0.883632
  norm       = 0.0001
  norm       = 0.0001
  norm       = 4.41555
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.6335
  Prefactor  = 8.25218
  norm       = 5.4848
  Prefactor  = 53.4799
  norm       = 15.3552
  norm       = 0.461726
  Prefactor  = 0.0001
  Prefactor  = 12.0287
  norm       = 22.3711
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Normalizat = 0.89066
  Prefactor  = 1.09379
 **********
 **   18 **HESSE 
 **********

 FCN=   9284.863     FROM HESSE     STATUS=OK           388 CALLS     2667 TOTAL
                     EDM=   .72E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.603        7.8589        .12304E-03   -1.5057    
   2  Prefactor     .10008E-03    38.731        .43034E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10001E-03    .47816        .23575E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .88363        1.6966        .18011E-02   -1.5520    
   5  norm          .10000E-03    1.6475        .12036E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.5460        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.4156        3.6230        .16105E-03   -1.5288    
   8  Prefactor     .10000E-03    2.6341        .30133E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.2873        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    5.8469        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.6335        5.1157        .12565E-02   -1.5383    
  12  Prefactor     8.2522        11.768        .69771E-03   -1.5133    
  13  norm          5.4848        2.5842        .99723E-04   -1.5240    
  14  Prefactor     53.480        26.570        .54847E-04   -1.4244    
  15  norm          15.355        10.164        .10221E-03   -1.4924    
  16  norm          .46173        8.7291        .34016E-02   -1.5572    
  17  Prefactor     .10000E-03    5.8196        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     12.029        17.542        .11551E-03   -1.5014    
  19  norm          22.371        13.393        .42343E-03   -1.4762    
  20  Prefactor     .10000E-03    1.9518        .13044E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .10000E-03    17.791        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .89066        .21609        .34792E-03   -.96789    
  23  Prefactor     1.0938        .11766        .17836E-03   -.89665    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.17054e-08
Minuit parameter uncertainties:
  1  7.85963
  2  0.00353766
  3  0.000110233
  4  1.69671
  5  2.26838e-06
  6  1.70342e-05
  7  3.62321
  8  3.23092e-06
  9  1.21617e-05
  10  9.41008e-08
  11  5.11653
  12  11.7713
  13  2.58426
  14  26.5763
  15  10.1655
  16  4.01544
  17  1.89595e-06
  18  17.5494
  19  13.3944
  20  8.91186e-07
  21  8.52625e-06
  22  0.216302
  23  0.117693
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  5.485e+00  2.584e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.331e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.094e+00  1.177e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  8.907e-01  2.163e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 8.33
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 8.81e-08 +/- 4.15e-08
Energy Flux (Fixed Index): 3.29e-05 +/- 1.55e-05

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9283.98589929
delta logL = 0.877406691985

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9283.97253425
delta logL = 0.890771725757

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    2.5874       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.0366       1.0000          .0000       5.0000    
     3 'Normalizat'    .81439       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1210       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .5320E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   9283.973     FROM MIGRAD    STATUS=CONVERGED     55 CALLS      245 TOTAL
                     EDM=   .67E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          2.5871        12.415        .63422E-02    .54085E-03
   2  alpha         3.0369        2.0239        .19217        .12346E-03
   3  Normalizat    .81433        .79020E-01    .81763E-01    .42127E-04
   4  Prefactor     1.1211        .39428E-01    .36838E-01   -.64959E-06
                               ERR DEF=  .500    
Final values: 
  norm       = 2.58707
  alpha      = 3.03687
  Normalizat = 0.814327
  Prefactor  = 1.12108
 **********
 **   18 **HESSE 
 **********

 FCN=   9283.973     FROM HESSE     STATUS=OK            33 CALLS      278 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          2.5871        3.9984        .56884E-04   -1.5386    
   2  alpha         3.0369        .90853        .78543E-02    .21643    
   3  Normalizat    .81433        .21958        .36201E-03   -.99539    
   4  Prefactor     1.1211        .12001        .17641E-03   -.88796    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.29023e-11
Minuit parameter uncertainties:
  1  3.99878
  2  0.930925
  3  0.219822
  4  0.120038
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/223739': 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) = 9283.97253339
delta logL = 0.890772588868

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.587e+00  3.999e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  3.037e+00  9.309e-01  0.000e+00  5.000e+00 ( 1.000e+00)
292         beta:  7.373e-02  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
293           Eb:  1.104e+03  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
529    Prefactor:  1.121e+00  1.200e-01  0.000e+00  1.000e+01 ( 1.000e+00)
530        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
531        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
528   Normalization:  8.143e-01  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 10.45
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 3.04 +/- 0.93
Photon Flux (Free Index): 1.41e-07 +/- 6.44e-08
Energy Flux (Free Index): 2.97e-05 +/- 1.35e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/223739/cmap_HighResolution_330048001_330307201_4FGL_J1408.9-0751_daily_bin350.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.81e-08', energy_flux2='2.97e-05', photon_flux_error='4.15e-08', dlogl='8.91e-01', energy_flux='3.29e-05', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-09 03:20:26.188639', photon_index_error2='0.93', photon_index2='3.04', ts='8.33', fit_tolerance='1e-08', GAL='1.09', photon_index_error='0.00', energy_flux_error2='1.35e-05', EG='0.89', time_epoch_completed='1631182826.19', return_code='0', job_id='223739', GAL2='1.12', EG2='0.81', return_code2='0', energy_flux_error='1.55e-05', photon_flux_error2='6.44e-08', ts2='10.45', photon_index='2.33' WHERE bin_id='350' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:20:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0263>
Subject: Job 223739: <4FGL_J1408.9-0751_daily_bin350> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin350> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Thu Sep  9 03:05:20 2021
Job was executed on host(s) <bullet0263>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:05:22 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 03:05:22 2021
Terminated at Thu Sep  9 03:20:26 2021
Results reported at Thu Sep  9 03:20:26 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin350 212.236 -7.8575 330048001 330307201 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1408.9-0751 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   666.01 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             242.29 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   904 sec.
    Turnaround time :                            906 sec.

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

