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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin1000
RA = 212.236, Dec = -7.8575
tmin = 498528001, tmax = 498787201
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='228316', job_status='RUN', time_executed='2021-09-09 03:23:48.545970', time_epoch_executed='1631183028.55' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='1000'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228316

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228316/ft1_4FGL_J1408.9-0751_daily_bin1000.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228316/ft1_4FGL_J1408.9-0751_daily_bin1000.fits outfile=/scratch/kocevski/228316/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1000.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=498528001.0 tmax=498787201.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 4.92
user 4.69
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228316/ft1_filtered_4FGL_J1408.9-0751_daily_bin1000.fits" evtable="EVENTS" scfile=/scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits sctable="SC_DATA" outfile=/scratch/kocevski/228316/ltcube_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.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/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits
.....................!
real 11.79
user 11.42
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228316/ft1_filtered_4FGL_J1408.9-0751_daily_bin1000.fits evtable="EVENTS" scfile=/scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits sctable="SC_DATA" expcube=/scratch/kocevski/228316/ltcube_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.fits outfile=/scratch/kocevski/228316/expmap_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.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/228316/ltcube_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.fits
.....................!
real 190.59
user 185.11
sys 5.04

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/228316/ft1_filtered_4FGL_J1408.9-0751_daily_bin1000.fits scfile=/scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits outfile=/scratch/kocevski/228316/cmap_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.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.53
user 0.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228316/ft1_filtered_4FGL_J1408.9-0751_daily_bin1000.fits scfile=/scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits outfile=/scratch/kocevski/228316/cmap_HighResolution_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.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.60
user 0.38
sys 0.16

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

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/228316/ft1_filtered_4FGL_J1408.9-0751_daily_bin1000.fits', '/scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits', expMap='/scratch/kocevski/228316/expmap_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.fits', expCube='/scratch/kocevski/228316/ltcube_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/228316/Model_4FGL_J1408.9-0751_daily_bin1000.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/228316/ft1_filtered_4FGL_J1408.9-0751_daily_bin1000.fits
Spacecraft file(s): /scratch/kocevski/228316/ft2_4FGL_J1408.9-0751_daily_bin1000.fits
Exposure map: /scratch/kocevski/228316/expmap_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.fits
Exposure cube: /scratch/kocevski/228316/ltcube_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/228316/Model_4FGL_J1408.9-0751_daily_bin1000.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) = 7737.91104125

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    1.4248       1.0000         .10000E-03   10000.    
     3 'norm      '    1.6645       1.0000         .10000E-03   10000.    
     4 'norm      '    .13073E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    19.155       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.9838       1.0000         .10000E-03   10000.    
     8 'Prefactor '    12.510       1.0000         .10000E-03   10000.    
     9 'Prefactor '    51.844       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    22.684       1.0000         .10000E-03   10000.    
    12 'Prefactor '    10.522       1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    8.2184       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10004E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10076E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    14.500       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .85283       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.4805       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=   7737.869     FROM MIGRAD    STATUS=CONVERGED    478 CALLS     2160 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    7.5496        .71818E-06** at limit **
   2  Prefactor     1.3996        95.949       -.20709E-04   -.10910E-03
   3  norm          1.6646        1.5875        .44937E-07    .23188E-04
   4  norm          .10001E-03    7.7892       -.23362E-05** at limit **
   5  norm          19.149        11.093        .83721E-06    .71643E-03
   6  norm          .10000E-03    12.799        .48660E-06** at limit **
   7  norm          4.9839        6.5419        .38423E-05   -.47179E-03
   8  Prefactor     12.509        8.9707        .10128E-05   -.77296E-04
   9  Prefactor     51.839        29.880       -.17314E-05   -.18205E-03
  10  Prefactor     .10000E-03    14.235        .51959E-06** at limit **
  11  norm          22.685        11.738       -.43766E-06    .43948E-04
  12  Prefactor     10.523        14.034        .12035E-05   -.58251E-04
  13  norm          .10000E-03    1.1316        .40853E-07** at limit **
  14  Prefactor     .10000E-03    12.760        .51978E-06** at limit **
  15  norm          .10000E-03    6.7975       -.63209E-06** at limit **
  16  norm          8.2188        7.8103        .51563E-07   -.12013E-04
  17  Prefactor     .10000E-03    11.279       -.56207E-06** at limit **
  18  Prefactor     .10000E-03    8.6475       -.27761E-06** at limit **
  19  norm          .10000E-03    10.362       -.11433E-05** at limit **
  20  Prefactor     .10000E-03    4.8514       -.47578E-06** at limit **
  21  Prefactor     14.483        48.662       -.10714E-04   -.12493E-03
  22  Normalizat    .85283        .27411        .28719E-06    .93122E-04
  23  Prefactor     1.4805        .14766       -.25526E-06    .22262E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 1.39963
  norm       = 1.66462
  norm       = 0.000100006
  norm       = 19.1493
  norm       = 0.0001
  norm       = 4.98386
  Prefactor  = 12.5092
  Prefactor  = 51.8387
  Prefactor  = 0.0001
  norm       = 22.6847
  Prefactor  = 10.5226
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 8.21878
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100001
  Prefactor  = 14.483
  Normalizat = 0.852832
  Prefactor  = 1.4805
 **********
 **   18 **HESSE 
 **********

 FCN=   7737.869     FROM HESSE     STATUS=OK           364 CALLS     2524 TOTAL
                     EDM=   .29E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    7.5843        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     1.3996        106.04        .36221E-03   -1.5471    
   3  norm          1.6646        1.5823        .10373E-03   -1.5450    
   4  norm          .10001E-03    7.8425        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          19.149        11.167        .91514E-04   -1.4832    
   6  norm          .10000E-03    12.805        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.9839        7.0089        .90070E-03   -1.5261    
   8  Prefactor     12.509        9.0299        .56628E-03   -1.5000    
   9  Prefactor     51.839        30.018        .55701E-04   -1.4267    
  10  Prefactor     .10000E-03    14.238        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          22.685        11.740        .84101E-04   -1.4755    
  12  Prefactor     10.523        14.054        .61760E-03   -1.5059    
  13  norm          .10000E-03    1.1492        .91316E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    12.778        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    6.8119        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          8.2188        7.8080        .13985E-03   -1.5135    
  17  Prefactor     .10000E-03    11.318        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    8.6548        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    10.412        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    4.9180        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     14.483        49.249        .10518E-03   -1.4947    
  22  Normalizat    .85283        .31149        .45015E-03   -.98138    
  23  Prefactor     1.4805        .16972        .19579E-03   -.78087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.86502e-09
Minuit parameter uncertainties:
  1  5.92579e-05
  2  24.4092
  3  1.58232
  4  0.000436892
  5  11.1679
  6  3.45932e-05
  7  7.01004
  8  9.03086
  9  30.0266
  10  2.96849e-05
  11  11.7415
  12  14.0588
  13  3.78665e-07
  14  2.97025e-05
  15  3.46443e-05
  16  7.80898
  17  3.87308e-05
  18  1.54664e-05
  19  5.89636e-05
  20  0.000102208
  21  49.3873
  22  0.312148
  23  0.169788
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  3.787e-07  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.480e+00  1.698e-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.528e-01  3.121e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 212.236 -7.857
Photon Flux Upper Limit: 7.55e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228316/likelihoodResults_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.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) = 7737.8733755
delta logL = -0.00408579261784

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 7737.86928935
delta logL = 3.56446435035e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3108       1.0000          .0000       5.0000    
     3 'Normalizat'    .85283       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.4805       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   7737.869     FROM MIGRAD    STATUS=FAILED       104 CALLS      255 TOTAL
                     EDM=   .25E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.397        .92932E-02** at limit **
   2  alpha         1.5831        3.7636        .50000        .30934E-06
   3  Normalizat    .85283        .29229E-01    .45014E-03    .34373E-04
   4  Prefactor     1.4805        .16313E-01    .19579E-03    .10859E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   7737.869     FROM SIMPLEX   STATUS=UNCHANGED    155 CALLS      410 TOTAL
                     EDM=   .96E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    30.397        .18819E-03** at limit **
   2  alpha         1.5831        3.7636        .93246E-04    .30934E-06
   3  Normalizat    .85283        .29229E-01    .92330E-06    .34373E-04
   4  Prefactor     1.4805        .16313E-01    .35749E-06    .10859E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7737.869     FROM MIGRAD    STATUS=CONVERGED     66 CALLS      476 TOTAL
                     EDM=   .85E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    2.2633        .21447E-03** at limit **
   2  alpha         1.5857        4.1137        .50000        .55784E-06
   3  Normalizat    .85283        .29817        .36011E-05    .34727E-04
   4  Prefactor     1.4805        .16668        .15663E-05    .10888E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.000100001
  alpha      = 1.58572
  Normalizat = 0.852833
  Prefactor  = 1.4805
 **********
 **   18 **HESSE 
 **********

 FCN=   7737.869     FROM HESSE     STATUS=OK            29 CALLS      505 TOTAL
                     EDM=   .12E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.6007        .42894E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.5857        3.1876        .50000       -.37440    
   3  Normalizat    .85283        .28356        .72023E-06   -.98138    
   4  Prefactor     1.4805        .15949        .31326E-06   -.78087    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.17726e-09
Minuit parameter uncertainties:
  1  8.1959e-05
  2  106.084
  3  0.284057
  4  0.159539
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228316': 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) = 7737.86927785
delta logL = 1.1863871805e-05

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  8.196e-05  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.586e+00  1.061e+02  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.480e+00  1.595e-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.528e-01  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 212.236 -7.857

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/228316/cmap_HighResolution_498528001_498787201_4FGL_J1408.9-0751_daily_bin1000.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.82e-05', job_status='DONE', photon_flux_upper_limit='7.55e-08', time_completed='2021-09-09 03:35:06.546291', job_id='228316', GAL2='1.48', fit_tolerance='1e-08', EG2='0.85', EG='0.85', time_epoch_completed='1631183706.55', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.48', dlogl='1.19e-05', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='1000' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:35:06 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0292>
Subject: Job 228316: <4FGL_J1408.9-0751_daily_bin1000> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin1000> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:20:25 2021
Job was executed on host(s) <bullet0292>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:20:26 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:20:26 2021
Terminated at Thu Sep  9 03:35:07 2021
Results reported at Thu Sep  9 03:35:07 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin1000 212.236 -7.8575 498528001 498787201 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 :                                   672.43 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             304.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   880 sec.
    Turnaround time :                            882 sec.

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

