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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin949
RA = 212.236, Dec = -7.8575
tmin = 485308801, tmax = 485568001
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='228238', job_status='RUN', time_executed='2021-09-09 03:20:28.533133', time_epoch_executed='1631182828.53' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='949'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228238

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228238/ft1_4FGL_J1408.9-0751_daily_bin949.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228238/ft1_4FGL_J1408.9-0751_daily_bin949.fits outfile=/scratch/kocevski/228238/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin949.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=485308801.0 tmax=485568001.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 5.60
user 5.34
sys 0.24

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228238/ft1_filtered_4FGL_J1408.9-0751_daily_bin949.fits" evtable="EVENTS" scfile=/scratch/kocevski/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits sctable="SC_DATA" outfile=/scratch/kocevski/228238/ltcube_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.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/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits
.....................!
real 12.39
user 11.85
sys 0.49

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228238/ft1_filtered_4FGL_J1408.9-0751_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits sctable="SC_DATA" expcube=/scratch/kocevski/228238/ltcube_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.fits outfile=/scratch/kocevski/228238/expmap_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.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/228238/ltcube_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.fits
.....................!
real 190.24
user 185.20
sys 4.61

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/228238/ft1_filtered_4FGL_J1408.9-0751_daily_bin949.fits scfile=/scratch/kocevski/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits outfile=/scratch/kocevski/228238/cmap_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228238/ft1_filtered_4FGL_J1408.9-0751_daily_bin949.fits scfile=/scratch/kocevski/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits outfile=/scratch/kocevski/228238/cmap_HighResolution_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.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.40
sys 0.13

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228238/ft1_filtered_4FGL_J1408.9-0751_daily_bin949.fits evtable="EVENTS" scfile=/scratch/kocevski/228238/ft2_4FGL_J1408.9-0751_daily_bin949.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228238/Model_4FGL_J1408.9-0751_daily_bin949.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/228238/ft1_filtered_4FGL_J1408.9-0751_daily_bin949.fits....................!
real 68.02
user 66.68
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.8351       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10514E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .15896       1.0000         .10000E-03   10000.    
     4 'norm      '    13.135       1.0000         .10000E-03   10000.    
     5 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10238E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10590E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10046E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10038E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    1.2686       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .45525E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10005E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10028E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    22.072       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10013E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    8.0953       1.0000         .10000E-03   10000.    
    20 'Prefactor '    4.8836       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.7703       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .78319       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=   8785.029     FROM MIGRAD    STATUS=CONVERGED    506 CALLS     2526 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.8357        4.4222        .21381E-06    .77349E-04
   2  Prefactor     .10000E-03    15.465        .12937E-04** at limit **
   3  norm          .15870        .80024       -.56972E-06   -.84094E-03
   4  norm          13.133        4.0607       -.40825E-07   -.12877E-02
   5  norm          .10000E-03    2.0951        .55237E-06** at limit **
   6  norm          .10000E-03    9.1357        .90933E-06** at limit **
   7  norm          .10000E-03    1.8632        .13846E-05** at limit **
   8  Prefactor     .10001E-03    2.5123        .79533E-06** at limit **
   9  Prefactor     .10000E-03    7.0611       -.39067E-05** at limit **
  10  Prefactor     .10000E-03    13.525       -.14710E-04** at limit **
  11  norm          .10000E-03    1.9865       -.15401E-05** at limit **
  12  Prefactor     .10000E-03    2.8830       -.22203E-06** at limit **
  13  norm          1.2697        1.7699       -.33500E-06   -.10710E-02
  14  Prefactor     .10179E-03    9.7169       -.30671E-05** at limit **
  15  norm          .10000E-03    3.3912        .22664E-06** at limit **
  16  norm          .10000E-03    1.8518       -.67489E-06** at limit **
  17  Prefactor     22.093        21.145        .12084E-04   -.11685E-04
  18  Prefactor     .10000E-03    7.4511        .38758E-05** at limit **
  19  norm          8.0935        9.7364        .35234E-06   -.89890E-04
  20  Prefactor     4.9018        3.9061       -.16015E-06   -.84573E-04
  21  Prefactor     .10000E-03    47.110        .13513E-05** at limit **
  22  Normalizat    1.7701        .20291       -.10814E-05    .15606E-03
  23  Prefactor     .78334        .10248       -.60411E-06    .54702E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.83567
  Prefactor  = 0.0001
  norm       = 0.158696
  norm       = 13.1331
  norm       = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100005
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 1.26968
  Prefactor  = 0.000101789
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 22.0934
  Prefactor  = 0.0001
  norm       = 8.0935
  Prefactor  = 4.90177
  Prefactor  = 0.0001
  Normalizat = 1.77011
  Prefactor  = 0.783342
 **********
 **   18 **HESSE 
 **********

 FCN=   8785.029     FROM HESSE     STATUS=OK           368 CALLS     2894 TOTAL
                     EDM=   .23E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.8357        4.4224        .20609E-03   -1.5316    
   2  Prefactor     .10000E-03    15.517        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .15870        1.8121        .16056E-02   -1.5628    
   4  norm          13.133        4.0541        .10087E-03   -1.4983    
   5  norm          .10000E-03    2.1041        .13240E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          .10000E-03    9.1370        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    1.9161        .24979E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10001E-03    8.9033        .28493E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    7.0635        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.502        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.9931        .12893E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    2.8844        .15542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          1.2697        1.7458        .14181E-03   -1.5483    
  14  Prefactor     .10179E-03    78.429        .56092E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    3.3941        .16857E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    1.8606        .12462E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     22.093        21.078        .85257E-04   -1.4768    
  18  Prefactor     .10000E-03    7.4598        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          8.0935        9.7286        .14091E-03   -1.5139    
  20  Prefactor     4.9018        3.9048        .15999E-03   -1.5265    
  21  Prefactor     .10000E-03    47.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.7701        .23190        .28385E-03   -.70446    
  23  Prefactor     .78334        .11882        .21082E-03   -1.0035    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.32128e-08
Minuit parameter uncertainties:
  1  4.42276
  2  1.26894e-05
  3  1.07223
  4  4.05421
  5  2.46531e-08
  6  2.78439e-06
  7  2.29682e-06
  8  0.000435
  9  8.64494e-06
  10  8.48456e-06
  11  7.69871e-07
  12  3.96167e-06
  13  1.74585
  14  0.0237221
  15  1.831e-06
  16  1.79375e-05
  17  21.0848
  18  1.25838e-06
  19  9.73052
  20  3.90503
  21  8.47137e-06
  22  0.232044
  23  0.118855
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.270e+00  1.746e+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.833e-01  1.189e-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.770e+00  2.320e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/228238/likelihoodResults_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.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) = 8784.8470681
delta logL = 0.181727897219

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8784.84482517
delta logL = 0.183970830443

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .78912       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.9490       1.0000          .0000       5.0000    
     3 'Normalizat'    1.7495       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .78954       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=   8784.845     FROM MIGRAD    STATUS=CONVERGED     53 CALLS      245 TOTAL
                     EDM=   .13E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .78851        11.027        .20598E-01    .18453E-02
   2  alpha         2.9485        3.7434        .42023        .77172E-04
   3  Normalizat    1.7496        .35309E-01    .64469E-01    .26552E-04
   4  Prefactor     .78954        .18487E-01    .43581E-01    .17838E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.78851
  alpha      = 2.94849
  Normalizat = 1.7496
  Prefactor  = 0.789538
 **********
 **   18 **HESSE 
 **********

 FCN=   8784.845     FROM HESSE     STATUS=OK            35 CALLS      280 TOTAL
                     EDM=   .44E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .78851        2.8184        .95269E-03   -1.5530    
   2  alpha         2.9485        1.8452        .16256E-01    .18037    
   3  Normalizat    1.7496        .23168        .28512E-03   -.70986    
   4  Prefactor     .78954        .11968        .21007E-03   -1.0012    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.39717e-11
Minuit parameter uncertainties:
  1  2.81887
  2  2.08662
  3  0.231824
  4  0.119717
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228238': 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) = 8784.84482407
delta logL = 0.183971930423

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  7.885e-01  2.819e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.948e+00  2.087e+00  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.895e-01  1.197e-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.750e+00  2.318e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.15
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 2.95 +/- 2.09
Photon Flux (Free Index): 3.65e-08 +/- 4.35e-08
Energy Flux (Free Index): 8.06e-06 +/- 1.07e-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/228238/cmap_HighResolution_485308801_485568001_4FGL_J1408.9-0751_daily_bin949.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.39e-05', comment='SUCCESS', energy_flux2='8.06e-06', dlogl='1.84e-01', photon_flux2='3.65e-08', job_status='DONE', time_completed='2021-09-09 03:33:16.577092', photon_index_error2='2.09', photon_index2='2.95', ts='0.77', fit_tolerance='1e-08', GAL='0.78', photon_index_error='0.00', photon_flux_upper_limit='9.09e-08', energy_flux_error2='1.07e-05', EG='1.77', time_epoch_completed='1631183596.58', return_code='0', job_id='228238', GAL2='0.79', EG2='1.75', return_code2='0', photon_flux_error2='4.35e-08', ts2='1.15', photon_index='2.33' WHERE bin_id='949' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:33:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0041>
Subject: Job 228238: <4FGL_J1408.9-0751_daily_bin949> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin949 212.236 -7.8575 485308801 485568001 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 :                                   762.00 sec.
    Max Memory :                                 1094 MB
    Average Memory :                             333.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   776 sec.
    Turnaround time :                            777 sec.

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

