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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1267
RA = 285.743, Dec = -67.8068
tmin = 567734401, tmax = 567993601
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='497847', job_status='RUN', time_executed='2021-09-21 22:23:01.860411', time_epoch_executed='1632288181.86' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1267'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497847

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497847/ft1_4FGL_J1902.9-6748_daily_bin1267.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497847/ft1_4FGL_J1902.9-6748_daily_bin1267.fits outfile=/scratch/kocevski/497847/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1267.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=567734401.0 tmax=567993601.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 2.33
user 2.13
sys 0.19

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

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

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497847/ft1_filtered_4FGL_J1902.9-6748_daily_bin1267.fits" evtable="EVENTS" scfile=/scratch/kocevski/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits sctable="SC_DATA" outfile=/scratch/kocevski/497847/ltcube_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.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/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits
.....................!
real 12.86
user 12.50
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497847/ft1_filtered_4FGL_J1902.9-6748_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits sctable="SC_DATA" expcube=/scratch/kocevski/497847/ltcube_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.fits outfile=/scratch/kocevski/497847/expmap_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.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/497847/ltcube_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.fits
.....................!
real 190.88
user 185.88
sys 4.65

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/497847/ft1_filtered_4FGL_J1902.9-6748_daily_bin1267.fits scfile=/scratch/kocevski/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits outfile=/scratch/kocevski/497847/cmap_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.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.56
user 0.41
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497847/ft1_filtered_4FGL_J1902.9-6748_daily_bin1267.fits scfile=/scratch/kocevski/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits outfile=/scratch/kocevski/497847/cmap_HighResolution_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.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.54
user 0.38
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/497847/ft1_filtered_4FGL_J1902.9-6748_daily_bin1267.fits evtable="EVENTS" scfile=/scratch/kocevski/497847/ft2_4FGL_J1902.9-6748_daily_bin1267.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497847/Model_4FGL_J1902.9-6748_daily_bin1267.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/497847/ft1_filtered_4FGL_J1902.9-6748_daily_bin1267.fits.....................!
real 68.44
user 67.02
sys 1.23

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10096E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    17.414       1.0000         .10000E-03   10000.    
     4 'Prefactor '    41.960       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    18.796       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .25539E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10021E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    4.6357       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10053E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    7.9402       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    .40524       1.0000         .10000E-03   10000.    
    16 'norm      '    8.2631       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    2.3097       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .75143       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=   6515.033     FROM MIGRAD    STATUS=CONVERGED    379 CALLS     1870 TOTAL
                     EDM=   .13E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    161.06       -.18572E-04** at limit **
   2  norm          .10000E-03    4.5485       -.42717E-07** at limit **
   3  norm          17.421        63.313        .11138E-04    .25062E-05
   4  Prefactor     41.960        37.964       -.56596E-07    .11626E-05
   5  Prefactor     .10000E-03    15.573       -.54068E-06** at limit **
   6  Prefactor     .10000E-03    11.775        .31875E-05** at limit **
   7  norm          18.797        4.4157        .43025E-07    .47679E-03
   8  Prefactor     .10000E-03    419.23       -.70014E-04** at limit **
   9  Prefactor     .10000E-03    85.532        .12442E-05** at limit **
  10  norm          4.6344        52.993       -.10218E-05   -.23289E-05
  11  Prefactor     .10000E-03    152.55        .16611E-04** at limit **
  12  norm          7.9391        12.759       -.24741E-05    .24870E-04
  13  Prefactor     .10000E-03    10.886       -.10357E-04** at limit **
  14  Prefactor     .10000E-03    6.9485        .78745E-08** at limit **
  15  norm          .40504        1.5692       -.12658E-05   -.19105E-02
  16  norm          8.2609        49.107       -.27141E-05   -.68126E-05
  17  Prefactor     .10000E-03    10.572        .77429E-05** at limit **
  18  Normalizat    2.3097        .31751        .78596E-06    .89098E-04
  19  Prefactor     .75145        .11551       -.11462E-06    .18769E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 0.0001
  norm       = 17.4209
  Prefactor  = 41.9602
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 18.797
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.63444
  Prefactor  = 0.0001
  norm       = 7.93905
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.405044
  norm       = 8.26089
  Prefactor  = 0.0001
  Normalizat = 2.30968
  Prefactor  = 0.751446
 **********
 **   18 **HESSE 
 **********

 FCN=   6515.033     FROM HESSE     STATUS=OK           260 CALLS     2130 TOTAL
                     EDM=   .25E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    161.08        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          .10000E-03    4.5895        .16808E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          17.421        63.174        .95977E-04   -1.4873    
   4  Prefactor     41.960        37.972        .61885E-04   -1.4412    
   5  Prefactor     .10000E-03    15.589        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    11.777        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          18.797        4.4151        .79551E-04   -1.4841    
   8  Prefactor     .10000E-03    413.72        .21456E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    85.532        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          4.6344        53.011        .18693E-03   -1.5277    
  11  Prefactor     .10000E-03    152.23        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          7.9391        12.746        .14229E-03   -1.5144    
  13  Prefactor     .10000E-03    10.741        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    6.9499        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          .40504        1.6570        .19808E-03   -1.5581    
  16  norm          8.2609        49.283        .13947E-03   -1.5133    
  17  Prefactor     .10000E-03    10.514        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    2.3097        .38232        .34073E-03   -.56997    
  19  Prefactor     .75145        .13902        .19840E-03   -1.0154    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.52764e-09
Minuit parameter uncertainties:
  1  0.000145962
  2  1.26349e-05
  3  63.4179
  4  37.9938
  5  1.15547e-06
  6  1.16326e-06
  7  4.41515
  8  0.000142828
  9  2.72876e-06
  10  31.3829
  11  1.42205e-05
  12  12.7502
  13  3.65614e-05
  14  8.80275e-08
  15  1.63837
  16  40.4044
  17  5.87594e-06
  18  0.382845
  19  0.139089
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  7.939e+00  1.275e+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:  7.514e-01  1.391e-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:  2.310e+00  3.828e-01  1.000e-02  1.000e+01 ( 1.000e+00)


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

Saving results to:
/scratch/kocevski/497847/likelihoodResults_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.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) = 6514.95950389
delta logL = 0.073350247194

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 6514.95323937
delta logL = 0.0796147734227

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.7994       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.8687       1.0000          .0000       5.0000    
     3 'Normalizat'    2.2856       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .75666       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=   6514.953     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      242 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.8080        382.03        .38468E-02    .11632E-03
   2  alpha         2.8711        3.2749        .41732        .35900E-04
   3  Normalizat    2.2848        .12577        .77312E-01   -.37257E-05
   4  Prefactor     .75683        .40701E-01    .43151E-01    .52432E-05
                               ERR DEF=  .500    
Final values: 
  norm       = 6.80802
  alpha      = 2.87114
  Normalizat = 2.28483
  Prefactor  = 0.75683
 **********
 **   18 **HESSE 
 **********

 FCN=   6514.953     FROM HESSE     STATUS=OK            33 CALLS      275 TOTAL
                     EDM=   .16E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.8080        13.622        .15387E-03   -1.5186    
   2  alpha         2.8711        1.5577        .29335E-01    .14901    
   3  Normalizat    2.2848        .38495        .34200E-03   -.57589    
   4  Prefactor     .75683        .13845        .19775E-03   -1.0134    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.5511e-11
Minuit parameter uncertainties:
  1  13.6287
  2  1.68525
  3  0.385492
  4  0.138517
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497847': 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) = 6514.95323466
delta logL = 0.0796194854884

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.808e+00  1.363e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.871e+00  1.685e+00  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:  7.568e-01  1.385e-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:  2.285e+00  3.855e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 0.51
Ra Dec: 285.743 -67.807

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/497847/cmap_HighResolution_567734401_567993601_4FGL_J1902.9-6748_daily_bin1267.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='5.28e-05', job_status='DONE', photon_flux_upper_limit='1.57e-07', time_completed='2021-09-21 22:35:38.920930', job_id='497847', GAL2='0.76', fit_tolerance='1e-08', EG2='2.28', EG='2.31', time_epoch_completed='1632288938.92', return_code2='0', ts='0.51', comment='SUCCESS', return_code='0', GAL='0.75', dlogl='7.96e-02', ts2='0.67', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1267' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:35:38 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0031>
Subject: Job 497847: <4FGL_J1902.9-6748_daily_bin1267> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1267> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:21:42 2021
Job was executed on host(s) <bullet0031>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:21:44 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:44 2021
Terminated at Tue Sep 21 22:35:40 2021
Results reported at Tue Sep 21 22:35:40 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1267 285.743 -67.8068 567734401 567993601 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 :                                   692.05 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             319.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   835 sec.
    Turnaround time :                            838 sec.

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

