/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 6 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 = 6643
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1902.9-6748_daily_bin141
RA = 285.743, Dec = -67.8068
tmin = 275875201, tmax = 276134401
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='485363', job_status='RUN', time_executed='2021-09-21 21:41:25.666030', time_epoch_executed='1632285685.67' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='141'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/485363

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

Retrieving the FT1 file...

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

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

Retrieving 42 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/485363/ft1_4FGL_J1902.9-6748_daily_bin141.fits


Retrieving the FT1 file...

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

Retrieving 42 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/485363/ft1_4FGL_J1902.9-6748_daily_bin141.fits outfile=/scratch/kocevski/485363/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin141.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=275875201.0 tmax=276134401.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.18
user 2.98
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/485363/ft1_filtered_4FGL_J1902.9-6748_daily_bin141.fits" evtable="EVENTS" scfile=/scratch/kocevski/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits sctable="SC_DATA" outfile=/scratch/kocevski/485363/ltcube_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.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/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits
.....................!
real 10.88
user 10.51
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/485363/ft1_filtered_4FGL_J1902.9-6748_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits sctable="SC_DATA" expcube=/scratch/kocevski/485363/ltcube_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.fits outfile=/scratch/kocevski/485363/expmap_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.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/485363/ltcube_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.fits
.....................!
real 191.16
user 185.67
sys 4.81

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/485363/ft1_filtered_4FGL_J1902.9-6748_daily_bin141.fits scfile=/scratch/kocevski/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits outfile=/scratch/kocevski/485363/cmap_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.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.36
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/485363/ft1_filtered_4FGL_J1902.9-6748_daily_bin141.fits scfile=/scratch/kocevski/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits outfile=/scratch/kocevski/485363/cmap_HighResolution_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.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.53
user 0.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/485363/ft1_filtered_4FGL_J1902.9-6748_daily_bin141.fits evtable="EVENTS" scfile=/scratch/kocevski/485363/ft2_4FGL_J1902.9-6748_daily_bin141.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/485363/Model_4FGL_J1902.9-6748_daily_bin141.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/485363/ft1_filtered_4FGL_J1902.9-6748_daily_bin141.fits.....................!
real 78.24
user 76.78
sys 1.14

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    10.657       1.0000         .10000E-03   10000.    
     2 'norm      '    1.8990       1.0000         .10000E-03   10000.    
     3 'norm      '    7.0802       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .31734       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .14273E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    20.967       1.0000         .10000E-03   10000.    
     7 'norm      '    .10015E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    127.33       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .23936E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    19.008       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10138E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    6.2267       1.0000         .10000E-03   10000.    
    13 'Prefactor '    9.2356       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .10072E-03   1.0000         .10000E-03   10000.    
    16 'norm      '    29.535       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10019E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4450       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .82562       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=   8427.439     FROM MIGRAD    STATUS=CONVERGED    391 CALLS     1955 TOTAL
                     EDM=   .89E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  6.9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     10.749        106.23       -.12425E-05   -.83425E-05
   2  norm          1.8986        3.2416        .50570E-06    .13915E-03
   3  norm          7.0825        78.061        .20545E-05    .38052E-06
   4  Prefactor     .24418        96.561        .21580E-04   -.50529E-04
   5  Prefactor     .10000E-03    26.252        .41612E-06** at limit **
   6  Prefactor     20.974        14.921       -.20216E-06   -.11263E-03
   7  norm          .10000E-03    1.5140        .13929E-05** at limit **
   8  Prefactor     127.28        120.52        .26972E-05   -.74709E-04
   9  Prefactor     .10004E-03    1104.8       -.39710E-04** at limit **
  10  norm          19.006        19.876        .39263E-06   -.21560E-04
  11  Prefactor     .10000E-03    74.412       -.40866E-06** at limit **
  12  norm          6.2261        6.4402        .12356E-06   -.19340E-04
  13  Prefactor     9.2348        11.612        .41158E-06   -.86738E-05
  14  Prefactor     .10000E-03    9.1373        .81396E-07** at limit **
  15  norm          .10000E-03    .53176        .21328E-06** at limit **
  16  norm          29.541        44.496        .26220E-06   -.91739E-05
  17  Prefactor     .10000E-03    9.4705        .12060E-06** at limit **
  18  Normalizat    1.4450        .24221       -.28663E-05   -.57248E-03
  19  Prefactor     .82571        .91153E-01    .30260E-06   -.13841E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 10.7488
  norm       = 1.89862
  norm       = 7.08251
  Prefactor  = 0.244181
  Prefactor  = 0.0001
  Prefactor  = 20.9736
  norm       = 0.0001
  Prefactor  = 127.284
  Prefactor  = 0.000100038
  norm       = 19.0062
  Prefactor  = 0.0001
  norm       = 6.22613
  Prefactor  = 9.23478
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 29.541
  Prefactor  = 0.0001
  Normalizat = 1.44496
  Prefactor  = 0.825714
 **********
 **   18 **HESSE 
 **********

 FCN=   8427.439     FROM HESSE     STATUS=OK           274 CALLS     2229 TOTAL
                     EDM=   .46E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     10.749        105.79        .12273E-03   -1.5052    
   2  norm          1.8986        3.2188        .21092E-03   -1.5432    
   3  norm          7.0825        78.063        .15076E-03   -1.5176    
   4  Prefactor     .24418        94.968        .47258E-02   -1.5609    
   5  Prefactor     .10000E-03    26.498        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     20.974        14.899        .87472E-04   -1.4792    
   7  norm          .10000E-03    1.5551        .15337E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     127.28        120.97        .17838E-03   -1.3447    
   9  Prefactor     .10004E-03    1113.2        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          19.006        19.891        .91867E-04   -1.4836    
  11  Prefactor     .10000E-03    74.446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          6.2261        6.4355        .16087E-03   -1.5209    
  13  Prefactor     9.2348        11.624        .13188E-03   -1.5100    
  14  Prefactor     .10000E-03    9.1446        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .10000E-03    .88207        .12939E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  16  norm          29.541        44.508        .73722E-04   -1.4620    
  17  Prefactor     .10000E-03    9.5004        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4450        .28967        .34961E-03   -.79337    
  19  Prefactor     .82571        .10708        .16315E-03   -.98787    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.64292e-08
Minuit parameter uncertainties:
  1  67.5993
  2  3.21908
  3  47.1046
  4  9.64453
  5  0.00019966
  6  14.9018
  7  4.44584e-05
  8  121.209
  9  0.0133025
  10  19.8975
  11  4.51756e-05
  12  6.43625
  13  11.6267
  14  1.30487e-05
  15  1.51655e-05
  16  44.5578
  17  2.48381e-05
  18  0.289996
  19  0.107104
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.226e+00  6.436e+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

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.257e-01  1.071e-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.445e+00  2.900e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.99
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 2.51e-08 +/- 2.60e-08
Energy Flux (Fixed Index): 8.48e-06 +/- 8.76e-06

TS (Fixed Index): 1.99
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 9.59e-08 ph cm-2 s-1
Energy Flux Upper Limit: 3.23e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/485363/likelihoodResults_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.txt

Performing a free index iterative likelihood fit...

Freezing all point sources, except source of interest...

Done.

Freeing candidate source...
Done.

Fit tolerance = 1

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8427.36502141
delta logL = 0.0743903995462

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 8427.36386438
delta logL = 0.0755474322978

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.4519       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.9131       1.0000          .0000       5.0000    
     3 'Normalizat'    1.4545       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .82353       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=   8427.364     FROM MIGRAD    STATUS=CONVERGED     48 CALLS      203 TOTAL
                     EDM=   .28E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.4519        8.2885        .39502E-02    .14256E-02
   2  alpha         1.9126        .98239        .42685       -.23247E-04
   3  Normalizat    1.4546        .23579        .78779E-01    .14277E-03
   4  Prefactor     .82352        .86190E-01    .44023E-01    .30751E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 6.45186
  alpha      = 1.91262
  Normalizat = 1.45456
  Prefactor  = 0.823518
 **********
 **   18 **HESSE 
 **********

 FCN=   8427.364     FROM HESSE     STATUS=OK            29 CALLS      232 TOTAL
                     EDM=   .14E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.4519        6.7783        .15801E-03   -1.5200    
   2  alpha         1.9126        .94823        .30074E-01   -.23717    
   3  Normalizat    1.4546        .28511        .34867E-03   -.79063    
   4  Prefactor     .82352        .10450        .16335E-03   -.98867    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.37454e-09
Minuit parameter uncertainties:
  1  6.77906
  2  0.974108
  3  0.285421
  4  0.104524
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/485363': 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) = 8427.36386424
delta logL = 0.0755475743954

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.452e+00  6.779e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.913e+00  9.741e-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.235e-01  1.045e-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.455e+00  2.854e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 2.14
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.91 +/- 0.97
Photon Flux (Free Index): 1.84e-08 +/- 2.45e-08
Energy Flux (Free Index): 1.02e-05 +/- 1.25e-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/485363/cmap_HighResolution_275875201_276134401_4FGL_J1902.9-6748_daily_bin141.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.23e-05', comment='SUCCESS', photon_flux='2.51e-08', energy_flux2='1.02e-05', photon_flux_error='2.60e-08', dlogl='7.55e-02', energy_flux='8.48e-06', photon_flux2='1.84e-08', job_status='DONE', time_completed='2021-09-21 21:54:46.704527', photon_index_error2='0.97', photon_index2='1.91', ts='1.99', fit_tolerance='1e-08', GAL='0.83', photon_index_error='0.00', photon_flux_upper_limit='9.59e-08', energy_flux_error2='1.25e-05', EG='1.44', time_epoch_completed='1632286486.7', return_code='0', job_id='485363', GAL2='0.82', EG2='1.45', return_code2='0', energy_flux_error='8.76e-06', photon_flux_error2='2.45e-08', ts2='2.14', photon_index='2.31' WHERE bin_id='141' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 21:54:46 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0032>
Subject: Job 485363: <4FGL_J1902.9-6748_daily_bin141> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin141> was submitted from host <rhel6-64d> by user <kocevski> in cluster <slac> at Tue Sep 21 21:41:11 2021
Job was executed on host(s) <bullet0032>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 21:41:12 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 21:41:12 2021
Terminated at Tue Sep 21 21:54:47 2021
Results reported at Tue Sep 21 21:54:47 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin141 285.743 -67.8068 275875201 276134401 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 :                                   798.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             335.50 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   814 sec.
    Turnaround time :                            816 sec.

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

