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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1653
RA = 285.743, Dec = -67.8068
tmin = 667785601, tmax = 668044801
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='889129', job_status='RUN', time_executed='2022-03-04 01:17:05.312297', time_epoch_executed='1646385425.31' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1653'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/889129

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/889129/ft1_4FGL_J1902.9-6748_daily_bin1653.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/889129/ft1_4FGL_J1902.9-6748_daily_bin1653.fits outfile=/scratch/kocevski/889129/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1653.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=667785601.0 tmax=668044801.0 emin=100.0 emax=100000.0 zmin=0.0 zmax=90.0 evclass=128 evtype="INDEF" convtype=-1 phasemin=0.0 phasemax=1.0 evtable="EVENTS" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

Done.
real 4.28
user 4.02
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.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/889129/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1653.fits evtable="EVENTS" outfile="/scratch/kocevski/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.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
Number of photons that survived the gtmktime cut: 1143

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits" evtable="EVENTS" scfile=/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits sctable="SC_DATA" outfile=/scratch/kocevski/889129/ltcube_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.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/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits
.....................!
real 12.46
user 12.08
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits sctable="SC_DATA" expcube=/scratch/kocevski/889129/ltcube_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.fits outfile=/scratch/kocevski/889129/expmap_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.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/889129/ltcube_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.fits
.....................!
real 191.19
user 185.04
sys 5.34

Generating the xml model:
radLim = 0.001
maxRad = 12
normsOnly = True
freeVariableSources = True
Fixing all sources to their catalog values, except variable sources
Creating file and adding sources from 4FGL
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/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits scfile=/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits outfile=/scratch/kocevski/889129/cmap_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.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.73
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits scfile=/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits outfile=/scratch/kocevski/889129/cmap_HighResolution_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.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.54
user 0.38
sys 0.15

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits evtable="EVENTS" scfile=/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/889129/Model_4FGL_J1902.9-6748_daily_bin1653.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/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits.....................!
real 103.90
user 102.21
sys 1.24

Creating the likelihood object...
obs = UnbinnedObs('/scratch/kocevski/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits', '/scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits', expMap='/scratch/kocevski/889129/expmap_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.fits', expCube='/scratch/kocevski/889129/ltcube_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.fits', irfs='P8R3_SOURCE_V2')
like = UnbinnedAnalysis(obs, '/scratch/kocevski/889129/Model_4FGL_J1902.9-6748_daily_bin1653.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/889129/ft1_filtered_4FGL_J1902.9-6748_daily_bin1653.fits
Spacecraft file(s): /scratch/kocevski/889129/ft2_4FGL_J1902.9-6748_daily_bin1653.fits
Exposure map: /scratch/kocevski/889129/expmap_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.fits
Exposure cube: /scratch/kocevski/889129/ltcube_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.fits
IRFs: P8R3_SOURCE_V2
Source model file: /scratch/kocevski/889129/Model_4FGL_J1902.9-6748_daily_bin1653.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) = 11668.6631869

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    4.2390       1.0000         .10000E-03   10000.    
     2 'norm      '    10.425       1.0000         .10000E-03   10000.    
     3 'norm      '    .10158E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    9.1360       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10142E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10112E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    3.6988       1.0000         .10000E-03   10000.    
     8 'Prefactor '    21.091       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10109E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    28.997       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10341E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    52.834       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10119E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .39526       1.0000         .10000E-03   10000.    
    16 'norm      '    .10720E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .44131       1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2141       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .96049       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=   11668.63     FROM MIGRAD    STATUS=CONVERGED    396 CALLS     1664 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.2%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     4.2188        457.07       -.11126E-05   -.10367E-04
   2  norm          10.424        7.7636        .41230E-07   -.46158E-04
   3  norm          .10000E-03    149.03       -.23915E-05** at limit **
   4  Prefactor     9.1365        9.8723        .13499E-06    .90589E-04
   5  Prefactor     .10000E-03    14.792        .14552E-07** at limit **
   6  Prefactor     .10090E-03    12.444       -.36101E-05** at limit **
   7  norm          3.6984        1.2398       -.10591E-06   -.28225E-03
   8  Prefactor     21.141        72.742        .36641E-05    .82472E-04
   9  Prefactor     .10000E-03    22.935        .19446E-06** at limit **
  10  norm          29.013        23.792        .17282E-06    .22360E-05
  11  Prefactor     .10000E-03    42.743        .11206E-05** at limit **
  12  norm          52.830        13.277        .18190E-07    .18404E-04
  13  Prefactor     .10000E-03    4.5146        .26432E-07** at limit **
  14  Prefactor     .10000E-03    8.6810        .13206E-07** at limit **
  15  norm          .39499        .85348        .10822E-05    .18950E-02
  16  norm          .10000E-03    95.861        .16200E-05** at limit **
  17  Prefactor     .44648        6.9497        .34071E-06   -.65660E-04
  18  Normalizat    1.2143        .22117       -.84723E-06    .10278E-04
  19  Prefactor     .96045        .80732E-01   -.13375E-06    .39859E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 4.21884
  norm       = 10.4239
  norm       = 0.000100004
  Prefactor  = 9.1365
  Prefactor  = 0.0001
  Prefactor  = 0.000100904
  norm       = 3.69836
  Prefactor  = 21.1407
  Prefactor  = 0.0001
  norm       = 29.0132
  Prefactor  = 0.0001
  norm       = 52.8305
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.394994
  norm       = 0.000100004
  Prefactor  = 0.446478
  Normalizat = 1.21427
  Prefactor  = 0.960449
 **********
 **   18 **HESSE 
 **********

 FCN=   11668.63     FROM HESSE     STATUS=OK           272 CALLS     1936 TOTAL
                     EDM=   .77E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     4.2188        461.21        .19571E-03   -1.5297    
   2  norm          10.424        7.7667        .12410E-03   -1.5062    
   3  norm          .10000E-03    151.36        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     9.1365        9.8746        .13260E-03   -1.5103    
   5  Prefactor     .10000E-03    14.860        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10090E-03    66.426        .58395E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          3.6984        1.2514        .58760E-04   -1.5323    
   8  Prefactor     21.141        74.053        .87215E-04   -1.4788    
   9  Prefactor     .10000E-03    22.935        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          29.013        23.809        .74401E-04   -1.4630    
  11  Prefactor     .10000E-03    42.773        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          52.830        13.291        .55179E-04   -1.4253    
  13  Prefactor     .10000E-03    4.5249        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    8.6883        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .39499        .87674        .14640E-03   -1.5582    
  16  norm          .10000E-03    97.149        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .44648        70.619        .54005E-02   -1.5574    
  18  Normalizat    1.2143        .26565        .39658E-03   -.86163    
  19  Prefactor     .96045        .97906E-01    .16368E-03   -.94060    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 7.65287e-08
Minuit parameter uncertainties:
  1  88.9331
  2  7.76747
  3  0.00148563
  4  9.87634
  5  6.99101e-05
  6  0.0155175
  7  1.2514
  8  74.3779
  9  3.24598e-05
  10  23.8169
  11  0.000279954
  12  13.2915
  13  3.69919e-06
  14  2.729e-06
  15  0.876767
  16  0.00127329
  17  11.2426
  18  0.265944
  19  0.0979237
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  5.283e+01  1.329e+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.604e-01  9.792e-02  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.214e+00  2.659e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 37.90
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.13e-07 +/- 5.37e-08
Energy Flux (Fixed Index): 7.19e-05 +/- 1.81e-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) = 11668.2448754
delta logL = 0.383503239014

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 11668.244352
delta logL = 0.384026651567

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    47.344       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5636       1.0000          .0000       5.0000    
     3 'Normalizat'    1.1679       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .97098       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.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   11668.24     FROM MIGRAD    STATUS=CONVERGED     87 CALLS      297 TOTAL
                     EDM=   .59E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          47.342        14.232        .58275E-04    .26922E-04
   2  alpha         2.5636        .29616        .90026E-02    .48371E-04
   3  Normalizat    1.1679        .26522        .40291E-03    .83012E-04
   4  Prefactor     .97093        .97389E-01    .16284E-03    .31602E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 47.3415
  alpha      = 2.56357
  Normalizat = 1.16795
  Prefactor  = 0.970928
 **********
 **   18 **HESSE 
 **********

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

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          47.342        13.926        .23310E-05   -1.4331    
   2  alpha         2.5636        .28959        .36010E-03    .25432E-01
   3  Normalizat    1.1679        .26532        .16117E-04   -.87599    
   4  Prefactor     .97093        .97437E-01    .32567E-04   -.93705    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.25872e-11
Minuit parameter uncertainties:
  1  13.9268
  2  0.290244
  3  0.26562
  4  0.0974544
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/889129': 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) = 11668.2443518
delta logL = 0.384026872842

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  4.734e+01  1.393e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.564e+00  2.902e-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:  9.709e-01  9.745e-02  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.168e+00  2.656e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 38.76
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.56 +/- 0.29
Photon Flux (Free Index): 2.49e-07 +/- 7.04e-08
Energy Flux (Free Index): 6.77e-05 +/- 1.68e-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/889129/cmap_HighResolution_667785601_668044801_4FGL_J1902.9-6748_daily_bin1653.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='2.13e-07', energy_flux2='6.77e-05', photon_flux_error='5.37e-08', dlogl='3.84e-01', energy_flux='7.19e-05', photon_flux2='2.49e-07', job_status='DONE', time_completed='2022-03-04 01:31:06.291278', photon_index_error2='0.29', photon_index2='2.56', ts='37.90', fit_tolerance='1e-08', GAL='0.96', photon_index_error='0.00', energy_flux_error2='1.68e-05', EG='1.21', time_epoch_completed='1646386266.29', return_code='0', job_id='889129', GAL2='0.97', EG2='1.17', return_code2='0', energy_flux_error='1.81e-05', photon_flux_error2='7.04e-08', ts2='38.76', photon_index='2.31' WHERE bin_id='1653' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Fri Mar  4 01:31:06 PST 2022


------------------------------------------------------------
Sender: LSF System <lsf@bullet0152>
Subject: Job 889129: <4FGL_J1902.9-6748_daily_bin1653> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1653> was submitted from host <rhel6-64j> by user <kocevski> in cluster <slac> at Fri Mar  4 01:15:17 2022
Job was executed on host(s) <bullet0152>, in queue <medium>, as user <kocevski> in cluster <slac> at Fri Mar  4 01:15:26 2022
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Fri Mar  4 01:15:26 2022
Terminated at Fri Mar  4 01:31:07 2022
Results reported at Fri Mar  4 01:31:07 2022

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1653 285.743 -67.8068 667785601 668044801 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 :                                   840.26 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             355.25 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   940 sec.
    Turnaround time :                            950 sec.

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

