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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1030
RA = 285.743, Dec = -67.8068
tmin = 506304001, tmax = 506563201
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='496049', job_status='RUN', time_executed='2021-09-21 22:18:30.742019', time_epoch_executed='1632287910.74' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1030'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496049

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

Retrieving the FT1 file...

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

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

Retrieving 48 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496049/ft1_4FGL_J1902.9-6748_daily_bin1030.fits


Retrieving the FT1 file...

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

Retrieving 48 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496049/ft1_4FGL_J1902.9-6748_daily_bin1030.fits outfile=/scratch/kocevski/496049/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1030.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=506304001.0 tmax=506563201.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.48
user 3.25
sys 0.22

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.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/496049/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1030.fits evtable="EVENTS" outfile="/scratch/kocevski/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits" apply_filter=yes overwrite=yes header_obstimes=yes tstart=0.0 tstop=0.0 gtifile="default" chatter=3 clobber=yes debug=no gui=no mode="ql"

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

This is gtmktime version HEAD
Applying GTI filter:
IN_SAA!=T && LIVETIME>0 && gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nogrb.gti',(START+STOP)/2) && (angsep(RA_SUN,DEC_SUN,RA_ZENITH,DEC_ZENITH)>115 || gtifilter('/nfs/farm/g/glast/g/LCRepository/Likelihood/GTIs/nosolarflares.gti',(START+STOP)/2))
real 0.49
user 0.32
sys 0.16

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits" evtable="EVENTS" scfile=/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits sctable="SC_DATA" outfile=/scratch/kocevski/496049/ltcube_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.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/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits
.....................!
real 12.49
user 12.11
sys 0.32

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits sctable="SC_DATA" expcube=/scratch/kocevski/496049/ltcube_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.fits outfile=/scratch/kocevski/496049/expmap_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.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/496049/ltcube_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.fits
.....................!
real 192.26
user 186.48
sys 5.40

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/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits scfile=/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits outfile=/scratch/kocevski/496049/cmap_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.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.53
user 0.38
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits scfile=/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits outfile=/scratch/kocevski/496049/cmap_HighResolution_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.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/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits evtable="EVENTS" scfile=/scratch/kocevski/496049/ft2_4FGL_J1902.9-6748_daily_bin1030.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496049/Model_4FGL_J1902.9-6748_daily_bin1030.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/496049/ft1_filtered_4FGL_J1902.9-6748_daily_bin1030.fits.....................!
real 93.59
user 92.24
sys 1.18

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    45.861       1.0000         .10000E-03   10000.    
     2 'norm      '    2.7017       1.0000         .10000E-03   10000.    
     3 'norm      '    .10038E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .26587E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    4.1188       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10058E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    60.382       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    21.516       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10035E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    20.560       1.0000         .10000E-03   10000.    
    15 'norm      '    1.0517       1.0000         .10000E-03   10000.    
    16 'norm      '    64.838       1.0000         .10000E-03   10000.    
    17 'Prefactor '    8.4804       1.0000         .10000E-03   10000.    
    18 'Normalizat'    .89137       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0010       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=   10412.52     FROM MIGRAD    STATUS=CONVERGED    388 CALLS     1884 TOTAL
                     EDM=   .76E-10  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .7%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     45.732        87.610       -.30221E-06   -.28060E-04
   2  norm          2.7008        4.5012        .38893E-06    .60156E-05
   3  norm          .10000E-03    26.982       -.49187E-06** at limit **
   4  Prefactor     .10000E-03    3.9333        .59972E-07** at limit **
   5  Prefactor     .10010E-03    11.856       -.35628E-06** at limit **
   6  Prefactor     .10000E-03    4.2288        .51544E-07** at limit **
   7  norm          4.1184        1.2354        .26144E-07    .51869E-04
   8  Prefactor     .10000E-03    40.383        .75407E-07** at limit **
   9  Prefactor     .10000E-03    58.317        .12870E-06** at limit **
  10  norm          60.379        24.893        .98964E-07    .63535E-05
  11  Prefactor     .10000E-03    37.081        .11773E-07** at limit **
  12  norm          21.517        11.264        .78782E-07    .94843E-05
  13  Prefactor     .10000E-03    11.058        .21790E-06** at limit **
  14  Prefactor     20.558        18.332        .70194E-07    .13184E-05
  15  norm          1.0515        1.0003        .95272E-07    .31170E-04
  16  norm          64.841        53.682        .79486E-07    .46074E-05
  17  Prefactor     8.4839        12.422        .28487E-05   -.16548E-04
  18  Normalizat    .89061        .24174       -.24125E-05    .44472E-04
  19  Prefactor     1.0014        .88063E-01    .43873E-06   -.87486E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 45.7319
  norm       = 2.70079
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.000100099
  Prefactor  = 0.0001
  norm       = 4.11844
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 60.3785
  Prefactor  = 0.0001
  norm       = 21.5173
  Prefactor  = 0.0001
  Prefactor  = 20.5584
  norm       = 1.05151
  norm       = 64.8406
  Prefactor  = 8.48393
  Normalizat = 0.890611
  Prefactor  = 1.00137
 **********
 **   18 **HESSE 
 **********

 FCN=   10412.52     FROM HESSE     STATUS=OK           272 CALLS     2156 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     45.732        87.685        .29603E-03   -1.4354    
   2  norm          2.7008        4.4943        .24783E-03   -1.5379    
   3  norm          .10000E-03    27.018        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     .10000E-03    3.9435        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10010E-03    99.735        .66225E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    4.2339        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          4.1184        1.2345        .59698E-04   -1.5302    
   8  Prefactor     .10000E-03    40.396        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    58.355        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          60.379        24.888        .51634E-04   -1.4152    
  11  Prefactor     .10000E-03    37.096        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          21.517        11.257        .86350E-04   -1.4780    
  13  Prefactor     .10000E-03    11.211        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     20.558        18.330        .88334E-04   -1.4801    
  15  norm          1.0515        .99735        .95070E-04   -1.5503    
  16  norm          64.841        53.730        .49839E-04   -1.4096    
  17  Prefactor     8.4839        12.435        .68828E-03   -1.5125    
  18  Normalizat    .89061        .26890        .42951E-03   -.96791    
  19  Prefactor     1.0014        .10014        .15387E-03   -.92684    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.88702e-10
Minuit parameter uncertainties:
  1  87.934
  2  4.49485
  3  6.99442e-06
  4  1.01966e-06
  5  0.00628178
  6  4.11956e-06
  7  1.23448
  8  1.33117e-05
  9  2.02794e-05
  10  24.8926
  11  1.39293e-05
  12  11.2581
  13  1.05513e-05
  14  18.3346
  15  0.997364
  16  53.7704
  17  12.4384
  18  0.269309
  19  0.100162
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.152e+01  1.126e+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:  1.001e+00  1.002e-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:  8.906e-01  2.693e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 5.62
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 8.69e-08 +/- 4.55e-08
Energy Flux (Fixed Index): 2.93e-05 +/- 1.53e-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) = 10411.332139
delta logL = 1.19266232846

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10411.3309479
delta logL = 1.19385345475

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    13.067       1.0000         .10000E-03   10000.    
     2 'alpha     '    3.1156       1.0000          .0000       5.0000    
     3 'Normalizat'    .82696       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0168       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=   10411.33     FROM MIGRAD    STATUS=CONVERGED    103 CALLS      321 TOTAL
                     EDM=   .77E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          13.081        11.144        .55404E-03   -.16662E-04
   2  alpha         3.1166        .64353        .12412E-01    .32540E-03
   3  Normalizat    .82715        .26464        .44370E-03   -.17423E-05
   4  Prefactor     1.0165        .99485E-01    .15276E-03   -.28279E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 13.0815
  alpha      = 3.11661
  Normalizat = 0.827147
  Prefactor  = 1.01654
 **********
 **   18 **HESSE 
 **********

 FCN=   10411.33     FROM HESSE     STATUS=OK            27 CALLS      348 TOTAL
                     EDM=   .16E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          13.081        9.9172        .22162E-04   -1.4984    
   2  alpha         3.1166        .57378        .24823E-02    .24921    
   3  Normalizat    .82715        .26463        .17748E-04   -.99069    
   4  Prefactor     1.0165        .99441E-01    .61106E-05   -.92180    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.58228e-13
Minuit parameter uncertainties:
  1  9.91842
  2  0.579285
  3  0.265049
  4  0.0994594
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496049': 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) = 10411.3309295
delta logL = 1.19387186269

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.308e+01  9.918e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  3.117e+00  5.793e-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:  1.017e+00  9.946e-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:  8.271e-01  2.650e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 8.15
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 3.12 +/- 0.58
Photon Flux (Free Index): 1.34e-07 +/- 6.12e-08
Energy Flux (Free Index): 2.68e-05 +/- 1.22e-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/496049/cmap_HighResolution_506304001_506563201_4FGL_J1902.9-6748_daily_bin1030.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='8.69e-08', energy_flux2='2.68e-05', photon_flux_error='4.55e-08', dlogl='1.19e+00', energy_flux='2.93e-05', photon_flux2='1.34e-07', job_status='DONE', time_completed='2021-09-21 22:32:26.190363', photon_index_error2='0.58', photon_index2='3.12', ts='5.62', fit_tolerance='1e-08', GAL='1.00', photon_index_error='0.00', energy_flux_error2='1.22e-05', EG='0.89', time_epoch_completed='1632288746.19', return_code='0', job_id='496049', GAL2='1.02', EG2='0.83', return_code2='0', energy_flux_error='1.53e-05', photon_flux_error2='6.12e-08', ts2='8.15', photon_index='2.31' WHERE bin_id='1030' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:32:26 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0105>
Subject: Job 496049: <4FGL_J1902.9-6748_daily_bin1030> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1030> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:16:05 2021
Job was executed on host(s) <bullet0105>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:16:06 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:16:06 2021
Terminated at Tue Sep 21 22:32:27 2021
Results reported at Tue Sep 21 22:32:27 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1030 285.743 -67.8068 506304001 506563201 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 :                                   823.12 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             347.90 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   980 sec.
    Turnaround time :                            982 sec.

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

