/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 9 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 = 7395
number of fields = 27
No RA_SUN column yet. Adding RA_SUN/DEC_SUN columns.
Done.


Performing analysis on: 4FGL_J1902.9-6748_daily_bin353
RA = 285.743, Dec = -67.8068
tmin = 330825601, tmax = 331084801
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='488092', job_status='RUN', time_executed='2021-09-21 21:51:26.770295', time_epoch_executed='1632286286.77' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='353'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/488092

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/488092/ft1_4FGL_J1902.9-6748_daily_bin353.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/488092/ft1_4FGL_J1902.9-6748_daily_bin353.fits outfile=/scratch/kocevski/488092/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin353.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=330825601.0 tmax=331084801.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.41
user 3.19
sys 0.20

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.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/488092/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin353.fits evtable="EVENTS" outfile="/scratch/kocevski/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.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.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.fits" evtable="EVENTS" scfile=/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits sctable="SC_DATA" outfile=/scratch/kocevski/488092/ltcube_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.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/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits
.....................!
real 12.48
user 12.10
sys 0.30

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits sctable="SC_DATA" expcube=/scratch/kocevski/488092/ltcube_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.fits outfile=/scratch/kocevski/488092/expmap_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.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/488092/ltcube_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.fits
.....................!
real 190.72
user 185.84
sys 4.39

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/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.fits scfile=/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits outfile=/scratch/kocevski/488092/cmap_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.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.36
sys 0.16

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.fits scfile=/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits outfile=/scratch/kocevski/488092/cmap_HighResolution_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.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.37
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.fits evtable="EVENTS" scfile=/scratch/kocevski/488092/ft2_4FGL_J1902.9-6748_daily_bin353.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/488092/Model_4FGL_J1902.9-6748_daily_bin353.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/488092/ft1_filtered_4FGL_J1902.9-6748_daily_bin353.fits.....................!
real 80.39
user 79.02
sys 1.21

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10010E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    2.3868       1.0000         .10000E-03   10000.    
     3 'norm      '    80.305       1.0000         .10000E-03   10000.    
     4 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    9.6707       1.0000         .10000E-03   10000.    
     7 'norm      '    .55454       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10069E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    14.727       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10003E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .10003E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.9138       1.0000         .10000E-03   10000.    
    14 'Prefactor '    28.756       1.0000         .10000E-03   10000.    
    15 'norm      '    .77419       1.0000         .10000E-03   10000.    
    16 'norm      '    69.703       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.5475       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .79456       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=   8591.587     FROM MIGRAD    STATUS=CONVERGED    370 CALLS     1876 TOTAL
                     EDM=   .11E-08  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .6%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10002E-03    60.896        .36955E-04** at limit **
   2  norm          2.3865        5.9767       -.93699E-05   -.13081E-03
   3  norm          80.304        56.958       -.41217E-06    .44451E-04
   4  Prefactor     .10000E-03    6.5801       -.35292E-08** at limit **
   5  Prefactor     .10000E-03    17.483        .93656E-07** at limit **
   6  Prefactor     9.6663        11.277       -.15382E-05    .43755E-04
   7  norm          .55331        .88646       -.37506E-06   -.16934E-02
   8  Prefactor     .10002E-03    77.374       -.37823E-04** at limit **
   9  Prefactor     .10000E-03    68.925        .35470E-05** at limit **
  10  norm          14.725        26.361       -.15850E-05    .97311E-05
  11  Prefactor     .10000E-03    43.487       -.68011E-05** at limit **
  12  norm          .10000E-03    2.6314        .14808E-06** at limit **
  13  Prefactor     2.9156        11.455        .10925E-05   -.17057E-03
  14  Prefactor     28.757        25.013        .42903E-06   -.93468E-05
  15  norm          .77402        1.2767       -.35935E-06   -.18989E-02
  16  norm          69.704        51.507        .27802E-06   -.61245E-05
  17  Prefactor     .10000E-03    11.175        .61496E-07** at limit **
  18  Normalizat    1.5473        .24405        .87272E-06    .13697E-03
  19  Prefactor     .79462        .86229E-01    .59189E-06    .18802E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.000100016
  norm       = 2.38649
  norm       = 80.3041
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  Prefactor  = 9.66631
  norm       = 0.553311
  Prefactor  = 0.00010002
  Prefactor  = 0.0001
  norm       = 14.7253
  Prefactor  = 0.000100001
  norm       = 0.0001
  Prefactor  = 2.91555
  Prefactor  = 28.7573
  norm       = 0.774018
  norm       = 69.7036
  Prefactor  = 0.0001
  Normalizat = 1.54733
  Prefactor  = 0.794615
 **********
 **   18 **HESSE 
 **********

 FCN=   8591.587     FROM HESSE     STATUS=OK           266 CALLS     2142 TOTAL
                     EDM=   .16E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10002E-03    60.006        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          2.3865        6.1114        .26512E-03   -1.5399    
   3  norm          80.304        56.937        .44818E-04   -1.3913    
   4  Prefactor     .10000E-03    6.5999        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   5  Prefactor     .10000E-03    17.607        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     9.6663        11.275        .12886E-03   -1.5086    
   7  norm          .55331        .81900        .10637E-02   -1.5559    
   8  Prefactor     .10002E-03    76.276        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    68.949        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          14.725        26.431        .10437E-03   -1.4940    
  11  Prefactor     .10000E-03    43.457        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    2.6352        .14681E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     2.9156        11.418        .23801E-03   -1.5366    
  14  Prefactor     28.757        25.017        .74712E-04   -1.4635    
  15  norm          .77402        1.1647        .12854E-02   -1.5532    
  16  norm          69.704        51.509        .48080E-04   -1.4036    
  17  Prefactor     .10000E-03    11.377        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.5473        .29697        .34126E-03   -.76457    
  19  Prefactor     .79462        .10573        .16485E-03   -.99927    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.59291e-09
Minuit parameter uncertainties:
  1  0.00198415
  2  6.11297
  3  56.9761
  4  5.19458e-06
  5  3.69883e-05
  6  11.2778
  7  0.819019
  8  0.00248641
  9  0.000195207
  10  26.4518
  11  0.000327162
  12  4.41118e-06
  13  11.4266
  14  25.0264
  15  1.16472
  16  51.5417
  17  1.87624e-05
  18  0.297309
  19  0.10576
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e-04  4.411e-06  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.946e-01  1.058e-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.547e+00  2.973e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): -0.00
Ra Dec: 285.743 -67.807
Photon Flux Upper Limit: 5.41e-08 ph cm-2 s-1
Energy Flux Upper Limit: 1.82e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/488092/likelihoodResults_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.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) = 8591.5892306
delta logL = -0.00180332738637

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 8591.58742726
delta logL = 1.29784893943e-08

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .10000E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.3176       1.0000          .0000       5.0000    
     3 'Normalizat'    1.5473       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .79462       1.0000          .0000       10.000    
 **********
 **   15 **SET ERR    .5000    
 **********
 **********
 **   16 **SET GRAD    1.000    
 **********
 **********
 **   17 **MINIMIZE    .7390E+05   .2000E-04
 **********

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.
 MIGRAD TERMINATED WITHOUT CONVERGENCE.

 FCN=   8591.381     FROM MIGRAD    STATUS=FAILED       126 CALLS      268 TOTAL
                     EDM=   .11E-06    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26014        32.134        .14691E-01    .29445E-02
   2  alpha         5.0000        4.7109        .16516    ** at limit **
   3  Normalizat    1.4879        .57528        .34126E-03    .11726E-04
   4  Prefactor     .80792        .73052E-01    .16485E-03    .39447E-04
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   8591.381     FROM SIMPLEX   STATUS=UNCHANGED    184 CALLS      452 TOTAL
                     EDM=   .83E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26014        32.134        .32157E-07    .29445E-02
   2  alpha         5.0000        4.7109        .69485E-02** at limit **
   3  Normalizat    1.4879        .57528        .28726E-07    .11726E-04
   4  Prefactor     .80792        .73052E-01    .19417E-08    .39447E-04
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   8591.381     FROM MIGRAD    STATUS=CONVERGED     28 CALLS      480 TOTAL
                     EDM=   .69E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .26014        .43308        .71512E-04   -.13672E-04
   2  alpha         5.0000        3.3064        .33033E-01** at limit **
   3  Normalizat    1.4879        .30162        .13650E-04    .11660E-04
   4  Prefactor     .80792        .10644        .65941E-05    .39309E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 0.260138
  alpha      = 5
  Normalizat = 1.48787
  Prefactor  = 0.807918
 **********
 **   18 **HESSE 
 **********

 FCN=   8591.381     FROM HESSE     STATUS=OK            23 CALLS      503 TOTAL
                     EDM=   .81E-12    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .26014        .43283        .28605E-05   -1.5606    
   2  alpha         5.0000        3.3063        .66065E-02    45.553    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  Normalizat    1.4879        .30155        .27301E-05   -.78120    
   4  Prefactor     .80792        .10647        .13188E-05   -.99437    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.11426e-13
Minuit parameter uncertainties:
  1  0.432834
  2  5.53758e-07
  3  0.301911
  4  0.106494
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/488092': 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) = 8591.38084599
delta logL = 0.206581282224

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  2.601e-01  4.328e-01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  5.000e+00  5.538e-07  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.079e-01  1.065e-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.488e+00  3.019e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): -0.00
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/488092/cmap_HighResolution_330825601_331084801_4FGL_J1902.9-6748_daily_bin353.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='1.82e-05', job_status='DONE', photon_flux_upper_limit='5.41e-08', time_completed='2021-09-21 22:05:50.893445', job_id='488092', GAL2='0.81', fit_tolerance='1e-08', EG2='1.49', EG='1.55', time_epoch_completed='1632287150.89', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='0.79', dlogl='2.07e-01', ts2='0.45', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='353' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:05:50 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0206>
Subject: Job 488092: <4FGL_J1902.9-6748_daily_bin353> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin353> was submitted from host <rhel6-64q> by user <kocevski> in cluster <slac> at Tue Sep 21 21:51:06 2021
Job was executed on host(s) <bullet0206>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 21:51:08 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 21:51:08 2021
Terminated at Tue Sep 21 22:05:51 2021
Results reported at Tue Sep 21 22:05:51 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin353 285.743 -67.8068 330825601 331084801 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 :                                   860.00 sec.
    Max Memory :                                 1257 MB
    Average Memory :                             330.96 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   883 sec.
    Turnaround time :                            885 sec.

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

