/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 222 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 = 7471
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1408.9-0751_daily_bin226
RA = 212.236, Dec = -7.8575
tmin = 297907201, tmax = 298166401
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='222326', job_status='RUN', time_executed='2021-09-09 03:04:26.391421', time_epoch_executed='1631181866.39' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='226'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222326

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222326/ft1_4FGL_J1408.9-0751_daily_bin226.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222326/ft2_4FGL_J1408.9-0751_daily_bin226.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222326/ft1_4FGL_J1408.9-0751_daily_bin226.fits outfile=/scratch/kocevski/222326/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin226.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=297907201.0 tmax=298166401.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.63
user 3.39
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/222326/ft2_4FGL_J1408.9-0751_daily_bin226.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/222326/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin226.fits evtable="EVENTS" outfile="/scratch/kocevski/222326/ft1_filtered_4FGL_J1408.9-0751_daily_bin226.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.53
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222326/ft1_filtered_4FGL_J1408.9-0751_daily_bin226.fits" evtable="EVENTS" scfile=/scratch/kocevski/222326/ft2_4FGL_J1408.9-0751_daily_bin226.fits sctable="SC_DATA" outfile=/scratch/kocevski/222326/ltcube_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.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/222326/ft2_4FGL_J1408.9-0751_daily_bin226.fits
.....................!
real 12.55
user 11.91
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222326/ft1_filtered_4FGL_J1408.9-0751_daily_bin226.fits evtable="EVENTS" scfile=/scratch/kocevski/222326/ft2_4FGL_J1408.9-0751_daily_bin226.fits sctable="SC_DATA" expcube=/scratch/kocevski/222326/ltcube_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.fits outfile=/scratch/kocevski/222326/expmap_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.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/222326/ltcube_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.fits
.....................!
real 190.12
user 185.29
sys 4.40

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/222326/ft1_filtered_4FGL_J1408.9-0751_daily_bin226.fits scfile=/scratch/kocevski/222326/ft2_4FGL_J1408.9-0751_daily_bin226.fits outfile=/scratch/kocevski/222326/cmap_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.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.57
user 0.37
sys 0.15

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

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    3.7286       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    6.9764       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.6588       1.0000         .10000E-03   10000.    
     6 'norm      '    7.3808       1.0000         .10000E-03   10000.    
     7 'norm      '    .79972       1.0000         .10000E-03   10000.    
     8 'Prefactor '    2.9015       1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.457       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .20335E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.1692       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .17169E-02   1.0000         .10000E-03   10000.    
    13 'norm      '    2.5154       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    16.862       1.0000         .10000E-03   10000.    
    16 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    16.195       1.0000         .10000E-03   10000.    
    18 'Prefactor '    11.508       1.0000         .10000E-03   10000.    
    19 'norm      '    9.3458       1.0000         .10000E-03   10000.    
    20 'Prefactor '    2.3784       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.3439       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .82066       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=   9242.379     FROM MIGRAD    STATUS=CONVERGED    509 CALLS     2203 TOTAL
                     EDM=   .10E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  2.1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     3.7288        7.2582        .17252E-05    .40263E-03
   2  Prefactor     .10000E-03    4.8679       -.22175E-07** at limit **
   3  norm          6.9764        1.7399        .38473E-08   -.20410E-03
   4  norm          .10000E-03    1.3917       -.75064E-07** at limit **
   5  norm          6.6576        4.7299       -.64620E-06   -.11197E-02
   6  norm          7.3811        12.997        .17280E-06    .18425E-04
   7  norm          .79818        2.6689        .11014E-05   -.50734E-03
   8  Prefactor     2.9023        4.3318       -.64381E-06   -.86761E-03
   9  Prefactor     12.459        13.037        .50564E-06    .51201E-04
  10  Prefactor     .10000E-03    105.79       -.93811E-06** at limit **
  11  norm          1.1667        5.1303        .23907E-05   -.42690E-03
  12  Prefactor     .10038E-03    8.1856        .19597E-05** at limit **
  13  norm          2.5157        2.3086        .10872E-06   -.27479E-03
  14  Prefactor     .10000E-03    5.8566       -.50562E-07** at limit **
  15  norm          16.863        11.125        .48617E-06    .29054E-03
  16  norm          .10000E-03    2.6248        .31016E-07** at limit **
  17  Prefactor     16.197        14.740        .48256E-07   -.19689E-04
  18  Prefactor     11.509        15.554        .15699E-06    .36861E-04
  19  norm          9.3466        10.677        .82722E-06    .30734E-03
  20  Prefactor     2.3797        3.3119       -.52438E-07   -.26764E-03
  21  Prefactor     .10000E-03    44.026       -.15721E-05** at limit **
  22  Normalizat    1.3439        .19003       -.61711E-06   -.25273E-03
  23  Prefactor     .82061        .97327E-01   -.73662E-07   -.31631E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 3.72876
  Prefactor  = 0.0001
  norm       = 6.97642
  norm       = 0.0001
  norm       = 6.65756
  norm       = 7.38105
  norm       = 0.79818
  Prefactor  = 2.90227
  Prefactor  = 12.4594
  Prefactor  = 0.0001
  norm       = 1.16668
  Prefactor  = 0.000100377
  norm       = 2.51573
  Prefactor  = 0.0001
  norm       = 16.8632
  norm       = 0.0001
  Prefactor  = 16.1968
  Prefactor  = 11.5088
  norm       = 9.34658
  Prefactor  = 2.37966
  Prefactor  = 0.000100001
  Normalizat = 1.34391
  Prefactor  = 0.820612
 **********
 **   18 **HESSE 
 **********

 FCN=   9242.379     FROM HESSE     STATUS=OK           374 CALLS     2577 TOTAL
                     EDM=   .82E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     3.7288        7.3854        .20912E-03   -1.5322    
   2  Prefactor     .10000E-03    4.8834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          6.9764        1.7481        .60327E-04   -1.5180    
   4  norm          .10000E-03    1.4301        .22075E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.6576        4.8501        .15550E-03   -1.5192    
   6  norm          7.3811        12.992        .14763E-03   -1.5165    
   7  norm          .79818        2.7980        .29157E-03   -1.5529    
   8  Prefactor     2.9023        4.2975        .21908E-03   -1.5367    
   9  Prefactor     12.459        13.005        .11349E-03   -1.5002    
  10  Prefactor     .10000E-03    107.77        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.1667        5.6727        .41808E-03   -1.5492    
  12  Prefactor     .10038E-03    55.968        .48656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          2.5157        2.3058        .13226E-03   -1.5391    
  14  Prefactor     .10000E-03    5.8619        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          16.863        11.174        .97534E-04   -1.4886    
  16  norm          .10000E-03    2.6499        .15204E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     16.197        14.739        .99523E-04   -1.4903    
  18  Prefactor     11.509        15.551        .11809E-03   -1.5029    
  19  norm          9.3466        10.757        .13109E-03   -1.5096    
  20  Prefactor     2.3797        3.3142        .20065E-03   -1.5399    
  21  Prefactor     .10000E-03    44.214        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.3439        .22095        .29723E-03   -.82265    
  23  Prefactor     .82061        .11409        .19798E-03   -.98973    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.16631e-09
Minuit parameter uncertainties:
  1  7.38722
  2  1.01466e-05
  3  1.74813
  4  1.08564e-05
  5  4.85036
  6  12.9965
  7  2.7985
  8  4.29795
  9  13.0075
  10  0.000221288
  11  5.14577
  12  0.00920045
  13  2.30587
  14  1.03582e-05
  15  11.1754
  16  2.48823e-06
  17  14.7428
  18  15.5562
  19  10.7588
  20  3.31441
  21  0.000478058
  22  0.22111
  23  0.114119
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.516e+00  2.306e+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:  8.206e-01  1.141e-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.344e+00  2.211e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.62
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 4.04e-08 +/- 3.70e-08
Energy Flux (Fixed Index): 1.51e-05 +/- 1.38e-05

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

Saving results to:
/scratch/kocevski/222326/likelihoodResults_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.txt

Performing a free index iterative likelihood fit...

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

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 9240.03167102
delta logL = 2.34774882643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9239.94013389
delta logL = 2.43928595222

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .26699       1.0000         .10000E-03   10000.    
     2 'alpha     '    4.1993       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1990       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .87059       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=   9239.940     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      233 TOTAL
                     EDM=   .68E-08    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26713        1.4674        .47813E-02    .58906E-02
   2  alpha         4.1994        3.9472        .25007        .17998E-03
   3  Normalizat    1.1994        .60904E-01    .70427E-01   -.23895E-03
   4  Prefactor     .87042        .32496E-01    .44629E-01    .48217E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.267128
  alpha      = 4.1994
  Normalizat = 1.19943
  Prefactor  = 0.870424
 **********
 **   18 **HESSE 
 **********

 FCN=   9239.940     FROM HESSE     STATUS=OK            31 CALLS      264 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26713        .71449        .21498E-04   -1.5605    
   2  alpha         4.1994        1.2186        .11048E-02    .74743    
   3  Normalizat    1.1994        .22136        .31162E-03   -.86620    
   4  Prefactor     .87042        .11544        .19279E-03   -.97182    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.98344e-10
Minuit parameter uncertainties:
  1  0.714517
  2  1.33299
  3  0.221529
  4  0.115472
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222326': 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) = 9239.94012955
delta logL = 2.43929029379

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.671e-01  7.145e-01  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  4.199e+00  1.333e+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:  8.704e-01  1.155e-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.199e+00  2.215e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.06
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 4.20 +/- 1.33
Photon Flux (Free Index): 1.45e-07 +/- 6.93e-08
Energy Flux (Free Index): 2.18e-05 +/- 1.04e-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/222326/cmap_HighResolution_297907201_298166401_4FGL_J1408.9-0751_daily_bin226.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='4.35e-05', comment='SUCCESS', photon_flux='4.04e-08', energy_flux2='2.18e-05', photon_flux_error='3.70e-08', dlogl='2.44e+00', energy_flux='1.51e-05', photon_flux2='1.45e-07', job_status='DONE', time_completed='2021-09-09 03:16:45.524691', photon_index_error2='1.33', photon_index2='4.20', ts='1.62', fit_tolerance='1e-08', GAL='0.82', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.04e-05', EG='1.34', time_epoch_completed='1631182605.52', return_code='0', job_id='222326', GAL2='0.87', EG2='1.20', return_code2='0', energy_flux_error='1.38e-05', photon_flux_error2='6.93e-08', ts2='7.06', photon_index='2.33' WHERE bin_id='226' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:16:45 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0074>
Subject: Job 222326: <4FGL_J1408.9-0751_daily_bin226> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin226 212.236 -7.8575 297907201 298166401 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 :                                   732.27 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             294.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   970 sec.
    Turnaround time :                            973 sec.

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

