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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1067
RA = 285.743, Dec = -67.8068
tmin = 515894401, tmax = 516153601
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='496102', job_status='RUN', time_executed='2021-09-21 22:16:20.300130', time_epoch_executed='1632287780.3' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1067'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496102

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496102/ft1_4FGL_J1902.9-6748_daily_bin1067.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496102/ft1_4FGL_J1902.9-6748_daily_bin1067.fits outfile=/scratch/kocevski/496102/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1067.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=515894401.0 tmax=516153601.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.78
user 3.52
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.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/496102/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1067.fits evtable="EVENTS" outfile="/scratch/kocevski/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.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.51
user 0.31
sys 0.17

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.fits" evtable="EVENTS" scfile=/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits sctable="SC_DATA" outfile=/scratch/kocevski/496102/ltcube_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.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/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits
.....................!
real 12.00
user 11.63
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits sctable="SC_DATA" expcube=/scratch/kocevski/496102/ltcube_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.fits outfile=/scratch/kocevski/496102/expmap_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.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/496102/ltcube_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.fits
.....................!
real 191.14
user 185.58
sys 5.20

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/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.fits scfile=/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits outfile=/scratch/kocevski/496102/cmap_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.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.37
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.fits scfile=/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits outfile=/scratch/kocevski/496102/cmap_HighResolution_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.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.36
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.fits evtable="EVENTS" scfile=/scratch/kocevski/496102/ft2_4FGL_J1902.9-6748_daily_bin1067.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496102/Model_4FGL_J1902.9-6748_daily_bin1067.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/496102/ft1_filtered_4FGL_J1902.9-6748_daily_bin1067.fits.....................!
real 95.53
user 94.09
sys 1.22

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    90.331       1.0000         .10000E-03   10000.    
     2 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    26.588       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10005E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .79418E-01   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .18376E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    23.956       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10014E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    3.2344       1.0000         .10000E-03   10000.    
    16 'norm      '    .84979E-01   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .91714       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1661       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=   10664.60     FROM MIGRAD    STATUS=CONVERGED    490 CALLS     2451 TOTAL
                     EDM=   .10E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     90.339        94.397        .19154E-04    .35809E-05
   2  norm          .10000E-03    3.0652       -.29689E-08** at limit **
   3  norm          26.665        46.252       -.59884E-05   -.82342E-06
   4  Prefactor     .10000E-03    11.053        .13623E-07** at limit **
   5  Prefactor     .10000E-03    7.0417        .11633E-07** at limit **
   6  Prefactor     .10000E-03    2.6005       -.18396E-09** at limit **
   7  norm          .10000E-03    .25974        .11841E-07** at limit **
   8  Prefactor     .10000E-03    21.863       -.74360E-07** at limit **
   9  Prefactor     .10000E-03    36.420       -.81238E-08** at limit **
  10  norm          .56007        14.575       -.13770E-05   -.23043E-04
  11  Prefactor     .10000E-03    266.61       -.32405E-07** at limit **
  12  norm          23.944        11.405       -.19245E-06   -.50806E-03
  13  Prefactor     .10000E-03    13.285        .69370E-07** at limit **
  14  Prefactor     .10000E-03    21.565        .93108E-07** at limit **
  15  norm          3.2356        1.3456        .13402E-08   -.21374E-03
  16  norm          .85954        46.123       -.26369E-05   -.13232E-04
  17  Prefactor     .10000E-03    43.493       -.19983E-07** at limit **
  18  Normalizat    .91664        .24289       -.49421E-06    .71845E-04
  19  Prefactor     1.1659        .90687E-01    .39804E-08    .32603E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 90.3394
  norm       = 0.0001
  norm       = 26.6647
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.560065
  Prefactor  = 0.0001
  norm       = 23.9442
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 3.23563
  norm       = 0.859545
  Prefactor  = 0.0001
  Normalizat = 0.916636
  Prefactor  = 1.16594
 **********
 **   18 **HESSE 
 **********

 FCN=   10664.60     FROM HESSE     STATUS=OK           278 CALLS     2729 TOTAL
                     EDM=   .99E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     90.339        93.777        .42278E-04   -1.3804    
   2  norm          .10000E-03    3.0844        .17656E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          26.665        46.307        .77692E-04   -1.4675    
   4  Prefactor     .10000E-03    11.163        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    7.0753        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    2.6032        .16264E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .36598        .10223E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    21.871        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    36.427        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .56007        16.932        .10853       -1.5558    
  11  Prefactor     .10000E-03    273.94        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          23.944        11.447        .40920E-03   -1.4729    
  13  Prefactor     .10000E-03    13.439        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    21.618        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          3.2356        1.3435        .74477E-04   -1.5348    
  16  norm          .85954        40.109        .20355       -1.5523    
  17  Prefactor     .10000E-03    45.017        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .91664        .27578        .45544E-03   -.95878    
  19  Prefactor     1.1659        .10391        .15520E-03   -.87386    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.94551e-10
Minuit parameter uncertainties:
  1  93.9315
  2  1.59608e-08
  3  46.3696
  4  2.44585e-06
  5  1.15279e-06
  6  3.92266e-07
  7  6.13804e-07
  8  1.77374e-06
  9  1.7908e-06
  10  6.16022
  11  3.30589e-05
  12  11.4484
  13  2.4888e-05
  14  1.20059e-05
  15  1.34353
  16  11.7509
  17  4.64155e-05
  18  0.276206
  19  0.103927
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.394e+01  1.145e+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.166e+00  1.039e-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:  9.166e-01  2.762e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 7.62
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 9.67e-08 +/- 4.62e-08
Energy Flux (Fixed Index): 3.26e-05 +/- 1.56e-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) = 10664.4757894
delta logL = 0.127789038643

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10664.4709857
delta logL = 0.13259280708

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    21.008       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.5743       1.0000          .0000       5.0000    
     3 'Normalizat'    .89322       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1718       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=   10664.47     FROM MIGRAD    STATUS=CONVERGED     78 CALLS      267 TOTAL
                     EDM=   .98E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          21.008        12.811        .87387E-04    .96640E-03
   2  alpha         2.5743        .54514        .13850E-01    .12841E-03
   3  Normalizat    .89320        .27544        .46072E-03    .50442E-03
   4  Prefactor     1.1718        .10398        .15485E-03    .16635E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 21.0077
  alpha      = 2.57431
  Normalizat = 0.893197
  Prefactor  = 1.17182
 **********
 **   18 **HESSE 
 **********

 FCN=   10664.47     FROM HESSE     STATUS=OK            25 CALLS      292 TOTAL
                     EDM=   .95E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          21.008        12.291        .17477E-04   -1.4791    
   2  alpha         2.5743        .52290        .55399E-03    .29728E-01
   3  Normalizat    .89320        .27536        .18429E-04   -.96700    
   4  Prefactor     1.1718        .10395        .30971E-04   -.87203    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 9.4649e-10
Minuit parameter uncertainties:
  1  12.2926
  2  0.526794
  3  0.275795
  4  0.103971
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496102': 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) = 10664.4709857
delta logL = 0.132592814161

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.101e+01  1.229e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.574e+00  5.268e-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.172e+00  1.040e-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.932e-01  2.758e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 7.91
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.57 +/- 0.53
Photon Flux (Free Index): 1.12e-07 +/- 5.74e-08
Energy Flux (Free Index): 3.02e-05 +/- 1.47e-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/496102/cmap_HighResolution_515894401_516153601_4FGL_J1902.9-6748_daily_bin1067.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='9.67e-08', energy_flux2='3.02e-05', photon_flux_error='4.62e-08', dlogl='1.33e-01', energy_flux='3.26e-05', photon_flux2='1.12e-07', job_status='DONE', time_completed='2021-09-21 22:31:44.497696', photon_index_error2='0.53', photon_index2='2.57', ts='7.62', fit_tolerance='1e-08', GAL='1.17', photon_index_error='0.00', energy_flux_error2='1.47e-05', EG='0.92', time_epoch_completed='1632288704.5', return_code='0', job_id='496102', GAL2='1.17', EG2='0.89', return_code2='0', energy_flux_error='1.56e-05', photon_flux_error2='5.74e-08', ts2='7.91', photon_index='2.31' WHERE bin_id='1067' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:31:44 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0238>
Subject: Job 496102: <4FGL_J1902.9-6748_daily_bin1067> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1067> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:16:09 2021
Job was executed on host(s) <bullet0238>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:16:11 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:11 2021
Terminated at Tue Sep 21 22:31:45 2021
Results reported at Tue Sep 21 22:31:45 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1067 285.743 -67.8068 515894401 516153601 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 :                                   917.00 sec.
    Max Memory :                                 1091 MB
    Average Memory :                             343.86 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   933 sec.
    Turnaround time :                            936 sec.

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

