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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin1372
RA = 212.236, Dec = -7.8575
tmin = 594950401, tmax = 595209601
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='230050', job_status='RUN', time_executed='2021-09-09 03:28:49.407354', time_epoch_executed='1631183329.41' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='1372'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230050

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230050/ft1_4FGL_J1408.9-0751_daily_bin1372.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230050/ft1_4FGL_J1408.9-0751_daily_bin1372.fits outfile=/scratch/kocevski/230050/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1372.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=594950401.0 tmax=595209601.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.00
user 2.77
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/230050/ft1_filtered_4FGL_J1408.9-0751_daily_bin1372.fits" evtable="EVENTS" scfile=/scratch/kocevski/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits sctable="SC_DATA" outfile=/scratch/kocevski/230050/ltcube_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.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/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits
.....................!
real 12.16
user 11.76
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230050/ft1_filtered_4FGL_J1408.9-0751_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits sctable="SC_DATA" expcube=/scratch/kocevski/230050/ltcube_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.fits outfile=/scratch/kocevski/230050/expmap_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.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/230050/ltcube_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.fits
.....................!
real 191.04
user 185.56
sys 5.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/230050/ft1_filtered_4FGL_J1408.9-0751_daily_bin1372.fits scfile=/scratch/kocevski/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits outfile=/scratch/kocevski/230050/cmap_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.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.56
user 0.38
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230050/ft1_filtered_4FGL_J1408.9-0751_daily_bin1372.fits scfile=/scratch/kocevski/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits outfile=/scratch/kocevski/230050/cmap_HighResolution_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.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/230050/ft1_filtered_4FGL_J1408.9-0751_daily_bin1372.fits evtable="EVENTS" scfile=/scratch/kocevski/230050/ft2_4FGL_J1408.9-0751_daily_bin1372.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230050/Model_4FGL_J1408.9-0751_daily_bin1372.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/230050/ft1_filtered_4FGL_J1408.9-0751_daily_bin1372.fits.....................!
real 26.47
user 25.20
sys 1.15

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10015E-03   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .63566E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    4.8592       1.0000         .10000E-03   10000.    
     4 'norm      '    .16734E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    62.956       1.0000         .10000E-03   10000.    
     6 'norm      '    .10126E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    13.107       1.0000         .10000E-03   10000.    
     8 'Prefactor '    10.055       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10036E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .38495E-01   1.0000         .10000E-03   10000.    
    11 'norm      '    26.132       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    31.356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10064E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    12.586       1.0000         .10000E-03   10000.    
    16 'norm      '    41.378       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .28054E-02   1.0000         .10000E-03   10000.    
    19 'norm      '    3.4395       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.9890       1.0000         .10000E-03   10000.    
    21 'Prefactor '    9.7820       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3259       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .62659       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=   1803.654     FROM MIGRAD    STATUS=CONVERGED    713 CALLS     2737 TOTAL
                     EDM=   .88E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    11.343        .15660E-06** at limit **
   2  Prefactor     .10004E-03    183.43       -.41015E-04** at limit **
   3  norm          4.8615        3.4057        .25090E-05    .11903E-03
   4  norm          .10000E-03    13.853        .61341E-06** at limit **
   5  norm          62.881        28.547       -.20595E-05   -.21384E-03
   6  norm          .10000E-03    18.892       -.28469E-05** at limit **
   7  norm          13.015        17.116       -.33201E-05    .30709E-04
   8  Prefactor     9.2437        29.954       -.19784E-04    .23567E-03
   9  Prefactor     .10000E-03    24.375        .42888E-05** at limit **
  10  Prefactor     .10004E-03    6469.6       -.31467E-03** at limit **
  11  norm          26.635        35.340        .39821E-05    .74056E-04
  12  Prefactor     .10000E-03    10.711        .23290E-05** at limit **
  13  norm          31.310        16.349        .11191E-05    .21842E-03
  14  Prefactor     .10000E-03    42.031        .13283E-04** at limit **
  15  norm          12.586        21.449       -.72325E-05    .27562E-04
  16  norm          41.502        66.092        .11263E-04    .74633E-05
  17  Prefactor     .10002E-03    78.555        .34135E-04** at limit **
  18  Prefactor     .10000E-03    1715.2        .64457E-04** at limit **
  19  norm         10000.0        5136.6        .79872E-04** at limit **
  20  Prefactor    10000.0        5032.0       -.90013E-03** at limit **
  21  Prefactor    10000.0        6752.4        .52951E-03** at limit **
  22  Normalizat    1.3280        .50603       -.36750E-04   -.64156E-05
  23  Prefactor     .62557        .29528        .17510E-04    .42703E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.000100042
  norm       = 4.86148
  norm       = 0.0001
  norm       = 62.8809
  norm       = 0.0001
  norm       = 13.0153
  Prefactor  = 9.24366
  Prefactor  = 0.000100001
  Prefactor  = 0.000100039
  norm       = 26.635
  Prefactor  = 0.0001
  norm       = 31.3097
  Prefactor  = 0.000100001
  norm       = 12.5858
  norm       = 41.5017
  Prefactor  = 0.000100016
  Prefactor  = 0.0001
  norm       = 10000
  Prefactor  = 10000
  Prefactor  = 10000
  Normalizat = 1.32795
  Prefactor  = 0.625574
 **********
 **   18 **HESSE 
 **********

 FCN=   1803.654     FROM HESSE     STATUS=OK           378 CALLS     3115 TOTAL
                     EDM=   .17E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    11.385        .13972E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10004E-03    182.93        .21033E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          4.8615        3.4133        .59469E-04   -1.5267    
   4  norm          .10000E-03    14.055        .15344E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          62.881        28.507        .50574E-04   -1.4120    
   6  norm          .10000E-03    18.939        .18057E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          13.015        17.352        .11064E-03   -1.4986    
   8  Prefactor     9.2437        30.661        .12637E-02   -1.5100    
   9  Prefactor     .10000E-03    24.486        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10004E-03    329.57        .22774       -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          26.635        35.190        .78364E-04   -1.4675    
  12  Prefactor     .10000E-03    10.754        .13592E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          31.310        16.402        .71555E-04   -1.4588    
  14  Prefactor     .10000E-03    42.758        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          12.586        21.482        .11291E-03   -1.4998    
  16  norm          41.502        66.319        .62317E-04   -1.4419    
  17  Prefactor     .10002E-03    79.058        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    1717.4        .19900E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm         10000.0        5630.3        .10904E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor    10000.0        5074.6        .14689E-01    1.5707    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor    10000.0        7586.3        .64062E-02    1.5709    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3280        .51305        .31857E-03   -.82736    
  23  Prefactor     .62557        .30124        .25764E-03   -1.0652    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.72114e-09
Minuit parameter uncertainties:
  1  1.2766e-05
  2  0.00558574
  3  3.41341
  4  3.54227e-05
  5  28.5133
  6  3.19198e-06
  7  17.3582
  8  30.7129
  9  0.000343891
  10  0.0072067
  11  35.2169
  12  7.71601e-06
  13  16.4041
  14  0.000483752
  15  21.4953
  16  66.4372
  17  0.00224511
  18  0.000611834
  19  1.31702
  20  3.74983
  21  15.3505
  22  0.515035
  23  0.302018
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  3.131e+01  1.640e+01  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:  6.256e-01  3.020e-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.328e+00  5.150e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 9.16
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 5.03e-07 +/- 2.63e-07
Energy Flux (Fixed Index): 1.88e-04 +/- 9.83e-05

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1803.59589689
delta logL = 0.0578066197299

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 1803.57030113
delta logL = 0.0834023822804

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    35.498       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.1441       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3529       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .61583       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=   1803.570     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      213 TOTAL
                     EDM=   .10E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          35.511        35.463        .16816E-02    .18616E-04
   2  alpha         2.1437        .77880        .15112        .24946E-04
   3  Normalizat    1.3530        .43572        .71440E-01   -.84056E-04
   4  Prefactor     .61578        .25266        .41270E-01   -.99737E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 35.5109
  alpha      = 2.14373
  Normalizat = 1.35301
  Prefactor  = 0.615783
 **********
 **   18 **HESSE 
 **********

 FCN=   1803.570     FROM HESSE     STATUS=OK            31 CALLS      244 TOTAL
                     EDM=   .61E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          35.511        19.856        .67262E-04   -1.4515    
   2  alpha         2.1437        .45234        .64899E-02   -.14300    
   3  Normalizat    1.3530        .48825        .31607E-03   -.81998    
   4  Prefactor     .61578        .28343        .25969E-03   -1.0693    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.06648e-11
Minuit parameter uncertainties:
  1  19.8594
  2  0.454897
  3  0.489939
  4  0.284092
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230050': 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) = 1803.57030076
delta logL = 0.083402756999

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  3.551e+01  1.986e+01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.144e+00  4.549e-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:  6.158e-01  2.841e-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.353e+00  4.899e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 9.35
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 2.14 +/- 0.45
Photon Flux (Free Index): 4.29e-07 +/- 2.76e-07
Energy Flux (Free Index): 2.09e-04 +/- 1.24e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/230050/cmap_HighResolution_594950401_595209601_4FGL_J1408.9-0751_daily_bin1372.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.03e-07', energy_flux2='2.09e-04', photon_flux_error='2.63e-07', dlogl='8.34e-02', energy_flux='1.88e-04', photon_flux2='4.29e-07', job_status='DONE', time_completed='2021-09-09 03:36:45.333074', photon_index_error2='0.45', photon_index2='2.14', ts='9.16', fit_tolerance='1e-08', GAL='0.63', photon_index_error='0.00', energy_flux_error2='1.24e-04', EG='1.33', time_epoch_completed='1631183805.33', return_code='0', job_id='230050', GAL2='0.62', EG2='1.35', return_code2='0', energy_flux_error='9.83e-05', photon_flux_error2='2.76e-07', ts2='9.35', photon_index='2.33' WHERE bin_id='1372' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:36:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0251>
Subject: Job 230050: <4FGL_J1408.9-0751_daily_bin1372> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin1372> was submitted from host <rhel6-64p> by user <kocevski> in cluster <slac> at Thu Sep  9 03:25:45 2021
Job was executed on host(s) <bullet0251>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:25:47 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:25:47 2021
Terminated at Thu Sep  9 03:36:46 2021
Results reported at Thu Sep  9 03:36:46 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin1372 212.236 -7.8575 594950401 595209601 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 :                                   382.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             226.78 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   658 sec.
    Turnaround time :                            661 sec.

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

