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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1313
RA = 285.743, Dec = -67.8068
tmin = 579657601, tmax = 579916801
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='497914', job_status='RUN', time_executed='2021-09-21 22:22:13.857080', time_epoch_executed='1632288133.86' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1313'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/497914

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

Retrieving the FT1 file...

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

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

Retrieving 46 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/497914/ft1_4FGL_J1902.9-6748_daily_bin1313.fits


Retrieving the FT1 file...

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

Retrieving 46 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/497914/ft1_4FGL_J1902.9-6748_daily_bin1313.fits outfile=/scratch/kocevski/497914/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1313.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=579657601.0 tmax=579916801.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.48
user 3.23
sys 0.22

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

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

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/497914/ft1_filtered_4FGL_J1902.9-6748_daily_bin1313.fits" evtable="EVENTS" scfile=/scratch/kocevski/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits sctable="SC_DATA" outfile=/scratch/kocevski/497914/ltcube_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.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/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits
.....................!
real 14.73
user 14.34
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/497914/ft1_filtered_4FGL_J1902.9-6748_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits sctable="SC_DATA" expcube=/scratch/kocevski/497914/ltcube_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.fits outfile=/scratch/kocevski/497914/expmap_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.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/497914/ltcube_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.fits
.....................!
real 193.91
user 187.72
sys 5.76

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/497914/ft1_filtered_4FGL_J1902.9-6748_daily_bin1313.fits scfile=/scratch/kocevski/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits outfile=/scratch/kocevski/497914/cmap_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.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.58
user 0.36
sys 0.17

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/497914/ft1_filtered_4FGL_J1902.9-6748_daily_bin1313.fits scfile=/scratch/kocevski/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits outfile=/scratch/kocevski/497914/cmap_HighResolution_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.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.57
user 0.40
sys 0.16

Computing the diffuse response:
time -p gtdiffrsp evfile=/scratch/kocevski/497914/ft1_filtered_4FGL_J1902.9-6748_daily_bin1313.fits evtable="EVENTS" scfile=/scratch/kocevski/497914/ft2_4FGL_J1902.9-6748_daily_bin1313.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/497914/Model_4FGL_J1902.9-6748_daily_bin1313.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/497914/ft1_filtered_4FGL_J1902.9-6748_daily_bin1313.fits.....................!
real 89.93
user 88.24
sys 1.44

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    220.52       1.0000         .10000E-03   10000.    
     2 'norm      '    .10017E-03   1.0000         .10000E-03   10000.    
     3 'norm      '    .11358E-03   1.0000         .10000E-03   10000.    
     4 'Prefactor '    8.7397       1.0000         .10000E-03   10000.    
     5 'Prefactor '    .10569E-03   1.0000         .10000E-03   10000.    
     6 'Prefactor '    .29301E-02   1.0000         .10000E-03   10000.    
     7 'norm      '    .10022E-03   1.0000         .10000E-03   10000.    
     8 'Prefactor '    22.486       1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10586E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    15.414       1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    .23903E-03   1.0000         .10000E-03   10000.    
    13 'Prefactor '    17.173       1.0000         .10000E-03   10000.    
    14 'Prefactor '    .10235E-03   1.0000         .10000E-03   10000.    
    15 'norm      '    4.1717       1.0000         .10000E-03   10000.    
    16 'norm      '    53.832       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10011E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    .95334       1.0000         .10000E-01   10.000    
    19 'Prefactor '    1.0381       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=   10156.96     FROM MIGRAD    STATUS=CONVERGED    399 CALLS     1959 TOTAL
                     EDM=   .34E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=  1.8%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     220.54        119.11       -.20488E-05   -.28219E-04
   2  norm          .10000E-03    2.5941        .51572E-07** at limit **
   3  norm          .10000E-03    74.993       -.18143E-05** at limit **
   4  Prefactor     8.7398        11.238       -.52756E-06    .35765E-04
   5  Prefactor     .10000E-03    35.438       -.77809E-06** at limit **
   6  Prefactor     .10050E-03    9.3057       -.17463E-05** at limit **
   7  norm          .10000E-03    .76128       -.82695E-06** at limit **
   8  Prefactor     22.425        76.596       -.14853E-05   -.12939E-04
   9  Prefactor     .10000E-03    163.35        .45019E-07** at limit **
  10  norm          15.414        20.642        .44188E-06   -.55744E-05
  11  Prefactor     .10000E-03    34.418        .90434E-06** at limit **
  12  norm          .10000E-03    20.354        .39611E-06** at limit **
  13  Prefactor     17.175        13.657        .21951E-06   -.19213E-04
  14  Prefactor     .10000E-03    38.072        .24079E-06** at limit **
  15  norm          4.1716        1.5973        .46937E-07   -.52189E-04
  16  norm          53.830        53.691        .63967E-06   -.36895E-07
  17  Prefactor     .10000E-03    5.7677        .56557E-07** at limit **
  18  Normalizat    .95333        .23503       -.13371E-05   -.10362E-03
  19  Prefactor     1.0382        .87428E-01   -.34586E-06   -.25498E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 220.541
  norm       = 0.0001
  norm       = 0.0001
  Prefactor  = 8.73976
  Prefactor  = 0.0001
  Prefactor  = 0.000100498
  norm       = 0.0001
  Prefactor  = 22.4252
  Prefactor  = 0.0001
  norm       = 15.4137
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 17.1752
  Prefactor  = 0.0001
  norm       = 4.17163
  norm       = 53.8296
  Prefactor  = 0.0001
  Normalizat = 0.953328
  Prefactor  = 1.03817
 **********
 **   18 **HESSE 
 **********

 FCN=   10156.96     FROM HESSE     STATUS=OK           270 CALLS     2229 TOTAL
                     EDM=   .62E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     220.54        118.67        .13619E-03   -1.2727    
   2  norm          .10000E-03    2.6184        .15855E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   3  norm          .10000E-03    75.184        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   4  Prefactor     8.7398        11.263        .67793E-03   -1.5117    
   5  Prefactor     .10000E-03    36.334        .36285E-03   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   6  Prefactor     .10050E-03    75.733        .49545E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .10000E-03    .76946        .12796E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   8  Prefactor     22.425        76.770        .84469E-04   -1.4761    
   9  Prefactor     .10000E-03    163.90        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          15.414        20.640        .10202E-03   -1.4923    
  11  Prefactor     .10000E-03    34.414        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          .10000E-03    21.201        .36285E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  13  Prefactor     17.175        13.640        .96649E-04   -1.4879    
  14  Prefactor     .10000E-03    38.369        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  15  norm          4.1716        1.5969        .75214E-04   -1.5299    
  16  norm          53.830        53.732        .54668E-04   -1.4239    
  17  Prefactor     .10000E-03    5.7900        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    .95333        .27706        .42541E-03   -.94611    
  19  Prefactor     1.0382        .10412        .15380E-03   -.91468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 6.20955e-09
Minuit parameter uncertainties:
  1  118.804
  2  6.23546e-06
  3  9.03666e-05
  4  11.2657
  5  0.000253562
  6  0.0122926
  7  1.68128e-05
  8  77.1116
  9  1.09786e-05
  10  20.6499
  11  2.97095e-05
  12  0.000122191
  13  13.6428
  14  0.000101153
  15  1.59696
  16  53.7804
  17  1.15095e-05
  18  0.277472
  19  0.104138
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e-04  1.222e-04  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.038e+00  1.041e-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:  9.533e-01  2.775e-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: 8.60e-08 ph cm-2 s-1
Energy Flux Upper Limit: 2.90e-05 MeV cm-2 s-1

Saving results to:
/scratch/kocevski/497914/likelihoodResults_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.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): 102
logL (Free Index) = 10156.9575552
delta logL = -0.000223593420742

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 102
logL (Free Index) = 10156.9573319
delta logL = -2.15724867303e-07

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    .11314E-03   1.0000         .10000E-03   10000.    
     2 'alpha     '    2.2819       1.0000          .0000       5.0000    
     3 'Normalizat'    .95333       1.0000         .10000E-01   10.000    
     4 'Prefactor '    1.0382       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=   10156.96     FROM MIGRAD    STATUS=FAILED        94 CALLS      256 TOTAL
                     EDM=   .41E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10509E-03    1440.7        .43985E-02** at limit **
   2  alpha         1.8841        3.0746        .50000        .94628E-06
   3  Normalizat    .95334        .40313E-01    .42541E-03    .40978E-03
   4  Prefactor     1.0382        .15263E-01    .15380E-03    .48370E-03
                               ERR DEF=  .500    
 START SIMPLEX MINIMIZATION.    CONVERGENCE WHEN EDM .LT.   .20E-04
 SIMPLEX MINIMIZATION HAS CONVERGED.

 FCN=   10156.96     FROM SIMPLEX   STATUS=UNCHANGED    154 CALLS      410 TOTAL
                     EDM=   .62E-05    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10509E-03    1440.7        .74967E-03** at limit **
   2  alpha         1.8841        3.0746        .26183E-04    .94628E-06
   3  Normalizat    .95334        .40313E-01    .45695E-06    .40978E-03
   4  Prefactor     1.0382        .15263E-01    .13440E-06    .48370E-03
                               ERR DEF=  .500    

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 MIGRAD MINIMIZATION HAS CONVERGED.

 MIGRAD WILL VERIFY CONVERGENCE AND ERROR MATRIX.

 FCN=   10156.96     FROM MIGRAD    STATUS=CONVERGED     77 CALLS      487 TOTAL
                     EDM=   .84E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          .10000E-03    38.975        .17594E-03** at limit **
   2  alpha         1.8494        2.8101        .50000       -.41700E-07
   3  Normalizat    .95333        .27182        .34033E-05    .45431E-04
   4  Prefactor     1.0382        .10300        .61520E-05   -.12936E-03
                               ERR DEF=  .500    
Final values: 
  norm       = 0.0001
  alpha      = 1.84944
  Normalizat = 0.953331
  Prefactor  = 1.03817
 **********
 **   18 **HESSE 
 **********

 FCN=   10156.96     FROM HESSE     STATUS=OK            29 CALLS      516 TOTAL
                     EDM=   .86E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          .10000E-03    33.932        .35188E-04   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  alpha         1.8494        2.5294        .50000       -.26325    
   3  Normalizat    .95333        .27700        .68066E-06   -.94611    
   4  Prefactor     1.0382        .10458        .12304E-05   -.91468    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 8.60422e-11
Minuit parameter uncertainties:
  1  8.94686e-05
  2  218.706
  3  0.277419
  4  0.104598
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/497914': 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) = 10156.9573308
delta logL = 8.59525243868e-07

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.000e-04  8.947e-05  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  1.849e+00  2.187e+02  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.038e+00  1.046e-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:  9.533e-01  2.774e-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/497914/cmap_HighResolution_579657601_579916801_4FGL_J1902.9-6748_daily_bin1313.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET energy_flux_upper_limit='2.90e-05', job_status='DONE', photon_flux_upper_limit='8.60e-08', time_completed='2021-09-21 22:38:11.836830', job_id='497914', GAL2='1.04', fit_tolerance='1e-08', EG2='0.95', EG='0.95', time_epoch_completed='1632289091.84', return_code2='0', ts='-0.00', comment='SUCCESS', return_code='0', GAL='1.04', dlogl='8.60e-07', ts2='-0.00', photon_index_error='0.00', photon_index='2.31' WHERE bin_id='1313' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:38:11 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0048>
Subject: Job 497914: <4FGL_J1902.9-6748_daily_bin1313> in cluster <slac> Done

Job <4FGL_J1902.9-6748_daily_bin1313> was submitted from host <rhel6-64f> by user <kocevski> in cluster <slac> at Tue Sep 21 22:21:48 2021
Job was executed on host(s) <bullet0048>, in queue <medium>, as user <kocevski> in cluster <slac> at Tue Sep 21 22:21:50 2021
</u/ki/kocevski> was used as the home directory.
</u/ki/kocevski> was used as the working directory.
Started at Tue Sep 21 22:21:50 2021
Terminated at Tue Sep 21 22:38:12 2021
Results reported at Tue Sep 21 22:38:12 2021

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1313 285.743 -67.8068 579657601 579916801 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 :                                   954.06 sec.
    Max Memory :                                 1258 MB
    Average Memory :                             369.52 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   982 sec.
    Turnaround time :                            984 sec.

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

