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


Performing analysis on: 4FGL_J1902.9-6748_daily_bin1533
RA = 285.743, Dec = -67.8068
tmin = 636681601, tmax = 636940801
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='499608', job_status='RUN', time_executed='2021-09-21 22:27:08.108555', time_epoch_executed='1632288428.11' WHERE source_name='4FGL J1902.9-6748' and cadence='daily' and bin_id='1533'

Database successfully updated.
Done.

Creating custom output directory:
/scratch/kocevski/499608

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

Retrieving the FT1 file...

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

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

Retrieving 47 files...
Done.


Merging files...

Checksum keywords updated successfully.

Merged file saved to:
/scratch/kocevski/499608/ft1_4FGL_J1902.9-6748_daily_bin1533.fits


Retrieving the FT1 file...

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

Retrieving 47 files...
Done.


Merging files...

Merged file saved to:
/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits


Selecting the photons:
time -p gtselect infile=/scratch/kocevski/499608/ft1_4FGL_J1902.9-6748_daily_bin1533.fits outfile=/scratch/kocevski/499608/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1533.fits ra=285.743 dec=-67.8068 rad=12.0 tmin=636681601.0 tmax=636940801.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 5.31
user 5.01
sys 0.25

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

Selecting the good time intervals:
time -p gtmktime scfile=/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.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/499608/ft1_filteredMKT_4FGL_J1902.9-6748_daily_bin1533.fits evtable="EVENTS" outfile="/scratch/kocevski/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.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.51
user 0.34
sys 0.14

Generating the livetime cube:
time -p gtltcube evfile="/scratch/kocevski/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.fits" evtable="EVENTS" scfile=/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits sctable="SC_DATA" outfile=/scratch/kocevski/499608/ltcube_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.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/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits
.....................!
real 11.86
user 11.48
sys 0.33

Generating the exposure map:
time -p gtexpmap evfile=/scratch/kocevski/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits sctable="SC_DATA" expcube=/scratch/kocevski/499608/ltcube_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.fits outfile=/scratch/kocevski/499608/expmap_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.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/499608/ltcube_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.fits
.....................!
real 191.86
user 186.71
sys 4.78

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/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.fits scfile=/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits outfile=/scratch/kocevski/499608/cmap_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.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.55
user 0.37
sys 0.15

Creating the high resolution counts map:
time -p gtbin evfile=/scratch/kocevski/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.fits scfile=/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits outfile=/scratch/kocevski/499608/cmap_HighResolution_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.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/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.fits evtable="EVENTS" scfile=/scratch/kocevski/499608/ft2_4FGL_J1902.9-6748_daily_bin1533.fits sctable="SC_DATA" srcmdl=/scratch/kocevski/499608/Model_4FGL_J1902.9-6748_daily_bin1533.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/499608/ft1_filtered_4FGL_J1902.9-6748_daily_bin1533.fits.....................!
real 95.76
user 93.73
sys 1.64

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

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

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

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'Prefactor '    .10118E-03   1.0000         .10000E-03   10000.    
     2 'norm      '    36.205       1.0000         .10000E-03   10000.    
     3 'norm      '    39.282       1.0000         .10000E-03   10000.    
     4 'Prefactor '    2.9719       1.0000         .10000E-03   10000.    
     5 'Prefactor '    10.030       1.0000         .10000E-03   10000.    
     6 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     7 'norm      '    .35750       1.0000         .10000E-03   10000.    
     8 'Prefactor '    .10001E-03   1.0000         .10000E-03   10000.    
     9 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    10 'norm      '    .10001E-03   1.0000         .10000E-03   10000.    
    11 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    12 'norm      '    15.051       1.0000         .10000E-03   10000.    
    13 'Prefactor '    2.7710       1.0000         .10000E-03   10000.    
    14 'Prefactor '    23.395       1.0000         .10000E-03   10000.    
    15 'norm      '    .89634       1.0000         .10000E-03   10000.    
    16 'norm      '    55.097       1.0000         .10000E-03   10000.    
    17 'Prefactor '    .10000E-03   1.0000         .10000E-03   10000.    
    18 'Normalizat'    1.4121       1.0000         .10000E-01   10.000    
    19 'Prefactor '    .90476       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=   10486.55     FROM MIGRAD    STATUS=CONVERGED    377 CALLS     1869 TOTAL
                     EDM=   .64E-09  STRATEGY=1  ERROR MATRIX UNCERTAINTY=   .4%

  EXT PARAMETER                                   STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  Prefactor     .10000E-03    82.282       -.27022E-04** at limit **
   2  norm          36.205        11.534        .60060E-06    .36630E-04
   3  norm          39.266        74.180       -.20895E-04    .88664E-05
   4  Prefactor     2.9721        9.4322       -.99900E-06   -.19342E-03
   5  Prefactor     10.031        10.988        .40536E-08    .27597E-05
   6  Prefactor     .10000E-03    3.5722       -.21601E-06** at limit **
   7  norm          .35704        .70676       -.15659E-06   -.15870E-02
   8  Prefactor     .10000E-03    34.032       -.33283E-04** at limit **
   9  Prefactor     .10000E-03    42.663        .45848E-04** at limit **
  10  norm          .10000E-03    14.820       -.11479E-05** at limit **
  11  Prefactor     .10000E-03    21.616        .36245E-05** at limit **
  12  norm          15.051        9.4400        .23618E-07   -.39921E-04
  13  Prefactor     2.7712        7.0346        .25325E-05   -.27954E-03
  14  Prefactor     23.396        30.821        .17805E-06   -.19975E-05
  15  norm          .89655        1.1771       -.12165E-06   -.17401E-02
  16  norm          55.098        46.082        .70302E-06    .15222E-05
  17  Prefactor     .10000E-03    7.8623       -.41732E-06** at limit **
  18  Normalizat    1.4120        .22364       -.90005E-07    .12734E-03
  19  Prefactor     .90477        .81549E-01    .57488E-06    .11545E-03
                               ERR DEF=  .500    
Final values: 
  Prefactor  = 0.0001
  norm       = 36.2052
  norm       = 39.2663
  Prefactor  = 2.97206
  Prefactor  = 10.0308
  Prefactor  = 0.0001
  norm       = 0.357039
  Prefactor  = 0.0001
  Prefactor  = 0.0001
  norm       = 0.0001
  Prefactor  = 0.0001
  norm       = 15.0507
  Prefactor  = 2.77121
  Prefactor  = 23.3961
  norm       = 0.896547
  norm       = 55.0975
  Prefactor  = 0.0001
  Normalizat = 1.41202
  Prefactor  = 0.904771
 **********
 **   18 **HESSE 
 **********

 FCN=   10486.55     FROM HESSE     STATUS=OK           270 CALLS     2139 TOTAL
                     EDM=   .10E-08    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  Prefactor     .10000E-03    82.274        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   2  norm          36.205        11.529        .66604E-04   -1.4504    
   3  norm          39.266        74.226        .63952E-04   -1.4454    
   4  Prefactor     2.9721        9.4410        .23553E-03   -1.5363    
   5  Prefactor     10.031        10.987        .12652E-03   -1.5074    
   6  Prefactor     .10000E-03    3.5799        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   7  norm          .35704        .89679        .11481E-02   -1.5588    
   8  Prefactor     .10000E-03    33.968        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
   9  Prefactor     .10000E-03    42.609        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  10  norm          .10000E-03    14.917        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  11  Prefactor     .10000E-03    21.616        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  12  norm          15.051        9.4412        .10324E-03   -1.4932    
  13  Prefactor     2.7712        6.9884        .24448E-03   -1.5375    
  14  Prefactor     23.396        30.818        .82814E-04   -1.4740    
  15  norm          .89655        1.0351        .12120E-02   -1.5519    
  16  norm          55.098        46.081        .54040E-04   -1.4222    
  17  Prefactor     .10000E-03    7.8920        .18142E-02   -1.5708    
                                 WARNING -   - ABOVE PARAMETER IS AT LIMIT.
  18  Normalizat    1.4120        .26628        .36911E-03   -.80282    
  19  Prefactor     .90477        .98357E-01    .16446E-03   -.95975    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 1.02412e-09
Minuit parameter uncertainties:
  1  0.000172892
  2  11.5294
  3  74.4018
  4  9.44576
  5  10.9895
  6  1.46348e-06
  7  0.896819
  8  1.18607e-05
  9  4.23127e-06
  10  1.33034e-05
  11  4.60603e-07
  12  9.44209
  13  6.99042
  14  30.8393
  15  1.03511
  16  46.1113
  17  4.63857e-06
  18  0.266542
  19  0.0983759
Done.

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

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.505e+01  9.442e+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:  9.048e-01  9.838e-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.412e+00  2.665e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Fixed Index): 4.22
Ra Dec: 285.743 -67.807
Photon Index (Fixed Index): 2.31 +/- 0.00
Photon Flux (Fixed Index): 6.08e-08 +/- 3.81e-08
Energy Flux (Fixed Index): 2.05e-05 +/- 1.29e-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) = 10486.4332503
delta logL = 0.114630002121

Fit tolerance = 0.0001

Performing likelihood fit...
Done.

MINUIT Return Code (Free Index): 0
logL (Free Index) = 10486.4270184
delta logL = 0.120861890467

Fit tolerance = 1e-08

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

 PARAMETER DEFINITIONS:
    NO.   NAME         VALUE      STEP SIZE      LIMITS
     1 'norm      '    12.949       1.0000         .10000E-03   10000.    
     2 'alpha     '    2.7024       1.0000          .0000       5.0000    
     3 'Normalizat'    1.3832       1.0000         .10000E-01   10.000    
     4 'Prefactor '    .91164       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=   10486.43     FROM MIGRAD    STATUS=CONVERGED     57 CALLS      264 TOTAL
                     EDM=   .16E-07    STRATEGY= 1      ERR MATRIX NOT POS-DEF

  EXT PARAMETER                APPROXIMATE        STEP         FIRST   
  NO.   NAME        VALUE          ERROR          SIZE      DERIVATIVE 
   1  norm          12.959        141.31        .27828E-02    .16801E-03
   2  alpha         2.7031        3.7062        .41323        .76949E-04
   3  Normalizat    1.3833        .10528        .84081E-01    .41023E-05
   4  Prefactor     .91148        .30573E-01    .45153E-01   -.32275E-04
                               ERR DEF=  .500    
Final values: 
  norm       = 12.9594
  alpha      = 2.70309
  Normalizat = 1.38329
  Prefactor  = 0.911478
 **********
 **   18 **HESSE 
 **********

 FCN=   10486.43     FROM HESSE     STATUS=OK            33 CALLS      297 TOTAL
                     EDM=   .49E-10    STRATEGY= 1      ERROR MATRIX ACCURATE 

  EXT PARAMETER                                INTERNAL      INTERNAL  
  NO.   NAME        VALUE          ERROR       STEP SIZE       VALUE   
   1  norm          12.959        11.389        .11131E-03   -1.4988    
   2  alpha         2.7031        .91470        .18451E-01    .81327E-01
   3  Normalizat    1.3833        .27258        .37224E-03   -.81113    
   4  Prefactor     .91148        .98412E-01    .16392E-03   -.95741    
                               ERR DEF=  .500    
Minuit fit quality: 3   estimated distance: 4.92454e-11
Minuit parameter uncertainties:
  1  11.3905
  2  0.936604
  3  0.272864
  4  0.0984308
shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory
rmdir: failed to remove `/scratch/kocevski/499608': 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) = 10486.4270133
delta logL = 0.120866957253

Extracting fit parameters...

4FGL J1902.9-6748
   Spectrum: LogParabola
435         norm:  1.296e+01  1.139e+01  1.000e-04  1.000e+04 ( 1.000e-12)
436        alpha:  2.703e+00  9.366e-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:  9.115e-01  9.843e-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.383e+00  2.729e-01  1.000e-02  1.000e+01 ( 1.000e+00)


TS (Free Index): 4.48
Ra Dec: 285.743 -67.807
Photon Index (Free Index): 2.70 +/- 0.94
Photon Flux (Free Index): 7.97e-08 +/- 5.81e-08
Energy Flux (Free Index): 1.97e-05 +/- 1.20e-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/499608/cmap_HighResolution_636681601_636940801_4FGL_J1902.9-6748_daily_bin1533.png

Cleaning up...

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

Updating database...

UPDATE lightcurve_data_v2 SET comment='SUCCESS', photon_flux='6.08e-08', energy_flux2='1.97e-05', photon_flux_error='3.81e-08', dlogl='1.21e-01', energy_flux='2.05e-05', photon_flux2='7.97e-08', job_status='DONE', time_completed='2021-09-21 22:41:03.605948', photon_index_error2='0.94', photon_index2='2.70', ts='4.22', fit_tolerance='1e-08', GAL='0.90', photon_index_error='0.00', energy_flux_error2='1.20e-05', EG='1.41', time_epoch_completed='1632289263.61', return_code='0', job_id='499608', GAL2='0.91', EG2='1.38', return_code2='0', energy_flux_error='1.29e-05', photon_flux_error2='5.81e-08', ts2='4.48', photon_index='2.31' WHERE bin_id='1533' AND source_name='4FGL J1902.9-6748' AND cadence='daily';

Database successfully updated.


Analysis Complete.


Tue Sep 21 22:41:03 PDT 2021


------------------------------------------------------------
Sender: LSF System <lsf@bullet0120>
Subject: Job 499608: <4FGL_J1902.9-6748_daily_bin1533> in cluster <slac> Done

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

Your job looked like:

------------------------------------------------------------
# LSBATCH: User input
/nfs/farm/g/glast/g/LCRepository/Likelihood/Scripts/LikelihoodAnalysis.py 4FGL_J1902.9-6748_daily_bin1533 285.743 -67.8068 636681601 636940801 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 :                                   827.00 sec.
    Max Memory :                                 1095 MB
    Average Memory :                             365.54 MB
    Total Requested Memory :                     -
    Delta Memory :                               -
    Max Swap :                                   -
    Max Processes :                              5
    Max Threads :                                21
    Run time :                                   877 sec.
    Turnaround time :                            880 sec.

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

