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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1171
RA = 285.743, Dec = -67.8068
tmin = 542851201, tmax = 543110401
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='496254', job_status='RUN', time_executed='2021-09-21 22:18:06.438937', time_epoch_executed='1632287886.44' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1171'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496254

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

Retrieving the FT1 file...

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

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

Retrieving 4 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496254/ft1_4FGL_J1902.9-6748_daily_bin1171.fits


Retrieving the FT1 file...

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

Retrieving 4 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496254/ft1_4FGL_J1902.9-6748_daily_bin1171.fits outfile=/scratch/kocevski/496254/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1171.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=542851201.0 tmax=543110401.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 0.79
user 0.59
sys 0.16

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.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/496254/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1171.fits evtable="EVENTS" outfile="/scratch/kocevski/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.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.46
user 0.30
sys 0.15

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.fits" evtable="EVENTS" scfile=/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits sctable="SC_DATA" outfile=/scratch/kocevski/496254/ltcube_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.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/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits
.....................!
real 1.85
user 1.51
sys 0.34

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits sctable="SC_DATA" expcube=/scratch/kocevski/496254/ltcube_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.fits outfile=/scratch/kocevski/496254/expmap_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.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/496254/ltcube_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.fits
.....................!
real 191.15
user 185.52
sys 5.31

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/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.fits scfile=/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits outfile=/scratch/kocevski/496254/cmap_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.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.51
user 0.34
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.fits scfile=/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits outfile=/scratch/kocevski/496254/cmap_HighResolution_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.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.52
user 0.35
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.fits evtable="EVENTS" scfile=/scratch/kocevski/496254/ft2_4FGL_J1902.9-6748_daily_bin1171.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496254/Model_4FGL_J1902.9-6748_daily_bin1171.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/496254/ft1_filtered_4FGL_J1902.9-6748_daily_bin1171.fits....................!
real 16.36
user 15.06
sys 1.26

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    424.75       1.0000         .10000E-03   10000.    
     2 'norm      '    .10477E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    299.20       1.0000         .10000E-03   10000.    
     4 'Prefactor '    18.558       1.0000         .10000E-03   10000.    
     5 'Prefactor '    55.761       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .30443E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10495E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .14789E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    123.12       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .17319E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    43.615       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10496E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    102.72       1.0000         .10000E-03   10000.    
    15 'norm      '    23.368       1.0000         .10000E-03   10000.    
    16 'norm      '    .18498E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10020E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.1126       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=   405.4054     FROM MIGRAD    STATUS=CONVERGED    366 CALLS     1838 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .1%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     424.96        672.57        .10279E-03    .14202E-05
   2  norm          .10000E-03    31.357       -.24136E-06** at limit **
   3  norm          298.10        482.44       -.63236E-03    .51140E-05
   4  Prefactor     18.765        200.86        .36091E-03    .38479E-04
   5  Prefactor     55.644        98.647       -.10671E-03    .52773E-04
   6  Prefactor     .10030E-03    152.81       -.26944E-04** at limit **
   7  norm          .10000E-03    2.3474        .31906E-06** at limit **
   8  Prefactor     .10000E-03    180.24       -.49756E-04** at limit **
   9  Prefactor     .10000E-03    326.75        .12953E-03** at limit **
  10  norm          123.13        128.18        .94126E-05    .38763E-05
  11  Prefactor     .10000E-03    358.26        .10051E-03** at limit **
  12  norm          43.591        52.947       -.30776E-05    .10700E-05
  13  Prefactor     .10000E-03    75.607        .14819E-04** at limit **
  14  Prefactor     102.68        232.73       -.38494E-04    .12890E-04
  15  norm          23.372        12.538       -.31683E-05    .32192E-04
  16  norm          .10000E-03    570.84       -.21572E-03** at limit **
  17  Prefactor     .10000E-03    62.270       -.32477E-05** at limit **
  18  Normalizat    .10000E-01    .52164       -.33028E-05** at limit **
  19  Prefactor     1.1125        .26567        .31693E-05    .14982E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 424.962
  norm       = 0.000100002
  norm       = 298.105
  Prefactor  = 18.7655
  Prefactor  = 55.644
  Prefactor  = 0.000100295
  norm       = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 123.127
  Prefactor  = 0.0001
  norm       = 43.5909
  Prefactor  = 0.0001
  Prefactor  = 102.679
  norm       = 23.3723
  norm       = 0.000100001
  Prefactor  = 0.0001
  Normalizat = 0.01
  Prefactor  = 1.11246
 **********
 **   18 **HESSE 
 **********

 FCN=   405.4054     FROM HESSE     STATUS=OK           258 CALLS     2096 TOTAL
                     EDM=   .22E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     424.96        672.50        .99171E-04   -1.1555    
   2  norm          .10000E-03    31.364        .11023E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          298.10        482.79        .11739E-03   -1.2237    
   4  Prefactor     18.765        201.12        .92974E-04   -1.4841    
   5  Prefactor     55.644        98.424        .26860E-03   -1.4215    
   6  Prefactor     .10030E-03    152.99        .21384E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    2.3482        .30144E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    180.24        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    326.74        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          123.13        128.19        .18137E-03   -1.3484    
  11  Prefactor     .10000E-03    358.26        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          43.591        52.982        .60704E-04   -1.4387    
  13  Prefactor     .10000E-03    75.758        .17128E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     102.68        233.21        .19836E-03   -1.3678    
  15  norm          23.372        12.545        .50412E-04   -1.4741    
  16  norm          .10000E-03    570.97        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    62.287        .15542E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .10000E-01    .54529        .86873E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  19  Prefactor     1.1125        .26132        .14575E-03   -.89069    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 2.19353e-09
Minuit parameter uncertainties:
  1  685.629
  2  0.000479526
  3  489.523
  4  123.4
  5  98.7139
  6  0.013475
  7  1.88074e-05
  8  0.000143461
  9  9.79879e-05
  10  128.479
  11  4.47297e-05
  12  53.0389
  13  8.45007e-06
  14  235.337
  15  12.546
  16  0.00109734
  17  9.02533e-06
  18  1.84584e-06
  19  0.261624
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  4.359e+01  5.304e+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.112e+00  2.616e-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.000e-02  1.846e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 1.43
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.76e-07 +/- 2.14e-07
Energy Flux (Fixed Index): 5.93e-05 +/- 7.22e-05

TS (Fixed Index): 1.43
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 8.67e-07 ph cm-2 s-1
Energy Flux Upper Limit: 2.92e-04 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/496254/likelihoodResults_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.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) = 405.328375092
delta logL = 0.0769777681376

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 405.283209477
delta logL = 0.122143383349

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    64.569       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.8123       1.0000          .0000       5.0000    
     3 'Normalizat'    .10000E-01   1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.1052       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=   405.2832     FROM MIGRAD    STATUS=CONVERGED     51 CALLS      205 TOTAL
                     EDM=   .46E-11  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  4.0%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          64.791        76.182        .22659E-04   -.42866E-05
   2  alpha         1.8111        .86977        .25341E-03    .62483E-06
   3  Normalizat    .10000E-01    .52874       -.56503E-05** at limit **
   4  Prefactor     1.1052        .24415       -.34837E-05    .25389E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 64.791
  alpha      = 1.81111
  Normalizat = 0.01
  Prefactor  = 1.10521
 **********
 **   18 **HESSE 
 **********

 FCN=   405.2832     FROM HESSE     STATUS=OK            29 CALLS      234 TOTAL
                     EDM=   .61E-11    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          64.791        76.197        .24971E-03   -1.4096    
   2  alpha         1.8111        .87015        .68232E-03   -.27917    
   3  Normalizat    .10000E-01    .55699        .87512E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     1.1052        .23414        .14591E-03   -.89300    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.0973e-12
Minuit parameter uncertainties:
  1  76.3124
  2  0.890384
  3  1.58261e-06
  4  0.234354
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496254': 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) = 405.283204908
delta logL = 0.122147951882

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.479e+01  7.631e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.811e+00  8.904e-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.105e+00  2.344e-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.000e-02  1.583e-06  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 1.67
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.81 +/- 0.89
Photon Flux (Free Index): 1.73e-07 +/- 1.96e-07
Energy Flux (Free Index): 1.12e-04 +/- 1.91e-04

Creating a high resolution counts map...
INFO: Auto-setting vmin to  0.000e+00 [aplpy.core]
INFO: Auto-setting vmax to  0.000e+00 [aplpy.core]
Saving /scratch/kocevski/496254/cmap_HighResolution_542851201_543110401_4FGL_J1902.9-6748_daily_bin1171.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.92e-04', comment='SUCCESS', photon_flux='1.76e-07', energy_flux2='1.12e-04', photon_flux_error='2.14e-07', dlogl='1.22e-01', energy_flux='5.93e-05', photon_flux2='1.73e-07', job_status='DONE', time_completed='2021-09-21 22:23:28.541563', photon_index_error2='0.89', photon_index2='1.81', ts='1.43', fit_tolerance='1e-08', GAL='1.11', photon_index_error='0.00', photon_flux_upper_limit='8.67e-07', energy_flux_error2='1.91e-04', EG='0.01', time_epoch_completed='1632288208.54', return_code='0', job_id='496254', GAL2='1.11', EG2='0.01', return_code2='0', energy_flux_error='7.22e-05', photon_flux_error2='1.96e-07', ts2='1.67', photon_index='2.31' WHERE bin_id='1171' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:23:28 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0249>
Subject: Job 496254: <4FGL_J1902.9-6748_daily_bin1171> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1171 285.743 -67.8068 542851201 543110401 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 :                                   323.45 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             417.93 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   425 sec.
    Turnaround time :                            427 sec.

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

