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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin992
RA = 212.236, Dec = -7.8575
tmin = 496454401, tmax = 496713601
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='228305', job_status='RUN', time_executed='2021-09-09 03:20:36.518946', time_epoch_executed='1631182836.52' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='992'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/228305

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/228305/ft1_4FGL_J1408.9-0751_daily_bin992.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/228305/ft1_4FGL_J1408.9-0751_daily_bin992.fits outfile=/scratch/kocevski/228305/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin992.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=496454401.0 tmax=496713601.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.44
user 3.21
sys 0.21

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.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/228305/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin992.fits evtable="EVENTS" outfile="/scratch/kocevski/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.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/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.fits" evtable="EVENTS" scfile=/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits sctable="SC_DATA" outfile=/scratch/kocevski/228305/ltcube_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.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/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits
.....................!
real 11.97
user 11.59
sys 0.35

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits sctable="SC_DATA" expcube=/scratch/kocevski/228305/ltcube_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.fits outfile=/scratch/kocevski/228305/expmap_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.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/228305/ltcube_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.fits
.....................!
real 190.98
user 186.03
sys 4.60

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/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.fits scfile=/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits outfile=/scratch/kocevski/228305/cmap_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.fits scfile=/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits outfile=/scratch/kocevski/228305/cmap_HighResolution_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=212.236 yref=-7.8575 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

WARNING: version mismatch between CFITSIO header (v3.43) and linked library (v3.41).

This is gtbin version HEAD
real 0.54
user 0.39
sys 0.14

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.fits evtable="EVENTS" scfile=/scratch/kocevski/228305/ft2_4FGL_J1408.9-0751_daily_bin992.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/228305/Model_4FGL_J1408.9-0751_daily_bin992.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/228305/ft1_filtered_4FGL_J1408.9-0751_daily_bin992.fits.....................!
real 56.43
user 54.93
sys 1.35

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.8275       1.0000         .10000E-03   10000.    
     2 'Prefactor '    .11002E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    22.169       1.0000         .10000E-03   10000.    
     5 'norm      '    13.426       1.0000         .10000E-03   10000.    
     6 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    12.003       1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    2.1079       1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    26.093       1.0000         .10000E-03   10000.    
    15 'norm      '    14.252       1.0000         .10000E-03   10000.    
    16 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    4.3765       1.0000         .10000E-03   10000.    
    18 'Prefactor '    14.777       1.0000         .10000E-03   10000.    
    19 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
    20 'Prefactor '    1.2708       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10007E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.5932       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .86279       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=   6780.755     FROM MIGRAD    STATUS=CONVERGED    511 CALLS     2607 TOTAL
                     EDM=   .38E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.8262        19.529        .13844E-05    .95838E-05
   2  Prefactor     .10000E-03    95.569       -.33764E-05** at limit **
   3  norm          .10000E-03    .79017        .25191E-07** at limit **
   4  norm          22.177        7.7367       -.78363E-06    .69288E-05
   5  norm          13.425        10.823        .16659E-06   -.29484E-04
   6  norm          .10000E-03    18.819        .68589E-07** at limit **
   7  norm          .10000E-03    9.2960        .14209E-06** at limit **
   8  Prefactor     .10000E-03    3.3050       -.26086E-06** at limit **
   9  Prefactor     11.999        26.160        .25133E-06   -.62099E-05
  10  Prefactor     .10000E-03    60.831        .15226E-05** at limit **
  11  norm          2.1078        5.2000        .92365E-06   -.26966E-04
  12  Prefactor     .10000E-03    4.1038        .40761E-08** at limit **
  13  norm          .10000E-03    1.0399        .10060E-07** at limit **
  14  Prefactor     26.091        23.538        .10455E-06   -.29808E-05
  15  norm          14.251        16.196        .12965E-06    .64367E-06
  16  norm          .10000E-03    3.6169        .13959E-07** at limit **
  17  Prefactor     4.3741        38.690        .56469E-06   -.57257E-05
  18  Prefactor     14.777        24.304        .10387E-05   -.91417E-05
  19  norm          .10000E-03    4.8405       -.25518E-07** at limit **
  20  Prefactor     1.2707        5.3957        .23894E-05   -.19271E-04
  21  Prefactor     .10000E-03    34.936       -.53187E-06** at limit **
  22  Normalizat    1.5933        .24359       -.27503E-06   -.43036E-04
  23  Prefactor     .86277        .12602       -.38384E-06   -.44094E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.82623
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 22.1774
  norm       = 13.4251
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 11.9993
  Prefactor  = 0.000100003
  norm       = 2.10781
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 26.0914
  norm       = 14.2508
  norm       = 0.0001
  Prefactor  = 4.3741
  Prefactor  = 14.7774
  norm       = 0.0001
  Prefactor  = 1.27065
  Prefactor  = 0.0001
  Normalizat = 1.59329
  Prefactor  = 0.862768
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.755     FROM HESSE     STATUS=OK           372 CALLS     2979 TOTAL
                     EDM=   .75E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.8262        19.641        .30878E-03   -1.5438    
   2  Prefactor     .10000E-03    93.948        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    1.6382        .14147E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          22.177        7.6553        .85071E-04   -1.4766    
   5  norm          13.425        10.832        .10932E-03   -1.4975    
   6  norm          .10000E-03    18.835        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    9.7034        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    3.3291        .14597E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     11.999        26.246        .11563E-03   -1.5015    
  10  Prefactor     .10000E-03    62.413        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          2.1078        5.1951        .28418E-03   -1.5418    
  12  Prefactor     .10000E-03    4.1072        .16290E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10000E-03    1.0524        .81963E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     26.091        23.547        .78424E-04   -1.4686    
  15  norm          14.251        16.200        .10610E-03   -1.4953    
  16  norm          .10000E-03    3.6286        .15288E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     4.3741        38.618        .19252E-03   -1.5290    
  18  Prefactor     14.777        24.346        .52096E-03   -1.4939    
  19  norm          .10000E-03    4.8430        .17694E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  20  Prefactor     1.2707        5.4593        .36921E-03   -1.5483    
  21  Prefactor     .10000E-03    35.077        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.5933        .28496        .31145E-03   -.75189    
  23  Prefactor     .86277        .14759        .21295E-03   -.97454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.51982e-11
Minuit parameter uncertainties:
  1  11.9829
  2  0.000175353
  3  5.29271e-06
  4  7.65559
  5  10.8335
  6  2.10913e-05
  7  2.06866e-05
  8  9.30046e-07
  9  26.271
  10  0.000913742
  11  5.1962
  12  9.14002e-07
  13  5.49286e-07
  14  23.555
  15  16.2048
  16  1.3535e-06
  17  26.016
  18  24.3625
  19  2.90144e-06
  20  5.2682
  21  0.000225223
  22  0.285255
  23  0.147657
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  5.493e-07  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.628e-01  1.477e-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.593e+00  2.853e-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.54e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.81e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/228305/likelihoodResults_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.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): 0
logL (Free Index) = 6780.75972475
delta logL = -0.0044771343446

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6780.75524822
delta logL = -5.98465703661e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10105E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3346       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5933       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .86279       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=   6780.755     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      194 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    1.0580        .90712E-02** at limit **
   2  alpha         2.3378        3.5175        .41266       -.15464E-04
   3  Normalizat    1.5933        .23361        .70402E-01    .16494E-04
   4  Prefactor     .86277        .12299        .44529E-01    .36329E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 2.33776
  Normalizat = 1.5933
  Prefactor  = 0.862768
 **********
 **   18 **HESSE 
 **********

 FCN=   6780.755     FROM HESSE     STATUS=OK            33 CALLS      227 TOTAL
                     EDM=   .25E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    1.0545        .81987E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         2.3378        3.5128        .50000       -.64940E-01
   3  Normalizat    1.5933        .27285        .31145E-03   -.75189    
   4  Prefactor     .86277        .14377        .21295E-03   -.97454    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.45671e-10
Minuit parameter uncertainties:
  1  6.06426e-06
  2  2.49668
  3  0.273109
  4  0.143835
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/228305': 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) = 6780.75524758
delta logL = 3.90000423067e-08

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.000e-04  6.064e-06  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  2.338e+00  2.497e+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.628e-01  1.438e-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.593e+00  2.731e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
Ra Dec: 212.236 -7.857

Creating a high resolution counts map...
INFO: Auto-setting vmin to -2.500e-04 [aplpy.core]
INFO: Auto-setting vmax to  2.775e-03 [aplpy.core]
Saving /scratch/kocevski/228305/cmap_HighResolution_496454401_496713601_4FGL_J1408.9-0751_daily_bin992.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.81e-05', job_status='DONE', photon_flux_upper_limit='7.54e-08', time_completed='2021-09-09 03:31:16.096928', job_id='228305', GAL2='0.86', fit_tolerance='1e-08', EG2='1.59', EG='1.59', time_epoch_completed='1631183476.1', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.86', dlogl='3.90e-08', ts2='-0.00', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='992' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:31:16 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0030>
Subject: Job 228305: <4FGL_J1408.9-0751_daily_bin992> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin992 212.236 -7.8575 496454401 496713601 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 :                                   636.22 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             384.80 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   650 sec.
    Turnaround time :                            652 sec.

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

