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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1429
RA = 285.743, Dec = -67.8068
tmin = 609724801, tmax = 609984001
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='499491', job_status='RUN', time_executed='2021-09-21 22:27:20.692418', time_epoch_executed='1632288440.69' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1429'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499491

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499491/ft1_4FGL_J1902.9-6748_daily_bin1429.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499491/ft1_4FGL_J1902.9-6748_daily_bin1429.fits outfile=/scratch/kocevski/499491/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1429.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=609724801.0 tmax=609984001.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.61
user 2.38
sys 0.19

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499491/ft1_filtered_4FGL_J1902.9-6748_daily_bin1429.fits" evtable="EVENTS" scfile=/scratch/kocevski/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits sctable="SC_DATA" outfile=/scratch/kocevski/499491/ltcube_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.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/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits
.....................!
real 14.42
user 13.90
sys 0.37

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499491/ft1_filtered_4FGL_J1902.9-6748_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits sctable="SC_DATA" expcube=/scratch/kocevski/499491/ltcube_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.fits outfile=/scratch/kocevski/499491/expmap_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.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/499491/ltcube_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.fits
.....................!
real 191.52
user 185.44
sys 5.19

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/499491/ft1_filtered_4FGL_J1902.9-6748_daily_bin1429.fits scfile=/scratch/kocevski/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits outfile=/scratch/kocevski/499491/cmap_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.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.39
sys 0.14

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499491/ft1_filtered_4FGL_J1902.9-6748_daily_bin1429.fits scfile=/scratch/kocevski/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits outfile=/scratch/kocevski/499491/cmap_HighResolution_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.fits algorithm="CMAP" ebinalg="LOG" emin=30.0 emax=200000.0 ebinfile=NONE tbinalg="LIN" tbinfile=NONE nxpix=500 nypix=500 binsz=0.1 coordsys="CEL" xref=285.743 yref=-67.8068 axisrot=0.0 rafield="RA" decfield="DEC" proj="AIT" hpx_ordering_scheme="RING" hpx_order=3 hpx_ebin=yes hpx_region="" evtable="EVENTS" sctable="SC_DATA" efield="ENERGY" tfield="TIME" chatter=2 clobber=yes debug=no gui=no mode="ql"

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

This is gtbin version HEAD
real 0.55
user 0.38
sys 0.17

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/499491/ft1_filtered_4FGL_J1902.9-6748_daily_bin1429.fits evtable="EVENTS" scfile=/scratch/kocevski/499491/ft2_4FGL_J1902.9-6748_daily_bin1429.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/499491/Model_4FGL_J1902.9-6748_daily_bin1429.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/499491/ft1_filtered_4FGL_J1902.9-6748_daily_bin1429.fits.....................!
real 89.28
user 87.88
sys 1.17

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    95.949       1.0000         .10000E-03   10000.    
     2 'norm      '    9.3695       1.0000         .10000E-03   10000.    
     3 'norm      '    34.679       1.0000         .10000E-03   10000.    
     4 'Prefactor '    12.967       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10032E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .10030E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10171E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10034E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    55.157       1.0000         .10000E-03   10000.    
    12 'norm      '    34.396       1.0000         .10000E-03   10000.    
    13 'Prefactor '    13.262       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10004E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    1.4359       1.0000         .10000E-03   10000.    
    16 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    2.0127       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .77287       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=   9578.446     FROM MIGRAD    STATUS=CONVERGED    394 CALLS     1870 TOTAL
                     EDM=   .19E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     95.950        166.42        .10258E-02   -.61101E-03
   2  norm          9.3697        10.355        .32732E-02    .16357E-02
   3  norm          34.680        95.557        .17013E-02   -.42861E-03
   4  Prefactor     12.967        13.314        .27809E-02   -.73193E-04
   5  Prefactor     .10000E-03    9.8964        .90712E-02** at limit **
   6  Prefactor     .10000E-03    44.488        .90712E-02** at limit **
   7  norm          .10000E-03    .39810        .23769E-01** at limit **
   8  Prefactor     .10000E-03    23.633        .90712E-02** at limit **
   9  Prefactor     .10003E-03    197.62        .90712E-02** at limit **
  10  norm          .10001E-03    35.652        .90712E-02** at limit **
  11  Prefactor     55.157        69.741        .13503E-02   -.12355E-03
  12  norm          34.396        14.042        .17082E-02   -.11510E-03
  13  Prefactor     13.261        14.156        .27498E-02   -.49902E-04
  14  Prefactor     .10000E-03    18.372        .90712E-02** at limit **
  15  norm          1.4359        1.1702        .90061E-02    .55768E-03
  16  norm          .10000E-03    13.153        .90712E-02** at limit **
  17  Prefactor     .10000E-03    5.6607        .90712E-02** at limit **
  18  Normalizat    2.0127        .25267        .77290E-01   -.43122E-03
  19  Prefactor     .77284        .91872E-01    .43363E-01   -.11996E-02
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 95.9505
  norm       = 9.36966
  norm       = 34.6802
  Prefactor  = 12.9671
  Prefactor  = 0.0001
  Prefactor  = 0.000100001
  norm       = 0.000100001
  Prefactor  = 0.000100004
  Prefactor  = 0.000100035
  norm       = 0.000100014
  Prefactor  = 55.1572
  norm       = 34.3958
  Prefactor  = 13.2613
  Prefactor  = 0.000100001
  norm       = 1.43588
  norm       = 0.0001
  Prefactor  = 0.0001
  Normalizat = 2.01274
  Prefactor  = 0.772842
 **********
 **   18 **HESSE 
 **********

 FCN=   9578.446     FROM HESSE     STATUS=OK           260 CALLS     2130 TOTAL
                     EDM=   .14E-07    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     95.950        166.39        .41034E-04   -1.3746    
   2  norm          9.3697        10.340        .65463E-03   -1.5096    
   3  norm          34.680        95.448        .68050E-04   -1.4529    
   4  Prefactor     12.967        13.322        .11124E-03   -1.4988    
   5  Prefactor     .10000E-03    9.9106        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10000E-03    45.793        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .80817        .12001E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     .10000E-03    23.637        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10003E-03    198.86        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10001E-03    36.034        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     55.157        69.719        .54011E-04   -1.4221    
  12  norm          34.396        14.049        .68329E-04   -1.4534    
  13  Prefactor     13.261        14.159        .10999E-03   -1.4979    
  14  Prefactor     .10000E-03    18.438        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          1.4359        1.1637        .92232E-04   -1.5468    
  16  norm          .10000E-03    13.156        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  17  Prefactor     .10000E-03    5.6788        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    2.0127        .30806        .34196E-03   -.64231    
  19  Prefactor     .77284        .11190        .18692E-03   -1.0074    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.36666e-08
Minuit parameter uncertainties:
  1  167.204
  2  10.3424
  3  95.872
  4  13.3255
  5  4.50311e-05
  6  0.000444982
  7  4.36674e-05
  8  0.000596533
  9  0.00527915
  10  0.00141763
  11  69.8226
  12  14.0508
  13  14.1627
  14  0.000193954
  15  1.16371
  16  0.000127697
  17  1.9378e-05
  18  0.308368
  19  0.111938
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  3.440e+01  1.405e+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.728e-01  1.119e-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.013e+00  3.084e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 12.60
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 1.39e-07 +/- 5.67e-08
Energy Flux (Fixed Index): 4.68e-05 +/- 1.91e-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) = 9577.97617879
delta logL = 0.469561156246

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 9577.97318715
delta logL = 0.472552797555

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    28.280       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7867       1.0000          .0000       5.0000    
     3 'Normalizat'    1.9375       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79063       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=   9577.973     FROM MIGRAD    STATUS=CONVERGED     59 CALLS      267 TOTAL
                     EDM=   .11E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          28.274        137.88        .18834E-02    .67630E-04
   2  alpha         2.7862        3.8798        .29382        .82250E-04
   3  Normalizat    1.9381        .14718        .78305E-01    .49259E-03
   4  Prefactor     .79055        .42282E-01    .43595E-01    .10816E-02
                               ERR DEF=  .500    
Final values: 
  norm       = 28.2741
  alpha      = 2.78621
  Normalizat = 1.93808
  Prefactor  = 0.790554
 **********
 **   18 **HESSE 
 **********

 FCN=   9577.973     FROM HESSE     STATUS=OK            29 CALLS      296 TOTAL
                     EDM=   .53E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          28.274        15.379        .75336E-04   -1.4644    
   2  alpha         2.7862        .53450        .11544E-01    .11474    
   3  Normalizat    1.9381        .31640        .34647E-03   -.66112    
   4  Prefactor     .79055        .11291        .18498E-03   -1.0008    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 5.25489e-09
Minuit parameter uncertainties:
  1  15.3807
  2  0.538719
  3  0.316745
  4  0.11294
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499491': 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) = 9577.97318243
delta logL = 0.472557518409

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.827e+01  1.538e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.786e+00  5.387e-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:  7.906e-01  1.129e-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.938e+00  3.167e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 13.67
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.79 +/- 0.54
Photon Flux (Free Index): 1.92e-07 +/- 8.26e-08
Energy Flux (Free Index): 4.51e-05 +/- 1.67e-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/499491/cmap_HighResolution_609724801_609984001_4FGL_J1902.9-6748_daily_bin1429.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='1.39e-07', energy_flux2='4.51e-05', photon_flux_error='5.67e-08', dlogl='4.73e-01', energy_flux='4.68e-05', photon_flux2='1.92e-07', job_status='DONE', time_completed='2021-09-21 22:40:13.633713', photon_index_error2='0.54', photon_index2='2.79', ts='12.60', fit_tolerance='1e-08', GAL='0.77', photon_index_error='0.00', energy_flux_error2='1.67e-05', EG='2.01', time_epoch_completed='1632289213.63', return_code='0', job_id='499491', GAL2='0.79', EG2='1.94', return_code2='0', energy_flux_error='1.91e-05', photon_flux_error2='8.26e-08', ts2='13.67', photon_index='2.31' WHERE bin_id='1429' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:40:13 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0235>
Subject: Job 499491: <4FGL_J1902.9-6748_daily_bin1429> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1429> was submitted from host <rhel6-64m> by user <kocevski> in cluster <slac> at Tue Sep 21 22:26:10 2021
Job was executed on host(s) <bullet0235>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:26:12 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:26:12 2021
Terminated at Tue Sep 21 22:40:15 2021
Results reported at Tue Sep 21 22:40:15 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1429 285.743 -67.8068 609724801 609984001 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 :                                   766.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             336.83 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   841 sec.
    Turnaround time :                            845 sec.

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

