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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin1071
RA = 212.236, Dec = -7.8575
tmin = 516931201, tmax = 517190401
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='228435', job_status='RUN', time_executed='2021-09-09 03:24:23.883890', time_epoch_executed='1631183063.88' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='1071'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228435

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228435/ft1_4FGL_J1408.9-0751_daily_bin1071.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228435/ft1_4FGL_J1408.9-0751_daily_bin1071.fits outfile=/scratch/kocevski/228435/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin1071.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=516931201.0 tmax=517190401.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.92
user 3.71
sys 0.20

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/228435/ft1_filtered_4FGL_J1408.9-0751_daily_bin1071.fits" evtable="EVENTS" scfile=/scratch/kocevski/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits sctable="SC_DATA" outfile=/scratch/kocevski/228435/ltcube_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.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/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits
.....................!
real 11.61
user 11.25
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228435/ft1_filtered_4FGL_J1408.9-0751_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits sctable="SC_DATA" expcube=/scratch/kocevski/228435/ltcube_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.fits outfile=/scratch/kocevski/228435/expmap_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.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/228435/ltcube_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.fits
.....................!
real 190.70
user 185.34
sys 5.00

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/228435/ft1_filtered_4FGL_J1408.9-0751_daily_bin1071.fits scfile=/scratch/kocevski/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits outfile=/scratch/kocevski/228435/cmap_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.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.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228435/ft1_filtered_4FGL_J1408.9-0751_daily_bin1071.fits scfile=/scratch/kocevski/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits outfile=/scratch/kocevski/228435/cmap_HighResolution_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.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.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228435/ft1_filtered_4FGL_J1408.9-0751_daily_bin1071.fits evtable="EVENTS" scfile=/scratch/kocevski/228435/ft2_4FGL_J1408.9-0751_daily_bin1071.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228435/Model_4FGL_J1408.9-0751_daily_bin1071.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/228435/ft1_filtered_4FGL_J1408.9-0751_daily_bin1071.fits.....................!
real 57.65
user 56.15
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .16482E-02   1.0000         .10000E-03   10000.    
     2 'Prefactor '    .10107E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    2.7183       1.0000         .10000E-03   10000.    
     4 'norm      '    .59253       1.0000         .10000E-03   10000.    
     5 'norm      '    .42962E-02   1.0000         .10000E-03   10000.    
     6 'norm      '    16.571       1.0000         .10000E-03   10000.    
     7 'norm      '    4.2462       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    43.488       1.0000         .10000E-03   10000.    
    10 'Prefactor '    69.239       1.0000         .10000E-03   10000.    
    11 'norm      '    4.3703       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .50898E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    19.201       1.0000         .10000E-03   10000.    
    15 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    30.738       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10008E-03   1.0000         .10000E-03   10000.    
    18 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    19 'norm      '    9.1248       1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2434       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    .56155       1.0000         .10000E-01   10.000    
    23 'Prefactor '    1.1033       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=   7299.064     FROM MIGRAD    STATUS=CONVERGED    938 CALLS     3037 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    53.983        .38937E-02** at limit **
   2  Prefactor     .10000E-03    8.6076        .18142E-02** at limit **
   3  norm          2.7178        1.7269        .83750E-04    .17321E-04
   4  norm          .59103        4.8865        .29386E-03    .38687E-04
   5  norm          .10000E-03    8.9713        .53532E-01** at limit **
   6  norm          16.562        26.208        .98388E-04    .29465E-04
   7  norm          4.2454        4.7256        .18789E-03   -.80537E-04
   8  Prefactor     .10000E-03    2.3786        .12780E-02** at limit **
   9  Prefactor     43.485        25.660        .60793E-04    .26742E-04
  10  Prefactor     69.226        44.732        .48240E-04    .50669E-04
  11  norm          4.3682        5.6629        .19267E-03   -.36077E-03
  12  Prefactor     .10000E-03    8.4800        .18142E-02** at limit **
  13  norm          .10000E-03    5.3630        .27768E-01** at limit **
  14  Prefactor     19.196        25.298        .91404E-04    .47388E-04
  15  norm          .10000E-03    13.834        .18142E-02** at limit **
  16  norm          30.746        10.184        .72269E-04    .12270E-04
  17  Prefactor     .10000E-03    11.692        .18142E-02** at limit **
  18  Prefactor     .10000E-03    13.784        .18142E-02** at limit **
  19  norm          9.1265        12.585        .13268E-03    .23906E-04
  20  Prefactor     1.2435        2.7350        .20734E-03   -.20819E-03
  21  Prefactor     .10000E-03    29.969        .18142E-02** at limit **
  22  Normalizat    .56174        .24023        .40879E-03   -.19384E-04
  23  Prefactor     1.1032        .12711        .16716E-03   -.22820E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.71779
  norm       = 0.591035
  norm       = 0.0001
  norm       = 16.562
  norm       = 4.24545
  Prefactor  = 0.0001
  Prefactor  = 43.4852
  Prefactor  = 69.226
  norm       = 4.36822
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 19.1958
  norm       = 0.0001
  norm       = 30.7461
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 9.12649
  Prefactor  = 1.24346
  Prefactor  = 0.0001
  Normalizat = 0.561744
  Prefactor  = 1.10319
 **********
 **   18 **HESSE 
 **********

 FCN=   7299.064     FROM HESSE     STATUS=OK           366 CALLS     3403 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    55.113        .77874E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     .10000E-03    8.6083        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          2.7178        1.7264        .16750E-04   -1.5378    
   4  norm          .59103        4.8135        .11754E-04   -1.5554    
   5  norm          .10000E-03    8.3252        .55734E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  norm          16.562        26.201        .39355E-05   -1.4894    
   7  norm          4.2454        4.7253        .75154E-05   -1.5296    
   8  Prefactor     .10000E-03    2.3791        .25559E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     43.485        25.652        .24317E-05   -1.4388    
  10  Prefactor     69.226        44.730        .96480E-05   -1.4042    
  11  norm          4.3682        5.6626        .77066E-05   -1.5290    
  12  Prefactor     .10000E-03    8.4818        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    2.8331        .40112E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     19.196        25.295        .36562E-05   -1.4831    
  15  norm          .10000E-03    13.844        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          30.746        10.155        .28908E-05   -1.4598    
  17  Prefactor     .10000E-03    11.695        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Prefactor     .10000E-03    13.788        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  norm          9.1265        12.585        .53072E-05   -1.5104    
  20  Prefactor     1.2435        2.7348        .82937E-05   -1.5485    
  21  Prefactor     .10000E-03    29.970        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    .56174        .23963        .16352E-04   -1.0963    
  23  Prefactor     1.1032        .12705        .33432E-04   -.89365    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.43478e-10
Minuit parameter uncertainties:
  1  2.9372e-05
  2  1.05028e-05
  3  1.72648
  4  3.37346
  5  2.3149e-05
  6  26.2192
  7  4.72572
  8  2.65307e-05
  9  25.6584
  10  44.7517
  11  5.66325
  12  3.88456e-05
  13  1.64075e-05
  14  25.3086
  15  3.28775e-05
  16  10.1558
  17  1.26832e-05
  18  1.33816e-06
  19  12.5888
  20  2.73507
  21  4.867e-05
  22  0.240073
  23  0.127081
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  1.641e-05  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.103e+00  1.271e-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:  5.617e-01  2.401e-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: 1.06e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.96e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228435/likelihoodResults_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.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) = 7299.0637412
delta logL = -4.76271798107e-05

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7293.48425238
delta logL = 5.57944119809

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .68936E-01   1.0000         .10000E-03   10000.    
     2 'alpha     '    5.0000       1.0000          .0000       5.0000    
     3 'Normalizat'    .29539       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1942       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.
 MACHINE ACCURACY LIMITS FURTHER IMPROVEMENT.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   7293.484     FROM MIGRAD    STATUS=CONVERGED     91 CALLS      355 TOTAL
                     EDM=   .32E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .68944E-01    .27137E-01    .40550E-04   -.18095E-02
   2  alpha         5.0000        .75035        .27712E-01** at limit **
   3  Normalizat    .29535        .23079        .55386E-03   -.78410E-05
   4  Prefactor     1.1943        .12726        .16092E-03   -.18933E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0689437
  alpha      = 5
  Normalizat = 0.295348
  Prefactor  = 1.19426
 **********
 **   18 **HESSE 
 **********

 FCN=   7293.484     FROM HESSE     STATUS=OK            23 CALLS      378 TOTAL
                     EDM=   .33E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .68944E-01    .26847E-01    .16220E-05   -1.5655    
   2  alpha         5.0000        .75038        .55425E-02    1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    .29535        .23064        .22154E-04   -1.2312    
   4  Prefactor     1.1943        .12719        .64369E-05   -.86508    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.30735e-12
Minuit parameter uncertainties:
  1  0.0268466
  2  5.36067e-08
  3  0.231388
  4  0.127219
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228435': 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) = 7293.4842521
delta logL = 5.57944147433

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  6.894e-02  2.685e-02  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  5.000e+00  5.361e-08  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.194e+00  1.272e-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:  2.953e-01  2.314e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 12.57
Ra Dec: 212.236 -7.857
Photon Index (Free Index): 5.00 +/- 0.00
Photon Flux (Free Index): 2.02e-07 +/- 7.81e-08
Energy Flux (Free Index): 2.75e-05 +/- 1.07e-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/228435/cmap_HighResolution_516931201_517190401_4FGL_J1408.9-0751_daily_bin1071.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.96e-05', comment='SUCCESS', energy_flux2='2.75e-05', dlogl='5.58e+00', photon_flux2='2.02e-07', job_status='DONE', time_completed='2021-09-09 03:36:36.865508', photon_index_error2='0.00', photon_index2='5.00', ts='-0.00', fit_tolerance='1e-08', GAL='1.10', photon_index_error='0.00', photon_flux_upper_limit='1.06e-07', energy_flux_error2='1.07e-05', EG='0.56', time_epoch_completed='1631183796.87', return_code='0', job_id='228435', GAL2='1.19', EG2='0.30', return_code2='0', photon_flux_error2='7.81e-08', ts2='12.57', photon_index='2.33' WHERE bin_id='1071' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:36:36 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0047>
Subject: Job 228435: <4FGL_J1408.9-0751_daily_bin1071> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin1071> was submitted from host <rhel6-64h> by user <kocevski> in cluster <slac> at Thu Sep  9 03:20:37 2021
Job was executed on host(s) <bullet0047>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:20:39 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:20:39 2021
Terminated at Thu Sep  9 03:36:37 2021
Results reported at Thu Sep  9 03:36:37 2021

Your job looked like:

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

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

