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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1314
RA = 285.743, Dec = -67.8068
tmin = 579916801, tmax = 580176001
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='497916', job_status='RUN', time_executed='2021-09-21 22:22:37.764639', time_epoch_executed='1632288157.76' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1314'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497916

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497916/ft1_4FGL_J1902.9-6748_daily_bin1314.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497916/ft2_4FGL_J1902.9-6748_daily_bin1314.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497916/ft1_4FGL_J1902.9-6748_daily_bin1314.fits outfile=/scratch/kocevski/497916/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1314.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=579916801.0 tmax=580176001.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.46
user 3.22
sys 0.21

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497916/ft1_filtered_4FGL_J1902.9-6748_daily_bin1314.fits" evtable="EVENTS" scfile=/scratch/kocevski/497916/ft2_4FGL_J1902.9-6748_daily_bin1314.fits sctable="SC_DATA" outfile=/scratch/kocevski/497916/ltcube_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.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/497916/ft2_4FGL_J1902.9-6748_daily_bin1314.fits
.....................!
real 12.74
user 12.24
sys 0.48

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497916/ft1_filtered_4FGL_J1902.9-6748_daily_bin1314.fits evtable="EVENTS" scfile=/scratch/kocevski/497916/ft2_4FGL_J1902.9-6748_daily_bin1314.fits sctable="SC_DATA" expcube=/scratch/kocevski/497916/ltcube_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.fits outfile=/scratch/kocevski/497916/expmap_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.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/497916/ltcube_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.fits
.....................!
real 193.05
user 187.92
sys 4.78

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/497916/ft1_filtered_4FGL_J1902.9-6748_daily_bin1314.fits scfile=/scratch/kocevski/497916/ft2_4FGL_J1902.9-6748_daily_bin1314.fits outfile=/scratch/kocevski/497916/cmap_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=160 nypix=160 binsz=0.25 coordsys="CEL" xref=285.743 yref=-67.8068 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497916/ft1_filtered_4FGL_J1902.9-6748_daily_bin1314.fits scfile=/scratch/kocevski/497916/ft2_4FGL_J1902.9-6748_daily_bin1314.fits outfile=/scratch/kocevski/497916/cmap_HighResolution_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.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.38
sys 0.16

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

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    1.7682       1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .10066E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    3.1177       1.0000         .10000E-03   10000.    
     5 'Prefactor '    6.1021       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10025E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    1.5441       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .11287E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    153.45       1.0000         .10000E-03   10000.    
    10 'norm      '    19.965       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10094E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    10.725       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    21.088       1.0000         .10000E-03   10000.    
    15 'norm      '    1.6060       1.0000         .10000E-03   10000.    
    16 'norm      '    38.533       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.0498       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .91481       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=   9997.645     FROM MIGRAD    STATUS=CONVERGED    397 CALLS     1898 TOTAL
                     EDM=   .13E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     1.2886        1826.5       -.15062E-03    .80043E-05
   2  norm          .10000E-03    3.2350       -.66865E-06** at limit **
   3  norm          .10000E-03    15.149       -.10562E-05** at limit **
   4  Prefactor     3.1152        7.4506        .93269E-06    .37705E-04
   5  Prefactor     6.0974        12.721        .38199E-07   -.42511E-04
   6  Prefactor     .10000E-03    13.683        .15763E-05** at limit **
   7  norm          1.5433        .94182        .23772E-06    .24211E-03
   8  Prefactor     .10000E-03    84.823        .30194E-05** at limit **
   9  Prefactor     153.59        118.65       -.42427E-05   -.32202E-04
  10  norm          19.946        21.151       -.27316E-06   -.33387E-04
  11  Prefactor     .10000E-03    40.447        .43245E-06** at limit **
  12  norm          10.722        8.0638        .10786E-06   -.26589E-04
  13  Prefactor     .10000E-03    5.1720        .34840E-06** at limit **
  14  Prefactor     21.088        24.081        .55516E-06   -.43802E-05
  15  norm          1.6052        1.2829        .22544E-06    .19948E-03
  16  norm          38.384        49.574       -.60772E-05   -.37891E-04
  17  Prefactor     .10000E-03    5.0475        .22725E-06** at limit **
  18  Normalizat    1.0500        .21966        .10660E-05   -.25239E-03
  19  Prefactor     .91482        .81493E-01   -.14070E-05   -.49421E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 1.28863
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 3.11515
  Prefactor  = 6.0974
  Prefactor  = 0.0001
  norm       = 1.54334
  Prefactor  = 0.0001
  Prefactor  = 153.59
  norm       = 19.9456
  Prefactor  = 0.0001
  norm       = 10.7216
  Prefactor  = 0.0001
  Prefactor  = 21.0884
  norm       = 1.6052
  norm       = 38.3836
  Prefactor  = 0.0001
  Normalizat = 1.05
  Prefactor  = 0.914825
 **********
 **   18 **HESSE 
 **********

 FCN=   9997.645     FROM HESSE     STATUS=OK           272 CALLS     2170 TOTAL
                     EDM=   .27E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     1.2886        1880.5        .31496E-02   -1.5481    
   2  norm          .10000E-03    3.2616        .17555E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    15.155        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     3.1152        7.4471        .22963E-03   -1.5355    
   5  Prefactor     6.0974        12.681        .16253E-03   -1.5214    
   6  Prefactor     .10000E-03    13.964        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          1.5433        .93904        .72219E-04   -1.5460    
   8  Prefactor     .10000E-03    84.989        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     153.59        118.91        .16270E-03   -1.3223    
  10  norm          19.946        21.156        .89639E-04   -1.4814    
  11  Prefactor     .10000E-03    40.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          10.722        8.0640        .12234E-03   -1.5053    
  13  Prefactor     .10000E-03    5.1942        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     21.088        24.089        .87221E-04   -1.4789    
  15  norm          1.6052        1.2764        .96561E-04   -1.5455    
  16  norm          38.384        49.827        .32284E-03   -1.4468    
  17  Prefactor     .10000E-03    5.0612        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.0500        .25493        .38271E-03   -.91374    
  19  Prefactor     .91482        .95438E-01    .15225E-03   -.95625    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.69207e-10
Minuit parameter uncertainties:
  1  101.838
  2  9.06384e-08
  3  2.13229e-05
  4  7.44935
  5  12.6867
  6  0.000106347
  7  0.939047
  8  0.000401565
  9  119.101
  10  21.1635
  11  5.15434e-05
  12  8.06486
  13  1.67975e-05
  14  24.1
  15  1.27641
  16  49.8806
  17  8.88693e-06
  18  0.255226
  19  0.0954558
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.072e+01  8.065e+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:  9.148e-01  9.546e-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.050e+00  2.552e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 3.39
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 4.33e-08 +/- 3.26e-08
Energy Flux (Fixed Index): 1.46e-05 +/- 1.10e-05

TS (Fixed Index): 3.39
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 1.17e-07 ph cm-2 s-1
Energy Flux Upper Limit: 3.93e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497916/likelihoodResults_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.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) = 9997.63949609
delta logL = 0.00588935908672

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9997.63911133
delta logL = 0.00627411403548

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    10.562       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.4056       1.0000          .0000       5.0000    
     3 'Normalizat'    1.0449       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91593       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=   9997.639     FROM MIGRAD    STATUS=CONVERGED     92 CALLS      276 TOTAL
                     EDM=   .18E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          10.564        8.1968        .12328E-03    .13832E-03
   2  alpha         2.4053        .82109        .23708E-01    .12779E-03
   3  Normalizat    1.0450        .25405        .38350E-03    .86384E-04
   4  Prefactor     .91588        .94329E-01    .15217E-03   -.21857E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 10.564
  alpha      = 2.40534
  Normalizat = 1.04502
  Prefactor  = 0.915879
 **********
 **   18 **HESSE 
 **********

 FCN=   9997.639     FROM HESSE     STATUS=OK            25 CALLS      301 TOTAL
                     EDM=   .21E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          10.564        8.0793        .49313E-05   -1.5058    
   2  alpha         2.4053        .80911        .47415E-02   -.37874E-01
   3  Normalizat    1.0450        .25410        .15340E-04   -.91537    
   4  Prefactor     .91588        .94366E-01    .30435E-04   -.95588    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.0903e-10
Minuit parameter uncertainties:
  1  8.08018
  2  0.82397
  3  0.254391
  4  0.0943831
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497916': 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) = 9997.6391111
delta logL = 0.00627434947819

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.056e+01  8.080e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.405e+00  8.240e-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.159e-01  9.438e-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.045e+00  2.544e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.40
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.41 +/- 0.82
Photon Flux (Free Index): 4.68e-08 +/- 4.63e-08
Energy Flux (Free Index): 1.45e-05 +/- 1.08e-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/497916/cmap_HighResolution_579916801_580176001_4FGL_J1902.9-6748_daily_bin1314.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.93e-05', comment='SUCCESS', photon_flux='4.33e-08', energy_flux2='1.45e-05', photon_flux_error='3.26e-08', dlogl='6.27e-03', energy_flux='1.46e-05', photon_flux2='4.68e-08', job_status='DONE', time_completed='2021-09-21 22:37:59.356622', photon_index_error2='0.82', photon_index2='2.41', ts='3.39', fit_tolerance='1e-08', GAL='0.91', photon_index_error='0.00', photon_flux_upper_limit='1.17e-07', energy_flux_error2='1.08e-05', EG='1.05', time_epoch_completed='1632289079.36', return_code='0', job_id='497916', GAL2='0.92', EG2='1.05', return_code2='0', energy_flux_error='1.10e-05', photon_flux_error2='4.63e-08', ts2='3.40', photon_index='2.31' WHERE bin_id='1314' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:37:59 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0295>
Subject: Job 497916: <4FGL_J1902.9-6748_daily_bin1314> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1314> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:21:48 2021
Job was executed on host(s) <bullet0295>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:21:50 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:21:50 2021
Terminated at Tue Sep 21 22:38:00 2021
Results reported at Tue Sep 21 22:38:00 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1314 285.743 -67.8068 579916801 580176001 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 :                                   888.15 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             349.07 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   969 sec.
    Turnaround time :                            972 sec.

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

