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


Performing analysis on: 4FGL_J1408.9-0751_daily_bin936
RA = 212.236, Dec = -7.8575
tmin = 481939201, tmax = 482198401
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='227076', job_status='RUN', time_executed='2021-09-09 03:18:38.775650', time_epoch_executed='1631182718.78' WHERE source_name='4FGL J1408.9-0751' and cadence='daily' and bin_id='936'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/227076

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/227076/ft1_4FGL_J1408.9-0751_daily_bin936.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/227076/ft1_4FGL_J1408.9-0751_daily_bin936.fits outfile=/scratch/kocevski/227076/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin936.fits ra=212.236 dec=-7.8575 rad=12.0 tmin=481939201.0 tmax=482198401.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 2.96
user 2.78
sys 0.17

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.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/227076/ft1_filteredMKT_4FGL_J1408.9-0751_daily_bin936.fits evtable="EVENTS" outfile="/scratch/kocevski/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.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.46
user 0.28
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.fits" evtable="EVENTS" scfile=/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits sctable="SC_DATA" outfile=/scratch/kocevski/227076/ltcube_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.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/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits
.....................!
real 10.13
user 9.76
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits sctable="SC_DATA" expcube=/scratch/kocevski/227076/ltcube_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.fits outfile=/scratch/kocevski/227076/expmap_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.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/227076/ltcube_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.fits
.....................!
real 155.70
user 151.23
sys 3.95

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/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.fits scfile=/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits outfile=/scratch/kocevski/227076/cmap_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.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.50
user 0.34
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.fits scfile=/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits outfile=/scratch/kocevski/227076/cmap_HighResolution_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.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.49
user 0.33
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.fits evtable="EVENTS" scfile=/scratch/kocevski/227076/ft2_4FGL_J1408.9-0751_daily_bin936.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/227076/Model_4FGL_J1408.9-0751_daily_bin936.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/227076/ft1_filtered_4FGL_J1408.9-0751_daily_bin936.fits.....................!
real 50.13
user 48.91
sys 1.02

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .11907E-01   1.0000         .10000E-03   10000.    
     2 'Prefactor '    33.681       1.0000         .10000E-03   10000.    
     3 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
     4 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
     5 'norm      '    6.1631       1.0000         .10000E-03   10000.    
     6 'norm      '    .10107E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10037E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    1.0784       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10345E-03   1.0000         .10000E-03   10000.    
    10 'Prefactor '    .10016E-03   1.0000         .10000E-03   10000.    
    11 'norm      '    .10002E-03   1.0000         .10000E-03   10000.    
    12 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    13 'norm      '    .10283E-02   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10081E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .11043E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    1.8777       1.0000         .10000E-03   10000.    
    17 'Prefactor '    15.728       1.0000         .10000E-03   10000.    
    18 'Prefactor '    .95234       1.0000         .10000E-03   10000.    
    19 'norm      '    .17396       1.0000         .10000E-03   10000.    
    20 'Prefactor '    13.965       1.0000         .10000E-03   10000.    
    21 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
    22 'Normalizat'    1.0988       1.0000         .10000E-01   10.000    
    23 'Prefactor '    .98246       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=   7817.352     FROM MIGRAD    STATUS=CONVERGED    555 CALLS     2666 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10027E-03    6.8521       -.93318E-06** at limit **
   2  Prefactor     33.683        20.449        .13220E-05    .43903E-03
   3  norm          .10000E-03    .57313        .33953E-08** at limit **
   4  norm          .10000E-03    2.2491       -.85879E-06** at limit **
   5  norm          6.1749        6.7103       -.71752E-06   -.22331E-03
   6  norm          .10000E-03    10.788        .13333E-05** at limit **
   7  norm          .10000E-03    2.9403       -.20045E-07** at limit **
   8  Prefactor     1.0836        3.8984        .16007E-05   -.39332E-04
   9  Prefactor     .10000E-03    9.3058       -.10021E-05** at limit **
  10  Prefactor     .10000E-03    13.172       -.31804E-05** at limit **
  11  norm          .10000E-03    1.5758       -.43036E-07** at limit **
  12  Prefactor     .10000E-03    14.354        .74593E-06** at limit **
  13  norm          .10058E-03    .87754        .58111E-06** at limit **
  14  Prefactor     .10000E-03    11.214        .83273E-06** at limit **
  15  norm          .10000E-03    5.3558       -.37385E-07** at limit **
  16  norm          1.8754        4.8387        .53931E-06   -.20335E-03
  17  Prefactor     15.732        17.663       -.59702E-07   -.22147E-04
  18  Prefactor     .94833        10.287       -.10403E-05    .81208E-04
  19  norm          .22876        5.0960        .87299E-06   -.37913E-03
  20  Prefactor     13.962        6.1970        .23442E-06    .19984E-03
  21  Prefactor     .10001E-03    67.011        .51370E-05** at limit **
  22  Normalizat    1.0991        .19702        .28050E-06    .13967E-03
  23  Prefactor     .98236        .10620       -.14639E-06    .18070E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100269
  Prefactor  = 33.6835
  norm       = 0.0001
  norm       = 0.000100003
  norm       = 6.17494
  norm       = 0.000100001
  norm       = 0.0001
  Prefactor  = 1.08358
  Prefactor  = 0.0001
  Prefactor  = 0.000100003
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 0.000100579
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 1.87539
  Prefactor  = 15.7316
  Prefactor  = 0.948331
  norm       = 0.228758
  Prefactor  = 13.9621
  Prefactor  = 0.000100008
  Normalizat = 1.09907
  Prefactor  = 0.982359
 **********
 **   18 **HESSE 
 **********

 FCN=   7817.352     FROM HESSE     STATUS=OK           382 CALLS     3048 TOTAL
                     EDM=   .28E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10027E-03    10.155        .67556E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  Prefactor     33.683        19.965        .69048E-04   -1.4547    
   3  norm          .10000E-03    .59064        .13050E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  norm          .10000E-03    6.3084        .21715E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  norm          6.1749        6.6936        .16171E-03   -1.5211    
   6  norm          .10000E-03    10.861        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.9942        .14802E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     1.0836        3.9279        .31247E-03   -1.5500    
   9  Prefactor     .10000E-03    9.3716        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  Prefactor     .10000E-03    13.608        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  norm          .10000E-03    1.5789        .10838E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  Prefactor     .10000E-03    14.605        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  norm          .10058E-03    21.204        .14918E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.311        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    5.3866        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          1.8754        4.8582        .30319E-03   -1.5434    
  17  Prefactor     15.732        17.643        .10099E-03   -1.4914    
  18  Prefactor     .94833        46.032        .53947E-02   -1.5513    
  19  norm          .22876        41.580        .37929E-02   -1.5612    
  20  Prefactor     13.962        6.1744        .10718E-03   -1.4960    
  21  Prefactor     .10001E-03    67.646        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  22  Normalizat    1.0991        .23176        .31682E-03   -.89782    
  23  Prefactor     .98236        .12617        .18308E-03   -.93320    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.83452e-08
Minuit parameter uncertainties:
  1  0.00330392
  2  19.9688
  3  2.63529e-07
  4  0.000281228
  5  6.69437
  6  0.000161316
  7  1.42543e-06
  8  3.92883
  9  0.000116643
  10  0.000432846
  11  4.02362e-06
  12  8.83832e-05
  13  0.00701002
  14  9.6865e-05
  15  4.30749e-06
  16  4.85922
  17  17.6493
  18  13.2242
  19  6.17123
  20  6.1747
  21  0.00144414
  22  0.231971
  23  0.126208
Done.

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

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  1.006e-04  7.010e-03  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:  9.824e-01  1.262e-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.099e+00  2.320e-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: 6.94e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.59e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/227076/likelihoodResults_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.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) = 7817.35208532
delta logL = -0.000232154315199

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 7817.3219796
delta logL = 0.0298735694369

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .51974       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8152       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0995       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .98014       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=   7817.322     FROM MIGRAD    STATUS=CONVERGED     90 CALLS      297 TOTAL
                     EDM=   .53E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .51973        2.5342        .26133E-03    .15235E-03
   2  alpha         1.8157        1.2692        .38059E-01    .11959E-04
   3  Normalizat    1.0996        .22270        .31673E-03   -.69275E-05
   4  Prefactor     .98015        .12352        .18324E-03   -.20101E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.519728
  alpha      = 1.81569
  Normalizat = 1.09957
  Prefactor  = 0.980153
 **********
 **   18 **HESSE 
 **********

 FCN=   7817.322     FROM HESSE     STATUS=OK            25 CALLS      322 TOTAL
                     EDM=   .50E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .51973        2.3981        .10453E-04   -1.5564    
   2  alpha         1.8157        1.2400        .15224E-02   -.27726    
   3  Normalizat    1.0996        .22289        .12669E-04   -.89766    
   4  Prefactor     .98015        .12360        .73297E-05   -.93394    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.95701e-11
Minuit parameter uncertainties:
  1  2.23273
  2  1.30283
  3  0.223083
  4  0.123638
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/227076': 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) = 7817.32197926
delta logL = 0.0298739113859

Extracting fit parameters...

4FGL J1408.9-0751
   Spectrum: LogParabola
290         norm:  5.197e-01  2.233e+00  1.000e-04  1.000e+04 ( 1.000e-12)
291        alpha:  1.816e+00  1.303e+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:  9.802e-01  1.236e-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.100e+00  2.231e-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 -1.000e-01 [aplpy.core]
INFO: Auto-setting vmax to  1.110e+00 [aplpy.core]
Saving /scratch/kocevski/227076/cmap_HighResolution_481939201_482198401_4FGL_J1408.9-0751_daily_bin936.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.59e-05', job_status='DONE', photon_flux_upper_limit='6.94e-08', time_completed='2021-09-09 03:28:18.988007', job_id='227076', GAL2='0.98', fit_tolerance='1e-08', EG2='1.10', EG='1.10', time_epoch_completed='1631183298.99', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.98', dlogl='2.99e-02', ts2='0.06', photon_index_error='0.00', photon_index='2.33' WHERE bin_id='936' AND source_name='4FGL J1408.9-0751' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Thu Sep  9 03:28:19 PDT 2021


------------------------------------------------------------
Sender: LSF System <scs@bullet0168>
Subject: Job 227076: <4FGL_J1408.9-0751_daily_bin936> in cluster <slac> Done

Job <4FGL_J1408.9-0751_daily_bin936> was submitted from host <rhel6-64k> by user <kocevski> in cluster <slac> at Thu Sep  9 03:15:51 2021
Job was executed on host(s) <bullet0168>, in queue <medium>, as user <kocevski> in cluster <slac> at Thu Sep  9 03:15:53 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:15:53 2021
Terminated at Thu Sep  9 03:28:19 2021
Results reported at Thu Sep  9 03:28:19 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1408.9-0751_daily_bin936 212.236 -7.8575 481939201 482198401 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 :                                   576.28 sec.
    Max Memory :                                 1256 MB
    Average Memory :                             253.57 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   746 sec.
    Turnaround time :                            748 sec.

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

