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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1118
RA = 285.743, Dec = -67.8068
tmin = 529113601, tmax = 529372801
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='496176', job_status='RUN', time_executed='2021-09-21 22:17:33.054059', time_epoch_executed='1632287853.05' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1118'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/496176

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/496176/ft1_4FGL_J1902.9-6748_daily_bin1118.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/496176/ft2_4FGL_J1902.9-6748_daily_bin1118.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/496176/ft1_4FGL_J1902.9-6748_daily_bin1118.fits outfile=/scratch/kocevski/496176/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1118.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=529113601.0 tmax=529372801.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.88
user 3.64
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/496176/ft1_filtered_4FGL_J1902.9-6748_daily_bin1118.fits" evtable="EVENTS" scfile=/scratch/kocevski/496176/ft2_4FGL_J1902.9-6748_daily_bin1118.fits sctable="SC_DATA" outfile=/scratch/kocevski/496176/ltcube_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.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/496176/ft2_4FGL_J1902.9-6748_daily_bin1118.fits
.....................!
real 11.85
user 11.49
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/496176/ft1_filtered_4FGL_J1902.9-6748_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/496176/ft2_4FGL_J1902.9-6748_daily_bin1118.fits sctable="SC_DATA" expcube=/scratch/kocevski/496176/ltcube_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.fits outfile=/scratch/kocevski/496176/expmap_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.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/496176/ltcube_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.fits
.....................!
real 189.94
user 185.27
sys 4.36

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/496176/ft1_filtered_4FGL_J1902.9-6748_daily_bin1118.fits scfile=/scratch/kocevski/496176/ft2_4FGL_J1902.9-6748_daily_bin1118.fits outfile=/scratch/kocevski/496176/cmap_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.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.53
user 0.38
sys 0.14

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

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/496176/ft1_filtered_4FGL_J1902.9-6748_daily_bin1118.fits evtable="EVENTS" scfile=/scratch/kocevski/496176/ft2_4FGL_J1902.9-6748_daily_bin1118.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/496176/Model_4FGL_J1902.9-6748_daily_bin1118.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/496176/ft1_filtered_4FGL_J1902.9-6748_daily_bin1118.fits.....................!
real 91.14
user 89.82
sys 1.16

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10726E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    6.9451       1.0000         .10000E-03   10000.    
     3 'norm      '    109.03       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10027E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10084E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    16.174       1.0000         .10000E-03   10000.    
     7 'norm      '    .60835       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10002E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    12.407       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10018E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    9.0772       1.0000         .10000E-03   10000.    
    13 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10006E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1102       1.0000         .10000E-03   10000.    
    16 'norm      '    111.52       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.2571       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .88675       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=   10115.97     FROM MIGRAD    STATUS=CONVERGED    380 CALLS     1885 TOTAL
                     EDM=   .18E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .9%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10001E-03    109.72       -.21801E-04** at limit **
   2  norm          6.9448        7.0794        .96718E-06   -.34329E-04
   3  norm          109.01        80.765       -.18439E-04    .24655E-03
   4  Prefactor     .10000E-03    10.758        .69531E-07** at limit **
   5  Prefactor     .10000E-03    12.536       -.32210E-06** at limit **
   6  Prefactor     16.170        13.829       -.54581E-06    .16887E-04
   7  norm          .60817        .85082       -.38715E-06   -.22835E-02
   8  Prefactor     .10000E-03    30.555       -.15150E-06** at limit **
   9  Prefactor     .10000E-03    60.494       -.42057E-05** at limit **
  10  norm          12.409        22.585       -.18189E-05   -.40906E-03
  11  Prefactor     .10001E-03    93.603        .24687E-04** at limit **
  12  norm          9.0770        7.4141       -.11644E-05   -.16626E-02
  13  Prefactor     .10000E-03    5.1421       -.10541E-06** at limit **
  14  Prefactor     .10000E-03    11.365        .58792E-07** at limit **
  15  norm          4.1103        1.7198       -.12008E-06   -.32036E-03
  16  norm          111.52        56.609       -.53207E-06    .97583E-05
  17  Prefactor     .10000E-03    3.1886       -.73353E-07** at limit **
  18  Normalizat    1.2572        .22242        .13998E-05    .37019E-04
  19  Prefactor     .88671        .81659E-01    .47171E-06    .70237E-04
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100011
  norm       = 6.94483
  norm       = 109.011
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 16.1703
  norm       = 0.608166
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 12.4086
  Prefactor  = 0.000100009
  norm       = 9.07702
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 4.11034
  norm       = 111.517
  Prefactor  = 0.0001
  Normalizat = 1.25721
  Prefactor  = 0.886711
 **********
 **   18 **HESSE 
 **********

 FCN=   10115.97     FROM HESSE     STATUS=OK           262 CALLS     2147 TOTAL
                     EDM=   .36E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10001E-03    108.49        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          6.9448        7.0657        .15223E-03   -1.5181    
   3  norm          109.01        79.278        .19259E-03   -1.3616    
   4  Prefactor     .10000E-03    10.834        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    12.572        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     16.170        13.820        .99590E-04   -1.4904    
   7  norm          .60817        .83858        .10650E-03   -1.5552    
   8  Prefactor     .10000E-03    30.567        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    60.540        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          12.409        22.866        .56861E-03   -1.5003    
  11  Prefactor     .10001E-03    92.573        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          9.0770        7.6390        .66514E-03   -1.5105    
  13  Prefactor     .10000E-03    5.1591        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  14  Prefactor     .10000E-03    11.422        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1103        1.7241        .80632E-04   -1.5302    
  16  norm          111.52        56.644        .38091E-04   -1.3592    
  17  Prefactor     .10000E-03    3.1918        .17540E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.2572        .26847        .37116E-03   -.84853    
  19  Prefactor     .88671        .98922E-01    .16129E-03   -.96607    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 3.60462e-09
Minuit parameter uncertainties:
  1  0.00221698
  2  7.06657
  3  79.355
  4  1.93401e-05
  5  1.61858e-05
  6  13.823
  7  0.838594
  8  2.27968e-05
  9  0.000241818
  10  22.8826
  11  0.00184035
  12  7.63978
  13  4.52065e-06
  14  7.12203e-06
  15  1.72413
  16  56.6713
  17  1.67764e-06
  18  0.26877
  19  0.0989423
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  9.077e+00  7.640e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.313e+00  0.000e+00  0.000e+00  5.000e+00 ( 1.000e+00) fixed
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.867e-01  9.894e-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.257e+00  2.688e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 2.49
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 3.67e-08 +/- 3.08e-08
Energy Flux (Fixed Index): 1.24e-05 +/- 1.04e-05

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

Saving results to:
/scratch/kocevski/496176/likelihoodResults_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.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) = 10115.3742347
delta logL = 0.595607844469

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10115.3075977
delta logL = 0.662244786326

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    6.0944       1.0000         .10000E-03   10000.    
     2 'alpha     '    1.3759       1.0000          .0000       5.0000    
     3 'Normalizat'    1.2836       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .88248       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=   10115.31     FROM MIGRAD    STATUS=CONVERGED     56 CALLS      218 TOTAL
                     EDM=   .17E-09    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          6.0918        5.3032        .40658E-02    .29593E-03
   2  alpha         1.3758        .46551        .48282       -.57210E-04
   3  Normalizat    1.2837        .21598        .83087E-01   -.61764E-05
   4  Prefactor     .88246        .80796E-01    .44781E-01   -.68783E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 6.09175
  alpha      = 1.37584
  Normalizat = 1.28368
  Prefactor  = 0.882465
 **********
 **   18 **HESSE 
 **********

 FCN=   10115.31     FROM HESSE     STATUS=OK            31 CALLS      249 TOTAL
                     EDM=   .11E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          6.0918        7.3639        .81316E-03   -1.5214    
   2  alpha         1.3758        .73195        .20484E-01   -.46639    
   3  Normalizat    1.2837        .26086        .36784E-03   -.84055    
   4  Prefactor     .88246        .97787E-01    .16162E-03   -.96757    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.12901e-11
Minuit parameter uncertainties:
  1  7.36499
  2  0.745738
  3  0.261124
  4  0.0978066
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/496176': 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) = 10115.3075976
delta logL = 0.662244895388

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  6.092e+00  7.365e+00  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.376e+00  7.457e-01  0.000e+00  5.000e+00 ( 1.000e+00)
437         beta:  1.311e-01  0.000e+00  0.000e+00  1.000e+01 ( 1.000e+00) fixed
438           Eb:  6.088e+02  0.000e+00  3.000e+01  5.000e+05 ( 1.000e+00) fixed

GAL_V02
   Spectrum: PowerLaw
736    Prefactor:  8.825e-01  9.781e-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.284e+00  2.611e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 3.82
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 1.38 +/- 0.75
Photon Flux (Free Index): 1.37e-08 +/- 1.73e-08
Energy Flux (Free Index): 2.10e-05 +/- 2.40e-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/496176/cmap_HighResolution_529113601_529372801_4FGL_J1902.9-6748_daily_bin1118.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='3.65e-05', comment='SUCCESS', photon_flux='3.67e-08', energy_flux2='2.10e-05', photon_flux_error='3.08e-08', dlogl='6.62e-01', energy_flux='1.24e-05', photon_flux2='1.37e-08', job_status='DONE', time_completed='2021-09-21 22:32:50.661969', photon_index_error2='0.75', photon_index2='1.38', ts='2.49', fit_tolerance='1e-08', GAL='0.89', photon_index_error='0.00', photon_flux_upper_limit='1.08e-07', energy_flux_error2='2.40e-05', EG='1.26', time_epoch_completed='1632288770.66', return_code='0', job_id='496176', GAL2='0.88', EG2='1.28', return_code2='0', energy_flux_error='1.04e-05', photon_flux_error2='1.73e-08', ts2='3.82', photon_index='2.31' WHERE bin_id='1118' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:32:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0115>
Subject: Job 496176: <4FGL_J1902.9-6748_daily_bin1118> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1118 285.743 -67.8068 529113601 529372801 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.03 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             291.53 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   993 sec.
    Turnaround time :                            997 sec.

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

