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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1463
RA = 285.743, Dec = -67.8068
tmin = 618537601, tmax = 618796801
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='499528', job_status='RUN', time_executed='2021-09-21 22:27:57.642179', time_epoch_executed='1632288477.64' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1463'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499528

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499528/ft1_4FGL_J1902.9-6748_daily_bin1463.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499528/ft1_4FGL_J1902.9-6748_daily_bin1463.fits outfile=/scratch/kocevski/499528/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1463.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=618537601.0 tmax=618796801.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.81
user 3.53
sys 0.23

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.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/499528/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1463.fits evtable="EVENTS" outfile="/scratch/kocevski/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.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.50
user 0.33
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.fits" evtable="EVENTS" scfile=/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits sctable="SC_DATA" outfile=/scratch/kocevski/499528/ltcube_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.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/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits
.....................!
real 12.36
user 11.99
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits sctable="SC_DATA" expcube=/scratch/kocevski/499528/ltcube_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.fits outfile=/scratch/kocevski/499528/expmap_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.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/499528/ltcube_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.fits
.....................!
real 191.67
user 186.35
sys 4.86

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/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.fits scfile=/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits outfile=/scratch/kocevski/499528/cmap_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.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.54
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.fits scfile=/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits outfile=/scratch/kocevski/499528/cmap_HighResolution_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.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.57
user 0.39
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.fits evtable="EVENTS" scfile=/scratch/kocevski/499528/ft2_4FGL_J1902.9-6748_daily_bin1463.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/499528/Model_4FGL_J1902.9-6748_daily_bin1463.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/499528/ft1_filtered_4FGL_J1902.9-6748_daily_bin1463.fits.....................!
real 93.56
user 91.63
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10011E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    86.651       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .87082E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    12.728       1.0000         .10000E-03   10000.    
     7 'norm      '    2.2037       1.0000         .10000E-03   10000.    
     8 'Prefactor '    92.824       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    24.777       1.0000         .10000E-03   10000.    
    11 'Prefactor '    114.77       1.0000         .10000E-03   10000.    
    12 'norm      '    36.063       1.0000         .10000E-03   10000.    
    13 'Prefactor '    10.819       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10182E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .78874       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .74706E-01   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0455       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .98420       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=   10421.88     FROM MIGRAD    STATUS=CONVERGED    413 CALLS     1971 TOTAL
                     EDM=   .58E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  5.5%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    54.508        .25466E-05** at limit **
   2  norm          .10000E-03    2.2305       -.43960E-07** at limit **
   3  norm          86.643        59.874        .39712E-06   -.52575E-04
   4  Prefactor     .10000E-03    59.158        .27181E-04** at limit **
   5  Prefactor     .10000E-03    4.7990       -.31848E-07** at limit **
   6  Prefactor     12.727        10.841        .65409E-06   -.16556E-03
   7  norm          2.2035        1.2325       -.70016E-07    .10199E-02
   8  Prefactor     92.822        94.809        .18684E-06   -.24975E-04
   9  Prefactor     .10000E-03    33.851        .48050E-06** at limit **
  10  norm          24.772        22.952       -.10184E-05    .98183E-04
  11  Prefactor     114.75        104.03        .20789E-05   -.75320E-04
  12  norm          36.063        12.982        .38583E-06   -.29763E-03
  13  Prefactor     10.818        11.763        .10863E-05   -.23192E-03
  14  Prefactor     .10001E-03    81.092       -.20402E-05** at limit **
  15  norm          .78938        .99793       -.10870E-05   -.10790E-02
  16  norm          .10000E-03    17.951       -.99247E-07** at limit **
  17  Prefactor     .10157E-03    9.0275       -.13452E-05** at limit **
  18  Normalizat    1.0454        .23393        .15883E-05    .30948E-03
  19  Prefactor     .98423        .84373E-01   -.88175E-07    .27078E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100002
  norm       = 0.0001
  norm       = 86.6427
  Prefactor  = 0.000100001
  Prefactor  = 0.0001
  Prefactor  = 12.7265
  norm       = 2.20352
  Prefactor  = 92.8218
  Prefactor  = 0.0001
  norm       = 24.7725
  Prefactor  = 114.75
  norm       = 36.0628
  Prefactor  = 10.8181
  Prefactor  = 0.000100006
  norm       = 0.789376
  norm       = 0.0001
  Prefactor  = 0.000101571
  Normalizat = 1.04538
  Prefactor  = 0.984233
 **********
 **   18 **HESSE 
 **********

 FCN=   10421.88     FROM HESSE     STATUS=OK           276 CALLS     2247 TOTAL
                     EDM=   .11E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    54.632        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    2.2351        .14889E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          86.643        59.889        .43159E-04   -1.3844    
   4  Prefactor     .10000E-03    57.398        .45774E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    4.8039        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     12.727        10.864        .11228E-03   -1.4994    
   7  norm          2.2035        1.2299        .72407E-04   -1.5411    
   8  Prefactor     92.822        95.031        .41712E-04   -1.3778    
   9  Prefactor     .10000E-03    33.855        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          24.772        22.988        .80476E-04   -1.4712    
  11  Prefactor     114.75        104.23        .18777E-03   -1.3561    
  12  norm          36.063        12.979        .66735E-04   -1.4506    
  13  Prefactor     10.818        11.813        .12181E-03   -1.5050    
  14  Prefactor     .10001E-03    83.477        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .78938        1.0022        .12383E-02   -1.5530    
  16  norm          .10000E-03    17.957        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10157E-03    9.2268        .91750E-01   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0454        .28029        .41700E-03   -.91525    
  19  Prefactor     .98423        .10167        .15766E-03   -.93257    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.06482e-09
Minuit parameter uncertainties:
  1  0.000702322
  2  3.66273e-07
  3  59.9307
  4  0.000368682
  5  4.99047e-05
  6  10.866
  7  1.22996
  8  95.1873
  9  0.000148391
  10  22.9962
  11  104.402
  12  12.9802
  13  11.8151
  14  0.00144106
  15  1.00223
  16  1.78121e-05
  17  0.00761607
  18  0.280686
  19  0.10169
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  3.606e+01  1.298e+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.842e-01  1.017e-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.045e+00  2.807e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 15.33
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.46e-07 +/- 5.24e-08
Energy Flux (Fixed Index): 4.91e-05 +/- 1.77e-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) = 10421.5546846
delta logL = 0.328742162246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10421.553706
delta logL = 0.329720740494

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    31.220       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.6182       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0041       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .99411       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=   10421.55     FROM MIGRAD    STATUS=CONVERGED     96 CALLS      316 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          31.222        13.737        .71709E-04    .37383E-03
   2  alpha         2.6181        .40045        .10882E-01    .50932E-04
   3  Normalizat    1.0042        .27858        .42427E-03    .16624E-03
   4  Prefactor     .99407        .10161        .15690E-03    .14491E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 31.2224
  alpha      = 2.61814
  Normalizat = 1.00422
  Prefactor  = 0.994075
 **********
 **   18 **HESSE 
 **********

 FCN=   10421.55     FROM HESSE     STATUS=OK            25 CALLS      341 TOTAL
                     EDM=   .24E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          31.222        13.323        .28684E-05   -1.4590    
   2  alpha         2.6181        .38813        .43526E-03    .47273E-01
   3  Normalizat    1.0042        .27862        .16971E-04   -.92889    
   4  Prefactor     .99407        .10163        .62762E-05   -.92927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.41501e-10
Minuit parameter uncertainties:
  1  13.3242
  2  0.389714
  3  0.279028
  4  0.101646
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499528': 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) = 10421.5537059
delta logL = 0.329720817857

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  3.122e+01  1.332e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.618e+00  3.897e-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.941e-01  1.016e-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.004e+00  2.790e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 16.08
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.62 +/- 0.39
Photon Flux (Free Index): 1.74e-07 +/- 6.67e-08
Energy Flux (Free Index): 4.56e-05 +/- 1.60e-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/499528/cmap_HighResolution_618537601_618796801_4FGL_J1902.9-6748_daily_bin1463.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.46e-07', energy_flux2='4.56e-05', photon_flux_error='5.24e-08', dlogl='3.30e-01', energy_flux='4.91e-05', photon_flux2='1.74e-07', job_status='DONE', time_completed='2021-09-21 22:42:03.618809', photon_index_error2='0.39', photon_index2='2.62', ts='15.33', fit_tolerance='1e-08', GAL='0.98', photon_index_error='0.00', energy_flux_error2='1.60e-05', EG='1.05', time_epoch_completed='1632289323.62', return_code='0', job_id='499528', GAL2='0.99', EG2='1.00', return_code2='0', energy_flux_error='1.77e-05', photon_flux_error2='6.67e-08', ts2='16.08', photon_index='2.31' WHERE bin_id='1463' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:42:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0224>
Subject: Job 499528: <4FGL_J1902.9-6748_daily_bin1463> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1463> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 21 22:26:15 2021
Job was executed on host(s) <bullet0224>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:26:16 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:16 2021
Terminated at Tue Sep 21 22:42:04 2021
Results reported at Tue Sep 21 22:42:04 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1463 285.743 -67.8068 618537601 618796801 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.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             359.89 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   947 sec.
    Turnaround time :                            949 sec.

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

