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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin174
RA = 212.236, Dec = -7.8575
tmin = 284428801, tmax = 284688001
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='222230', job_status='RUN', time_executed='2021-09-09 03:03:52.747422', time_epoch_executed='1631181832.75' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='174'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/222230

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/222230/ft1_4FGL_J1408.9-0751_daily_bin174.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/222230/ft2_4FGL_J1408.9-0751_daily_bin174.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/222230/ft1_4FGL_J1408.9-0751_daily_bin174.fits outfile=/scratch/kocevski/222230/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin174.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=284428801.0 tmax=284688001.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.59
user 3.37
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/222230/ft1_filtered_4FGL_J1408.9-0751_daily_bin174.fits" evtable="EVENTS" scfile=/scratch/kocevski/222230/ft2_4FGL_J1408.9-0751_daily_bin174.fits sctable="SC_DATA" outfile=/scratch/kocevski/222230/ltcube_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.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/222230/ft2_4FGL_J1408.9-0751_daily_bin174.fits
.....................!
real 11.77
user 11.42
sys 0.31

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/222230/ft1_filtered_4FGL_J1408.9-0751_daily_bin174.fits evtable="EVENTS" scfile=/scratch/kocevski/222230/ft2_4FGL_J1408.9-0751_daily_bin174.fits sctable="SC_DATA" expcube=/scratch/kocevski/222230/ltcube_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.fits outfile=/scratch/kocevski/222230/expmap_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.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/222230/ltcube_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.fits
.....................!
real 195.13
user 189.34
sys 5.41

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/222230/ft1_filtered_4FGL_J1408.9-0751_daily_bin174.fits scfile=/scratch/kocevski/222230/ft2_4FGL_J1408.9-0751_daily_bin174.fits outfile=/scratch/kocevski/222230/cmap_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.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/222230/ft1_filtered_4FGL_J1408.9-0751_daily_bin174.fits scfile=/scratch/kocevski/222230/ft2_4FGL_J1408.9-0751_daily_bin174.fits outfile=/scratch/kocevski/222230/cmap_HighResolution_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.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.38
sys 0.15

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.4348       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    15.496       1.0000         .10000E-03   10000.    
     4 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'norm      '    45.263       1.0000         .10000E-03   10000.    
     7 'norm      '    3.0430       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    24.533       1.0000         .10000E-03   10000.    
    10 'Prefactor '    52.372       1.0000         .10000E-03   10000.    
    11 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    3.2250       1.0000         .10000E-03   10000.    
    15 'norm      '    20.433       1.0000         .10000E-03   10000.    
    16 'norm      '    3.0494       1.0000         .10000E-03   10000.    
    17 'Prefactor '    1.3342       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10017E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    12.880       1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.9646       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .83053       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=   9093.054     FROM MIGRAD    STATUS=CONVERGED    477 CALLS     2107 TOTAL
                     EDM=   .11E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.4350        7.9982        .23505E-06   -.13078E-05
   2  Prefactor     .10000E-03    2.9990        .11685E-07** at limit **
   3  norm          15.496        2.5233        .42647E-07   -.41008E-04
   4  norm          .10000E-03    .68024        .19262E-07** at limit **
   5  norm          .10000E-03    1.9027       -.25889E-07** at limit **
   6  norm          45.263        28.998        .61884E-07   -.15058E-05
   7  norm          3.0430        3.8748        .15488E-06   -.38052E-05
   8  Prefactor     .10000E-03    2.4197       -.40337E-07** at limit **
   9  Prefactor     24.532        19.197        .18841E-06   -.17026E-04
  10  Prefactor     52.371        37.205        .32595E-06   -.39367E-05
  11  norm          .10000E-03    2.2120        .19550E-06** at limit **
  12  Prefactor     .10000E-03    4.9651       -.12755E-06** at limit **
  13  norm          .10000E-03    1.3873        .14514E-06** at limit **
  14  Prefactor     3.2075        52.006        .87175E-05   -.53806E-05
  15  norm          20.433        13.973        .83311E-07   -.14714E-04
  16  norm          3.0479        6.1550        .28803E-05   -.30775E-04
  17  Prefactor     1.3289        27.595        .20937E-05    .63388E-07
  18  Prefactor     .10000E-03    10.763       -.83206E-06** at limit **
  19  norm          .10000E-03    11.252        .79971E-06** at limit **
  20  Prefactor     .10000E-03    1.4853       -.68845E-07** at limit **
  21  Prefactor     12.867        30.415        .34280E-05    .77966E-06
  22  Normalizat    1.9646        .23187       -.57013E-06   -.74997E-04
  23  Prefactor     .83058        .11790       -.65365E-06   -.13426E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.43497
  Prefactor  = 0.0001
  norm       = 15.4962
  norm       = 0.0001
  norm       = 0.0001
  norm       = 45.2626
  norm       = 3.04302
  Prefactor  = 0.0001
  Prefactor  = 24.5319
  Prefactor  = 52.3707
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 3.20754
  norm       = 20.4326
  norm       = 3.04785
  Prefactor  = 1.32887
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 12.8672
  Normalizat = 1.96455
  Prefactor  = 0.830576
 **********
 **   18 **HESSE 
 **********

 FCN=   9093.054     FROM HESSE     STATUS=OK           364 CALLS     2471 TOTAL
                     EDM=   .20E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.4350        7.9996        .19122E-03   -1.5287    
   2  Prefactor     .10000E-03    3.0008        .16128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          15.496        2.5318        .58722E-04   -1.4920    
   4  norm          .10000E-03    .68240        .76801E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          .10000E-03    1.9117        .12843E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          45.263        28.998        .59594E-04   -1.4361    
   7  norm          3.0430        3.8655        .20464E-03   -1.5359    
   8  Prefactor     .10000E-03    2.4645        .14475E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     24.532        19.228        .80874E-04   -1.4717    
  10  Prefactor     52.371        37.201        .55420E-04   -1.4259    
  11  norm          .10000E-03    2.2255        .13852E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    4.9777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.4257        .21921E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     3.2075        52.220        .22557E-03   -1.5350    
  15  norm          20.433        13.975        .44304E-03   -1.4804    
  16  norm          3.0479        6.1615        .11617E-02   -1.5359    
  17  Prefactor     1.3289        27.828        .37992E-03   -1.5477    
  18  Prefactor     .10000E-03    10.768        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          .10000E-03    11.294        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     .10000E-03    1.4873        .11349E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     12.867        30.437        .11161E-03   -1.4990    
  22  Normalizat    1.9646        .27428        .31558E-03   -.65442    
  23  Prefactor     .83058        .13911        .23418E-03   -.98611    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.96337e-11
Minuit parameter uncertainties:
  1  8.00149
  2  1.29715e-06
  3  2.53185
  4  6.72296e-07
  5  2.26181e-06
  6  29.0074
  7  3.86584
  8  5.72517e-06
  9  19.2333
  10  37.2171
  11  2.50635e-06
  12  1.5305e-05
  13  2.67228e-06
  14  25.9105
  15  13.9771
  16  6.16274
  17  12.1681
  18  2.07824e-06
  19  4.66333e-06
  20  3.22123e-06
  21  30.4741
  22  0.274495
  23  0.139173
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  2.672e-06  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.306e-01  1.392e-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.965e+00  2.745e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/222230/likelihoodResults_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.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) = 9093.05727986
delta logL = -0.00333540157771

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9093.0539428
delta logL = 1.66480458574e-06

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10052E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3680       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9646       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .83057       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=   9090.744     FROM MIGRAD    STATUS=CONVERGED    129 CALLS      280 TOTAL
                     EDM=   .96E-09    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .48348E-01    .72186        .24797E-02    .27586E-02
   2  alpha         5.0000        2.6571        .41224    ** at limit **
   3  Normalizat    1.7763        .16374        .74046E-01    .10254E-03
   4  Prefactor     .89253        .74567E-01    .44114E-01    .70073E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0483484
  alpha      = 5
  Normalizat = 1.77626
  Prefactor  = 0.892533
 **********
 **   18 **HESSE 
 **********

 FCN=   9090.744     FROM HESSE     STATUS=OK            35 CALLS      315 TOTAL
                     EDM=   .33E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .48348E-01    .27531E-01    .11232E-03   -1.5664    
   2  alpha         5.0000        .75465        .45220E-01    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.7763        .27931        .32760E-03   -.70285    
   4  Prefactor     .89253        .14111        .22681E-03   -.96403    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.29904e-11
Minuit parameter uncertainties:
  1  0.027531
  2  2.60585e-06
  3  0.279557
  4  0.141171
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/222230': 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) = 9090.74412582
delta logL = 2.30981864011

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  4.835e-02  2.753e-02  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  2.606e-06  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.925e-01  1.412e-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.776e+00  2.796e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.98
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 1.41e-07 +/- 8.01e-08
Energy Flux (Free Index): 1.93e-05 +/- 1.09e-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/222230/cmap_HighResolution_284428801_284688001_4FGL_J1408.9-0751_daily_bin174.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.85e-05', comment='SUCCESS', energy_flux2='1.93e-05', dlogl='2.31e+00', photon_flux2='1.41e-07', job_status='DONE', time_completed='2021-09-09 03:16:00.016402', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='7.65e-08', energy_flux_error2='1.09e-05', EG='1.96', time_epoch_completed='1631182560.02', return_code='0', job_id='222230', GAL2='0.89', EG2='1.78', return_code2='0', photon_flux_error2='8.01e-08', ts2='4.98', photon_index='2.33' WHERE bin_id='174' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:16:00 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0296>
Subject: Job 222230: <4FGL_J1408.9-0751_daily_bin174> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin174 212.236 -7.8575 284428801 284688001 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 :                                   725.00 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             293.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   934 sec.
    Turnaround time :                            936 sec.

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

