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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin1015
RA = 212.236, Dec = -7.8575
tmin = 502416001, tmax = 502675201
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='228349', job_status='RUN', time_executed='2021-09-09 03:22:29.920074', time_epoch_executed='1631182949.92' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='1015'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228349

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228349/ft1_4FGL_J1408.9-0751_daily_bin1015.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228349/ft1_4FGL_J1408.9-0751_daily_bin1015.fits outfile=/scratch/kocevski/228349/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1015.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=502416001.0 tmax=502675201.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.53
user 3.32
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228349/ft1_filtered_4FGL_J1408.9-0751_daily_bin1015.fits" evtable="EVENTS" scfile=/scratch/kocevski/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits sctable="SC_DATA" outfile=/scratch/kocevski/228349/ltcube_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.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/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits
.....................!
real 11.81
user 11.43
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228349/ft1_filtered_4FGL_J1408.9-0751_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits sctable="SC_DATA" expcube=/scratch/kocevski/228349/ltcube_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.fits outfile=/scratch/kocevski/228349/expmap_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.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/228349/ltcube_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.fits
.....................!
real 189.73
user 184.58
sys 4.79

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/228349/ft1_filtered_4FGL_J1408.9-0751_daily_bin1015.fits scfile=/scratch/kocevski/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits outfile=/scratch/kocevski/228349/cmap_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228349/ft1_filtered_4FGL_J1408.9-0751_daily_bin1015.fits scfile=/scratch/kocevski/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits outfile=/scratch/kocevski/228349/cmap_HighResolution_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.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.54
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228349/ft1_filtered_4FGL_J1408.9-0751_daily_bin1015.fits evtable="EVENTS" scfile=/scratch/kocevski/228349/ft2_4FGL_J1408.9-0751_daily_bin1015.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228349/Model_4FGL_J1408.9-0751_daily_bin1015.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/228349/ft1_filtered_4FGL_J1408.9-0751_daily_bin1015.fits.....................!
real 56.72
user 55.39
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    16.475       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10839E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10019E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    8.8152       1.0000         .10000E-03   10000.    
     5 'norm      '    .15195E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10118E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10048E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    68.298       1.0000         .10000E-03   10000.    
    11 'norm      '    .10025E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    13.950       1.0000         .10000E-03   10000.    
    13 'norm      '    4.8142       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .17688       1.0000         .10000E-03   10000.    
    17 'Prefactor '    20.892       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10105E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10095E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.6025       1.0000         .10000E-03   10000.    
    21 'Prefactor '    6.4094       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7822       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .75766       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=   6932.255     FROM MIGRAD    STATUS=CONVERGED    538 CALLS     2237 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     16.476        13.053       -.31172E-07   -.42240E-04
   2  Prefactor     .10000E-03    56.362       -.37016E-05** at limit **
   3  norm          .10000E-03    .62527        .34757E-07** at limit **
   4  norm          8.8026        4.7401        .14856E-05   -.53767E-03
   5  norm          .10016E-03    5.0622       -.44445E-06** at limit **
   6  norm          .10000E-03    11.562        .45424E-07** at limit **
   7  norm          .10000E-03    1.4605       -.50736E-07** at limit **
   8  Prefactor     .10000E-03    1.6147       -.34697E-07** at limit **
   9  Prefactor     .10000E-03    6.2070        .18848E-07** at limit **
  10  Prefactor     68.268        46.198       -.18203E-06   -.14431E-03
  11  norm          .10000E-03    4.4297        .62902E-08** at limit **
  12  Prefactor     13.952        13.543       -.29711E-07   -.83347E-05
  13  norm          4.8046        3.7381        .13104E-06    .95080E-04
  14  Prefactor     .10000E-03    8.8192        .25092E-07** at limit **
  15  norm          .10000E-03    2.9747        .79439E-08** at limit **
  16  norm          .31463        6.2024       -.47637E-06    .15366E-03
  17  Prefactor     20.860        22.734       -.35039E-06   -.10948E-03
  18  Prefactor     .10000E-03    35.607       -.26567E-06** at limit **
  19  norm          .10000E-03    17.750       -.38454E-06** at limit **
  20  Prefactor     4.6038        5.7847        .24328E-06    .13146E-03
  21  Prefactor     6.3776        147.57       -.28810E-05   -.25166E-04
  22  Normalizat    1.7820        .24081        .99264E-07    .49276E-04
  23  Prefactor     .75762        .12289        .20290E-06    .46497E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 16.4764
  Prefactor  = 0.000100005
  norm       = 0.0001
  norm       = 8.80256
  norm       = 0.000100159
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 68.2684
  norm       = 0.0001
  Prefactor  = 13.9522
  norm       = 4.80462
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.314627
  Prefactor  = 20.8601
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 4.6038
  Prefactor  = 6.37763
  Normalizat = 1.78197
  Prefactor  = 0.75762
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.255     FROM HESSE     STATUS=OK           370 CALLS     2607 TOTAL
                     EDM=   .92E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     16.476        13.095        .98676E-04   -1.4896    
   2  Prefactor     .10000E-03    59.123        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    .63981        .12844E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          8.8026        4.7643        .12759E-03   -1.5114    
   5  norm          .10016E-03    20.111        .35692E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    11.568        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.4621        .98260E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    1.6215        .10331E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    6.2097        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     68.268        46.183        .24284E-03   -1.4054    
  11  norm          .10000E-03    4.4641        .17109E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     13.952        13.572        .10724E-03   -1.4961    
  13  norm          4.8046        3.7626        .12806E-03   -1.5270    
  14  Prefactor     .10000E-03    8.8281        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    2.9749        .14025E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .31463        84.770        .36884E-02   -1.5596    
  17  Prefactor     20.860        22.761        .87629E-04   -1.4794    
  18  Prefactor     .10000E-03    35.786        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    17.984        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     4.6038        5.7852        .17496E-03   -1.5279    
  21  Prefactor     6.3776        148.07        .15854E-03   -1.5203    
  22  Normalizat    1.7820        .28259        .29767E-03   -.70135    
  23  Prefactor     .75762        .14413        .22164E-03   -1.0131    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.22515e-09
Minuit parameter uncertainties:
  1  13.0973
  2  0.00106796
  3  1.5104e-06
  4  4.76454
  5  0.00357564
  6  7.58958e-06
  7  6.02934e-08
  8  2.1568e-06
  9  8.07486e-07
  10  46.2069
  11  2.94098e-06
  12  13.5749
  13  3.76274
  14  5.83933e-06
  15  3.15199e-07
  16  10.3419
  17  22.7708
  18  0.000189056
  19  0.000132834
  20  5.78594
  21  61.6313
  22  0.282849
  23  0.144199
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  4.805e+00  3.763e+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:  7.576e-01  1.442e-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.782e+00  2.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.38
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 7.72e-08 +/- 6.04e-08
Energy Flux (Fixed Index): 2.88e-05 +/- 2.25e-05

TS (Fixed Index): 2.38
Ra Dec: 212.236 -7.857
Photon Flux Upper Limit: 1.90e-07 ph cm-2 s-1
Energy Flux Upper Limit: 7.09e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228349/likelihoodResults_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6932.0225222
delta logL = 0.232777362519

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6932.01274708
delta logL = 0.242552476873

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    3.4679       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6917       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7553       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .76616       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=   6932.013     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      262 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          3.4688        46.180        .54289E-02    .57144E-03
   2  alpha         2.6919        3.8049        .26533        .88109E-04
   3  Normalizat    1.7550        .88146E-01    .67687E-01   -.25130E-04
   4  Prefactor     .76623        .45030E-01    .43275E-01   -.10634E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 3.4688
  alpha      = 2.69191
  Normalizat = 1.75501
  Prefactor  = 0.766228
 **********
 **   18 **HESSE 
 **********

 FCN=   6932.013     FROM HESSE     STATUS=OK            33 CALLS      295 TOTAL
                     EDM=   .41E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          3.4688        3.7184        .98859E-04   -1.5335    
   2  alpha         2.6919        .58537        .10098E-01    .76842E-01
   3  Normalizat    1.7550        .27935        .29939E-03   -.70844    
   4  Prefactor     .76623        .14198        .22050E-03   -1.0099    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.08398e-11
Minuit parameter uncertainties:
  1  3.71865
  2  0.590886
  3  0.279602
  4  0.142043
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228349': 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) = 6932.01274616
delta logL = 0.242553395849

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  3.469e+00  3.719e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.692e+00  5.909e-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:  7.662e-01  1.420e-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.755e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.88
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 2.69 +/- 0.59
Photon Flux (Free Index): 1.02e-07 +/- 7.19e-08
Energy Flux (Free Index): 2.65e-05 +/- 1.92e-05

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/228349/cmap_HighResolution_502416001_502675201_4FGL_J1408.9-0751_daily_bin1015.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='7.09e-05', comment='SUCCESS', photon_flux='7.72e-08', energy_flux2='2.65e-05', photon_flux_error='6.04e-08', dlogl='2.43e-01', energy_flux='2.88e-05', photon_flux2='1.02e-07', job_status='DONE', time_completed='2021-09-09 03:32:57.261348', photon_index_error2='0.59', photon_index2='2.69', ts='2.38', fit_tolerance='1e-08', GAL='0.76', photon_index_error='0.00', photon_flux_upper_limit='1.90e-07', energy_flux_error2='1.92e-05', EG='1.78', time_epoch_completed='1631183577.26', return_code='0', job_id='228349', GAL2='0.77', EG2='1.76', return_code2='0', energy_flux_error='2.25e-05', photon_flux_error2='7.19e-08', ts2='2.88', photon_index='2.33' WHERE bin_id='1015' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:32:57 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0058>
Subject: Job 228349: <4FGL_J1408.9-0751_daily_bin1015> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin1015> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:20:27 2021
Job was executed on host(s) <bullet0058>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:20:29 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:29 2021
Terminated at Thu Sep  9 03:32:58 2021
Results reported at Thu Sep  9 03:32:58 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin1015 212.236 -7.8575 502416001 502675201 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 :                                   622.23 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.88 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   748 sec.
    Turnaround time :                            751 sec.

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

