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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin1507
RA = 212.236, Dec = -7.8575
tmin = 629942401, tmax = 630201601
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='230850', job_status='RUN', time_executed='2021-09-09 03:32:35.282713', time_epoch_executed='1631183555.28' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='1507'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/230850

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/230850/ft1_4FGL_J1408.9-0751_daily_bin1507.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/230850/ft1_4FGL_J1408.9-0751_daily_bin1507.fits outfile=/scratch/kocevski/230850/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1507.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=629942401.0 tmax=630201601.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 4.70
user 4.45
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.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/230850/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1507.fits evtable="EVENTS" outfile="/scratch/kocevski/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.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/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.fits" evtable="EVENTS" scfile=/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits sctable="SC_DATA" outfile=/scratch/kocevski/230850/ltcube_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.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/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits
.....................!
real 11.90
user 11.50
sys 0.36

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits sctable="SC_DATA" expcube=/scratch/kocevski/230850/ltcube_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.fits outfile=/scratch/kocevski/230850/expmap_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.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/230850/ltcube_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.fits
.....................!
real 193.49
user 187.74
sys 5.34

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/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.fits scfile=/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits outfile=/scratch/kocevski/230850/cmap_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.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.40
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.fits scfile=/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits outfile=/scratch/kocevski/230850/cmap_HighResolution_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.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.55
user 0.37
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.fits evtable="EVENTS" scfile=/scratch/kocevski/230850/ft2_4FGL_J1408.9-0751_daily_bin1507.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/230850/Model_4FGL_J1408.9-0751_daily_bin1507.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/230850/ft1_filtered_4FGL_J1408.9-0751_daily_bin1507.fits.....................!
real 52.12
user 50.54
sys 1.39

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

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 '    .10583E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .85580       1.0000         .10000E-03   10000.    
     4 'norm      '    14.087       1.0000         .10000E-03   10000.    
     5 'norm      '    1.7155       1.0000         .10000E-03   10000.    
     6 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    9.1635       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10214E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10315E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    1.9466       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .74584E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    23.347       1.0000         .10000E-03   10000.    
    14 'Prefactor '    15.081       1.0000         .10000E-03   10000.    
    15 'norm      '    30.551       1.0000         .10000E-03   10000.    
    16 'norm      '    5.9656       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10399E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10091E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    13.077       1.0000         .10000E-03   10000.    
    20 'Prefactor '    .10168E-03   1.0000         .10000E-03   10000.    
    21 'Prefactor '    .78056       1.0000         .10000E-03   10000.    
    22 'Normalizat'    .81323       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1513       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   6244.067     FROM MIGRAD    STATUS=CONVERGED    944 CALLS     2956 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    5.1626        .17438E-02** at limit **
   2  Prefactor     .10000E-03    11.367        .18142E-02** at limit **
   3  norm          .85621        1.8943        .14660E-03   -.21426E-03
   4  norm          14.089        6.5869        .10609E-03   -.18507E-03
   5  norm          1.7077        17.422        .32083E-03   -.30084E-04
   6  norm          .10000E-03    9.2793        .18142E-02** at limit **
   7  norm          9.1636        6.4947        .13240E-03   -.30655E-04
   8  Prefactor     .10000E-03    2.0008        .10883E-02** at limit **
   9  Prefactor     .10000E-03    8.7628        .18142E-02** at limit **
  10  Prefactor     .10000E-03    17.677        .18142E-02** at limit **
  11  norm          1.9447        7.0351        .29749E-03   -.10716E-03
  12  Prefactor     .10007E-03    44.573        .37894E-02** at limit **
  13  norm          23.348        4.7485        .74015E-04    .24392E-04
  14  Prefactor     15.116        23.517        .10314E-03    .58421E-05
  15  norm          30.567        17.946        .72489E-04    .33719E-04
  16  norm          5.9654        5.5393        .16440E-03    .87131E-05
  17  Prefactor     .10000E-03    15.579        .18142E-02** at limit **
  18  Prefactor     .10000E-03    29.773        .18142E-02** at limit **
  19  norm          13.103        26.517        .11077E-03   -.21246E-04
  20  Prefactor     .10000E-03    4.3191        .15980E-02** at limit **
  21  Prefactor     .57672        79.588        .20098        .18574E-03
  22  Normalizat    .81318        .28348        .39015E-03   -.13492E-04
  23  Prefactor     1.1513        .15377        .18704E-03   -.16776E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.856211
  norm       = 14.0888
  norm       = 1.70768
  norm       = 0.0001
  norm       = 9.16363
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 1.94465
  Prefactor  = 0.000100072
  norm       = 23.3477
  Prefactor  = 15.1162
  norm       = 30.5673
  norm       = 5.96537
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 13.1029
  Prefactor  = 0.0001
  Prefactor  = 0.576719
  Normalizat = 0.813176
  Prefactor  = 1.15134
 **********
 **   18 **HESSE 
 **********

 FCN=   6244.067     FROM HESSE     STATUS=OK           356 CALLS     3312 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    5.1648        .34876E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    11.367        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .85621        1.8937        .58641E-05   -1.5523    
   4  norm          14.089        6.5695        .42435E-05   -1.4957    
   5  norm          1.7077        17.324        .12833E-04   -1.5447    
   6  norm          .10000E-03    9.2794        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          9.1636        6.4948        .52959E-05   -1.5102    
   8  Prefactor     .10000E-03    2.0009        .21765E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    8.7634        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    17.677        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          1.9447        7.0338        .11900E-04   -1.5429    
  12  Prefactor     .10007E-03    45.245        .75788E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          23.348        4.7484        .14803E-04   -1.4741    
  14  Prefactor     15.116        23.518        .41255E-05   -1.4930    
  15  norm          30.567        17.946        .28996E-05   -1.4602    
  16  norm          5.9654        5.5392        .65761E-05   -1.5219    
  17  Prefactor     .10000E-03    15.581        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    29.776        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          13.103        26.524        .44307E-05   -1.4984    
  20  Prefactor     .10000E-03    4.3194        .31959E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  21  Prefactor     .57672        80.556        .19922       -1.5556    
  22  Normalizat    .81318        .28358        .15606E-04   -.99582    
  23  Prefactor     1.1513        .15389        .74815E-05   -.87842    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.80886e-09
Minuit parameter uncertainties:
  1  6.08153e-06
  2  3.8796e-05
  3  1.8938
  4  6.56987
  5  10.8819
  6  8.13247e-07
  7  6.49529
  8  8.60052e-06
  9  6.71668e-06
  10  9.21852e-06
  11  7.03677
  12  0.00361644
  13  4.74846
  14  23.5325
  15  17.9489
  16  5.53971
  17  2.0953e-05
  18  0.000193755
  19  26.5477
  20  3.35245e-05
  21  13.6496
  22  0.284101
  23  0.153949
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  2.335e+01  4.748e+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.151e+00  1.539e-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:  8.132e-01  2.841e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 86.92
Ra Dec: 212.236 -7.857
Photon Index (Fixed Index): 2.33 +/- 0.00
Photon Flux (Fixed Index): 3.75e-07 +/- 7.62e-08
Energy Flux (Fixed Index): 1.40e-04 +/- 2.84e-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) = 6241.17217789
delta logL = 2.8944865669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6241.1388895
delta logL = 2.92777495864

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    32.299       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8642       1.0000          .0000       5.0000    
     3 'Normalizat'    .91330       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1204       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=   6241.139     FROM MIGRAD    STATUS=CONVERGED     52 CALLS      239 TOTAL
                     EDM=   .75E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          32.299        9.0065        .17626E-02    .18605E-02
   2  alpha         1.8641        .23071        .12794        .38791E-04
   3  Normalizat    .91314        .23811        .83917E-01    .21487E-04
   4  Prefactor     1.1205        .13158        .36859E-01   -.15412E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 32.2994
  alpha      = 1.86408
  Normalizat = 0.913141
  Prefactor  = 1.12045
 **********
 **   18 **HESSE 
 **********

 FCN=   6241.139     FROM HESSE     STATUS=OK            31 CALLS      270 TOTAL
                     EDM=   .55E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          32.299        7.1886        .70505E-04   -1.4571    
   2  alpha         1.8641        .18916        .54994E-02   -.25720    
   3  Normalizat    .91314        .26798        .37155E-03   -.96000    
   4  Prefactor     1.1205        .14876        .18943E-03   -.88815    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.52092e-10
Minuit parameter uncertainties:
  1  7.18883
  2  0.189354
  3  0.268374
  4  0.148819
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/230850': 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) = 6241.13888881
delta logL = 2.92777564705

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  3.230e+01  7.189e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.864e+00  1.894e-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.120e+00  1.488e-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:  9.131e-01  2.684e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 92.28
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 1.86 +/- 0.19
Photon Flux (Free Index): 2.69e-07 +/- 7.35e-08
Energy Flux (Free Index): 2.23e-04 +/- 7.28e-05

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/230850/cmap_HighResolution_629942401_630201601_4FGL_J1408.9-0751_daily_bin1507.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='3.75e-07', energy_flux2='2.23e-04', photon_flux_error='7.62e-08', dlogl='2.93e+00', energy_flux='1.40e-04', photon_flux2='2.69e-07', job_status='DONE', time_completed='2021-09-09 03:42:42.412006', photon_index_error2='0.19', photon_index2='1.86', ts='86.92', fit_tolerance='1e-08', GAL='1.15', photon_index_error='0.00', energy_flux_error2='7.28e-05', EG='0.81', time_epoch_completed='1631184162.41', return_code='0', job_id='230850', GAL2='1.12', EG2='0.91', return_code2='0', energy_flux_error='2.84e-05', photon_flux_error2='7.35e-08', ts2='92.28', photon_index='2.33' WHERE bin_id='1507' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:42:42 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0111>
Subject: Job 230850: <4FGL_J1408.9-0751_daily_bin1507> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin1507> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:30:21 2021
Job was executed on host(s) <bullet0111>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:30:22 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:30:22 2021
Terminated at Thu Sep  9 03:42:43 2021
Results reported at Thu Sep  9 03:42:43 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin1507 212.236 -7.8575 629942401 630201601 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 :                                   588.44 sec.
    Max Memory :                                 1093 MB
    Average Memory :                             278.76 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   741 sec.
    Turnaround time :                            742 sec.

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

