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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1449
RA = 285.743, Dec = -67.8068
tmin = 614908801, tmax = 615168001
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='499512', job_status='RUN', time_executed='2021-09-21 22:27:43.976094', time_epoch_executed='1632288463.98' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1449'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499512

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499512/ft1_4FGL_J1902.9-6748_daily_bin1449.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499512/ft1_4FGL_J1902.9-6748_daily_bin1449.fits outfile=/scratch/kocevski/499512/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1449.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=614908801.0 tmax=615168001.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.58
user 3.34
sys 0.23

Adding sun position to ft2 file:
/nfs/farm/g/glast/g/LCRepository/Repository/bin/sunpos /scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.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/499512/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1449.fits evtable="EVENTS" outfile="/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.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.33
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits" evtable="EVENTS" scfile=/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits sctable="SC_DATA" outfile=/scratch/kocevski/499512/ltcube_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.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/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits
.....................!
real 12.63
user 12.26
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits sctable="SC_DATA" expcube=/scratch/kocevski/499512/ltcube_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.fits outfile=/scratch/kocevski/499512/expmap_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.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/499512/ltcube_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.fits
.....................!
real 190.81
user 185.58
sys 4.70

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
Extended source FHES J1642.1-5428 in ROI with RadialDisk spatial model.
Added 217 point sources and 1 extended sources
If using unbinned likelihood you will need to rerun gtdiffrsp for the extended sources or rerun the makeModel function with optional argument psForce=True

Setting source of interest to:
4FGL J1902.9-6748 @ 285.743 -67.8068

Creating the counts map:
time -p gtbin evfile=/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits scfile=/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits outfile=/scratch/kocevski/499512/cmap_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.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=285.743 yref=-67.8068 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.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits scfile=/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits outfile=/scratch/kocevski/499512/cmap_HighResolution_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.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=285.743 yref=-67.8068 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.39
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits evtable="EVENTS" scfile=/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/499512/Model_4FGL_J1902.9-6748_daily_bin1449.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 FHES J1642.1-5428
adding source GAL_V02
Working on...
/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits.....................!
real 82.04
user 80.61
sys 1.16

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits', '/scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits', expMap='/scratch/kocevski/499512/expmap_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.fits', expCube='/scratch/kocevski/499512/ltcube_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/499512/Model_4FGL_J1902.9-6748_daily_bin1449.xml', optimizer='MINUIT')

Using source of interest name: '4FGL J1902.9-6748'

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.756e+00  0.000e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed


Likelihood Fit Parameters:
Event file(s): /scratch/kocevski/499512/ft1_filtered_4FGL_J1902.9-6748_daily_bin1449.fits
Spacecraft file(s): /scratch/kocevski/499512/ft2_4FGL_J1902.9-6748_daily_bin1449.fits
Exposure map: /scratch/kocevski/499512/expmap_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.fits
Exposure cube: /scratch/kocevski/499512/ltcube_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/499512/Model_4FGL_J1902.9-6748_daily_bin1449.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) = 8963.89352422

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    84.758       1.0000         .10000E-03   10000.    
     2 'norm      '    6.2569       1.0000         .10000E-03   10000.    
     3 'norm      '    94.575       1.0000         .10000E-03   10000.    
     4 'Prefactor '    4.7479       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10089E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    4.0740       1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10009E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    141.56       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10080E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    2.9990       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    2.6416       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0466       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91351       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 FCN=   8963.892     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1840 TOTAL
                     EDM=   .23E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     84.754        113.80        .63529E-06   -.59073E-06
   2  norm          6.2569        6.0165        .29879E-06   -.25911E-05
   3  norm          94.575        75.415        .39283E-07   -.73650E-06
   4  Prefactor     4.7478        5.9272       -.48369E-07   -.73376E-05
   5  Prefactor     .10000E-03    21.983        .19631E-05** at limit **
   6  Prefactor     4.0709        11.081       -.47900E-06   -.11409E-03
   7  norm          .10000E-03    .24779       -.11287E-09** at limit **
   8  Prefactor     .10000E-03    15.849        .85562E-06** at limit **
   9  Prefactor     .10000E-03    44.102        .23221E-05** at limit **
  10  norm          .10000E-03    13.972       -.12534E-05** at limit **
  11  Prefactor     .10000E-03    26.404       -.97118E-06** at limit **
  12  norm          141.56        20.468       -.63951E-07    .20827E-04
  13  Prefactor     .10000E-03    9.3980        .60726E-07** at limit **
  14  Prefactor     .10000E-03    11.613        .39365E-06** at limit **
  15  norm          2.9990        1.8956        .25752E-07    .19748E-05
  16  norm          .10000E-03    29.953       -.27936E-05** at limit **
  17  Prefactor     2.6417        10.313        .56402E-05   -.49882E-05
  18  Normalizat    1.0466        .24369       -.86177E-06   -.15936E-04
  19  Prefactor     .91351        .87302E-01    .11556E-06   -.59643E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 84.7542
  norm       = 6.2569
  norm       = 94.5748
  Prefactor  = 4.74779
  Prefactor  = 0.0001
  Prefactor  = 4.07092
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 141.565
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 2.99904
  norm       = 0.0001
  Prefactor  = 2.6417
  Normalizat = 1.04657
  Prefactor  = 0.91351
 **********
 **   18 **HESSE 
 **********

 FCN=   8963.892     FROM HESSE     STATUS=OK           260 CALLS     2100 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     84.754        113.81        .43634E-04   -1.3864    
   2  norm          6.2569        6.0151        .16048E-03   -1.5208    
   3  norm          94.575        75.447        .41328E-04   -1.3760    
   4  Prefactor     4.7478        5.9260        .18466E-03   -1.5272    
   5  Prefactor     .10000E-03    22.116        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     4.0709        11.093        .19975E-03   -1.5304    
   7  norm          .10000E-03    .25940        .92013E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    15.850        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    44.107        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.007        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    26.404        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          141.56        20.473        .33860E-04   -1.3323    
  13  Prefactor     .10000E-03    9.4815        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.626        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          2.9990        1.8925        .98051E-04   -1.5362    
  16  norm          .10000E-03    29.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     2.6417        10.316        .12543E-02   -1.5383    
  18  Normalizat    1.0466        .28746        .41208E-03   -.91486    
  19  Prefactor     .91351        .10399        .16010E-03   -.95671    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.65167e-10
Minuit parameter uncertainties:
  1  114.102
  2  6.01566
  3  75.5233
  4  5.9267
  5  1.47838e-05
  6  11.0985
  7  1.8368e-08
  8  3.27122e-06
  9  1.58769e-05
  10  2.10273e-05
  11  4.82135e-06
  12  20.474
  13  1.37562e-05
  14  1.38234e-06
  15  1.89252
  16  2.12359e-05
  17  10.3233
  18  0.287887
  19  0.104013
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.416e+02  2.047e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  9.135e-01  1.040e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.047e+00  2.879e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 172.15
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 5.72e-07 +/- 8.27e-08
Energy Flux (Fixed Index): 1.93e-04 +/- 2.79e-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) = 8961.83418219
delta logL = 2.05793193669

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8961.52752517
delta logL = 2.36458895384

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    159.70       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9773       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1596       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88701       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8961.528     FROM MIGRAD    STATUS=CONVERGED     50 CALLS      221 TOTAL
                     EDM=   .15E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          159.70        25.923        .79772E-03    .52180E-03
   2  alpha         1.9773        .15955        .12309       -.18033E-04
   3  Normalizat    1.1596        .23911        .89155E-01   -.33791E-04
   4  Prefactor     .88702        .86362E-01    .44839E-01   -.18553E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 159.697
  alpha      = 1.97733
  Normalizat = 1.15961
  Prefactor  = 0.887015
 **********
 **   18 **HESSE 
 **********

 FCN=   8961.528     FROM HESSE     STATUS=OK            27 CALLS      248 TOTAL
                     EDM=   .13E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          159.70        24.025        .31909E-04   -1.3174    
   2  alpha         1.9773        .14984        .53679E-03   -.21062    
   3  Normalizat    1.1596        .28569        .39484E-03   -.87860    
   4  Prefactor     .88702        .10340        .16230E-03   -.96596    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.31529e-10
Minuit parameter uncertainties:
  1  24.0265
  2  0.149936
  3  0.286074
  4  0.10342
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499512': 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) = 8961.52752516
delta logL = 2.36458896351

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.597e+02  2.403e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.977e+00  1.499e-01  0.000e+00  5.000e+00 ( 1.000e+00)
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.870e-01  1.034e-01  0.000e+00  1.000e+01 ( 1.000e+00)
737        Index:  0.000e+00  0.000e+00 -1.000e+00  1.000e+00 ( 1.000e+00) fixed
738        Scale:  1.000e+02  0.000e+00  5.000e+01  2.000e+02 ( 1.000e+00) fixed

EG_v02
   Spectrum: FileFunction
732   Normalization:  1.160e+00  2.861e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 176.19
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.98 +/- 0.15
Photon Flux (Free Index): 4.78e-07 +/- 8.39e-08
Energy Flux (Free Index): 2.40e-04 +/- 4.58e-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/499512/cmap_HighResolution_614908801_615168001_4FGL_J1902.9-6748_daily_bin1449.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='5.72e-07', energy_flux2='2.40e-04', photon_flux_error='8.27e-08', dlogl='2.36e+00', energy_flux='1.93e-04', photon_flux2='4.78e-07', job_status='DONE', time_completed='2021-09-21 22:39:59.112826', photon_index_error2='0.15', photon_index2='1.98', ts='172.15', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', energy_flux_error2='4.58e-05', EG='1.05', time_epoch_completed='1632289199.11', return_code='0', job_id='499512', GAL2='0.89', EG2='1.16', return_code2='0', energy_flux_error='2.79e-05', photon_flux_error2='8.39e-08', ts2='176.19', photon_index='2.31' WHERE bin_id='1449' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:39:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0288>
Subject: Job 499512: <4FGL_J1902.9-6748_daily_bin1449> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1449> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 21 22:26:13 2021
Job was executed on host(s) <bullet0288>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:26:14 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 22:26:14 2021
Terminated at Tue Sep 21 22:39:59 2021
Results reported at Tue Sep 21 22:39:59 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1449 285.743 -67.8068 614908801 615168001 irfs=P8R3_SOURCE_V2 zmax=90 ROI=12 association=4FGL_J1902.9-6748 fixedModel=True performFreeIndexFit=True freeVariableSources=True nuke=True repositoryJob=True verbose=False
------------------------------------------------------------

Successfully completed.

Resource usage summary:

    CPU time :                                   731.01 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             289.00 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   825 sec.
    Turnaround time :                            826 sec.

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

