/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 212 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 = 7353
number of fields = 22
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1408.9-0751_daily_bin41
RA = 212.236, Dec = -7.8575
tmin = 249955201, tmax = 250214401
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='220844', job_status='RUN', time_executed='2021-09-09 02:58:59.456717', time_epoch_executed='1631181539.46' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='41'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/220844

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/220844/ft1_4FGL_J1408.9-0751_daily_bin41.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/220844/ft2_4FGL_J1408.9-0751_daily_bin41.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/220844/ft1_4FGL_J1408.9-0751_daily_bin41.fits outfile=/scratch/kocevski/220844/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin41.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=249955201.0 tmax=250214401.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 1.45
user 1.27
sys 0.16

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/220844/ft1_filtered_4FGL_J1408.9-0751_daily_bin41.fits" evtable="EVENTS" scfile=/scratch/kocevski/220844/ft2_4FGL_J1408.9-0751_daily_bin41.fits sctable="SC_DATA" outfile=/scratch/kocevski/220844/ltcube_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.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/220844/ft2_4FGL_J1408.9-0751_daily_bin41.fits
.....................!
real 13.06
user 12.66
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/220844/ft1_filtered_4FGL_J1408.9-0751_daily_bin41.fits evtable="EVENTS" scfile=/scratch/kocevski/220844/ft2_4FGL_J1408.9-0751_daily_bin41.fits sctable="SC_DATA" expcube=/scratch/kocevski/220844/ltcube_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.fits outfile=/scratch/kocevski/220844/expmap_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.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/220844/ltcube_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.fits
.....................!
real 191.24
user 185.22
sys 4.94

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/220844/ft1_filtered_4FGL_J1408.9-0751_daily_bin41.fits scfile=/scratch/kocevski/220844/ft2_4FGL_J1408.9-0751_daily_bin41.fits outfile=/scratch/kocevski/220844/cmap_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.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.38
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/220844/ft1_filtered_4FGL_J1408.9-0751_daily_bin41.fits scfile=/scratch/kocevski/220844/ft2_4FGL_J1408.9-0751_daily_bin41.fits outfile=/scratch/kocevski/220844/cmap_HighResolution_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.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.39
sys 0.14

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10786E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    35.401       1.0000         .10000E-03   10000.    
     3 'norm      '    3.2832       1.0000         .10000E-03   10000.    
     4 'norm      '    .11568E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.2672       1.0000         .10000E-03   10000.    
     6 'norm      '    .10061E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.1521       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10160E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    6.6941       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10093E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    14.344       1.0000         .10000E-03   10000.    
    12 'Prefactor '    5.0662       1.0000         .10000E-03   10000.    
    13 'norm      '    1.4070       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10034E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10165E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    .10116E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    10.019       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10522E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10048E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    48.234       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.2712       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.0163       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=   10527.84     FROM MIGRAD    STATUS=CONVERGED    536 CALLS     2637 TOTAL
                     EDM=   .35E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10242E-03    4.7851       -.68494E-06** at limit **
   2  Prefactor     35.408        18.560        .48951E-06    .31501E-03
   3  norm          3.2832        1.2929       -.72486E-08    .20419E-03
   4  norm          .10000E-03    1.8930       -.94152E-06** at limit **
   5  norm          6.2676        5.4788        .97972E-06    .47426E-03
   6  norm          .10000E-03    10.451        .65527E-06** at limit **
   7  norm          3.1511        3.7664        .13119E-06   -.10141E-03
   8  Prefactor     .10000E-03    2.6393       -.14520E-06** at limit **
   9  Prefactor     6.6978        12.083       -.30671E-06   -.24048E-04
  10  Prefactor     .10000E-03    22.449       -.41256E-07** at limit **
  11  norm          14.336        6.9489        .91207E-08    .15004E-03
  12  Prefactor     5.0675        6.0283       -.50789E-07   -.13398E-04
  13  norm          1.4074        1.2258       -.16986E-07    .74813E-04
  14  Prefactor     .10000E-03    4.8980        .43739E-08** at limit **
  15  norm          .10000E-03    4.2858       -.28782E-07** at limit **
  16  norm          .10000E-03    2.6609       -.42243E-07** at limit **
  17  Prefactor     10.026        19.202       -.19458E-05   -.47771E-04
  18  Prefactor     .10000E-03    16.691        .23098E-07** at limit **
  19  norm          .10000E-03    3.4013       -.11450E-07** at limit **
  20  Prefactor     .10001E-03    5.0854       -.81141E-06** at limit **
  21  Prefactor     48.231        82.853        .17080E-06    .15555E-03
  22  Normalizat    1.2708        .18875        .74363E-06    .28151E-03
  23  Prefactor     1.0164        .99475E-01   -.34224E-08    .50905E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.00010242
  Prefactor  = 35.4082
  norm       = 3.28319
  norm       = 0.000100004
  norm       = 6.26757
  norm       = 0.0001
  norm       = 3.15113
  Prefactor  = 0.0001
  Prefactor  = 6.69775
  Prefactor  = 0.0001
  norm       = 14.3358
  Prefactor  = 5.06746
  norm       = 1.40738
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 10.0263
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.000100009
  Prefactor  = 48.2308
  Normalizat = 1.27082
  Prefactor  = 1.01644
 **********
 **   18 **HESSE 
 **********

 FCN=   10527.84     FROM HESSE     STATUS=OK           380 CALLS     3017 TOTAL
                     EDM=   .20E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10242E-03    8.2096        .68814E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     35.408        18.817        .67355E-04   -1.4517    
   3  norm          3.2832        1.2936        .70359E-04   -1.5346    
   4  norm          .10000E-03    8.0399        .23555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.2676        5.4819        .16035E-03   -1.5207    
   6  norm          .10000E-03    10.456        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.1511        3.7590        .21087E-03   -1.5353    
   8  Prefactor     .10000E-03    6.5570        .30554E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     6.6978        12.100        .15509E-03   -1.5190    
  10  Prefactor     .10000E-03    22.528        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          14.336        6.6222        .10575E-03   -1.4951    
  12  Prefactor     5.0675        6.0285        .17864E-03   -1.5258    
  13  norm          1.4074        1.2340        .10265E-03   -1.5471    
  14  Prefactor     .10000E-03    4.9026        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    4.2954        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          .10000E-03    2.6842        .16336E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     10.026        19.311        .12659E-03   -1.5075    
  18  Prefactor     .10000E-03    16.914        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    3.4037        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10001E-03    10.072        .34629E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     48.231        66.179        .57737E-04   -1.4318    
  22  Normalizat    1.2708        .21963        .32473E-03   -.84442    
  23  Prefactor     1.0164        .11649        .19502E-03   -.92184    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.9813e-09
Minuit parameter uncertainties:
  1  0.00891586
  2  18.8205
  3  1.29356
  4  0.000346448
  5  5.48236
  6  2.49874e-05
  7  3.75925
  8  6.05553e-05
  9  12.1043
  10  1.46858e-05
  11  6.62249
  12  6.02924
  13  1.23398
  14  2.21177e-06
  15  3.15899e-06
  16  4.23754e-06
  17  19.3231
  18  3.24553e-06
  19  5.44079e-07
  20  0.000615293
  21  66.2804
  22  0.219788
  23  0.116515
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.407e+00  1.234e+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:  1.016e+00  1.165e-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.271e+00  2.198e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.44
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 2.26e-08 +/- 1.98e-08
Energy Flux (Fixed Index): 8.43e-06 +/- 7.39e-06

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) = 10526.3815545
delta logL = 1.46035037677

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10526.3163683
delta logL = 1.52553663003

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .92515       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.0697       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2895       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0123       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=   10526.32     FROM MIGRAD    STATUS=CONVERGED     54 CALLS      207 TOTAL
                     EDM=   .16E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .92340        .76083        .19332E-01   -.40864E-03
   2  alpha         1.0688        .43268        .50000       -.54436E-04
   3  Normalizat    1.2899        .17938        .72905E-01   -.10397E-04
   4  Prefactor     1.0122        .98151E-01    .43004E-01   -.22335E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.923395
  alpha      = 1.06875
  Normalizat = 1.28991
  Prefactor  = 1.01222
 **********
 **   18 **HESSE 
 **********

 FCN=   10526.32     FROM HESSE     STATUS=OK            35 CALLS      242 TOTAL
                     EDM=   .74E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .92340        1.2232        .77636E-03   -1.5516    
   2  alpha         1.0688        .64084        .20850E-01   -.60955    
   3  Normalizat    1.2899        .20900        .32261E-03   -.83868    
   4  Prefactor     1.0122        .11452        .19538E-03   -.92323    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.41203e-09
Minuit parameter uncertainties:
  1  1.22328
  2  0.651767
  3  0.209132
  4  0.114551
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/220844': 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) = 10526.3163653
delta logL = 1.52553960736

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  9.234e-01  1.223e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.069e+00  6.518e-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.012e+00  1.146e-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.290e+00  2.091e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.47
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 1.07 +/- 0.65
Photon Flux (Free Index): 5.03e-09 +/- 5.87e-09
Energy Flux (Free Index): 3.38e-05 +/- 4.65e-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/220844/cmap_HighResolution_249955201_250214401_4FGL_J1408.9-0751_daily_bin41.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.26e-08', energy_flux2='3.38e-05', photon_flux_error='1.98e-08', dlogl='1.53e+00', energy_flux='8.43e-06', photon_flux2='5.03e-09', job_status='DONE', time_completed='2021-09-09 03:11:17.725433', photon_index_error2='0.65', photon_index2='1.07', ts='5.44', fit_tolerance='1e-08', GAL='1.02', photon_index_error='0.00', energy_flux_error2='4.65e-05', EG='1.27', time_epoch_completed='1631182277.73', return_code='0', job_id='220844', GAL2='1.01', EG2='1.29', return_code2='0', energy_flux_error='7.39e-06', photon_flux_error2='5.87e-09', ts2='8.47', photon_index='2.33' WHERE bin_id='41' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:11:17 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0282>
Subject: Job 220844: <4FGL_J1408.9-0751_daily_bin41> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin41> was submitted from host <rhel6-64n> by user <kocevski> in cluster <slac> at Thu Sep  9 02:55:17 2021
Job was executed on host(s) <bullet0282>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 02:55:18 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Thu Sep  9 02:55:18 2021
Terminated at Thu Sep  9 03:11:18 2021
Results reported at Thu Sep  9 03:11:18 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin41 212.236 -7.8575 249955201 250214401 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 :                                   737.04 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             301.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   960 sec.
    Turnaround time :                            961 sec.

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

