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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin510
RA = 212.236, Dec = -7.8575
tmin = 371520001, tmax = 371779201
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='225284', job_status='RUN', time_executed='2021-09-09 03:13:15.771136', time_epoch_executed='1631182395.77' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='510'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/225284

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/225284/ft1_4FGL_J1408.9-0751_daily_bin510.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/225284/ft1_4FGL_J1408.9-0751_daily_bin510.fits outfile=/scratch/kocevski/225284/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin510.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=371520001.0 tmax=371779201.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.68
user 3.40
sys 0.23

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/225284/ft1_filtered_4FGL_J1408.9-0751_daily_bin510.fits" evtable="EVENTS" scfile=/scratch/kocevski/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits sctable="SC_DATA" outfile=/scratch/kocevski/225284/ltcube_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.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/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits
.....................!
real 10.42
user 10.11
sys 0.27

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/225284/ft1_filtered_4FGL_J1408.9-0751_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits sctable="SC_DATA" expcube=/scratch/kocevski/225284/ltcube_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.fits outfile=/scratch/kocevski/225284/expmap_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.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/225284/ltcube_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.fits
.....................!
real 155.81
user 150.89
sys 4.09

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/225284/ft1_filtered_4FGL_J1408.9-0751_daily_bin510.fits scfile=/scratch/kocevski/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits outfile=/scratch/kocevski/225284/cmap_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.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.47
user 0.31
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/225284/ft1_filtered_4FGL_J1408.9-0751_daily_bin510.fits scfile=/scratch/kocevski/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits outfile=/scratch/kocevski/225284/cmap_HighResolution_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.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.48
user 0.31
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/225284/ft1_filtered_4FGL_J1408.9-0751_daily_bin510.fits evtable="EVENTS" scfile=/scratch/kocevski/225284/ft2_4FGL_J1408.9-0751_daily_bin510.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/225284/Model_4FGL_J1408.9-0751_daily_bin510.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/225284/ft1_filtered_4FGL_J1408.9-0751_daily_bin510.fits.....................!
real 54.87
user 53.71
sys 1.01

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    37.213       1.0000         .10000E-03   10000.    
     2 'Prefactor '    17.949       1.0000         .10000E-03   10000.    
     3 'norm      '    2.8519       1.0000         .10000E-03   10000.    
     4 'norm      '    9.4500       1.0000         .10000E-03   10000.    
     5 'norm      '    5.9163       1.0000         .10000E-03   10000.    
     6 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    6.6325       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    1.1318       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.7754       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10016E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10098E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .91047E-02   1.0000         .10000E-03   10000.    
    16 'norm      '    .15339E-02   1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.460       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    3.2826       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .49024E-02   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0221       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0897       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=   8798.080     FROM MIGRAD    STATUS=CONVERGED    556 CALLS     2313 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     37.212        11.830        .16425E-02   -.26816E-02
   2  Prefactor     17.947        22.477        .23634E-02   -.47935E-03
   3  norm          2.8517        1.6541        .60188E-02    .46947E-03
   4  norm          9.4502        5.2025        .32591E-02    .17352E-03
   5  norm          5.9161        5.1308        .41274E-02    .34060E-03
   6  norm          .10000E-03    14.118        .90712E-02** at limit **
   7  norm          6.6321        4.6262        .38954E-02    .54890E-02
   8  Prefactor     .10000E-03    2.4821        .90712E-02** at limit **
   9  Prefactor     1.1309        82.751        .10972E-01    .14399E-03
  10  Prefactor     .10000E-03    14.335        .90712E-02** at limit **
  11  norm          1.7739        4.5381        .78549E-02    .11661E-02
  12  Prefactor     .10000E-03    11.710        .90712E-02** at limit **
  13  norm          .10000E-03    .89041        .34000E-01** at limit **
  14  Prefactor     .10000E-03    18.042        .90712E-02** at limit **
  15  norm          .10000E-03    7.1607        .91238E-01** at limit **
  16  norm          .10000E-03    3.5367        .58851E-01** at limit **
  17  Prefactor     15.461        17.279        .25466E-02   -.10516E-03
  18  Prefactor     .10000E-03    4.4231        .90712E-02** at limit **
  19  norm          .10000E-03    3.0881        .90712E-02** at limit **
  20  Prefactor     3.2750        4.7476        .55871E-02    .67919E-03
  21  Prefactor     .10003E-03    613.17        .96147E-02** at limit **
  22  Normalizat    1.0221        .20940        .78431E-01   -.48236E-04
  23  Prefactor     1.0897        .11162        .37990E-01   -.15253E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 37.2118
  Prefactor  = 17.947
  norm       = 2.85168
  norm       = 9.4502
  norm       = 5.91609
  norm       = 0.0001
  norm       = 6.63206
  Prefactor  = 0.0001
  Prefactor  = 1.1309
  Prefactor  = 0.0001
  norm       = 1.77389
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.000100001
  Prefactor  = 15.4613
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.27497
  Prefactor  = 0.000100027
  Normalizat = 1.02214
  Prefactor  = 1.08973
 **********
 **   18 **HESSE 
 **********

 FCN=   8798.080     FROM HESSE     STATUS=OK           388 CALLS     2701 TOTAL
                     EDM=   .34E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     37.212        11.838        .65699E-04   -1.4487    
   2  Prefactor     17.947        22.622        .94536E-04   -1.4860    
   3  norm          2.8517        1.6545        .86531E-04   -1.5370    
   4  norm          9.4502        5.2376        .11247E-03   -1.5093    
   5  norm          5.9161        5.1215        .16510E-03   -1.5221    
   6  norm          .10000E-03    14.132        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          6.6321        4.6261        .77908E-03   -1.5193    
   8  Prefactor     .10000E-03    2.5337        .28790E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     1.1309        85.939        .43889E-02   -1.5495    
  10  Prefactor     .10000E-03    14.356        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.7739        4.5062        .30699E-03   -1.5442    
  12  Prefactor     .10000E-03    11.802        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.5030        .17105E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    18.230        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    7.3274        .89071E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    3.6159        .57547E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     15.461        17.277        .10186E-03   -1.4921    
  18  Prefactor     .10000E-03    4.4248        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.0910        .16098E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     3.2750        4.6786        .22349E-03   -1.5346    
  21  Prefactor     .10003E-03    620.74        .38459E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0221        .24227        .34714E-03   -.92293    
  23  Prefactor     1.0897        .13044        .18702E-03   -.89795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.43532e-09
Minuit parameter uncertainties:
  1  11.8383
  2  22.6325
  3  1.65449
  4  5.23785
  5  5.12184
  6  8.10583e-05
  7  4.62635
  8  1.88541e-06
  9  19.7454
  10  9.89405e-05
  11  4.50707
  12  2.85236e-05
  13  7.99067e-06
  14  1.70073e-05
  15  4.52616e-05
  16  0.000103825
  17  17.2828
  18  1.68642e-06
  19  9.12711e-06
  20  4.67912
  21  0.0082517
  22  0.242533
  23  0.130482
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  7.991e-06  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.090e+00  1.305e-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:  1.022e+00  2.425e-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: 6.29e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.34e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/225284/likelihoodResults_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.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) = 8798.08288371
delta logL = -0.00317018759233

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8798.07971312
delta logL = 3.96292307414e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3076       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0222       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0898       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=   8798.080     FROM MIGRAD    STATUS=FAILED        90 CALLS      254 TOTAL
                     EDM=   .28E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10268E-03    55.778        .17513E-02** at limit **
   2  alpha         2.1512        3.3269        .50000        .31181E-04
   3  Normalizat    1.0221        .30227E-01    .34714E-03   -.35127E-03
   4  Prefactor     1.0897        .16865E-01    .18702E-03   -.29687E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8798.080     FROM SIMPLEX   STATUS=PROGRESS     133 CALLS      387 TOTAL
                     EDM=   .67E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10003E-03    55.778        .18960E-03** at limit **
   2  alpha         2.1505        3.3269        .40590E-03    .31181E-04
   3  Normalizat    1.0221        .30227E-01    .65768E-05   -.35127E-03
   4  Prefactor     1.0897        .16865E-01    .35800E-05   -.29687E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8798.080     FROM MIGRAD    STATUS=CONVERGED     46 CALLS      433 TOTAL
                     EDM=   .30E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    275.45        .35025E-03** at limit **
   2  alpha         2.0189        3.6595        .50000       -.88994E-07
   3  Normalizat    1.0221        .84602E-01    .13886E-04    .93008E-04
   4  Prefactor     1.0897        .47204E-01    .37404E-04    .36899E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.01895
  Normalizat = 1.02213
  Prefactor  = 1.08973
 **********
 **   18 **HESSE 
 **********

 FCN=   8798.080     FROM HESSE     STATUS=OK            29 CALLS      462 TOTAL
                     EDM=   .11E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    2.1580        .70050E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.0189        3.4843        .50000       -.19363    
   3  Normalizat    1.0221        .22822        .27771E-05   -.92293    
   4  Prefactor     1.0897        .12740        .74808E-05   -.89795    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.11411e-10
Minuit parameter uncertainties:
  1  5.21009e-06
  2  90.448
  3  0.228443
  4  0.127433
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/225284': 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) = 8798.07970882
delta logL = 4.70364830107e-06

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  5.210e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.019e+00  9.045e+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.090e+00  1.274e-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:  1.022e+00  2.284e-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/225284/cmap_HighResolution_371520001_371779201_4FGL_J1408.9-0751_daily_bin510.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.34e-05', job_status='DONE', photon_flux_upper_limit='6.29e-08', time_completed='2021-09-09 03:23:29.609236', job_id='225284', GAL2='1.09', fit_tolerance='1e-08', EG2='1.02', EG='1.02', time_epoch_completed='1631183009.61', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.09', dlogl='4.70e-06', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='510' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:23:29 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 225284: <4FGL_J1408.9-0751_daily_bin510> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin510> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:10:24 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:10:25 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:10:25 2021
Terminated at Thu Sep  9 03:23:30 2021
Results reported at Thu Sep  9 03:23:30 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin510 212.236 -7.8575 371520001 371779201 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 :                                   610.50 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             296.67 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   784 sec.
    Turnaround time :                            786 sec.

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

